[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-404) Improved exception handling rules

Gavin King (JIRA) jira-events at jboss.com
Mon Nov 13 19:38:44 EST 2006


     [ http://jira.jboss.com/jira/browse/JBSEAM-404?page=all ]

Gavin King updated JBSEAM-404:
------------------------------

    Summary: Improved exception handling rules  (was: Exception handling rules)

> Improved exception handling rules
> ---------------------------------
>
>                 Key: JBSEAM-404
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-404
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Louis Coetzee
>
> Seam provides the @Redirect annotation for use on Exception classes. It provides an attribute to specify the target viewId to redirect to once the exception has been thrown. It would be good if this view Id can be specified dynamically.
> e.g.
> @Name("napException")
> @ApplicationException(rollback=true)
> @Redirect(viewId = "#{napException.viewId}")
> public class NAPException extends Exception implements Serializable {
> or in xml
> <from-view-id>/xxx.jsp</from-view-id>
> <from-exception>com.myapp.NAPException</from-exception>
> <to-view-id>/error.jsp</to-view-id>
> <redirect/>	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list