[
http://www.stripesframework.org/jira/browse/STS-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11419#action_11419
]
Mohammed Shafiq commented on STS-577:
-------------------------------------
Hi Frederic,
Thanks for your reply.
I have read the above link and understand why the validation behaves in the
manner it does but the issue is with the binding of the properties.
If all the values of the row are empty then no binding of the properties takes
place. This means that the values can never be blank.
Take the example with a List of Person objects.
List<Person> persons;
Person{
name: String;
age: String;
}
If I wanted to blank one item in the list i.e. set name to "" and age to "",
stripes will remove these parameters from the list before the binding. This
neans this item in the list is never touched and the values remain as
originally set.
> Indexed properties fail to be set to null or empty
> (DefaultActionBeanPropertyBinder problem)
> ----------------------------------------------------------------------------------------------
>
> Key: STS-577
> URL: http://www.stripesframework.org/jira/browse/STS-577
> Project: Stripes
> Issue Type: Bug
> Components: Validation
> Affects Versions: Release 1.4
> Environment: Windows, Java 1.5, Tomcat 6
> Reporter: Mohammed Shafiq
>
> Hi,
> When using indexed properties in the JSP, these cannot be set to empty as
> this is ignored and no binding to the property.
> The problem points to the following class
> DefaultActionBeanPropertyBinder.validateRequiredFields(...). This method
> removes any indexed properties where value is set to null or empty. Therefore
> the resulting binding to the property never occurs and the value is
> unaffected.
> Thanks
> Shaf.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development