JARCH SHOWCASE
JARCH SHOWCASE
Spotlight Spotlight highlights a certain component on page.
Panel is highlighted on validation error.
New User
<a:form>
    <a:growl id="growl" />

    <a:panel id="pnl" header="New User" style="margin-top:10px">
        <a:messages id="messages" />
        <h:panelGrid columns="3" id="grid" cellpadding="5">
            <a:outputLabel for="username" value="Username" />
            <a:inputText id="username" value="#{spotlightView.username}" required="true">
                <f:validateLength minimum="2" />
            </a:inputText>
            <a:message for="username" />

            <a:outputLabel for="email" value="Surname:" />
            <a:inputText id="email" value="#{spotlightView.email}" required="true"/>
            <a:message for="email" />
        </h:panelGrid>

        <a:commandButton value="Save" icon="ui-icon-check" actionListener="#{spotlightView.save}" update="growl grid" oncomplete="handleForm(xhr, status, args)"/>
    </a:panel>

    <a:spotlight target="pnl" widgetVar="spot"/>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.