*/
public class RatingBinder extends PropertyEditorSupport {
@Override
public void setAsText(String text) throws IllegalArgumentException {
Rating r = (Rating) getValue();
if (StringUtils.hasText(text)) {
if (r == null) r = new Rating();
r.setRating(Double.parseDouble(text));
}
setValue(r);
}