I am trying to add validation to a ratingField, I was assuming it bahaved 
similar to a radioGroup but I can't seem to add validation to the field.

I have a property on my page with getters and setters:

private Integer rating;

@validate("required")
public Integer getRating() {

}
...

my template looks like this:

<t:form t:id="form">

<div t:type="t5components/RatingField"
                       source="list:1,2,3,4,5"
                    value="rating" />
 
...

However the rating field is not validated

Any ideas?

Thanks!

Toby

Reply via email to