i have the following problem.
when session has timed out and i click a button i get an exception that the user object is null.this happens i suppose because my session has expires.the problem is that the exception is not caught by the exception class
javax.faces.application.ViewExpiredException in my pages.xml but by the general exception.how can i overcome this problem.when the session times out or expires i want the user to be redirected to the login page.
thank you in advance
Hi you could catch the view expired exception beforehand:
<exception class="javax.faces.application.ViewExpiredException" log="false" logLevel="debug"> <redirect view-id="/pages/generalError.xhtml"> <message severity="WARN">Session timeout</message> </redirect> </exception>