Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: Release 1.4
-
Fix Version/s: None
-
Component/s: Validation
-
Labels:None
-
Environment:Windows, Java 1.5, Tomcat 6
Description
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.
I'm pretty sure that this is the expected behavior. The idea with indexed properties is that if you have rows of fields, any row that is completely empty is ignored.
See http://www.stripesframework.org/display/stripes/Indexed+Properties under 'Validation of Indexed Properties' for a more detailed explanation.