Package org.eclnt.jsfserver.util
Class ExpressionManagerV
java.lang.Object
org.eclnt.jsfserver.util.ExpressionManagerV
-
Field Summary
-
Constructor Summary
-
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
(javax.faces.application.Application app, String vbString) static Object
getExpressionFromComponentAttribute
(javax.faces.component.UIComponent component, String attributeName) static String
getExpressionString
(Object expression) static Class
static Object
static Object
getValueForExpressionString
(javax.faces.context.FacesContext context, String expressionString) static Object
getValueForExpressionString
(javax.faces.context.FacesContext context, String expressionString, boolean withError) static void
setExpressionAsComponentAttribute
(javax.faces.component.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
Set value of an expression.static void
setValue
(javax.faces.context.FacesContext context, Object expression, Object value, boolean clearStack) Internal usage.static void
setValueInExpressionString
(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.
-