Button

Button is an extension to the standard h:button component featuring advanced skinning capabilities. Just like h:button, button does GET requests targeting bookmarkable URLs.

<p:button outcome="productDetail" value="Bookmark" icon="pi pi-star" style="margin-right:20px;">
    <f:param name="productId" value="10" />
</p:button>

<p:button outcome="productDetail" value="With Icon" icon="pi pi-star" style="margin-right:20px;">
    <f:param name="productId" value="20" />
</p:button>

<p:button outcome="productDetail" icon="pi pi-star" style="margin-right:20px;" title="Icon Only">
    <f:param name="productId" value="30" />
</p:button>

<p:button outcome="productDetail" value="Bookmark" icon="pi pi-star" disabled="true" style="margin-right:20px;">
    <f:param name="productId" value="40" />
</p:button>