Package org.apache.myfaces.webapp

Examples of org.apache.myfaces.webapp.StartupServletContextListener


            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(createFacesInitializer());
        webContainer.subscribeListener(listener);
        //listener.contextInitialized(new ServletContextEvent(servletContext));
    }
View Full Code Here


            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(getFacesInitializer());
        webContainer.subscribeListener(listener);
        //listener.contextInitialized(new ServletContextEvent(servletContext));
    }
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(new AbstractFacesInitializer()
        {
           
            @Override
            protected void initContainerIntegration(ServletContext servletContext,
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(getFacesInitializer());
        webContainer.subscribeListener(listener);
        //listener.contextInitialized(new ServletContextEvent(servletContext));
    }
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(createFacesInitializer());
        webContainer.subscribeListener(listener);
        //listener.contextInitialized(new ServletContextEvent(servletContext));
    }
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(getFacesInitializer());
        webContainer.subscribeListener(listener);
        //listener.contextInitialized(new ServletContextEvent(servletContext));
    }
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(new AbstractFacesInitializer()
        {
           
            @Override
            protected void initContainerIntegration(ServletContext servletContext,
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(new AbstractFacesInitializer()
        {
           
            @Override
            protected void initContainerIntegration(ServletContext servletContext,
View Full Code Here

            facesConfigurationProvider = createFacesConfigurationProvider();
        }
        servletContext.setAttribute(
                DefaultFacesConfigurationProviderFactory.FACES_CONFIGURATION_PROVIDER_INSTANCE_KEY,
                facesConfigurationProvider);
        listener = new StartupServletContextListener();
        listener.setFacesInitializer(new AbstractFacesInitializer()
        {
           
            @Override
            protected void initContainerIntegration(ServletContext servletContext,
View Full Code Here

        mailSender.setPort(2525);
        mailSender.setHost("localhost");
    }

    protected static FacesContext performFacesContextConfig() {
        StartupServletContextListener facesListener =
            new StartupServletContextListener();
        ServletContextEvent event = new ServletContextEvent(servletContext);
        facesListener.contextInitialized(event);

        LifecycleFactory lifecycleFactory =
            (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
        Lifecycle lifecycle = lifecycleFactory.getLifecycle(getLifecycleId());
        FacesContextFactory facesCtxFactory =
View Full Code Here

TOP

Related Classes of org.apache.myfaces.webapp.StartupServletContextListener

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.