JARCH SHOWCASE
JARCH SHOWCASE
Ajax Framework - Fragment Fragment component is used to define automatically partially process and update sections whenever ajax request is triggered by a descandant component. In this example, required input field outside the fragment is ignored and only the contents of the fragment are processed-updated automatically on button click since button is inside the fragment. Fragment makes it easy to define partial ajax process and update without explicitly defining component identifiers.
<a:form>
    <h:panelGrid columns="2" cellpadding="5">
        <a:outputLabel for="ignored" value="Required" />
        <a:inputText id="ignored" required="true" />
    </h:panelGrid>

    <a:fragment autoUpdate="true">
        <h:panelGrid columns="4" cellpadding="5">
            <a:outputLabel for="txt" value="Text Value:" />
            <a:inputText id="txt" value="#{basicView.text}" />
            <a:commandButton value="Submit"/>
            <h:outputText value="#{basicView.text}" />
        </h:panelGrid>
    </a:fragment>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.