JARCH SHOWCASE
JARCH SHOWCASE
Dialog - Dynamic Focus By default, the first input field receives focus automatically. It can be changed by using focus attribute.
Dynamic Focus
<a:form>
            
    <a:commandButton value="Dynamic Focus" onclick="PF('dlg').show();" type="button" icon="ui-icon-extlink" />

    <a:dialog header="Dynamic Focus" widgetVar="dlg" focus="age">
        <h:panelGrid columns="2" cellpadding="5">
            <h:outputLabel for="name" value="Name:" />
            <a:inputText id="name" label="name" />

            <h:outputLabel for="surname" value="Surname:" />
            <a:inputText id="surname" label="surname" />

            <h:outputLabel for="age" value="Age:" />
            <a:inputText id="age" label="age" />
        </h:panelGrid>
    </a:dialog>

</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.