p:rating - required does not work

UI Components for JSF
Post Reply
parindam
Posts: 23
Joined: 23 Dec 2010, 12:47

29 May 2011, 12:20

Hi,

I am using <p:rating> and I see that "required" does not work. Even if the rate is empty, it does not bother to throw a message.
Here is how I am using it.

<p:rating stars="5" id="rateID"
value="#{promoteBacking.wpd.wupdRatingProvidedByUser}"
required="true" requiredMessage="You must rate the product." />

<p:message for="rateID"/>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests