|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.action.AbstractAction
org.springframework.webflow.action.portlet.SetPortletModeAction
public class SetPortletModeAction
Action implementation that changes a PortletResponse mode. The action only generates the
AbstractAction.success()
event. All error cases result in an exception
being thrown.
This class is usefull when you want to change the current PortletMode before entering a specific state, e.g. it can be the first state in a subflow.
Note: if you can, change the PortletMode using Portlet URLs (PortletURL class or portlet TAG).
Field Summary | |
---|---|
static java.lang.String |
PORTLET_MODE_ATTRIBUTE
The portlet mode to set can be specified in an action state action attribute with this name ("portletMode"). |
Fields inherited from class org.springframework.webflow.action.AbstractAction |
---|
logger |
Constructor Summary | |
---|---|
SetPortletModeAction()
|
Method Summary | |
---|---|
protected Event |
doExecute(RequestContext context)
Sets the PortletMode. |
javax.portlet.PortletMode |
getPortletMode()
Returns the mode that will be set in the response. |
void |
setPortletMode(javax.portlet.PortletMode portletMode)
Sets the mode that will be set in the response. |
Methods inherited from class org.springframework.webflow.action.AbstractAction |
---|
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PORTLET_MODE_ATTRIBUTE
Constructor Detail |
---|
public SetPortletModeAction()
Method Detail |
---|
public javax.portlet.PortletMode getPortletMode()
public void setPortletMode(javax.portlet.PortletMode portletMode)
protected Event doExecute(RequestContext context) throws java.lang.Exception
doExecute
in class AbstractAction
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"
java.lang.Exception
- an unrecoverable exception occured, either checked or unchecked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |