SelectOneButton SelectOneButton is used to choose a single item from a list using buttons.
Platform:
Xbox One
PS4
Wii U
Selected:
<h:form>
    <h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">
        <h:outputText value="Platform:" />
        <p:selectOneButton value="#{selectOneView.option}">
            <f:selectItem itemLabel="Xbox One" itemValue="Xbox One" />
            <f:selectItem itemLabel="PS4" itemValue="PS4" />
            <f:selectItem itemLabel="Wii U" itemValue="Wii U" />
        </p:selectOneButton>

        <p:commandButton value="Submit" update="display" icon="ui-icon-check" />
        <p:spacer />

        <h:outputText value="Selected:" />
        <h:outputText id="display" value="#{selectOneView.option}" style="font-weight: bold" />
    </h:panelGrid>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.1.4 on Mojarra-2.2.10.