The faces message defined in the Seam exception handler for ViewExpiredException is not displayed against ajax request

Solution Unverified - Updated -

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.ViewExpiredException and 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.