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" actionListener="#{buttonView.buttonAction}">
        <h:outputText value="Ajax Submit" />
    </p:commandLink>

    <p:commandLink id="nonAjax" actionListener="#{buttonView.buttonAction}" ajax="false">
        <h:outputText value="Non-Ajax Submit" />
    </p:commandLink>
</h:form>