CommandLink

CommandLink extends the standard h:commandLink with ajax, partial processing and confirmation features.

<h:form>   
    <p:growl id="growl" life="2000" />
    
    <p:commandLink id="ajax" update="growl" action="#{buttonView.buttonAction}" style="margin-right:20px;">
        <h:outputText value="Ajax Submit" />
    </p:commandLink>

    <p:commandLink id="nonAjax" action="#{buttonView.buttonAction}" style="margin-right:20px;" ajax="false">
        <h:outputText value="Non-Ajax Submit" />
    </p:commandLink>      
</h:form>