|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.core.AbstractMutable
org.jboss.seam.faces.Redirect
@Name(value="org.jboss.seam.faces.redirect")
@BypassInterceptors
@Scope(value=CONVERSATION)
@Install(precedence=0,
classDependencies="javax.faces.context.FacesContext")
@PerNestedConversation
public class RedirectConvenient API for performing browser redirects with parameters.
| Constructor Summary | |
|---|---|
Redirect()
|
|
| Method Summary | |
|---|---|
void |
captureCurrentRequest()
Deprecated. use captureCurrentView() |
void |
captureCurrentView()
Capture the view id and page parameters from the current request and squirrel them away so we can return here later in the conversation. |
void |
execute()
Perform the redirect |
Map<String,Object> |
getParameters()
Get all the request parameters that have been set |
String |
getViewId()
Get the JSF view id to redirect to |
static Redirect |
instance()
|
boolean |
isConversationPropagationEnabled()
Should the conversation be propagated across the redirect? |
boolean |
returnToCapturedView()
Redirect to the captured view, and end any conversation that began in captureCurrentView(). |
void |
setConversationPropagationEnabled(boolean conversationPropagationEnabled)
Note that conversations are propagated by default |
void |
setParameter(String name,
Object value)
Set a request parameter value (to set a multi-valued request parameter, pass an array or collection as the value) |
void |
setViewId(String viewId)
Set the JSF view id to redirect to |
| Methods inherited from class org.jboss.seam.core.AbstractMutable |
|---|
clearDirty, setDirty, setDirty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Redirect()
| Method Detail |
|---|
public String getViewId()
public void setViewId(String viewId)
viewId - any JSF view idpublic Map<String,Object> getParameters()
public void setParameter(String name,
Object value)
public void captureCurrentRequest()
public void captureCurrentView()
returnToCapturedView()public boolean isConversationPropagationEnabled()
public void setConversationPropagationEnabled(boolean conversationPropagationEnabled)
public void execute()
public boolean returnToCapturedView()
captureCurrentView()public static Redirect instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||