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 boolean
checkIfObjectIsAnExpression
(Object object) static Object
createExpression
(Application app, String vbString) static Object
getExpressionFromComponentAttribute
(UIComponent component, String attributeName) static String
getExpressionString
(Object expression) static Class
getType
(FacesContext context, Object expression) static Object
getValue
(FacesContext context, Object expression) static Object
getValueForExpressionString
(FacesContext context, String expressionString) static Object
getValueForExpressionString
(FacesContext context, String expressionString, boolean withError) static void
setExpressionAsComponentAttribute
(UIComponent component, String attributeName, Object expression) static void
setFlagSetMayFail
(Object expression, boolean flagSetMayFail) By default a set-operation that fails with an expression causes some Error that is thrown.static void
setValue
(FacesContext context, Object expression, Object value) Set value of an expression.static void
setValue
(FacesContext context, Object expression, Object value, boolean clearStack) Internal usage.static void
setValueInExpressionString
(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.
-