You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/25 20:48:46 UTC
[jira] Closed: (STR-1762) 'integer' rule doesn't work properly with
indexed properties
[ http://issues.apache.org/struts/browse/STR-1762?page=all ]
David Evans closed STR-1762:
----------------------------
Resolution: Fixed
> 'integer' rule doesn't work properly with indexed properties
> ------------------------------------------------------------
>
> Key: STR-1762
> URL: http://issues.apache.org/struts/browse/STR-1762
> Project: Struts Action 1
> Type: Bug
> Components: Action
> Versions: Nightly Build
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Jim Prantzalos
> Assignee: David Evans
> Fix For: 1.2 Family
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org