Ajax Framework - Partial Process Partial processing enables executing certain components while ignoring others during a request.
<h:form>
    <h:panelGrid id="grid" cellpadding="5" columns="2" style="margin-bottom:10px">
        <f:facet name="header">
            <p:messages id="msgs" />
        </f:facet>

        <p:outputLabel for="firstname" value="Firstname:" />
        <p:inputText id="firstname" value="#{userView.firstname}" />

        <p:outputLabel for="surname" value="Surname:" />
        <p:inputText id="surname" value="#{userView.lastname}" required="true" requiredMessage="Surname is required." />
    </h:panelGrid>

    <h:panelGrid columns="6" cellpadding="5">
        <p:commandButton value="All" id="btnAll" process="@all" update="grid" actionListener="#{userView.save}" />
        <p:commandButton value="Form" id="btnForm" process="@form" update="grid" actionListener="#{userView.save}" />
        <p:commandButton value="This" id="btnThis" process="@this" update="grid" actionListener="#{userView.save}" />
        <p:commandButton value="None" id="btnNone" process="@none" update="grid" actionListener="#{userView.save}" />
        <p:commandButton value="Parent" id="btnParent" process="@parent" update="grid" actionListener="#{userView.save}" />
        <p:commandButton value="This Surname" id="btnSurname" process="@this,surname" update="grid" actionListener="#{userView.save}" />
    </h:panelGrid>
</h:form>
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.0.12 on Mojarra-2.2.8.