public void commitUpdates() {
        resetSubmitted();
        final FacesContext context = FacesContext.getCurrentInstance();
        if (context.getPartialViewContext().isPartialRequest()) {
            final StringBuilder eval = new StringBuilder();
            final String jsVar = resolveWidgetVar();
            eval.append("PF('").append(jsVar).append("')").append(".clearDataInput();");
            PrimeFaces.current().executeScript(eval.toString());
        }
    }
public void commitUpdates ( ) { resetSubmitted ( ) ; final FacesContext context = FacesContext . getCurrentInstance ( ) ; if ( context . getPartialViewContext ( ) . isPartialRequest ( ) ) { final StringBuilder eval = new StringBuilder ( ) ; final String jsVar = resolveWidgetVar ( ) ; eval . append ( "PF('" ) . append ( jsVar ) . append ( "')" ) . append ( ".clearDataInput();" ) ; PrimeFaces . current ( ) . executeScript ( eval . toString ( ) ) ; } }
Invoke this method to commit the most recent set of ajax updates and restart the tracking of changes. Use this when you have processes the updates to the
model and are confident that any changes made to this point can be cleared (likely because you have persisted those changes).