1 Reply Latest reply on Aug 16, 2007 5:36 AM by pmuir

    Basic question about redirecting with exception

      Hi.
      I have a page like this

       <h:form id="someForm">
       <h:commandButton id="action" value="Action"
       action="#{someAction.action}"/>
       </h:form>

      the name of the xhtml is "Test.xhtml"

      and this is in a pages.xml

       <exception>
       <redirect view-id="/error.xhtml">
       <message>Unexpected error, please try again</message>
       </redirect>
       </exception>


      When some Exception occurs during someAction.action, the redirect url is "/context/Test.seam/error.xhtml" So, I get 403 error now.

      I expected that the url is "context/error.xhtml"

      What am i missiing?

      Thanks in advance.