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