struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31514] - Either insufficient docs on validwhen or a bug
Date Sun, 03 Oct 2004 04:16:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31514>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31514

Either insufficient docs on validwhen or a bug

niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Major                       |Enhancement
          Component|Validator Framework         |Documentation



------- Additional Comments From niallp@apache.org  2004-10-03 04:16 -------
I think you're right the phrase you mention does imply that in your case a 
numeric coomparison should have been done - both your Strings are convertable 
to Integers.

Looking at the ValidWhenParser.g source file - it only tries to do a numeric 
comparison when at least one of the items is an Integer.

Either, as you say, the docs need clarifying - or change validwhen to try to 
convert both Strings to Integer. IMO changing validwhen would be a good option 
as this is probably a common scenario (all my ActionForm's are String 
properties).

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message