Ajax Framework - Events

p:ajax enables ajax features on supported components.

Documentation
KeyUp:
Blur:
<h:form>
    <h:panelGrid columns="3" cellpadding="5">
        <h:outputText value="KeyUp: " />
        <p:inputText id="firstname" value="#{userView.firstname}">
            <p:ajax event="keyup" update="out1" />
        </p:inputText>
        <h:outputText id="out1" value="#{userView.firstname}" />

        <h:outputText value="Blur: " />
        <p:inputText id="surname" value="#{userView.lastname}">
            <p:ajax event="blur" update="out2" />
        </p:inputText>
        <h:outputText id="out2" value="#{userView.lastname}" />
    </h:panelGrid>
</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.