JARCH SHOWCASE
JARCH SHOWCASE
BlockUI BlockUI blocks other components. It can be used with special ajax integration or manually with client side api.

Basic

New User

Custom Content

Cars
IdYearBrandColor
Y25YIH52014FiatBlack
JHF261G2013BMWBlue
HSFY23H2012FordBlack
GMDK3532014VolvoWhite
345GKM52011JaguarGray
LOADING

Client Side API

The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
<a:form>
    <a:growl id="growl" />

    <h3 style="margin-top:0">Basic</h3>
    <a:panel id="pnl" header="New User" style="margin-bottom:10px;">
        <a:messages id="messages" />
        <h:panelGrid columns="3" cellpadding="5">
            <h:outputLabel for="firstname" value="Firstname: *" />
            <a:inputText id="firstname" value="#{blockUIView.firstname}" required="true" label="Firstname">
                <f:validateLength minimum="2" />
            </a:inputText>
            <a:message for="firstname" />

            <h:outputLabel for="lastname" value="Lastname: *" />
            <a:inputText id="lastname" value="#{blockUIView.lastname}" required="true" label="Lastname"/>
            <a:message for="lastname" />
        </h:panelGrid>

        <a:commandButton id="saveBtn" value="Save" icon="ui-icon-check" style="margin:0" actionListener="#{blockUIView.save}" update="growl"/>
    </a:panel>

    <a:blockUI block="pnl" trigger="saveBtn" />

    <h3>Custom Content</h3>
    <a:dataTable id="dataTable" var="car" value="#{blockUIView.cars}"
                 paginator="true" rows="5">
        <f:facet name="header">
            Cars
        </f:facet>

        <a:column>
            <f:facet name="header">
                <h:outputText value="Id" />
            </f:facet>
            <h:outputText value="#{car.id}" />
        </a:column>

        <a:column>
            <f:facet name="header">
                <h:outputText value="Year" />
            </f:facet>
            <h:outputText value="#{car.year}" />
        </a:column>

        <a:column>
            <f:facet name="header">
                <h:outputText value="Brand" />
            </f:facet>
            <h:outputText value="#{car.brand}" />
        </a:column>

        <a:column>
            <f:facet name="header">
                <h:outputText value="Color" />
            </f:facet>
            <h:outputText value="#{car.color}" />
        </a:column>
    </a:dataTable>

    <a:blockUI block="dataTable" trigger="dataTable">
        LOADING<br />
        <a:graphicImage name="demo/images/ajaxloadingbar.gif"/>
    </a:blockUI>

    <h3>Client Side API</h3>
    <a:accordionPanel id="accordion" multiple="true" style="margin-bottom:20px;">
        <a:tab title="Godfather Part I">
            <h:panelGrid columns="2" cellpadding="10">
                <a:graphicImage name="demo/images/godfather/godfather1.jpg" />
                <h:outputText
                    value="The story begins as Don Vito Corleone..." />
            </h:panelGrid>
        </a:tab>
        <a:tab title="Godfather Part II">
            <h:panelGrid columns="2" cellpadding="10">
                <a:graphicImage name="demo/images/godfather/godfather2.jpg" />
                <h:outputText value="Francis Ford Coppola's legendary continuation..." />
            </h:panelGrid>
        </a:tab>
        <a:tab title="Godfather Part III">
            <h:panelGrid columns="2" cellpadding="10">
                <a:graphicImage name="demo/images/godfather/godfather3.jpg" />
                <h:outputText value="After a break of more than 15 years..." />
            </h:panelGrid>
        </a:tab>
    </a:accordionPanel>

    <a:commandButton id="pnlBtn" value="Block Panel" type="button" onclick="PF('bui').show()"/>
    <a:commandButton id="pnlBtn2" value="Unblock Panel" type="button" onclick="PF('bui').hide()"/>

    <a:blockUI block="accordion" widgetVar="bui"/>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.