Max and Min validators throw NumberFormatException
--------------------------------------------------

         Key: TAPESTRY-847
         URL: http://issues.apache.org/jira/browse/TAPESTRY-847
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
    Reporter: Chris Conrad


I have a text field on a form into which a user is supposed to enter a number 
within a certain range.  So I added the max and min validators to the text 
field hoping they would do what they're supposed to do.  Unfortunately, a user 
quickly discovered that if they don't follow the instructions and enter a 
letter into that text field they get an ugly NumberFormatException.  I poked 
around a little and found that I can't even catch that exception to present 
something nicer to the user because my listener method never even gets called.  
So, it would be extremely useful if the numerical related validators caught 
NumberFormatException and provided a "The value must a be number" error message.

In this particular case, using any kind of drop down or selection box widget 
wouldn't work because the number range is quite large (basically from 0 to 
several million).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to