Locale

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

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. Showcase use actually this component to render source examples for every PrimeFaces components because parsing an xhtml file takes time, and since the rendering won't change during the whole lifecycle of the application, it's better to cache the content.

  • tabscode.xhtml demonstrate how to use cache component declaratively
  • ShowcaseUtil demonstrate how to use cache API programmatically

<p:tabView var="entry" value="#{value}">
<p:tab title="#{entry.title}" >
    <p:cache region="sources" key="#{entry}"
             disabled="#{facesContext.application.projectStage eq 'Development'}">
<pre class="line-numbers"><code class="language-#{entry.type}">
#{entry.value}

</code></pre>
    </p:cache>
</p:tab>

<f:facet name="static-tabs">
    <ui:insert />
</f:facet>
    </p:tabView>