JARCH SHOWCASE
JARCH SHOWCASE
TreeTable - Basic TreeTable displays hierachical data in tabular format.
Document Viewer
NameSizeType
Document Detail
<a:form id="form">
    <a:treeTable value="#{ttBasicView.root}" var="document">
        <f:facet name="header">
            Document Viewer
        </f:facet>
        <a:column headerText="Name">
            <h:outputText value="#{document.name}" />
        </a:column>
        <a:column headerText="Size">
            <h:outputText value="#{document.size}" />
        </a:column>
        <a:column headerText="Type">
            <h:outputText value="#{document.type}" />
        </a:column>
        <a:column style="width:24px">
            <a:commandLink update=":form:documentPanel" oncomplete="PF('documentDialog').show()" title="View Detail" styleClass="ui-icon ui-icon-search">
                <f:setPropertyActionListener value="#{document}" target="#{ttBasicView.selectedDocument}" />
            </a:commandLink>
        </a:column>
    </a:treeTable>

    <a:dialog id="dialog" header="Document Detail" showEffect="fade" widgetVar="documentDialog" modal="true" resizable="false">
        <a:outputPanel id="documentPanel">
            <a:panelGrid  columns="2" columnClasses="label,value" rendered="#{not empty ttBasicView.selectedDocument}">
                <h:outputLabel for="name" value="Name: " />
                <h:outputText id="name" value="#{ttBasicView.selectedDocument.name}" style="font-weight:bold" />

                <h:outputLabel for="size" value="Size: " />
                <h:outputText id="size" value="#{ttBasicView.selectedDocument.size}" style="font-weight:bold" />

                <h:outputLabel for="type" value="Type " />
                <h:outputText id="type" value="#{ttBasicView.selectedDocument.type}" style="font-weight:bold" />
            </a:panelGrid>
        </a:outputPanel>
    </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.