@Override public void processPartial(PhaseId phaseId) { if (phaseId == PhaseId.RENDER_RESPONSE) { FacesContext context = FacesContext.getCurrentInstance(); resetValues(context); } getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
@Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
@Override public void processPartial(PhaseId phaseId) { if (phaseId == PhaseId.RENDER_RESPONSE) { FacesContext context = FacesContext.getCurrentInstance(); resetValues(context); } getWrapped().processPartial(phaseId); }
public void process(FacesContext context, UIViewRoot root) { PartialViewContext pvc = context.getPartialViewContext(); // Perform partial processing by calling PartialViewContext.processPartial(javax.faces.event.PhaseId) // with PhaseId.UPDATE_MODEL_VALUES if: // * PartialViewContext.isPartialRequest() returns true and we don't have a request to process all // components in the view (PartialViewContext.isExecuteAll() returns false) //section 13.4.2 from the JSF2 spec also see https://issues.apache.org/jira/browse/MYFACES-2119 if (pvc.isPartialRequest() && !pvc.isExecuteAll()) { pvc.processPartial(PhaseId.APPLY_REQUEST_VALUES); } // Perform full processing by calling UIComponentBase.processUpdates(javax.faces.context.FacesContext) // if one of the following conditions are met: // * PartialViewContext.isPartialRequest() returns true and we have a request to process all components // in the view (PartialViewContext.isExecuteAll() returns true) // * PartialViewContext.isPartialRequest() returns false else { root._processDecodesDefault(context); } } }
public void process(FacesContext context, UIViewRoot root) { PartialViewContext pvc = context.getPartialViewContext(); // Perform partial processing by calling PartialViewContext.processPartial(javax.faces.event.PhaseId) // with PhaseId.UPDATE_MODEL_VALUES if: // PartialViewContext.isPartialRequest() returns true and we don't have a request to process all components // in the view (PartialViewContext.isExecuteAll() returns false) //section 13.4.2 from the JSF2 spec also see https://issues.apache.org/jira/browse/MYFACES-2119 if (pvc.isPartialRequest() && !pvc.isExecuteAll()) { pvc.processPartial(PhaseId.PROCESS_VALIDATIONS); } // Perform full processing by calling UIComponentBase.processUpdates(javax.faces.context.FacesContext) // if one of the following conditions are met: // * PartialViewContext.isPartialRequest() returns true and we have a request to process all components // in the view (PartialViewContext.isExecuteAll() returns true) // * PartialViewContext.isPartialRequest() returns false else { root._processValidatorsDefault(context); } } }
public void process(FacesContext context, UIViewRoot root) { PartialViewContext pvc = context.getPartialViewContext(); // Perform partial processing by calling PartialViewContext.processPartial(javax.faces.event.PhaseId) // with PhaseId.UPDATE_MODEL_VALUES if: // * PartialViewContext.isPartialRequest() returns true and we don't have a request to process // all components in the view (PartialViewContext.isExecuteAll() returns false) //section 13.4.2 from the JSF2 spec also see https://issues.apache.org/jira/browse/MYFACES-2119 if (pvc.isPartialRequest() && !pvc.isExecuteAll()) { pvc.processPartial(PhaseId.UPDATE_MODEL_VALUES); } // Perform full processing by calling UIComponentBase.processUpdates(javax.faces.context.FacesContext) // if one of the following conditions are met: // * PartialViewContext.isPartialRequest() returns true and we have a request to process all components // in the view (PartialViewContext.isExecuteAll() returns true) // * PartialViewContext.isPartialRequest() returns false else { root._processUpdatesDefault(context); } } }
/** * <p class="changed_added_2_0">If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>true</code>, perform partial rendering by calling * {@link javax.faces.context.PartialViewContext#processPartial} with * {@link PhaseId#RENDER_RESPONSE}. If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>false</code>, delegate to the parent {@link * javax.faces.component.UIComponentBase#encodeChildren} method.</p> * * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getPartialViewContext().isAjaxRequest()) { context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context); } }
/** * <p class="changed_added_2_0">If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>true</code>, perform partial rendering by calling * {@link javax.faces.context.PartialViewContext#processPartial} with * {@link PhaseId#RENDER_RESPONSE}. If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>false</code>, delegate to the parent {@link * javax.faces.component.UIComponentBase#encodeChildren} method.</p> * * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getPartialViewContext().isAjaxRequest()) { context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context); } }
/** * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getResponseComplete()) { return; } PartialViewContext pContext = context.getPartialViewContext(); // If PartialViewContext.isAjaxRequest() returns true if (pContext.isAjaxRequest()) { // Perform partial rendering by calling PartialViewContext.processPartial() with PhaseId.RENDER_RESPONSE. //sectin 13.4.3 of the jsf2 specification pContext.processPartial(PhaseId.RENDER_RESPONSE); } else { // If PartialViewContext.isAjaxRequest() returns false // delegate to super.encodeChildren(javax.faces.context.FacesContext) method. super.encodeChildren(context); } }
/** * <p class="changed_added_2_0">If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>true</code>, perform partial rendering by calling * {@link javax.faces.context.PartialViewContext#processPartial} with * {@link PhaseId#RENDER_RESPONSE}. If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>false</code>, delegate to the parent {@link * javax.faces.component.UIComponentBase#encodeChildren} method.</p> * * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getPartialViewContext().isAjaxRequest()) { context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context); } }
@Override public void processPartial(PhaseId phaseId) { if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { if (isNGSyncRequest()) { applyNGSyncModelValues(); return; } } if (phaseId == PhaseId.RENDER_RESPONSE) { // UIViewRoot viewRoot = ctx.getViewRoot(); // PuiELTransformer.eliminateDuplicatePuiModelSyncTags(viewRoot); if (isAjaxRequest()) { if (isAngularFacesRequest()) { renderAngularResponse(); return; } } } getWrapped().processPartial(phaseId); return; }