Class ELUtils


  • public class ELUtils
    extends Object
    Utility class for EL related methods.
    • Field Detail

      • ARRAY_RESOLVER

        public static final jakarta.el.ArrayELResolver ARRAY_RESOLVER
      • BEAN_RESOLVER

        public static final jakarta.el.BeanELResolver BEAN_RESOLVER
      • LIST_RESOLVER

        public static final jakarta.el.ListELResolver LIST_RESOLVER
      • MAP_RESOLVER

        public static final jakarta.el.MapELResolver MAP_RESOLVER
      • BUNDLE_RESOLVER

        public static final jakarta.el.ResourceBundleELResolver BUNDLE_RESOLVER
    • Method Detail

      • isCompositeComponentExpr

        public static boolean isCompositeComponentExpr​(String expression)
      • isCompositeComponentMethodExprLookup

        public static boolean isCompositeComponentMethodExprLookup​(String expression)
      • isCompositeComponentLookupWithArgs

        public static boolean isCompositeComponentLookupWithArgs​(String expression)
      • buildFacesResolver

        public static void buildFacesResolver​(FacesCompositeELResolver composite,
                                              ApplicationAssociate associate)

        Create the ELResolver chain for programmatic EL calls.

        Parameters:
        composite - a CompositeELResolver
        associate - our ApplicationAssociate
      • evaluateValueExpression

        public static Object evaluateValueExpression​(jakarta.el.ValueExpression expression,
                                                     jakarta.el.ELContext elContext)
      • createValueExpression

        public static jakarta.el.ValueExpression createValueExpression​(String expression)
        Create a ValueExpression with the expected type of Object.class
        Parameters:
        expression - an EL expression
        Returns:
        a new ValueExpression instance based off the provided valueRef
      • createValueExpression

        public static jakarta.el.ValueExpression createValueExpression​(String expression,
                                                                       Class<?> expectedType)
      • getDefaultExpressionFactory

        public static jakarta.el.ExpressionFactory getDefaultExpressionFactory​(FacesContext facesContext)
      • getDefaultExpressionFactory

        public static jakarta.el.ExpressionFactory getDefaultExpressionFactory​(ApplicationAssociate associate,
                                                                               FacesContext facesContext)