Is there any configuration in web.xml which redirects the application to login page after sesion expired in JSF.I google it but didn’t find any good and simple answer.
I found this but it didn’t work.
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/faces/index.xhtml</location>
</error-page>
If there is no configuration for this then how can i do this in JSF?
Thanks
Possible answer: Handling ViewExpiredException depending on the current view.
What I’m using is a PrimeFaces – Extensions specific solution called AjaxErrorHandler. Take a look at their showcase for implementation tips.
As far as I know the above configuration will not work for AJAX requests.