[jboss-jira] [JBoss JIRA] Created: (JBSEAM-404) Exception handling rules

Louis Coetzee (JIRA) jira-events at jboss.com
Wed Oct 11 02:46:44 EDT 2006


Exception handling rules
------------------------

                 Key: JBSEAM-404
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-404
             Project: JBoss Seam
          Issue Type: Feature Request
            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 jboss-jira mailing list