/** * @see javax.faces.component.UIViewRoot#processApplication(javax.faces.context.FacesContext) */ public void processApplication(FacesContext context) { original.processApplication(context); }
public boolean execute(FacesContext facesContext) { facesContext.getViewRoot().processApplication(facesContext); return false; }
public boolean execute(FacesContext facesContext) { facesContext.getViewRoot().processApplication(facesContext); return false; }
public boolean execute(FacesContext facesContext) { facesContext.getViewRoot().processApplication(facesContext); return false; }
public boolean execute(FacesContext facesContext) { facesContext.getViewRoot().processApplication(facesContext); return false; }
public void executePhase(FacesContext context) throws FacesException { context.getViewRoot().processApplication(context); }
public boolean execute(FacesContext facesContext) { facesContext.getViewRoot().processApplication(facesContext); return false; }
public boolean execute(final FacesContext facesContext) { facesContext.getViewRoot().processApplication(facesContext); return false; }
public void execute(FacesContext facesContext) throws FacesException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Entering InvokeApplicationsPhase"); } UIViewRoot root = facesContext.getViewRoot(); assert (null != root); try { root.processApplication(facesContext); } catch (RuntimeException re) { String exceptionMessage = re.getMessage(); if (null != exceptionMessage) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, exceptionMessage, re); } } throw new FacesException(exceptionMessage, re); } if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Exiting InvokeApplicationsPhase"); } }
public void execute(FacesContext facesContext) throws FacesException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Entering InvokeApplicationsPhase"); } UIViewRoot root = facesContext.getViewRoot(); assert (null != root); try { root.processApplication(facesContext); } catch (RuntimeException re) { String exceptionMessage = re.getMessage(); if (null != exceptionMessage) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, exceptionMessage, re); } } throw new FacesException(exceptionMessage, re); } if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Exiting InvokeApplicationsPhase"); } }
@Override public void execute(FacesContext facesContext) throws FacesException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Entering InvokeApplicationsPhase"); } UIViewRoot root = facesContext.getViewRoot(); assert (null != root); try { root.processApplication(facesContext); } catch (RuntimeException re) { String exceptionMessage = re.getMessage(); if (null != exceptionMessage) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, exceptionMessage, re); } } throw new FacesException(exceptionMessage, re); } if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Exiting InvokeApplicationsPhase"); } }
@Override public void execute(FacesContext facesContext) throws FacesException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Entering InvokeApplicationsPhase"); } UIViewRoot root = facesContext.getViewRoot(); assert (null != root); try { root.processApplication(facesContext); } catch (RuntimeException re) { String exceptionMessage = re.getMessage(); if (null != exceptionMessage) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, exceptionMessage, re); } } throw new FacesException(exceptionMessage, re); } if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Exiting InvokeApplicationsPhase"); } }
@Override public void execute(FacesContext facesContext) throws FacesException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Entering InvokeApplicationsPhase"); } UIViewRoot root = facesContext.getViewRoot(); assert (null != root); try { root.processApplication(facesContext); } catch (RuntimeException re) { String exceptionMessage = re.getMessage(); if (null != exceptionMessage) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, exceptionMessage, re); } } throw new FacesException(exceptionMessage, re); } if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Exiting InvokeApplicationsPhase"); } }
private void handleAjaxRequest(UIComponent ajaxComponent, FacesContext facesContext) { String updateOnly = (String) facesContext.getExternalContext().getRequestParameterMap().get("updateOnly"); if(updateOnly == null) { // then decode decodeAjax(ajaxComponent, facesContext); facesContext.getViewRoot().processApplication(facesContext); } // else only update encodeAjax(ajaxComponent, facesContext); }
private void invokePhase(FacesContext context, PhaseId phaseId) { JsfUtils.notifyBeforeListeners(phaseId, this, context); if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { logger.debug("Processing decodes"); context.getViewRoot().processDecodes(context); } else if (phaseId == PhaseId.PROCESS_VALIDATIONS) { logger.debug("Processing validators"); context.getViewRoot().processValidators(context); } else if (phaseId == PhaseId.UPDATE_MODEL_VALUES) { logger.debug("Processing model updates"); context.getViewRoot().processUpdates(context); } else { logger.debug("Processing application"); context.getViewRoot().processApplication(context); } JsfUtils.notifyAfterListeners(phaseId, this, context); } }
/** * <p>Override to catch exceptions raised by the action listeners * in the invoke application phase.</p> * * @param context faces context */ public void processApplication(FacesContext context) { try { super.processApplication(context); } catch (Exception e) { handleException(context, e); context.responseComplete(); } }
private void invokePhase(FacesContext context, PhaseId phaseId) { JsfUtils.notifyBeforeListeners(phaseId, this, context); if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { logger.debug("Processing decodes"); context.getViewRoot().processDecodes(context); } else if (phaseId == PhaseId.PROCESS_VALIDATIONS) { logger.debug("Processing validators"); context.getViewRoot().processValidators(context); } else if (phaseId == PhaseId.UPDATE_MODEL_VALUES) { logger.debug("Processing model updates"); context.getViewRoot().processUpdates(context); } else { logger.debug("Processing application"); context.getViewRoot().processApplication(context); } JsfUtils.notifyAfterListeners(phaseId, this, context); } }
private void invokePhase(FacesContext context, PhaseId phaseId) { JsfUtils.notifyBeforeListeners(phaseId, this, context); if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { logger.debug("Processing decodes"); context.getViewRoot().processDecodes(context); } else if (phaseId == PhaseId.PROCESS_VALIDATIONS) { logger.debug("Processing validators"); context.getViewRoot().processValidators(context); } else if (phaseId == PhaseId.UPDATE_MODEL_VALUES) { logger.debug("Processing model updates"); context.getViewRoot().processUpdates(context); } else { logger.debug("Processing application"); context.getViewRoot().processApplication(context); } JsfUtils.notifyAfterListeners(phaseId, this, context); } }
public boolean execute(FacesContext facesContext) { if (facesContext.getViewRoot() == null) { throw new ViewNotFoundException("A view is required to execute "+facesContext.getCurrentPhaseId()); } facesContext.getViewRoot().processApplication(facesContext); ViewPoolProcessor processor = getViewPoolProcessor(facesContext); if (processor != null) { processor.processDeferredNavigation(facesContext); } return false; }
facesContext.getViewRoot().processApplication(facesContext); } finally { informPhaseListenersAfter(facesContext, PhaseId.INVOKE_APPLICATION);