May 2015
Beginner to intermediate
412 pages
8h 44m
English
The rating component provides star-based rating with the ability to select and cancel.
The basic declaration for the component would be as follows:
<p:rating value="#{ratingBean.rate}" />Here, the rate value binding is a java.lang.Integer definition. The default visual of the component will be as shown in the following screenshot:
The stars attribute sets the number of stars to display with a default value 5.
With the readonly attribute, it's possible to only display the value output of the component by disabling user interaction. When set to true, the cancellation button will also not be rendered on ...
Read now
Unlock full access