Hi!
I am unable to get ckEditor runing in my project.
I followed the instruction described here and added primefaces-extensions.jar and resources-ckeditor.jar to the projects library, I've also updated the Apache Commons Lang3 and set the "DELIVER_UNCOMPRESSED_RESOURCES" to false.
On rendered page in browser the <pe:ckEditor>-tag is not resolved. I can't see any errors no JS and also no compile or runtime errors. Only in elcipse <pe:ckEditor>-tag displays a message "NOTICE: You must also include the org.primefaces.extensions.resources-ckeditor:*.jar artifact" but I have no idea where and how to do this.
The project is running on JBoss AS7.1.1 with Mojarra 2.1.7 and seam 2.3, also i have no pom.xml and no MANIFEST.MF
Pleas help me to get the extensions running. Thanks in advance.
Unable to run pe:ckEditor
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
That was quick! Thnx for your reply.
That is the problem, resources-ckeditor.jar is allready in my projects build path library
That is the problem, resources-ckeditor.jar is allready in my projects build path library
PrimeFaces 4.0, PrimeFaces Extensions 1.2.1,
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Don't know sorry.
It working fine for me and in the showcase.
Just add primefaces-extensions and resources-ckeditor.jar and it works.
What about other pe:* tags? Can you just try other ones?
It working fine for me and in the showcase.
Just add primefaces-extensions and resources-ckeditor.jar and it works.
What about other pe:* tags? Can you just try other ones?
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
Obviously you are missing resources-ckeditor.jar. Check this again.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
Nope, it also not works with other pe:* tags. I tried it with pe:tooltip and the rendered result in Firefox is unresolved
<pe:tooltip id="peToolTip" for="pos" value="This tooltip positioned at top right" myPosition="top, right"></pe:tooltip>
the namespace is xmlns:pe="http://primefaces.org/ui/extensions"
<pe:tooltip id="peToolTip" for="pos" value="This tooltip positioned at top right" myPosition="top, right"></pe:tooltip>
the namespace is xmlns:pe="http://primefaces.org/ui/extensions"
PrimeFaces 4.0, PrimeFaces Extensions 1.2.1,
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
Do you have PE core jar in classpath at all?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
If you mean primefaces-extensions-0.7.0.jar, then yes, it is in the classpathOleg wrote:Do you have PE core jar in classpath at all?
PrimeFaces 4.0, PrimeFaces Extensions 1.2.1,
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
Please post your xhtml code,templates(if any) and web.xml .
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
ahm, o.k. there it issudheer wrote:Please post your xhtml code,templates(if any) and web.xml .
template.xhtml
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:pe="http://primefaces.org/ui/extensions">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>#{messages['operativity']}</title>
<link rel='stylesheet' type='text/css' href='../../xmlhttp/css/xp/xp.css' />
<link rel="stylesheet" type="text/css" href="../../stylesheet/theme.css" />
<link rel='stylesheet' type='text/css' href='../../css/opm.css' />
<link rel='stylesheet' type='text/css' href='../../css/opmIcefacesComponent.css' />
<link rel='stylesheet' type='text/css' href='../../css/opmLayout.css' />
<link rel='stylesheet' type='text/css' href='../../css/tableLayout.css' />
<link rel='stylesheet' type='text/css' href='../../css/panelCollapsibleLayout.css' />
<link rel='stylesheet' type='text/css' href='../../css/panelPopupLayout.css' />
<link rel='stylesheet' type='text/css' href='../../css/mosCircle.css' />
<script type="text/javascript" src="../../js/opm.js"></script>
<script type="text/javascript" src="../../js/searchAndHighlight.js"></script>
<script type="text/javascript" src="../../js/jsdiff.js"></script>
<h:outputScript library="primefaces" name="jquery/jquery.js" />
</h:head>
<h:body>
<f:view locale="#{languageSelector.selectedLanguage}">
<p:layout fullPage="true" styleClass="opmBody" rendered="true">
<p:layoutUnit position="north" size="68" styleClass="mastHead">
<h:form id="mastHead">
<ui:include src="masthead.xhtml" />
</h:form>
</p:layoutUnit>
<p:layoutUnit position="west" size="400" resizable="true" >
<h:form id="primaryNavigationForm" style="border:0px solid blue;">
<h:panelGroup styleClass="primaryNavigation"
style="border:0px solid red;width:98%;">
<ui:include src="primaryNavigation.xhtml" />
</h:panelGroup>
</h:form>
</p:layoutUnit>
<p:layoutUnit position="center" styleClass="contentArea" resizable="true">
<h:form id="mainForm">
<h:panelGroup styleClass="contentArea" style="width:100%;">
<p:message id="dragDropErrorMessage" style="color:red;"
for="dragDropErrorMessage" />
<h:panelGroup styleClass="secondaryNavigationBackground">
<!--1. BreadCrumb -->
<h:panelGroup rendered="#{(opmBean.performanceUnit ne null) or (opmBean.orgUnit ne null) }">
<!-- rendered="#{(opmBean.performanceUnit ne null) or (opmBean.orgUnit ne null) }" -->
<h:panelGroup styleClass="breadcrumb">
<ui:include src="breadcrumb.xhtml" />
</h:panelGroup>
</h:panelGroup>
<!--2. SecondaryNavigation-->
<!-- 2.1 on workspace home -->
<p:panelGrid columns="1" rendered="true">
<h:panelGroup>
<!-- rendered="#{!opmBean.personalHome}" -->
<h:form id="secondaryNavigationForm">
<h:panelGroup rendered="true">
<!-- rendered="#{opmBean.performanceUnit ne null }" -->
<!-- <ui:include src="/layout/secondaryNavigation/menuBarPerformanceUnit.xhtml" /> -->
</h:panelGroup>
<h:panelGroup rendered="true">
<!-- rendered="#{opmBean.orgUnit ne null }" -->
<!-- <ui:include src="/layout/secondaryNavigation/menuBarOrgUnit.xhtml" /> -->
</h:panelGroup>
</h:form>
</h:panelGroup>
</p:panelGrid>
<!-- 2.2 on personal home -->
<p:panelGrid columns="2" rendered="true" columnClasses="personalHomeHeaderTitel,personalHomeHeaderSearchFiled">
<!-- rendered="#{opmBean.personalHome}" -->
<h:outputText value="#{messages['personalHome'] }" style="float:left;" />
<h:form id="searchFieldForm">
<!-- 1.TITEL -->
<!-- 2.SEARCH_FIELD PERSONAL HOME -->
<!-- SEARCH FIELD -->
<h:panelGroup style="float:right;"
id="searchFieldToolTipPanel">
<h:commandButton value="#{messages['search']}"
image="../../image/search.gif" style="height:18px; width:18px;"
title="#{messages['search']}">
</h:commandButton>
<p:tooltip for="searchFieldToolTipPanel"
showEvent="click"
hideEvent="mousedown"
style="min-width: 450px;background-color:white;">
<!-- needs icesfaces push, pushrenderer -->
<!-- <h:panelGroup
onkeydown="returnKeyPressActionListener(event,'searchFieldForm:globalSearchSubmitButton')">
<h:panelGroup>
<p:inputText id="inputGlobalSearchPersonalHome"
value="#{searchBean.currentSearch.globalSearchString}" />
<h:outputText value="in" />
<p:selectOneMenu
value="#{searchBean.currentSearch.modulScopeOnPersonalHome}">
<f:selectItems
value="#{searchObjectAction.modulListAsItems()}" />
</p:selectOneMenu>
<h:commandButton id="globalSearchSubmitButton"
value="#{messages['search']}"
action="#{searchAction.executeGlobalSearch()}" />
</h:panelGroup>
<h:panelGroup style="text-align:left; text-indent:15px;">
<p:message for="inputGlobalSearchPersonalHome" style="color:red;" />
</h:panelGroup>
<p:commandLink
value="#{messages['search.advancedSearch']}"
rendered="#{!searchAction.isAdvancedSearch() }"
action="#{searchAction.showSearchInputPanel()}" />
<p:commandLink value="#{messages['search.normalSearch']}"
rendered="#{searchAction.isAdvancedSearch() }"
action="#{searchAction.showSearchInputPanel()}" />
</h:panelGroup>
-->
</p:tooltip>
</h:panelGroup>
</h:form>
</p:panelGrid>
</h:panelGroup>
<!-- The context body -->
<h:panelGroup styleClass="table" style="width:100%;">
<!--3. Table-->
<h:form id="opmTable">
<ui:insert name="body" />
<p:messages autoUpdate="true" />
</h:form>
</h:panelGroup>
</h:panelGroup>
</h:form>
</p:layoutUnit>
</p:layout>
</f:view>
</h:body>
</html>
Code: Select all
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions"
template="../../layout/template.xhtml">
<ui:define name="body">
<!-- NO PERMISSION -->
<h:panelGroup
rendered="#{(opmBean.performanceUnit eq null) and (opmBean.orgUnit eq null) }">
<h:outputText>#{messages['workspace.noPermission'] }</h:outputText>
</h:panelGroup>
<!-- WITH PERMISSION -->
<h:panelGroup styleClass="tableBody">
<!--############################ PERFORMANCE_UNIT ###############################-->
<p:tabView
id="PUnitTabView"
dynamic="true"
rendered="#{(opmBean.performanceUnit ne null) and (opmBean.orgUnit eq null)}"
styleClass="workspaceHomeTabSet"
activeIndex="#{opmBean.selectedTabIndexOnWorkspaceHome}">
<p:ajax partialSubmit="true" event="tabChange" listener="#{tabChangeListener.tabChangeListenerOnWorkspaceHome}"/>
<!-- 1. SUMMARY -->
<p:tab labelWidth="95" title="#{messages['summary'] }">
<ui:include src="/opm/workspace/workspaceSummary.xhtml" />
</p:tab>
<!-- 2. DATE DUTIES -->
<p:tab title="#{messages['dateDuties']}">
<p:tabView
id="dateDutiesTabView"
dynamic="true"
styleClass="icePnlTbOnUser"
activeIndex="#{opmBean.selectedSubTabIndexOnWorkspaceHome}">
<p:ajax partialSubmit="true" event="tabChange" listener="#{tabChangeListener.subDateDutiesTabChangeListener}"/>
<!-- 2-1.MY DUTIES -->
<p:tab labelWidth="120" styleClass="myIcePnlTbOn"
title="#{messages['myDuties.OnWorkspace'] }">
<h:panelGroup style="margin-top:5px;">
<ui:include src="/opm/duties/myDuties/myDuties.xhtml" />
</h:panelGroup>
</p:tab>
<!-- 2-2.UNFINISHED DUTIES -->
<p:tab labelWidth="120" styleClass="myIcePnlTbOn"
title="#{messages['duties.unfinishedDuties']}">
<h:panelGroup style="margin-top:5px;">
<ui:include src="/opm/duties/unfinishedDuties/unfinishedDuties.xhtml" />
</h:panelGroup>
</p:tab>
</p:tabView>
</p:tab>
<!--3. WORKSPACE SETTING -->
<p:tab labelWidth="120" id="workspaceDataTab"
title="#{messages['puHome.puSetting'] }"
styleClass="workspaceHomeTab">
<p:tabView
id="WsSettingTabView"
dynamic="true"
activeIndex="#{opmBean.selectedSubTabIndexOnWorkspaceHome}"
styleClass="icePnlTbOnUser">
<p:ajax partialSubmit="true" event="tabChange" listener="#{tabChangeListener.subPerformanceUnitSettingTabChangeListener}"/>
<!--REVIEW -->
<p:tab
labelWidth="120"
styleClass="myIcePnlTbOn"
title="#{messages['puHome.puSetting.review'] }">
<h:panelGroup>
<ui:include src="/opm/workspace/workspaceDetail.xhtml" />
</h:panelGroup>
</p:tab>
<!--TEAM LIST-->
<p:tab
labelWidth="120"
title="#{messages['menuBar.team'] }"
rendered="#{opmBean.role ne roleType.none }"
styleClass="myIcePnlTbOn">
<h:panelGroup>
<ui:include src="/opm/userList/teamList.xhtml" />
</h:panelGroup>
</p:tab>
<!-- EXTENDED WORKSPACE SETTING -->
<p:tab
labelWidth="120"
styleClass="myIcePnlTbOn"
rendered="#{(opmBean.performanceUnit.workspaceType eq performanceUnitType.spj)}"
title="#{messages['workspace.workspaceSettings']}">
<h:panelGroup style="margin-top:5px;">
<ui:include src="/opm/workspace/extendedWorkspaceSettings.xhtml" />
</h:panelGroup>
</p:tab>
<!-- TASKS_MASTER_DATE -->
<p:tab labelWidth="120" styleClass="myIcePnlTbOn"
title="#{messages['taskMasterDate']}">
<h:panelGroup style="margin-top:5px;">
<ui:include src="/opm/tasksMasterDate/tasksMasterDateList.xhtml" />
</h:panelGroup>
</p:tab>
</p:tabView>
</p:tab>
<!-- 4. PERSONAL SETTING -->
<p:tab labelWidth="120"
title="#{messages['puHome.personalSetting'] }">
<!--(1.) ADD TO FAV / DELETE FROM FAV -->
<h:panelGroup style="text-align: left;">
<!-- ADD TO FAV -->
<h:panelGroup
rendered="#{!workspaceSideBarListBean.checkIsFavoriteWorkspace(opmBean.performanceUnit) }">
<h:commandButton
actionListener="#{workspaceSideBarListBean.addToFavoriteWorkspace(opmBean.performanceUnit, opmBean.role) }"
image="../../image/removeFavorite.gif" style="height:24px;width:25px;">
</h:commandButton>
<p:commandLink
actionListener="#{workspaceSideBarListBean.addToFavoriteWorkspace(opmBean.performanceUnit, opmBean.role) }"
style="border-bottom:1px solid grey;"
value="#{messages['workspace.addToFavorite'] }">
</p:commandLink>
</h:panelGroup>
<!-- DELETE FROM FAV -->
<h:panelGroup
rendered="#{workspaceSideBarListBean.checkIsFavoriteWorkspace(opmBean.performanceUnit) }">
<h:commandButton
actionListener="#{workspaceSideBarListBean.removeFromFavoriteWorkspace(opmBean.performanceUnit) }"
image="../../image/addFavorite.gif" style="height:23px;width:25px;">
</h:commandButton>
<p:commandLink
actionListener="#{workspaceSideBarListBean.removeFromFavoriteWorkspace(opmBean.performanceUnit) }"
style="border-bottom:1px solid grey;"
value="#{messages['workspace.removeFromFavorite'] }">
</p:commandLink>
</h:panelGroup>
<br />
<!-- (2.) MESSAGE BOARD SUBSCRIPTION-->
<h:panelGroup>
<h:commandButton
actionListener="#{messageBoardSubscriptionBean.initMessageBoardSubscription()}"
image="../../image/messagebox_info.gif" style="height:25px;" />
<p:commandLink
actionListener="#{messageBoardSubscriptionBean.initMessageBoardSubscription()}"
style="border-bottom:1px solid grey;"
value="#{messages['messageBoardSubscription'] }">
</p:commandLink>
</h:panelGroup>
</h:panelGroup>
</p:tab>
<!-- 5.HELP INFO-->
<p:tab labelWidth="120" title="#{messages['helpInfo.edit'] }" rendered="#{opmBean.superUser }">
<ui:include src="/opm/helpInfo/helpInfoPerformanceUnit.xhtml">
<ui:param name="helpInfoPerformanceUnitType" value="#{opmBean.performanceUnit.workspaceType }" />
<ui:param name="helpInfoObjectList" value="#{helpInfoBean.performanceUnitHelpInfoList}" />
<ui:param name="currentWorkspace" value="#{opmBean.performanceUnit}" />
</ui:include>
<ui:include src="/opm/helpInfo/helpInfoEdit.xhtml" />
</p:tab>
</p:tabView>
<!-- WITH PERMISSION -->
<!--###################### ORGANIZATION UNIT ###############################-->
<p:tabView
id="OrgUNitTabView"
dynamic="true"
rendered="#{(opmBean.orgUnit ne null) and (opmBean.performanceUnit eq null)}"
styleClass="workspaceHomeTabSet">
<p:ajax partialSubmit="true" event="tabChange" listener="#{tabChangeListener.tabChangeListenerOnOrganisationUnitHome}"/>
<!--WORKSPACE DATA -->
<p:tab labelWidth="140"
title="#{messages['orgHome.orgSetting'] }" icon="../../image/msginfo.gif"
style="">
<ui:include src="/opm/workspace/workspaceDetail.xhtml" />
</p:tab>
<!--Templates -->
<!-- TEMPORARY DEACTIVATE -->
<!--
<p:tab labelWidth="140"
label="#{messages['templateSetting'] }"
rendered="#{opmSystem.cmsEnabled}" icon="../../image/configure.gif">
<ui:include src="/opm/cms/cmsTemplateList.xhtml" />
</p:tab>
-->
<!-- HELP INFO-->
<p:tab labelWidth="140" title="#{messages['helpInfo.edit'] }"
icon="../../image/help.gif" rendered="#{opmBean.superUser }">
<ui:include src="/opm/helpInfo/helpInfoEdit.xhtml" />
<!-- <ui:include src="/opm/helpInfo/helpInfoOrgUnit.xhtml" /> -->
</p:tab>
</p:tabView>
</h:panelGroup>
<!--###################### POPUPPANEL ###############################-->
<!-- MESSAGE_BOARD POPUPPANEL-->
<p:dialog
id="messageBoardConfigurator"
modal="true"
draggable="true"
closable="true"
rendered="#{messageBoardSubscriptionBean_popupPanelConf}"
styleClass="panelPopup">
<f:facet name="header">
<h:panelGroup>
<h:outputText
value="#{messages['messageBoardSubscription.popUpView'] }" />
<h:commandButton value="cancel"
styleClass="panelPopupHeaderCancelIcon" image="../../image/cancel.gif"
actionListener="#{messageBoardSubscriptionBean.cancel()}"
title="#{messages['cancel'] }" />
</h:panelGroup>
</f:facet>
<h:panelGroup styleClass="panelPopupBody">
<!-- <ui:include src="/opm/messageBoard/messageBoardSubscription.xhtml" /> -->
</h:panelGroup>
</p:dialog>
</ui:define>
</ui:composition>
Code: Select all
<h:panelGroup xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<style type="text/css">
@import "../../css/panelPopupLayout.css";
</style>
<!-- TECHNICAL EDIT -->
<p:dialog
id="helpTechnicalInfoEditView"
widgetVar="helpTechnicalInfoEditView_dlg"
styleClass="panelPopup"
modal="true"
appendToBody="true"
closeOnEscape="true"
resizable="false"
dynamic="true">
<p:ajax event="close" partialSubmit="true" immediate="false" process="@this" listener="#{helpInfoAction.cancelEditTechnicalHelpInfo()}"></p:ajax>
<f:facet name="header">
<h:panelGroup>
<h:outputText value="#{messages['helpInfo.editTechnicalInfo']}"
rendered="#{helpInfoBean.editedTechnicalHelpInfo.id ne null}" />
<h:outputText value="#{messages['helpInfo.newTechnicalInfo']}"
rendered="#{helpInfoBean.editedTechnicalHelpInfo.id eq null}" />
</h:panelGroup>
</f:facet>
<h:panelGroup styleClass="panelPopupBody">
<!-- EDIT MEETING MENU -->
<h:panelGroup styleClass="panelPopupActionBarTop">
<h:panelGroup style="display:inline-block;">
<h:commandButton value="save" image="../../image/edit_yes.gif"
actionListener="#{helpInfoAction.saveEditTechnicalHelpInfo()}"
styleClass="panelPopupActionBarTopIcon"
title="#{messages['save']}" />
<h:commandButton value="delete" image="../../image/delete.gif"
rendered="#{helpInfoBean.editedTechnicalHelpInfo.id ne null}"
actionListener="#{helpInfoAction.deleteEditTechnicalHelpInfo(helpInfoBean.editedTechnicalHelpInfo.contentEntityType, helpInfoBean.editedTechnicalHelpInfo.workspaceType)}"
styleClass="panelPopupActionBarTopIcon"
title="#{messages['delete']}"
onclick="if(!confirm('#{messages['panelConfirmation.delete.message']}')) { return false;}" />
</h:panelGroup>
</h:panelGroup>
<pe:ckEditor
id="editor01"
widgetVar="editor01_wV"
width="90%"
height="#{displaySettings.panelPopupHeight}"
skin="office2003"
value="#{helpInfoBean.editedTechnicalHelpInfo.info}"
toolbar="TMP"
customConfig="../../js/config.js"
converter="inputRichTextConverter"/>
</h:panelGroup>
</p:dialog>
<!-- METHODICAL EDIT -->
<p:dialog
id="helpMethodicalInfoEditView"
widgetVar="helpMethodicalInfoEditView_dlg"
styleClass="panelPopup"
modal="true"
appendToBody="true"
closeOnEscape="true"
resizable="false"
dynamic="true">
<p:ajax event="close" partialSubmit="true" immediate="false" process="@this" listener="#{helpInfoAction.cancelEditMethodicalHelpInfo()}"></p:ajax>
<f:facet name="header">
<h:panelGroup>
<h:outputText value="#{messages['helpInfo.editMethodicalInfo']}"
rendered="#{helpInfoBean.editedMethodicalHelpInfo.id ne null}" />
<h:outputText value="#{messages['helpInfo.newMethodicalInfo']}"
rendered="#{helpInfoBean.editedMethodicalHelpInfo.id eq null}" />
</h:panelGroup>
</f:facet>
<h:panelGroup styleClass="panelPopupBody">
<!-- EDIT MEETING MENU -->
<h:panelGroup styleClass="panelPopupActionBarTop">
<h:panelGroup style="display:inline-block;">
<h:commandButton value="save" image="../../image/edit_yes.gif"
actionListener="#{helpInfoAction.saveEditMethodicalHelpInfo()}"
styleClass="panelPopupActionBarTopIcon" title="save" />
<h:commandButton value="delete(todo)" image="../../image/delete.gif"
rendered="#{helpInfoBean.editedMethodicalHelpInfo.id ne null}"
actionListener="#{helpInfoAction.deleteEditMethodicalHelpInfo(helpInfoBean.editedMethodicalHelpInfo.contentEntityType, helpInfoBean.editedMethodicalHelpInfo.workspaceType)}"
styleClass="panelPopupActionBarTopIcon" title="delete"
onclick="if(!confirm('#{messages['panelConfirmation.delete.message']}')) { return false;}" />
</h:panelGroup>
</h:panelGroup>
<pe:ckEditor
width="90%"
height="#{displaySettings.panelPopupHeight}"
skin="office2003"
value="#{helpInfoBean.editedMethodicalHelpInfo.info}"
toolbar="TMP"
customConfig="../../js/config.js"
converter="inputRichTextConverter"/>
</h:panelGroup>
</p:dialog>
</h:panelGroup>
Code: Select all
<h:panelGroup xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<p:panel
toggleable="true"
styleClass="myIcePnlClpsbl">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="#{messages['helpInfo']} #{messages['workspace.performanceUnit']} : #{performanceUnitType.getPerformanceUnitMessage(helpInfoPerformanceUnitType)}"/>
<h:outputText rendered="#{helpInfoPerformanceUnitType eq performanceUnitType.sct2}" value="2"/>
</h:panelGroup>
</f:facet>
<h:panelGroup>
<p:dataTable value="#{helpInfoObjectList}"
var="performanceUnitHelpInfoItem">
<p:column style="width:25px; display: inline;">
<h:panelGroup>
<p:menubar styleClass="myIceMnuBar" autoDisplay="true">
<p:submenu styleClass="myIceMnuBarItem">
<p:menuitem
value="#{messages['edit']}"
immediate="false"
partialSubmit="true"
process="@this"
oncomplete="helpTechnicalInfoEditView_dlg.show()"
actionListener="#{helpInfoAction.editTechnicalHelpInfo(performanceUnitHelpInfoItem.contentEntityType, helpInfoPerformanceUnitType)}" />
</p:submenu>
</p:menubar>
</h:panelGroup>
</p:column>
<p:column>
<h:panelGroup rendered="#{(performanceUnitHelpInfoItem.technicalHelpInfo ne null)}">
<h:panelGroup id="performanceUnitTechnicalHelpInfoToolTip">
<h:outputText
value="#{helpInfoAction.getHelpInfoMessage(performanceUnitHelpInfoItem.contentEntityType, true)}"/>
<p:tooltip for="performanceUnitTechnicalHelpInfoToolTip" hideEvent="mouseout">
<h:panelGroup>
<h:outputText value="#{performanceUnitHelpInfoItem.technicalHelpInfo.info}"/>
</h:panelGroup>
</p:tooltip>
</h:panelGroup>
<h:panelGroup id="performanceUnitTechnicalParentLookUpScope">
<p:graphicImage value="../../image/parentLookUpScope.gif"
rendered="#{(performanceUnitHelpInfoItem.technicalHelpInfo.workspace.id ne currentWorkspace.id)}" />
<p:tooltip for="performanceUnitTechnicalParentLookUpScope" hideEvent="mouseout" >
<p:dataGrid
value="#{performanceUnitHelpInfoItem.technicalHelpInfo.workspace.pathToRoot}"
var="performanceUnitParentLookUpScopeWorkspacePath">
<p:graphicImage value="../../xmlhttp/css/rime/css-images/bullet.gif" />
<h:panelGroup>
<p:outputLabel value="#{performanceUnitParentLookUpScopeWorkspacePath.name} " />
</h:panelGroup>
</p:dataGrid>
</p:tooltip>
</h:panelGroup>
</h:panelGroup>
<h:panelGroup rendered="#{(performanceUnitHelpInfoItem.technicalHelpInfo eq null)}">
<h:outputText style="color:red;"
value="#{helpInfoAction.getHelpInfoMessage(performanceUnitHelpInfoItem.contentEntityType, true)}"></h:outputText>
</h:panelGroup>
</p:column>
<p:column style="width:25px;">
<h:panelGroup>
<p:menubar
styleClass="myIceMnuBar"
autoDisplay="true">
<p:submenu styleClass="myIceMnuBarItem">
<p:menuitem
value="#{messages['edit']}"
immediate="false"
partialSubmit="true"
process="@this"
oncomplete="helpMethodicalInfoEditView_dlg.show()"
actionListener="#{helpInfoAction.editMethodicalHelpInfo(performanceUnitHelpInfoItem.contentEntityType, helpInfoPerformanceUnitType)}" />
</p:submenu>
</p:menubar>
</h:panelGroup>
</p:column>
<p:column>
<h:panelGroup rendered="#{(performanceUnitHelpInfoItem.methodicalHelpInfo ne null)}">
<h:panelGroup id="performanceUnitMethodicalHelpInfoToolTip">
<h:outputText
value="#{helpInfoAction.getHelpInfoMessage(performanceUnitHelpInfoItem.contentEntityType, false)}"/>
<p:tooltip for="performanceUnitMethodicalHelpInfoToolTip">
<h:outputText value="#{performanceUnitHelpInfoItem.methodicalHelpInfo.info}"/>
</p:tooltip>
</h:panelGroup>
<h:panelGroup id="performanceUnitMethodicalParentLookUpScope">
<p:graphicImage value="../../image/parentLookUpScope.gif"
rendered="#{(performanceUnitHelpInfoItem.methodicalHelpInfo.workspace.id ne currentWorkspace.id)}" />
<p:tooltip for="performanceUnitMethodicalParentLookUpScope">
<h:panelGroup>
<p:dataGrid
value="#{performanceUnitHelpInfoItem.methodicalHelpInfo.workspace.pathToRoot}"
var="performanceUnitParentLookUpScopeWorkspacePath">
<p:graphicImage value="../../xmlhttp/css/rime/css-images/bullet.gif" />
<h:panelGroup style="display: inline-block;">
<p:outputLabel value="#{performanceUnitParentLookUpScopeWorkspacePath.name} " />
</h:panelGroup>
</p:dataGrid>
</h:panelGroup>
</p:tooltip>
</h:panelGroup>
</h:panelGroup>
<h:panelGroup
rendered="#{(performanceUnitHelpInfoItem.methodicalHelpInfo eq null)}">
<h:outputText style="color:red;"
value="#{helpInfoAction.getHelpInfoMessage(performanceUnitHelpInfoItem.contentEntityType, false)}"></h:outputText>
</h:panelGroup>
</p:column>
</p:dataTable>
</h:panelGroup>
</p:panel>
<h:outputText value="Position: "/>
<h:panelGroup layout="block" style="padding: 3px 0 3px 0;">
<h:outputLink id="pos" value="#">
<h:outputText value="Position (top, right)"/>
</h:outputLink>
<pe:tooltip widgetVar="peToolTip_WV" id="peToolTip" for="pos" value="This tooltip positioned at top right" myPosition="top, right"/>
</h:panelGroup>
</h:panelGroup>
Code: Select all
<?xml version="1.0" ?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<!-- Context parameters - Primefaces & Extensions -->
<context-param>
<param-name>org.primefaces.extensions.WRAP_PRIME_FACES_RESOURCES</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.primefaces.extensions.DELIVER_UNCOMPRESSED_RESOURCES</param-name>
<param-value>true</param-value>
</context-param>
<!-- RichFaces -->
<context-param>
<param-name>org.richfaces.skin</param-name>
<param-value>blueSky</param-value>
</context-param>
<!-- Suppress spurious stylesheets -->
<context-param>
<param-name>org.richfaces.enableControlSkinning</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.enableControlSkinningClasses</param-name>
<param-value>false</param-value>
</context-param>
<!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->
<context-param>
<param-name>org.richfaces.resourceOptimization.enabled</param-name>
<param-value>true</param-value>
</context-param>
<!-- Seam -->
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
<filter>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
<!-- Change to "Production" when you are ready to deploy -->
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Production</param-value>
</context-param>
<!-- JSF -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
<url-pattern>*.jsf</url-pattern>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<!-- prevent JSF to render xhtml-comments in panelGrid -->
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
</web-app>
Last edited by bdbserge on 07 May 2013, 15:01, edited 1 time in total.
PrimeFaces 4.0, PrimeFaces Extensions 1.2.1,
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
PrimeFaces 5.1, PrimeFaces Extensions 2.0.0, Mojarra 2.1.20-05 (SNAPSHOT 20140403-0704), JBoss 7.1.1, Windows 7
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests