JARCH SHOWCASE
JARCH SHOWCASE
Ajax Framework - PFS PFS (PrimeFaces Selectors) enables using jQuery Selector API when referencing components.
PFS Form
<a:form>
    <a:panel id="panel" header="PFS Form" style="margin-bottom:10px;">
        <a:messages id="messages" />

        <h:panelGrid columns="4" cellpadding="5">
            <h:outputLabel for="txt1" value="Text 1: *" />
            <a:inputText id="txt1" value="#{selectorView.text1}" required="true" label="Text 1">
                <f:validateLength minimum="2" />
            </a:inputText>
            <a:message for="txt1" />
            <h:outputText value="#{selectorView.text1}" />

            <h:outputLabel for="txt2" value="Text 2: *" />
            <a:inputText id="txt2" value="#{selectorView.text2}" required="true" label="Text 2" />
            <a:message for="txt2" />
            <h:outputText value="#{selectorView.text2}" />

            <h:outputLabel for="txt3" value="Text 3: *" />
            <h:selectOneMenu id="txt3" value="#{selectorView.text3}" required="true" label="Text 3">
                <f:selectItem itemLabel="Select One" itemValue="" noSelectionOption="true" />
                <f:selectItem itemLabel="Option 1" itemValue="1" />
                <f:selectItem itemLabel="Option 2" itemValue="2" />
                <f:selectItem itemLabel="Option 3" itemValue="3" />
            </h:selectOneMenu>
            <a:message for="txt3" />
            <h:outputText value="#{selectorView.text3}" />
        </h:panelGrid>
    </a:panel>

    <h:panelGrid columns="5">
        <a:commandButton update="@(form)" value="All Forms" />
        <a:commandButton update="@(form:last)" value="Last Form" />
        <a:commandButton update="@(.ui-panel)" value="All Panels" />
        <a:commandButton process="@(.ui-panel :input)" update="@(.ui-panel)" value="Inputs of Panel" />
        <a:commandButton process="@(.ui-panel :input:not(select))" update="@(.ui-panel)" value="Inputs Except Select" />
    </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.