DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23337>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23337 'integer' rule doesn't work properly with indexed properties Summary: 'integer' rule doesn't work properly with indexed properties Product: Struts Version: Nightly Build Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Validator Framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have the following rule in validation.xml: <field property="x" indexedListProperty="coords" depends="integer"> <arg0 key="xyzForm.xcoord.label"/> </field> .. and I have a form that accepts 3 rows of x,y,z coords. If I enter the values: X: K Y: 2 Z: 3 X: Y: 5 Z: 6 X: 7 Y: 8 Z: 9 I will get a message that says 'X-coordinate must be an integer.' as expected. However, if I enter: X: Y: 2 Z: 3 X: K Y: 5 Z: 6 X: K Y: 8 Z: 9 .. where X[0] is empty, then it accepts this as valid input. I appears as if the validator does not bother to check the remaining indexes once it hits an empty index. For example, the following will detect a validation error: X: 9 Y: 2 Z: 3 X: K Y: 5 Z: 6 X: 7 Y: 8 Z: 9 and the following will not (as expected): X: 9 Y: 2 Z: 3 X: 4 Y: 5 Z: 6 X: Y: 8 Z: 9 but the following will not flag a validation error, and it should: X: 1 Y: 2 Z: 3 X: Y: 5 Z: 6 X: K Y: 8 Z: 9 I hope I've been able to clearly define the problem. Please email me if you have further questions. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
