org.jboss.seam.annotations.exception
Annotation Type Redirect


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface Redirect

Specifies that an exception should result in a browser redirect.

Author:
Gavin King

Required Element Summary
 String viewId
          The view to redirect to, default to the current view.
 
Optional Element Summary
 boolean end
          Deprecated. use @ApplicationException(end=true)
 String message
          The message to be displayed as a FacesMessage, default to using the exception message.
 

Element Detail

viewId

public abstract String viewId
The view to redirect to, default to the current view.

Returns:
a JSF view id

message

public abstract String message
The message to be displayed as a FacesMessage, default to using the exception message.

Returns:
a templated message
Default:
""

end

public abstract boolean end
Deprecated. use @ApplicationException(end=true)

Should the current long-running conversation end when this exception occurs.

Returns:
true if we should end the conversation
Default:
false