Package javax.el

Examples of javax.el.ELResolver


      Object data = _model.getRowData();
      try
      {
        //TODO clean up that _getELXyz() calls
        FacesContext context = FacesContext.getCurrentInstance();
        ELResolver resolver = _getELResolver(context);
        ELContext elContext = _getELContext(context, resolver);
        Object propertyValue = evaluateProperty(resolver, elContext, data, property);
        // when the value is null, we don't know if we can sort it.
        // by default let's support sorting of null values, and let the user
        // turn off sorting if necessary:
View Full Code Here


    _model.setRowIndex(0);
    // Make sure the model has that row 0! (It could be empty.)
    if (_model.isRowAvailable())
    {
      FacesContext context = FacesContext.getCurrentInstance();
      ELResolver resolver = _getELResolver(context);
      ELContext elContext = _getELContext(context, resolver);
      Comparator<Integer> comp =
        new Comp(resolver, elContext, property);
      if (!isAscending)
        comp = new Inverter<Integer>(comp);
View Full Code Here

  }

  static Object __resolveProperty(Object object, String propertyName)
  {
    FacesContext context = FacesContext.getCurrentInstance();
    ELResolver resolver = _getELResolver(context);
    ELContext elContext = _getELContext(context, resolver);
    return resolver.getValue(elContext, object, propertyName);
  }
View Full Code Here

    if (node == null)
      return null;

    FacesContext context = FacesContext.getCurrentInstance();
    ELContext elContext  = context.getELContext();
    ELResolver resolver  = elContext.getELResolver();
    String value         = null;

    try
    {
      Map<String, String> propMap =
        (Map<String, String>) resolver.getValue(elContext,
                                                node, _CUSTOM_ATTR_LIST);

      // Need to check to see if propMap is null.  If there are
      // no custom properties for this itemNode, there will be
      // no propMap.  See MenuContentHandler._createItemNode().
View Full Code Here

  private static class TestELContextFactory implements ELContextFactory {
    public ELContext getELContext(final Object target) {
      return new ELContext() {
        public ELResolver getELResolver() {
          return new ELResolver() {
            public Class getCommonPropertyType(ELContext arg0, Object arg1) {
              return Object.class;
            }

            public Iterator getFeatureDescriptors(ELContext arg0, Object arg1) {
View Full Code Here

      customResolvers.add(new FlowResourceELResolver(context));
      customResolvers.add(new ImplicitFlowVariableELResolver(context));
      customResolvers.add(new ScopeSearchingELResolver(context));
      customResolvers.add(new SpringBeanWebFlowELResolver(context));
      customResolvers.add(new ActionMethodELResolver());
      ELResolver resolver = new DefaultELResolver(customResolvers);
      return new WebFlowELContext(resolver);
    }
View Full Code Here

    // create our factory which uses our customized builder
    ExpressionFactory f = new ExpressionFactoryImpl(new TreeStore(builder, new Cache(10)));

    // create our resolver
    ELResolver resolver = new MethodResolver(method);

    // create our context
    ELContext context = new SimpleContext(resolver);

    // let's go...
View Full Code Here

        ELAttributeEvaluator evaluator = new ELAttributeEvaluator();
        evaluator.setApplicationContext(applicationContext);
        MultiversionExpressionFactoryFactory efFactory = new MultiversionExpressionFactoryFactory();
        efFactory.setApplicationContext(applicationContext);
        evaluator.setExpressionFactory(efFactory.getExpressionFactory());
        ELResolver elResolver = new CompositeELResolver() {
            {
                add(new TilesContextELResolver());
                add(new TilesContextBeanELResolver());
                add(new ArrayELResolver(false));
                add(new ListELResolver(false));
View Full Code Here

        service = Executors.newScheduledThreadPool(1);
        service.scheduleWithFixedDelay(new ConversationCleaner(), delay, delay, TimeUnit.MILLISECONDS);

        ELAdaptor elAdaptor = ServiceLoader.getService(ELAdaptor.class);
        ELResolver resolver = elAdaptor.getOwbELResolver();
        //Application is configured as JSP
        if(OpenWebBeansConfiguration.getInstance().isJspApplication())
        {
            logger.debug("Application is configured as JSP. Adding EL Resolver.");
View Full Code Here

  private void configureResolvers(List customResolvers) {
    if (customResolvers != null) {
      Iterator i = customResolvers.iterator();
      while (i.hasNext()) {
        ELResolver resolver = (ELResolver) i.next();
        add(resolver);
      }
    }
    add(new MapAdaptableELResolver());
    add(new ArrayELResolver());
View Full Code Here

TOP

Related Classes of javax.el.ELResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.