JARCH SHOWCASE
JARCH SHOWCASE
RequestContext RequestContext is a helper with various utilities.
  • Update component(s) programmatically.
  • Execute javascript from beans.
  • Add ajax callback parameters as JSON.
  • ScrollTo a specific component after ajax update.
  • Invoke conditional javascript on page load.
New User
    <a:form id="form">
        <a:panel id="panel" header="New User" style="margin-bottom:10px;">
            <a:messages />
            <h:panelGrid columns="2" cellpadding="5">
                <a:outputLabel for="firstname" value="Firstname:" />
                <a:inputText id="firstname" value="#{requestContextView.user.firstname}" required="true"/>
    
                <a:outputLabel for="surname" value="Lastname:" />
                <a:inputText id="surname" value="#{requestContextView.user.lastname}" required="true"/>
            </h:panelGrid>
        </a:panel>
    
        <a:commandButton value="Save" actionListener="#{requestContextView.save}" oncomplete="handleComplete(xhr, status, args)" />
    
        <a:log />
    </a:form>
                    
    JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.