The faces message defined in the Seam exception handler for ViewExpiredException is not displayed against ajax request
Issue
-
The faces message defined in the Seam exception handler for ViewExpiredException is not displayed against ajax request
If the following exception handler is defined in the pages.xml, seam handles
javax.faces.application.ViewExpiredExceptionand redirects to the error.xhtml after a session timeout happens.<exception class="javax.faces.application.ViewExpiredException"> <redirect view-id="/error.xhtml"> <message severity="warn">Your session has timed out, please try again</message> </redirect> </exception>The page redirection works fine. And the faces message "Your session has timed out, please try again" is shown correctly when ViewExpiredException is triggered by normal http request like
<h:commandButton>. But the faces message is not displayed when ViewExpiredException is triggered by ajax request like<a4j:commandButton>.
Environment
-
Red Hat JBoss Enterprise Application Platform (EAP) 5
- Seam
- Richfaces
-
Red Hat JBoss Web Framework Kit (WFK) 2.4
- Seam 2.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
