This content has been marked as final.
Show 3 replies
-
1. Re: Runtime specification of viewId in Redirect ?
gavin.king Oct 10, 2006 1:34 PM (in response to lcoetzee)Not at this time, but add a feature request to CVS. I think the best way to implement this would be to have "exception rules", ie:
<from-view-id>/xxx.jsp</from-view-id> <from-exception>com.myapp.NAPException</from-exception> <to-view-id>/error.jsp</to-view-id> <redirect/>
JSF should really have this built-in, but it seems the JSF spec group never considered exception handling as an issue in enterprise applications :-/ -
2. Re: Runtime specification of viewId in Redirect ?
gavin.king Oct 10, 2006 1:34 PM (in response to lcoetzee)I mean, add something to JIRA.
-
3. Re: Runtime specification of viewId in Redirect ?
lcoetzee Oct 10, 2006 1:40 PM (in response to lcoetzee)Jira. Will do.
One possible solution for now is probably just to have different exceptions classes, each one annotated to point to a different viewId. Slightly cumbersome, but it will also do the trick (if you remember to throw the right exception in the right place ;-).
Thanks
L