Class ELActionContext

    • Field Detail

      • originalContext

        protected final javax.el.ELContext originalContext
      • expressionFactory

        protected final javax.el.ExpressionFactory expressionFactory
      • EXPRESSION_FACTORY

        public static final javax.el.ExpressionFactory EXPRESSION_FACTORY
    • Constructor Detail

      • ELActionContext

        public ELActionContext()
      • ELActionContext

        public ELActionContext​(javax.el.ELContext originalContext,
                               javax.el.ExpressionFactory expressionFactory)
    • Method Detail

      • evalExpression

        public <T> T evalExpression​(String expression,
                                    Class<T> expectedType)
                             throws javax.el.ELException
        Description copied from interface: ActionContext
        Evaluates the given expression and returns the result cast to the given expectedType.
        Specified by:
        evalExpression in interface ActionContext
        Returns:
        the result of the expression evaluation
        Throws:
        javax.el.ELException
      • checkCondition

        public boolean checkCondition​(String expression)
                               throws javax.el.ELException
        Description copied from interface: ActionContext
        Returns true if given expression resolves to true in this context.

        Returns false if expression is blank (null or empty).

        Specified by:
        checkCondition in interface ActionContext
        Specified by:
        checkCondition in class AbstractActionContext
        Throws:
        javax.el.ELException