Package org.eclnt.jsfserver.util
Class ExpressionManagerV
java.lang.Object
org.eclnt.jsfserver.util.ExpressionManagerV
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]buildTokens(String vbString) The string vbString is transferred into its tokens.static booleancheckIfObjectIsAnExpression(Object object) static ObjectcreateExpression(javax.faces.application.Application app, String vbString) static ObjectgetExpressionFromComponentAttribute(javax.faces.component.UIComponent component, String attributeName) static StringgetExpressionString(Object expression) static Classstatic Objectstatic ObjectgetValueForExpressionString(javax.faces.context.FacesContext context, String expressionString) static ObjectgetValueForExpressionString(javax.faces.context.FacesContext context, String expressionString, boolean withError) static voidsetExpressionAsComponentAttribute(javax.faces.component.UIComponent component, String attributeName, Object expression) static voidsetFlagSetMayFail(Object expression, boolean flagSetMayFail) By default a set-operation that fails with an expression causes some Error that is thrown.static voidSet value of an expression.static voidsetValue(javax.faces.context.FacesContext context, Object expression, Object value, boolean clearStack) Internal usage.static voidsetValueInExpressionString(javax.faces.context.FacesContext context, String expressionString, Object value)
-
Field Details
-
JSF12
public static boolean JSF12
-
-
Constructor Details
-
ExpressionManagerV
public ExpressionManagerV()
-
-
Method Details
-
setValueInExpressionString
-
getValueForExpressionString
public static Object getValueForExpressionString(javax.faces.context.FacesContext context, String expressionString, boolean withError) throws javax.el.PropertyNotFoundException - Parameters:
withError- If an expression cannot be resolved (e.g. the expression is pointing to a property which does not exist) then you may explicitly decide if "null" is returned (withError set to "false") or if a PropertyNotFound-exception is thrown (withError set to "true").- Throws:
javax.el.PropertyNotFoundException
-
getValueForExpressionString
-
setFlagSetMayFail
By default a set-operation that fails with an expression causes some Error that is thrown. You can explicitly mark an expression so that it knows that set-operations may fail - so no error will be thrown later on. -
setValue
public static void setValue(javax.faces.context.FacesContext context, Object expression, Object value) Set value of an expression. -
setValue
public static void setValue(javax.faces.context.FacesContext context, Object expression, Object value, boolean clearStack) Internal usage. -
getType
- Returns:
- May return null if the type cannot be resolved.
-
getValue
-
getExpressionString
-
getExpressionFromComponentAttribute
-
setExpressionAsComponentAttribute
-
createExpression
-
checkIfObjectIsAnExpression
-
buildTokens
The string vbString is transferred into its tokens.
-