JARCH SHOWCASE
JARCH SHOWCASE
SelectOneButton SelectOneButton is used to choose a single item from a list using buttons.
Platform:
Xbox One
PS4
Wii U
Selected:
<a:form>
    <h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">
        <h:outputText value="Platform:" />
        <a: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" />
        </a:selectOneButton>

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

        <h:outputText value="Selected:" />
        <h:outputText id="display" value="#{selectOneView.option}" style="font-weight: bold" />
    </h:panelGrid>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.