Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

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.

Rating

Rating component provides a star based rating input.

Basic
Remote
Readonly
Disabled

<div class="card">
    <h:form>
        <p:growl id="messages" showDetail="true"/>

        <h5 class="p-mt-0">Basic</h5>
        <p:rating value="#{ratingView.rating1}"/>

        <h5>Remote</h5>
        <p:rating value="#{ratingView.rating2}">
            <p:ajax event="rate" listener="#{ratingView.onrate}" update="messages"/>
            <p:ajax event="cancel" listener="#{ratingView.oncancel}" update="messages"/>
        </p:rating>

        <h5>Readonly</h5>
        <p:rating value="#{ratingView.rating3}" readonly="true"/>

        <h5>Disabled</h5>
        <p:rating value="#{ratingView.rating3}" disabled="true"/>
    </h:form>
</div>