myfaces

How to survive viewscoped beans/viewmap after session destroy (using client side saving)?

℡╲_俬逩灬. 提交于 2019-12-02 21:52:28
问题 I'm using Myfaces 2.2 with Client-side state saving . I see that the ViewScoped beans & data stored in viewmap is lost after the user session is destroyed. I came to know, not sure if it is correct, that this is the expected behavior but then what's the way to avoid view expired exceptions after session destroy? My problem is that I destroy the user session pretty quickly after some inactivity period(like after 20 minutes) but I want the viewscope data to survive even after that(when using

Passing action method names as arguments to facelets componenets

和自甴很熟 提交于 2019-12-02 19:16:31
I am calling a template and am passing in parameters like below: <ui:include src="WEB-INF/Subviews/ProductEdit.xhtml"> <ui:param name="items" value="#{produtList}"></ui:param> <ui:param name="itemToEdit" value="#{productToEdit}"></ui:param> </ui:include> and in the ProductEdit.xhtml, I have something like <ui:repeat value="#{items}" var="item"> <tr> ... ... <td style="text-align: center"> <h:commandLink style="cssGenericColumn" action="#{productEditAction}"> <f:setPropertyActionListener target="#{itemToEdit}" value="#{item}"/> </h:commandLink> </td> <tr> </ui:repeat> which works fine. I now

JSF Session issue in different browser windows

旧巷老猫 提交于 2019-12-02 17:00:57
问题 We have an application which is built on JSF 2.0(MyFaces) and runs on Weblogic app server. We are facing an issue regarding http Session. Issue: Suppose I have opened the app in two different IE windows and give some search input in first window. The search result data received in first window is being shared in second window's session. Note: . The beans are session scoped and javax.faces.STATE_SAVING_METHOD is server . There's no problem of static variable being shared. Any idea why is this

Is this Primefaces bug or Mojarra/MyFaces bug

梦想与她 提交于 2019-12-02 16:43:09
问题 I cannot seems to be able to fire an event when I am within column of dataTable . Here is my simple demostration <h:form id="form"> <!--This section of p:tree here seems to be the reason causing the event not fired when click the command button--> <p:tree value="#{viewBean.root}" var="node" dynamic="true" cache="false" selectionMode="checkbox" selection="#{treeBean.selectedNode}"> <p:ajax event="expand" update=":form:messages" listener="#{viewBean.onNodeExpand}" /> <p:ajax event="collapse"

Random JSF error: no saved view state could be found

Deadly 提交于 2019-12-02 16:31:45
问题 I have a very strange error: No saved view state could be found for the view identifier: /mypage.xhtml The problem is that it appears randomly, to just ~10% of the users/executions. Application server: Apache Tomee 1.5.2 stable / 1.6.0-2013.09.20 dev (It happens on both). I use the MyFaces distribution that comes with each of them, so 2.1.10 / 2.1.12, so nothing new added. Part of web.xml: <context-param> <param-name>org.apache.myfaces.USE_ENCRYPTION</param-name> <param-value>false</param

JSF Session issue in different browser windows

末鹿安然 提交于 2019-12-02 12:03:06
We have an application which is built on JSF 2.0(MyFaces) and runs on Weblogic app server. We are facing an issue regarding http Session. Issue: Suppose I have opened the app in two different IE windows and give some search input in first window. The search result data received in first window is being shared in second window's session. Note: . The beans are session scoped and javax.faces.STATE_SAVING_METHOD is server . There's no problem of static variable being shared. Any idea why is this happening, and a solution to prevent this if any ? Regards, Shaj. That's because IE keeps the session

importing dynamic web project in eclipse ?

懵懂的女人 提交于 2019-12-02 10:30:04
问题 i use eclipse 3.6.2[Helios] and tomcat 7 and myfaces 1.2.10 i have a problem when i want to import a dynamic web project . i import the project in my workspace and perform the configurations and set jar files but when i run that in tomcat i will have this problem HTTP Status 404 - type Status report message description The requested resource () is not available. Apache Tomcat/6.0.33 and in console display this error : SEVERE: Error starting static Resources java.lang.IllegalArgumentException:

My EL Expressions are not being evaluated under a MyFaces 2.3 and Spring Boot 2.0.3 application

安稳与你 提交于 2019-12-02 09:55:27
I have a MyFaces application running under Spring Boot 2.0.3 , all Servlets and Context Listeners are properly registered and configured, and apparently working. Even my index.jsf page is being rendered. The tags are processed correctly on the .xhtml file. The problem is that all the EL expressions of index.jsf page are not being processed/evaluated. No error is thrown but where I put #{myBean.property} is always being rendered as an empty String . Debugging it I see that the server code of my Managed bean is not being called. I tried changing the el-api and el-impl libs for many versions, but

Is this Primefaces bug or Mojarra/MyFaces bug

南楼画角 提交于 2019-12-02 08:55:43
I cannot seems to be able to fire an event when I am within column of dataTable . Here is my simple demostration <h:form id="form"> <!--This section of p:tree here seems to be the reason causing the event not fired when click the command button--> <p:tree value="#{viewBean.root}" var="node" dynamic="true" cache="false" selectionMode="checkbox" selection="#{treeBean.selectedNode}"> <p:ajax event="expand" update=":form:messages" listener="#{viewBean.onNodeExpand}" /> <p:ajax event="collapse" update=":form:messages" listener="#{viewBean.onNodeCollapse}" /> <p:ajax event="select" update=":form

How can I retrieve an object on @WindowScoped?

穿精又带淫゛_ 提交于 2019-12-02 08:12:21
问题 In this post Dynamic ui:include I asked how I could store an object in some state that could permit me to load a new windows, or tab, of the same browser and it was not stored also in the new windows. Adrian Mitev told me to use @WindowScoped , an option of MyFaces extension called CODI and i tried to implement it. Now I should say that I'm blind and when I tried to open Apache Wiki my browser crashes on many pages so I can't read the guides. However I add the source code on my project and