JARCH SHOWCASE
JARCH SHOWCASE
SelectManyButton SelectManyButton is used to choose multiple items from a list using buttons.
Font:
b
u
i
Selected:
No fonts selected
<a:form>
    <h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">
        <h:outputText value="Font:" />
        <a:selectManyButton value="#{selectManyView.selectedOptions}">
            <f:selectItem itemLabel="b" itemValue="b" />
            <f:selectItem itemLabel="u" itemValue="u" />
            <f:selectItem itemLabel="i" itemValue="i" />
        </a:selectManyButton>

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

        <h:outputText value="Selected:" />
        <a:dataList id="display" value="#{selectManyView.selectedOptions}" var="font" emptyMessage="No fonts selected">
            <h:outputText value="#{font}" style="font-weight: bold" />
        </a:dataList>
    </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.