This content has been marked as final.
Show 2 replies
-
1. Re: Pass parameters to an error page
fup Jul 18, 2009 10:34 AM (in response to oneworld95)You can pass JSF FacesMessages to the error page. These can be specified in the pages.xml file. See chapter 6.12.4. of the reference manual. The following snippet is taken from there:
<exception class="javax.persistence.PersistenceException">
<end-conversation/>
<redirect view-id="/error.xhtml">
<message>Database access failed</message>
</redirect>
</exception> -
2. Re: Pass parameters to an error page
oneworld95 Jul 20, 2009 4:57 PM (in response to oneworld95)Thanks, Frank. Can the underlying exception message still be displayed along with the custom message?