public void processDecodes(javax.faces.context.FacesContext context) { if (context == null) throw new NullPointerException("context"); decode(context); if (!isSubmitted()) return; for (Iterator it = getFacetsAndChildren(); it.hasNext(); ) { UIComponent childOrFacet = (UIComponent)it.next(); childOrFacet.processDecodes(context); } }
/** * <p>Override {@link UIComponent#processValidators} to ensure that * the children of this <code>UIForm</code> instance are only * processed if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} */ public void processValidators(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } // Process all the facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processValidators(context); } }
/** * <p>Override {@link UIComponent#processUpdates} to ensure that the * children of this <code>UIForm</code> instance are only processed * if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} */ public void processUpdates(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processUpdates(context); } }
/** * <p>Override {@link UIComponent#processUpdates} to ensure that the * children of this <code>UIForm</code> instance are only processed * if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} */ public void processUpdates(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processUpdates(context); } }
/** * <p>Override {@link UIComponent#processUpdates} to ensure that the * children of this <code>UIForm</code> instance are only processed * if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} */ public void processUpdates(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processUpdates(context); } }
protected void processAppropriateAction(FacesContext context, PhaseId phase) { if (!isRendered()) { return; } if (!isSubmitted()) { return; } for (Iterator children = getFacetsAndChildren(); children.hasNext();) { UIComponent component = (UIComponent) children.next(); ComponentUtil_.processAppropriatePhaseAction(context, component, phase); } } }
/** * <p> * Override {@link UIComponent#processDecodes} to ensure that the form is decoded * <strong>before</strong> its children. This is necessary to allow the <code>submitted</code> * property to be correctly set. * </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // If we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator<UIComponent> kids = getFacetsAndChildren(); while (kids.hasNext()) { kids.next().processDecodes(context); } }
/** * <p>Override {@link UIComponent#processDecodes} to ensure that the * form is decoded <strong>before</strong> its children. This is * necessary to allow the <code>submitted</code> property to be * correctly set.</p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // if we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processDecodes(context); } }
/** * <p>Override {@link UIComponent#processDecodes} to ensure that the * form is decoded <strong>before</strong> its children. This is * necessary to allow the <code>submitted</code> property to be * correctly set.</p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // if we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processDecodes(context); } }
public void processValidators(javax.faces.context.FacesContext context) { if (context == null) throw new NullPointerException("context"); // SF issue #1050022: a form used within a datatable will loose it's submitted state // as UIForm is no EditableValueHolder and therefore it's state is not saved/restored by UIData // to restore the submitted state we call decode here again if (!isSubmitted()) { decode(context); } if (!isSubmitted()) return; for (Iterator it = getFacetsAndChildren(); it.hasNext(); ) { UIComponent childOrFacet = (UIComponent)it.next(); childOrFacet.processValidators(context); } }
public void processUpdates(javax.faces.context.FacesContext context) { if (context == null) throw new NullPointerException("context"); // SF issue #1050022: a form used within a datatable will loose it's submitted state // as UIForm is no EditableValueHolder and therefore it's state is not saved/restored by UIData // to restore the submitted state we call decode here again if (!isSubmitted()) { decode(context); } if (!isSubmitted()) return; for (Iterator it = getFacetsAndChildren(); it.hasNext(); ) { UIComponent childOrFacet = (UIComponent)it.next(); childOrFacet.processUpdates(context); } }
/** * <p> * Override {@link UIComponent#processDecodes} to ensure that the form is decoded * <strong>before</strong> its children. This is necessary to allow the <code>submitted</code> * property to be correctly set. * </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // If we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator<UIComponent> kids = getFacetsAndChildren(); while (kids.hasNext()) { kids.next().processDecodes(context); } }
/** * <p>Override {@link UIComponent#processDecodes} to ensure that the * form is decoded <strong>before</strong> its children. This is * necessary to allow the <code>submitted</code> property to be * correctly set.</p> * * @throws NullPointerException {@inheritDoc} */ public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // if we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processDecodes(context); } }
/** * <p>Override {@link UIComponent#processDecodes} to ensure that the * form is decoded <strong>before</strong> its children. This is * necessary to allow the <code>submitted</code> property to be * correctly set.</p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // if we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processDecodes(context); } }
/** * <p> * Override {@link UIComponent#processDecodes} to ensure that the form is decoded * <strong>before</strong> its children. This is necessary to allow the <code>submitted</code> * property to be correctly set. * </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // If we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator<UIComponent> kids = getFacetsAndChildren(); while (kids.hasNext()) { kids.next().processDecodes(context); } }
/** * <p> * Override {@link UIComponent#processDecodes} to ensure that the form is decoded * <strong>before</strong> its children. This is necessary to allow the <code>submitted</code> * property to be correctly set. * </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Process this component itself decode(context); // If we're not the submitted form, don't process children. if (!isSubmitted()) { return; } // Process all facets and children of this component Iterator<UIComponent> kids = getFacetsAndChildren(); while (kids.hasNext()) { kids.next().processDecodes(context); } }
/** * <p>Override {@link UIComponent#processUpdates} to ensure that the * children of this <code>UIForm</code> instance are only processed * if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processUpdates(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } pushComponentToEL(context, this); try { // Process all facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processUpdates(context); } } finally { popComponentFromEL(context); } }
/** * <p>Override {@link UIComponent#processValidators} to ensure that * the children of this <code>UIForm</code> instance are only * processed if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} */ public void processValidators(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } pushComponentToEL(context, this); Application app = context.getApplication(); app.publishEvent(context, PreValidateEvent.class, this); // Process all the facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processValidators(context); } app.publishEvent(context, PostValidateEvent.class, this); popComponentFromEL(context); }
/** * <p class="changed_modified_2_3">Override {@link UIComponent#processValidators} to ensure that * the children of this <code>UIForm</code> instance are only * processed if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} * @see javax.faces.event.PreValidateEvent * @see javax.faces.event.PostValidateEvent */ @Override public void processValidators(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } pushComponentToEL(context, this); Application app = context.getApplication(); app.publishEvent(context, PreValidateEvent.class, this); // Process all the facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processValidators(context); } app.publishEvent(context, PostValidateEvent.class, this); popComponentFromEL(context); }
/** * <p class="changed_modified_2_3">Override {@link UIComponent#processValidators} to ensure that * the children of this <code>UIForm</code> instance are only * processed if {@link #isSubmitted} returns <code>true</code>.</p> * * @throws NullPointerException {@inheritDoc} * @see javax.faces.event.PreValidateEvent * @see javax.faces.event.PostValidateEvent */ @Override public void processValidators(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!isSubmitted()) { return; } pushComponentToEL(context, this); Application app = context.getApplication(); app.publishEvent(context, PreValidateEvent.class, this); // Process all the facets and children of this component Iterator kids = getFacetsAndChildren(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.processValidators(context); } app.publishEvent(context, PostValidateEvent.class, this); popComponentFromEL(context); }