Class ExpressionManagerV

java.lang.Object
org.eclnt.jsfserver.util.ExpressionManagerV

public class ExpressionManagerV extends Object
  • Field Details

    • JSF12

      public static boolean JSF12
  • Constructor Details

    • ExpressionManagerV

      public ExpressionManagerV()
  • Method Details

    • setValueInExpressionString

      public static void setValueInExpressionString(javax.faces.context.FacesContext context, String expressionString, Object value)
    • 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

      public static Object getValueForExpressionString(javax.faces.context.FacesContext context, String expressionString)
    • setFlagSetMayFail

      public static void setFlagSetMayFail(Object expression, boolean flagSetMayFail)
      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

      public static Class getType(javax.faces.context.FacesContext context, Object expression)
      Returns:
      May return null if the type cannot be resolved.
    • getValue

      public static Object getValue(javax.faces.context.FacesContext context, Object expression)
    • getExpressionString

      public static String getExpressionString(Object expression)
    • getExpressionFromComponentAttribute

      public static Object getExpressionFromComponentAttribute(javax.faces.component.UIComponent component, String attributeName)
    • setExpressionAsComponentAttribute

      public static void setExpressionAsComponentAttribute(javax.faces.component.UIComponent component, String attributeName, Object expression)
    • createExpression

      public static Object createExpression(javax.faces.application.Application app, String vbString)
    • checkIfObjectIsAnExpression

      public static boolean checkIfObjectIsAnExpression(Object object)
    • buildTokens

      public static String[] buildTokens(String vbString)
      The string vbString is transferred into its tokens.