JSF 2 - Zapisz wszystkie Poprawne wartości składników

Mam wymaganie utworzenia funkcji javascript, która po wywołaniu zapisze wszystkie poprawne komponenty w formularzu JSF 2.0. Ponieważ kompletny formularz nigdy nie będzie ważny jako całość, muszę wymyślić sposób uruchomienia cyklu życia dla każdego komponentu, aby w przypadku pomyślnej fazy sprawdzania poprawności model został zaktualizowany i ostatecznie zapisany.

W idealnym przypadku musi to być pojedyncze żądanie ajax, ponieważ iterowanie każdego komponentu z oddzielnym żądaniem ajax byłoby boleśnie nieefektywne.

Czy ktoś wcześniej rozwiązał problem? Jeśli nie, czy mógłbyś podać mi wskazówki dotyczące możliwych implementacji?

Edytować:

Oto co mam do tej pory wydaje się działać dobrze:

@ManagedBean(name = "partialAppSaveBean")
@RequestScoped
public class PartialAppSaveBean implements Serializable {

    protected static final Logger LOGGER = LoggerFactory.getLogger(PartialAppSaveBean.class);
    private static final long serialVersionUID = 1L;

    /**
     * Save any valid Application values
     *
     * @param event
     */
    public void saveData(AjaxBehaviorEvent event) {
        final FacesContext context = FacesContext.getCurrentInstance();

        UIForm form = getParentForm(event.getComponent());
        Set<VisitHint> hints = EnumSet.of(VisitHint.SKIP_UNRENDERED);

        form.visitTree(VisitContext.createVisitContext(context, null, hints), new VisitCallback() {

            @Override
            public VisitResult visit(VisitContext context, UIComponent component) {
            if (component instanceof UIInput) {
                UIInput input = (UIInput) component;
                input.validate(context.getFacesContext());

                if (input.isValid() && input.getValue() != null) {
                    ValueExpression valueExpression = input.getValueExpression("value");

                    if (valueExpression != null
                            && valueExpression.getExpressionString() != null) {
                        try {
                            valueExpression.setValue(context.getFacesContext().getELContext(), input.getValue());
                        } catch (Exception ex) {
                            LOGGER.error("Expression [ " + valueExpression.getExpressionString() + 
                                    "] value could not be set with value [" + input.getValue() + "]", ex);
                        }                            
                    }
                }
            }

            return VisitResult.ACCEPT;
            }
        });

        //Save data here
    }

    /**
     * Returns the parent form for this UIComponent
     * 
     * @param component
     * @return form
     */
    private static UIForm getParentForm(UIComponent component) {
        while (component.getParent() != null) {
            if (component.getParent() instanceof UIForm) {
                return (UIForm) component.getParent();
            } else {
                return getParentForm(component.getParent());
            }
        }

        return null;
    }

}

Wywołany czymś w rodzaju:

<h:commandButton
    id="saveData">
    <f:ajax listener="#{partialAppSaveBean.saveData}" execute="@form" immediate="true" onevent="onPartialSave" />
</h:commandButton>