Ajax Framework - Counter

An integer variable is incremented each time the button is clicked and current value is updated with ajax.

Documentation
Counter: 0
<h:form>
    <h:panelGrid columns="2" cellpadding="5">
        <h:outputText value="Counter: " />
        <h:outputText id="output" value="#{counterView.number}" />
    </h:panelGrid>

    <p:commandButton value="Count" action="#{counterView.increment}" update="output" />
</h:form>

FREE THEMES

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

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

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