jsf 2 - Some questions about view duration/life time -


in web project, of pages using view scoped managed beans. it's working great, sometimes, notice if away page time, like, 10 minutes, when return page, in page stops working, , no console errors shown in server. think due life of view, have found nothing it. can find info it? there way configure life time of view?

i'm using apache tomcat 7. below web.xml configuration file:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="webapp_id" version="3.0"> <display-name>atualygestao</display-name> <welcome-file-list>     <welcome-file>index.html</welcome-file>     <welcome-file>index.htm</welcome-file>     <welcome-file>index.jsp</welcome-file>     <welcome-file>default.html</welcome-file>     <welcome-file>default.htm</welcome-file>     <welcome-file>default.jsp</welcome-file>     <welcome-file>index.jsf</welcome-file> </welcome-file-list> <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>*.jsf</url-pattern> </servlet-mapping> <context-param>     <param-name>primefaces.theme</param-name>     <param-value>home</param-value> </context-param> 

you should see if have paid attention http response of ajax request in browser's developer toolset (press f12 in chrome/firebug/ie9):

enter image description here

indeed, session has expired. elaborate explanation why problem jsf can found in answer: javax.faces.application.viewexpiredexception: view not restored.

jsf ajax requests have default no form of feedback in case of exceptions. how fix answered here: session timeout , viewexpiredexception handling on jsf/primefaces ajax request.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -