viewexpiredexception

JSF: Cannot catch ViewExpiredException

可紊 提交于 2019-11-28 19:53:55
I'm developing a JSF 2.0 application on Glassfish v3 and i'm trying to handle the ViewExpiredException. But whatever i do, i always get a Glassfish error report instead of my own error page. To simulate the occurrence of the VEE, i inserted the following function into my backing bean, which fires the VEE. I'm triggering this function from my JSF page through a commandLink. The Code: @Named public class PersonHome { (...) public void throwVEE() { throw new ViewExpiredException(); } } At first i tried it by simply adding an error-page to my web.xml: <error-page> <exception-type>javax.faces

ViewExpiredException shown in java.lang.Throwable error-page in web.xml

徘徊边缘 提交于 2019-11-27 22:07:20
I'm working on a JSF web application in which I need to bring up a "Session Expired" page if the view expires, but a general technical error page for all others. The application only goes to the technical error page when I trigger the exception. Here's the error-page definitions: <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/jsps/utility/sessionExpired.jsp</location> </error-page> <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/jsps/utility/technicalError.jsp</location> </error-page> <error-page> <error-code

JSF: Cannot catch ViewExpiredException

橙三吉。 提交于 2019-11-27 12:33:17
问题 I'm developing a JSF 2.0 application on Glassfish v3 and i'm trying to handle the ViewExpiredException. But whatever i do, i always get a Glassfish error report instead of my own error page. To simulate the occurrence of the VEE, i inserted the following function into my backing bean, which fires the VEE. I'm triggering this function from my JSF page through a commandLink. The Code: @Named public class PersonHome { (...) public void throwVEE() { throw new ViewExpiredException(); } } At first

ViewExpiredException on a WildFly-served webapp only in a particular webbrowser

六眼飞鱼酱① 提交于 2019-11-27 09:45:17
I have a jsf application running on Wildfly 8.1.0Final and, ONLY in Google Chrome, when I click on the Login button, i receive ViewExpiredException, in others browsers, or in Chrome Incognito Mode, works perfectly! Someone knows what could be? 20:29:18,531 INFO [stdout] (default task-49) 2014-09-16 20:29:18 ERROR context:218 - javax.faces.application.ViewExpiredException: viewId:/login.jsf - A exibição de /login.jsf não pôde ser restaurada. 20:29:18,532 INFO [stdout] (default task-49) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:210) 20:29:18,532 INFO [stdout]

Getting ViewExpiredException in clustered environment while state saving method is set to client and user session is valid

和自甴很熟 提交于 2019-11-27 04:54:22
I have a JSF application that uses Mojarra 2.2.9 and is deployed on WebSphere 8.5.5.4 on clustered environement and javax.faces.STATE_SAVING_METHOD is set to client . Even though all my application beans are request scoped, sometimes when the user session is valid and the user is doing post request on a page he gets ViewExpiredException . What may be causing this issue and how can I solve it? Will changing the javax.faces.STATE_SAVING_METHOD to server solve it? If so, what is the impact of doing this on memory? Also, does this have anything to do with cluster environement and maybe there's

ViewExpiredException shown in java.lang.Throwable error-page in web.xml

…衆ロ難τιáo~ 提交于 2019-11-26 23:07:28
问题 I'm working on a JSF web application in which I need to bring up a "Session Expired" page if the view expires, but a general technical error page for all others. The application only goes to the technical error page when I trigger the exception. Here's the error-page definitions: <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/jsps/utility/sessionExpired.jsp</location> </error-page> <error-page> <exception-type>java.lang.Throwable<

How to handle session expiration and ViewExpiredException in JSF 2?

可紊 提交于 2019-11-26 21:26:10
Consider the following scenario. I am clicking the submit button of a JSF form, after the session has timed out(expired). The browser displays some exception message: ViewExpiredException: view context could not be restored What I want to do is, to automatically redirect to the homepage of the website after the session has expired. What is the mechanism to do this? Any help would be much appreciated. BalusC To handle the exception whenever the user invokes a synchronous POST request on a page while the HTTP session has been expired and the JSF view state saving method is set to server , add an

ViewExpiredException on a WildFly-served webapp only in a particular webbrowser

喜你入骨 提交于 2019-11-26 17:52:35
问题 I have a jsf application running on Wildfly 8.1.0Final and, ONLY in Google Chrome, when I click on the Login button, i receive ViewExpiredException, in others browsers, or in Chrome Incognito Mode, works perfectly! Someone knows what could be? 20:29:18,531 INFO [stdout] (default task-49) 2014-09-16 20:29:18 ERROR context:218 - javax.faces.application.ViewExpiredException: viewId:/login.jsf - A exibição de /login.jsf não pôde ser restaurada. 20:29:18,532 INFO [stdout] (default task-49) at com

com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews

僤鯓⒐⒋嵵緔 提交于 2019-11-26 12:57:39
Mojarra Implementation of JSF 2 has the following context params: com.sun.faces.numberOfViewsInSession (default is 15) com.sun.faces.numberOfLogicalViews (default is 15) What is the difference between them? The documentation doesn't speak much about these. My app was having trouble with ViewExpiredException for some pages, but after we bumped these settings to a (much) higher value, we stopped having problems. My app is a financial, form-heavy, ajax-enabled app (some screens have 50+ inputs, with the option of adding alot more data/inputs via AJAX). what can be the cause for this behaviour? I

Getting ViewExpiredException in clustered environment while state saving method is set to client and user session is valid

风格不统一 提交于 2019-11-26 11:24:54
问题 I have a JSF application that uses Mojarra 2.2.9 and is deployed on WebSphere 8.5.5.4 on clustered environement and javax.faces.STATE_SAVING_METHOD is set to client . Even though all my application beans are request scoped, sometimes when the user session is valid and the user is doing post request on a page he gets ViewExpiredException . What may be causing this issue and how can I solve it? Will changing the javax.faces.STATE_SAVING_METHOD to server solve it? If so, what is the impact of