public class JSFActionContext extends AbstractActionContext implements ActionContext
| Modifier and Type | Field and Description |
|---|---|
protected javax.el.ExpressionFactory |
expressionFactory |
protected javax.el.ELContext |
originalContext |
currentDocument, currentPrincipal, docMgr, localVariables| Constructor and Description |
|---|
JSFActionContext(javax.el.ELContext originalContext,
javax.el.ExpressionFactory expressionFactory) |
JSFActionContext(javax.faces.context.FacesContext faces) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCondition(String expression)
Returns true if given expression resolves to true in this context.
|
<T> T |
evalExpression(String expression,
Class<T> expectedType)
Evaluates the given
expression and returns the result cast to the given expectedType. |
disableGlobalCaching, getCurrentDocument, getCurrentPrincipal, getDocumentManager, getLocalVariable, putAllLocalVariables, putLocalVariable, setCurrentDocument, setCurrentPrincipal, setDocumentManager, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableGlobalCaching, getCurrentDocument, getCurrentPrincipal, getDocumentManager, getLocalVariable, putAllLocalVariables, putLocalVariable, setCurrentDocument, setCurrentPrincipal, setDocumentManager, sizeprotected final javax.el.ELContext originalContext
protected final javax.el.ExpressionFactory expressionFactory
public JSFActionContext(javax.faces.context.FacesContext faces)
public JSFActionContext(javax.el.ELContext originalContext, javax.el.ExpressionFactory expressionFactory)
public <T> T evalExpression(String expression, Class<T> expectedType) throws javax.el.ELException
ActionContextexpression and returns the result cast to the given expectedType.evalExpression in interface ActionContextjavax.el.ELExceptionpublic boolean checkCondition(String expression) throws javax.el.ELException
ActionContextReturns false if expression is blank (null or empty).
checkCondition in interface ActionContextcheckCondition in class AbstractActionContextjavax.el.ELExceptionCopyright © 2019 Nuxeo. All rights reserved.