Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
English
English
French
German
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Bangla
Bosnian
Czech
Greek
Estonian
Persian
Finnish
Danish
Hindi
Indonesian
Icelandic
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Serbian
Swedish
Thai
Turkish
Ukrainian
Uzbek
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeUIX
Aura Light Emerald Aura Light Emerald
Aura Dark Emerald Aura Dark Emerald
PrimeOne
Saga Blue Saga Blue
Vela Blue Vela Blue
Arya Blue Arya Blue
Bootstrap
Bootstrap Blue Light Bootstrap Blue Light
Bootstrap Purple Light Bootstrap Purple Light
Bootstrap Blue Dark Bootstrap Blue Dark
Bootstrap Purple Dark Bootstrap Purple Dark
Material Design
Material Indigo Light Material Indigo Light
Material Deep Purple Light Material Deep Purple Light
Material Indigo Dark Material Indigo Dark
Material Deep Purple Dark Material Deep Purple Dark
Material Design Compact
Material Compact Indigo Light Material Compact Indigo Light
Material Compact Deep Purple Light Material Compact Deep Purple Light
Material Compact Indigo Dark Material Compact Indigo Dark
Material Compact Deep Purple Dark Material Compact Deep Purple Dark
Legacy
Nova Light Nova Light
Nova Dark Nova Dark
Nova Colored Nova Colored
Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink

Rating

Rating component provides a star based rating input.

Rating Tag Documentation

Rating component features a star based rating system.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
cancel boolean false true When enabled, displays a cancel icon to reset rating value.
converter Converter false EL expression resolves to a converter instance or literal converter ID defining a component converter.
converterMessage String false
disabled boolean false false Disables user interaction.
immediate boolean false false When set true, process validations logic is executed at apply request values phase for this component.
onRate String false Client side callback to execute when rate happens.
readonly boolean false false Disables user interaction without adding disabled visuals.
required boolean false false Marks component as required.
requiredMessage String false
stars int false 5 Number of stars to display.
style String false Inline style of the component.
styleClass String false Style class of the component.
submittedValue Object false
tabindex String false 0 Position of the output in the tabbing order.
validator Validator false A method expression referring to a method validating the input.
validatorMessage String false
value Object false Value of the component.
valueChangeListener ValueChangeListener false A method binding expression referring to a method for handling a valuchangeevent.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
Basic
Remote
Readonly
Disabled
Required

Usage


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

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

        <h5>Remote</h5>
        <p:rating id="rating2" 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 id="ratingReadOnly" value="#{ratingView.rating3}" readonly="true"/>

        <h5>Disabled</h5>
        <p:rating id="ratingDisabled" value="#{ratingView.rating3}" disabled="true"/>

        <h5>Required</h5>
        <div class="flex flex-col gap-2">
            <p:rating id="rating4" value="#{ratingView.rating4}" required="true" requiredMessage="Please rate us!" />
            <p:commandButton value="Rate" action="#{ratingView.onSubmit}" update="@form" process="@this rating4" />
        </div>
    </h:form>
</div>