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=23417>.
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=23417

Would like to add min value and max value to the validator framework





------- Additional Comments From [EMAIL PROTECTED]  2003-09-25 18:46 -------
I think the ehancement request was misunderstood, so let me see if I can 
clarify what I was after.  Basically the validator only allows for a x < y < z 
type of range checking.  The type of range checking I was asking for in the 
enhancement request was strictly a  y > x check  or y < z.  Currently this 
can't be done my merely neglecting to specify either a min or max because this 
would trigger a null pointer exception within the FieldChecks::validateIntRange 
method.

So basically the developer would need to fudge one or the other of the min-max 
values and then have to define a custom error message should the range check 
fail. 

It my hope to see this enhancement added since it would allow for the developer 
to not have to make special cases for this kind of check.  It would also be in 
line with the min length, max length checks that are already present in the 
validator framework (though I didn't see a length range type of check there).  

Sorry if the initial post wasn't clear.  I'm fairly new in the open source 
world.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to