You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edi <ed...@yahoo.com> on 2007/08/13 10:07:53 UTC
Import Validation using wicket
Hello,
I am the newbie.
I have one field. how can i notified whether the entered text is wrong.
for. eg. i have int type texbox. But i entered only string.
in this situation, i have to display "the entered value should be an
integer."
how to identify range between numbers.
Thanks.
--
View this message in context: http://www.nabble.com/Import-Validation-using-wicket-tf4259777.html#a12122407
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: Import Validation using wicket
Posted by Eelco Hillenius <ee...@gmail.com>.
> I saw that example,
>
> But I am not able to understand fully.
>
> Pls explain.
When you do:
new TextField("foo", model, Integer.class);
then Wicket will check that input can safely be converted to an
integer. With the current version of Wicket, you don't even need to
provide the Integer argument if your model implements
IObjectClassAwareModel (property models for instance do).
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Import Validation using wicket
Posted by Edi <ed...@yahoo.com>.
I saw that example,
But I am not able to understand fully.
Pls explain.
Crash_neo wrote:
>
> Have you checked out the examples?
> http://www.wicket-library.com/wicket-examples/
> all kinds of validators are mentioned here
>
> Thijs
> Edi wrote:
>> Hello,
>> I am the newbie.
>> I have one field. how can i notified whether the entered text is wrong.
>> for. eg. i have int type texbox. But i entered only string.
>>
>> in this situation, i have to display "the entered value should be an
>> integer."
>>
>> how to identify range between numbers.
>>
>> Thanks.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Import-Validation-using-wicket-tf4259777.html#a12138772
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: Import Validation using wicket
Posted by Thijs <cr...@mytweakers.net>.
Have you checked out the examples?
http://www.wicket-library.com/wicket-examples/
all kinds of validators are mentioned here
Thijs
Edi wrote:
> Hello,
> I am the newbie.
> I have one field. how can i notified whether the entered text is wrong.
> for. eg. i have int type texbox. But i entered only string.
>
> in this situation, i have to display "the entered value should be an
> integer."
>
> how to identify range between numbers.
>
> Thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org