On Tue, 12 Jun 2007, Prashant Khanal wrote:
> For a text field i have used NumeberValidator.minimum(1) so that
> validation error will be thrown when user enters 0 or less. How can i
> override the validation error message ( '0' must be greater than '1')
> ?
> Is there any way to provide custom valdiation message?

Yep, via resource bundles. e.g.

[webapplication-subclass-name].properties
RequiredValidator=Field '${label}' is required
LengthValidator=Field '${label}' must be between ${min} and ${max} characters

http://cwiki.apache.org/WICKET/form-validation-messages.html

- Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to