You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by bytenotes <fl...@bytenotes.com> on 2008/02/23 13:18:33 UTC

Custom validation message for 'int'?

I cannot seem to find a way to provide a custom validation message for 'int'.
(I learned for most others).

'-' is not a valid int.

fieldName.int does not work
fieldName.Integer does not work
fieldName.Number does not work

fieldName.NumberValidator.range works but it's a different message.

Thanks.
-- 
View this message in context: http://www.nabble.com/Custom-validation-message-for-%27int%27--tp15651406p15651406.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Custom validation message for 'int'?

Posted by Kent Tong <ke...@cpttm.org.mo>.

florin.g wrote:
> 
> I cannot seem to find a way to provide a custom validation message for
> 'int'. (I learned for most others).
> fieldName.int does not work
> fieldName.Integer does not work
> fieldName.Number does not work
> 

fieldName.int is the one to use. Make sure you have reloaded your app.
Otherwise, post 
your code.

-----
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: http://www.nabble.com/Custom-validation-message-for-%27int%27--tp15651406p15652102.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Custom validation message for 'int'?

Posted by Kent Tong <ke...@cpttm.org.mo>.

florin.g wrote:
> 
> I cannot seem to find a way to provide a custom validation message for
> 'int'. (I learned for most others).
> fieldName.int does not work
> fieldName.Integer does not work
> fieldName.Number does not work
> 

fieldName.int


-----
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: http://www.nabble.com/Custom-validation-message-for-%27int%27--tp15651406p15652093.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org