struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Evans (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (STR-1762) 'integer' rule doesn't work properly with indexed properties
Date Tue, 25 Apr 2006 18:48:45 GMT
     [ http://issues.apache.org/struts/browse/STR-1762?page=all ]
     
David Evans reopened STR-1762:
------------------------------

    Assign To: David Evans  (was: Struts Developer Mailing List)

> '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


Mime
View raw message