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(Application app, String vbString) static ObjectgetExpressionFromComponentAttribute(UIComponent component, String attributeName) static StringgetExpressionString(Object expression) static ClassgetType(FacesContext context, Object expression) static ObjectgetValue(FacesContext context, Object expression) static ObjectgetValueForExpressionString(FacesContext context, String expressionString) static ObjectgetValueForExpressionString(FacesContext context, String expressionString, boolean withError) static voidsetExpressionAsComponentAttribute(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 voidsetValue(FacesContext context, Object expression, Object value) Set value of an expression.static voidsetValue(FacesContext context, Object expression, Object value, boolean clearStack) Internal usage.static voidsetValueInExpressionString(FacesContext context, String expressionString, Object value)
-
Field Details
-
JSF12
public static boolean JSF12
-
-
Constructor Details
-
ExpressionManagerV
public ExpressionManagerV()
-
-
Method Details
-
setValueInExpressionString
public static void setValueInExpressionString(FacesContext context, String expressionString, Object value) -
getValueForExpressionString
public static Object getValueForExpressionString(FacesContext context, String expressionString, boolean withError) throws jakarta.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:
jakarta.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
Set value of an expression. -
setValue
public static void setValue(FacesContext context, Object expression, Object value, boolean clearStack) Internal usage. -
getType
- Returns:
- May return null if the type cannot be resolved.
-
getValue
-
getExpressionString
-
getExpressionFromComponentAttribute
public static Object getExpressionFromComponentAttribute(UIComponent component, String attributeName) -
setExpressionAsComponentAttribute
public static void setExpressionAsComponentAttribute(UIComponent component, String attributeName, Object expression) -
createExpression
-
checkIfObjectIsAnExpression
-
buildTokens
The string vbString is transferred into its tokens.
-