[ http://mc4j.org/jira/browse/STS-395?page=all ]
Ben Gunter resolved STS-395.
----------------------------
Resolution: Not a Bug
Assignee: Ben Gunter (was: Tim Fennell)
> @StrictBinding only works on nested fields, not the object itself
> -----------------------------------------------------------------
>
> Key: STS-395
> URL: http://mc4j.org/jira/browse/STS-395
> Project: Stripes
> Issue Type: Bug
> Components: Validation
> Affects Versions: Release 1.5
> Reporter: Jeff Ferber
> Assigned To: Ben Gunter
>
> This relates to Ben Gunter's @StrictBinding library, which I understand is
> being incorporated into Stripes 1.5.
> I think I found a bug.
> Although @ValidateNestedProperties correctly signals that the fields within
> are permitted for binding, StrictBinding prevents the object itself from
> binding. (Important when a TypeConverter is being used.) For example:
> @ValidateNestedProperties({
> @Validate(field="iceCream"),
> @Validate(field="toppings"),
> @Validate(field="isMelting")
> })
> private Sundae s;
> s.iceCream would bind, but s would not.
> I think I fixed it in AnnotatedBindAccessEvaluator by adding the line
> indicated below:
> for (Validate validate : validates) {
> if (validate != null)
> {
> allowGlob.add(propertyName, validate.field());
> allowGlob.add(propertyName); // <---------------
> does this fix it?
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
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