tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Conrad (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Created: (TAPESTRY-847) Max and Min validators throw NumberFormatException
Date Thu, 26 Jan 2006 20:03:09 GMT
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:
For more information on JIRA, see:

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

View raw message