public void execute(FacesContext facesContext) throws FacesException { //refresh all configuration information if according web-xml parameter is set. WebXml.update(facesContext.getExternalContext()); new FacesConfigurator(facesContext.getExternalContext()).update(); PhaseListenerManager phaseListenerMgr = new PhaseListenerManager(this, facesContext, getPhaseListeners()); for(int executorIndex = 0;executorIndex < lifecycleExecutors.length;executorIndex++) { if(executePhase(facesContext, lifecycleExecutors[executorIndex], phaseListenerMgr)) { return; } } }
/** * Configures this JSF application. It's required that every * FacesInitializer (i.e. every subclass) calls this method during * initialization. * * @param servletContext the current ServletContext * @param externalContext the current ExternalContext * @param expressionFactory the ExpressionFactory to use * @return the current runtime configuration */ protected RuntimeConfig buildConfiguration(ServletContext servletContext, ExternalContext externalContext, ExpressionFactory expressionFactory) { RuntimeConfig runtimeConfig = RuntimeConfig.getCurrentInstance(externalContext); runtimeConfig.setExpressionFactory(expressionFactory); // And configure everything new FacesConfigurator(externalContext).configure(); validateFacesConfig(servletContext, externalContext); return runtimeConfig; }
/** * Configures this JSF application. It's required that every * FacesInitializer (i.e. every subclass) calls this method during * initialization. * * @param servletContext the current ServletContext * @param externalContext the current ExternalContext * @param expressionFactory the ExpressionFactory to use * @return the current runtime configuration */ protected RuntimeConfig buildConfiguration(ServletContext servletContext, ExternalContext externalContext, ExpressionFactory expressionFactory) { RuntimeConfig runtimeConfig = RuntimeConfig.getCurrentInstance(externalContext); runtimeConfig.setExpressionFactory(expressionFactory); // And configure everything new FacesConfigurator(externalContext).configure(); validateFacesConfig(servletContext, externalContext); return runtimeConfig; }
/** * Configures this JSF application. It's required that every * FacesInitializer (i.e. every subclass) calls this method during * initialization. * * @param servletContext the current ServletContext * @param externalContext the current ExternalContext * @param expressionFactory the ExpressionFactory to use * @return the current runtime configuration */ protected RuntimeConfig buildConfiguration(ServletContext servletContext, ExternalContext externalContext, ExpressionFactory expressionFactory) { RuntimeConfig runtimeConfig = RuntimeConfig.getCurrentInstance(externalContext); runtimeConfig.setExpressionFactory(expressionFactory); // And configure everything new FacesConfigurator(externalContext).configure(); validateFacesConfig(servletContext, externalContext); return runtimeConfig; }
@Override public void execute(FacesContext facesContext) throws FacesException { //try //{ // check for updates of web.xml and faces-config descriptors // only if project state is not production if(!facesContext.isProjectStage(ProjectStage.Production)) { WebXml.update(facesContext.getExternalContext()); new FacesConfigurator(facesContext.getExternalContext()).update(); } PhaseListenerManager phaseListenerMgr = new PhaseListenerManager(this, facesContext, getPhaseListeners()); for (PhaseExecutor executor : lifecycleExecutors) { if (executePhase(facesContext, executor, phaseListenerMgr)) { return; } } //} //catch (Throwable ex) //{ // handle the Throwable accordingly. Maybe generate an error page. //ErrorPageWriter.handleThrowable(facesContext, ex); //} }
@Override public void execute(FacesContext facesContext) throws FacesException { try { // check for updates of web.xml and faces-config descriptors // only if project state is not production if(!facesContext.isProjectStage(ProjectStage.Production)) { WebXml.update(facesContext.getExternalContext()); new FacesConfigurator(facesContext.getExternalContext()).update(); } PhaseListenerManager phaseListenerMgr = new PhaseListenerManager(this, facesContext, getPhaseListeners()); for (PhaseExecutor executor : lifecycleExecutors) { if (executePhase(facesContext, executor, phaseListenerMgr)) { return; } } } catch (Throwable ex) { // handle the Throwable accordingly. Maybe generate an error page. ErrorPageWriter.handleThrowable(facesContext, ex); } }
@Override public void execute(FacesContext facesContext) throws FacesException { try { // check for updates of web.xml and faces-config descriptors // only if project state is not production if(!facesContext.isProjectStage(ProjectStage.Production)) { WebXml.update(facesContext.getExternalContext()); new FacesConfigurator(facesContext.getExternalContext()).update(); } PhaseListenerManager phaseListenerMgr = new PhaseListenerManager(this, facesContext, getPhaseListeners()); for (PhaseExecutor executor : lifecycleExecutors) { if (executePhase(facesContext, executor, phaseListenerMgr)) { return; } } } catch (Throwable ex) { // handle the Throwable accordingly. Maybe generate an error page. ErrorPageWriter.handleThrowable(facesContext, ex); } }
/** * Configures this JSF application. It's required that every * FacesInitializer (i.e. every subclass) calls this method during * initialization. * * @param servletContext * the current ServletContext * @param externalContext * the current ExternalContext * @param expressionFactory * the ExpressionFactory to use * * @return the current runtime configuration */ protected RuntimeConfig buildConfiguration(ServletContext servletContext, ExternalContext externalContext, ExpressionFactory expressionFactory) { RuntimeConfig runtimeConfig = RuntimeConfig.getCurrentInstance(externalContext); runtimeConfig.setExpressionFactory(expressionFactory); ApplicationImpl.setInitializingRuntimeConfig(runtimeConfig); // And configure everything new FacesConfigurator(externalContext).configure(); validateFacesConfig(servletContext, externalContext); return runtimeConfig; }