0 Replies Latest reply on Mar 16, 2007 4:39 AM by Sabari Nathan Nambiar

    Exception message not displayed in error.xhtml

    Sabari Nathan Nambiar Newbie

      I am developing a seam application . To handle the exceptions I have added the following code in pages.xml.

       <exception class="javax.persistence.OptimisticLockException">
       <redirect view-id="/common/error.xhtml">
       <message>Another user changed the same data, please try again</message>

      It is redirecting to the error.xhtml , but not showing the given message . I am using

      <h:messages globalOnly="true" />

      in error.xhtml to show the message. Is it a known issue ? It is happening for all type of exceptions that are thrown at flush time.