Add ability to render to a specific view after an exception is thrown
---------------------------------------------------------------------
Key: JBSEAM-4608
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4608
Project: Seam
Issue Type: Feature Request
Reporter: zzzz8
Seam currently supports the ability to redirect to a certain page (as specified in
pages.xml) after an exception is thrown. It would be helpful if Seam supports the ability
to render to a certain page, too. This is especially helpful for portals and portlets,
where the ability to perform a redirect is unavailable. Example:
<exception class="org.jboss.seam.framework.EntityNotFoundException">
<render view-id="/error.xhtml">
<message severity="warn">Record not found</message>
</render>
</exception>
As a (hopefully temporary) workaround, I am currently using RenderNavigationHandler in my
page actions to accomplish this. Example:
RenderNavigationHandler navHandler = new RenderNavigationHandler(
Expressions.instance().createValueExpression(
"/error.xhtml", String.class), null, null,
null);
navHandler.navigate(FacesContext.getCurrentInstance());
This is quite ugly to do and gets even uglier if there are additional pages...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira