/** * 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>. * * @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); } }