jsf-2

Primefaces 4.0 Tree selection update in backing bean does not work

試著忘記壹切 提交于 2020-01-25 02:20:09
问题 I am having a primefaces Tree in a dialog. When I make selections in the Tree and click Add button, it adds all selections to a "p:selectManyMenu" in another panel. Code for the Dialog and Tree: <h:form id="categoriesDialogForm"> <p:dialog id="categoriesDialog" header="Add a Category" widgetVar="categoriesDialogVar" closeOnEscape="true" height="500" resizable="false" > <p:panelGrid> <p:row> <p:column> <p:tree id="categoriesTree" value="#{searchController.categoriesTree}" var="node"

JSF 2 Custom Scope usage

微笑、不失礼 提交于 2020-01-24 07:19:53
问题 I am going through all the scopes in JSF2.0. I am a little confused about when to use custom Scope. Any specific use cases it will be useful. Initially I thought I can use it for scope spanning multiple pages like three page registration etc. But looks like we cannot use it there. 回答1: Better late than never: I wrote an article about the usage custom scopes in JSF2 : JSF 2 Custom Scopes without 3rd party libraries 回答2: Well, the general idea is to create your own Scope for what ever you like

How to pass a parameter through another bean's object inside a method called from <f:event listener=“…”>

北战南征 提交于 2020-01-24 01:10:21
问题 How to pass a parameter through another bean's object inside a method called from <f:event listener="..."> ? I am trying to pass a parameter generated by another bean inside a showData() method that is to be called on using <f:event listener="#{myTransformerBeans.showData}"> The parameter would be #{myDataBean.myId} . 回答1: you could also try <f:event listener="#{myTransformerBeans.showData(myDataBean.myId)}"> 来源: https://stackoverflow.com/questions/10013343/how-to-pass-a-parameter-through

JSF Session timeout and auto redirect to login page without user intraction eventhough Ajax push is active

我们两清 提交于 2020-01-24 00:15:14
问题 I'm using Iceface Icepush in my JSF application to send some notifications to client. Because of this session timeout never happen on my application. I've specified session timeout 15 mins. My requirement is, server should invalidate session if there is no actual client interaction for 15 mins. I did some search in iceface forum and added this context param in web.xml <context-param> <param-name>org.icefaces.strictSessionTimeout</param-name> <param-value>true</param-value> </context-param>

Primefaces-extensions ckeditor - missing toolbar

六眼飞鱼酱① 提交于 2020-01-23 14:04:29
问题 I am trying to use the primefaces-extensions ckEditor in my JSF application, as described here. I added the dependency to my pom.xml : <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId>primefaces-extensions</artifactId> <version>4.0.0</version> </dependency> This is how my view looks like: <p:growl id="editorgrowl" showDetail="true" /> <pe:ckEditor id="editor" value="#{mbEditorController.content}" toolbar="[['Cut','Copy','Paste','PasteText','PasteFromWord','-',

Primefaces-extensions ckeditor - missing toolbar

淺唱寂寞╮ 提交于 2020-01-23 14:03:34
问题 I am trying to use the primefaces-extensions ckEditor in my JSF application, as described here. I added the dependency to my pom.xml : <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId>primefaces-extensions</artifactId> <version>4.0.0</version> </dependency> This is how my view looks like: <p:growl id="editorgrowl" showDetail="true" /> <pe:ckEditor id="editor" value="#{mbEditorController.content}" toolbar="[['Cut','Copy','Paste','PasteText','PasteFromWord','-',

Primefaces-extensions ckeditor - missing toolbar

不羁的心 提交于 2020-01-23 14:03:24
问题 I am trying to use the primefaces-extensions ckEditor in my JSF application, as described here. I added the dependency to my pom.xml : <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId>primefaces-extensions</artifactId> <version>4.0.0</version> </dependency> This is how my view looks like: <p:growl id="editorgrowl" showDetail="true" /> <pe:ckEditor id="editor" value="#{mbEditorController.content}" toolbar="[['Cut','Copy','Paste','PasteText','PasteFromWord','-',

why does mojarra 2.1 scan every other war on each module startup?

人走茶凉 提交于 2020-01-23 12:22:46
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra

why does mojarra 2.1 scan every other war on each module startup?

末鹿安然 提交于 2020-01-23 12:22:16
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra

why does mojarra 2.1 scan every other war on each module startup?

蓝咒 提交于 2020-01-23 12:22:03
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra