Examples of addELResolver()


Examples of javax.el.StandardELContext.addELResolver()

    private EL() {
    }

    public static ELContext createELContext(BeanManagerImpl beanManagerImpl) {
        StandardELContext context = new StandardELContext(EXPRESSION_FACTORY);
        context.addELResolver(beanManagerImpl.getELResolver());
        callELContextListeners(context);
        return context;
    }

    public static void callELContextListeners(ELContext context) {
View Full Code Here

Examples of javax.faces.application.Application.addELResolver()

            request.getParameterMap().put(param.getKey(), new String[] { param.getValue() });
         }
      }
      ExternalContext extContext = new MockExternalContext(request);
      Application application = new MockApplication();
      application.addELResolver(new ImplicitObjectELResolver());
      FacesContext facesCtx = new MockFacesContext(extContext, application).setCurrent();
      assert FacesContext.getCurrentInstance() != null;
      return facesCtx;
   }
  
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

         // get JspApplicationContext.
         JspApplicationContext jspAppContext = JspFactory.getDefaultFactory().getJspApplicationContext(sce.getServletContext());

         // register compositeELResolver with JSP
         jspAppContext.addELResolver(beanManager.getELResolver());

         jspAppContext.addELContextListener(Reflections.<ELContextListener>newInstance("org.jboss.weld.el.WeldELContextListener"));

         // Hack into JBoss Web/Catalina to replace the ExpressionFactory
         JspApplicationContextImpl wrappedJspApplicationContextImpl = new WeldJspApplicationContextImpl(JspApplicationContextImpl.getInstance(sce.getServletContext()), beanManager.wrapExpressionFactory(jspAppContext.getExpressionFactory()));
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

        jsfPropertyGroup.getStateSerializationMethod());

    setStateManager(stateManager);

   
    appContext.addELResolver(new FacesJspELResolver(this));

    addComponent(UIColumn.COMPONENT_TYPE,
                 "javax.faces.component.UIColumn");

    addComponent(UICommand.COMPONENT_TYPE,
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

                WebBeansContext context = appContext.getWebBeansContext();
                if (context != null && context.getBeanManagerImpl().isInUse()) {
                    // Registering ELResolver with JSP container
                    ELAdaptor elAdaptor = context.getService(ELAdaptor.class);
                    ELResolver resolver = elAdaptor.getOwbELResolver();
                    applicationCtx.addELResolver(resolver);
                }
            }
        }
    }
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

            logger.debug("Application is configured as JSP. Adding EL Resolver.");

            JspFactory factory = JspFactory.getDefaultFactory();
            if (factory != null) {
                JspApplicationContext applicationCtx = factory.getJspApplicationContext(servletContext);
                applicationCtx.addELResolver(resolver);
            } else {
                logger.debug("Default JspFactory instance was not found");
            }
        }
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

                    // get JspApplicationContext.
                    JspApplicationContext jspAppContext = JspFactory.getDefaultFactory().getJspApplicationContext(
                            sre.getServletContext());

                    // register compositeELResolver with JSP
                    jspAppContext.addELResolver(beanManager.getELResolver());

                    jspAppContext.addELContextListener(Reflections.<ELContextListener> newInstance(
                            "org.jboss.weld.el.WeldELContextListener", getClass().getClassLoader()));

                    // Hack into JBoss Web/Catalina to replace the ExpressionFactory
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

                associate.setExpressionFactory(jspAppContext.getExpressionFactory());
            }
   
            // register compositeELResolver with JSP
            try {
                jspAppContext.addELResolver(compositeELResolverForJsp);
            }
            catch (IllegalStateException e) {
                if (!Util.isUnitTestModeEnabled() && !reloaded) {
                    throw e;
                }
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

           
            JspFactory factory = JspFactory.getDefaultFactory();
            if (factory != null)
            {
                JspApplicationContext applicationCtx = factory.getJspApplicationContext((ServletContext)(startupObject));
                applicationCtx.addELResolver(resolver);               
            }           
            else
            {
                logger.log(Level.FINE, "Default JSPFactroy instance has not found");
            }
View Full Code Here

Examples of javax.servlet.jsp.JspApplicationContext.addELResolver()

                associate.setExpressionFactory(jspAppContext.getExpressionFactory());
            }

            // register compositeELResolver with JSP
            try {
                jspAppContext.addELResolver(compositeELResolverForJsp);
            }
            catch (IllegalStateException e) {
                ApplicationFactory factory = (ApplicationFactory)
                        FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
                Application app = factory.getApplication();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.