NumberValidator.range(...,...) instead

Martijn

On Fri, Aug 1, 2008 at 1:30 PM, alex2008 <[EMAIL PROTECTED]> wrote:
>
> I have just read
> http://cwiki.apache.org/WICKET/form-validation-messages.html Form validation
> messages
>
> Form form = new Form("f");
> ....
> final TextField percentage = new TextField("percentage", percentageModel,
> Integer.class);
>        percentage.add(new NumberValidator.MinimumValidator(1));
>        percentage.add(new NumberValidator.MaximumValidator(100));
>        form.add(percentage);
>
> .....properties
> f.percentage.NumberValidator.MinimumValidator=Il valore del campo deve
> essere compreso tra 1 e 100
> f.percentage.NumberValidator.MaximumValidator=Il valore del campo deve
> essere compreso tra 1 e 100
>
> How can force always the same error message?
> f.percentage=Il valore del campo deve essere compreso tra 1 e 100
>
>
> --
> View this message in context: 
> http://www.nabble.com/How-can-force-always-the-same-error-message--tp18772519p18772519.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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

Reply via email to