public class EventNavigationResult extends Object
EventNavigationResult
is the type of object that can be returned from a BridgeEventHandler.handleEvent(FacesContext, Event)
call. When it is returned as a (non-null)
value, it conveys the Faces navigation information to the bridge that it needs to utilize the Faces NavigationHandler
to evaluate the navigation according to the configured rules. The
fromAction
corresponds to the fromAction
string in the faces-config.xml navigation rule. The
outcome
corresponds to the outcome
string in the navigation rule.Constructor and Description |
---|
EventNavigationResult() |
EventNavigationResult(String fromAction,
String outcome)
Constructor which sets the object to the desired fromAction and outcome.
|
Modifier and Type | Method and Description |
---|---|
String |
getFromAction() |
String |
getOutcome() |
void |
setFromAction(String fromAction)
Sets the value that corresponds to the <from-action> element of a navigation-rule.
|
void |
setOutcome(String outcome)
Sets the value that corresponds to the <outcome> element of a navigation-rule.
|
public EventNavigationResult()
public EventNavigationResult(String fromAction, String outcome)
fromAction
- Value corresponding to the <from-action> element of a navigation-rule.outcome
- Value corresponding to the <outcome> element of a navigation-rule.public String getFromAction()
public String getOutcome()
public void setFromAction(String fromAction)
fromAction
- The value that corresponds to the <from-action> element of a navigation-rule.public void setOutcome(String outcome)
outcome
- The value that corresponds to the <from-action> element of a navigation-rule.Copyright © 2018 Liferay, Inc. All rights reserved.