@Validate annotations work on fields, getters and setters.

For a boolean property xyz, the JavaBean convention is to name the getter
"isXyz".

Doing so makes the annotation fail, because Stripes assumes that the method
prefix is of length 3 (get/set). In the example above, the property name
ends up being "yz".

As mentioned in the subject, this is a nit. You can name your method with
"get" instead, or annotate the setter or field instead of the "isXyz"
method.

Just pointing this out. Is this worth a Jira issue?

Cheers,
Freddy
--
Frederic Daoud
-- 
View this message in context: 
http://www.nabble.com/nit%3A-%40Validate-on-isBooleanProperty%28%29-tf4634872.html#a13235811
Sent from the stripes-dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to