JARCH SHOWCASE
JARCH SHOWCASE
Cache Cache component is used to reduce page load time by caching the content in a global cache after the initial rendering. Various cache providers are supported like ehcache and hazelcast. In this example, toolbar component is cached and output would be retrieved from cache.
<a:form>
    <a:cache region="testcache" key="toolbar">
        <a:toolbar>
            <a:toolbarGroup align="left">
                <a:commandButton type="button" value="New" icon="ui-icon-document" />

                <a:commandButton type="button" value="Open" icon="ui-icon-folder-open"/>

                <a:separator />

                <a:commandButton type="button" title="Save" icon="ui-icon-disk"/>
                <a:commandButton type="button" title="Delete" icon="ui-icon-trash"/>
                <a:commandButton type="button" title="Print" icon="ui-icon-print"/>
            </a:toolbarGroup>

            <a:toolbarGroup align="right">
                <a:commandButton type="button" value="Quit" icon="ui-icon-close"/>
            </a:toolbarGroup>
        </a:toolbar>
    </a:cache>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.