On behalf of Pedro Sans:

Are u using the Wicket 1.4? I think it is related to
https://issues.apache.org/jira/browse/WICKET-3269 We improved text
components to respect the convertEmptyInputStringToNull property regardless
of the form component type in 1.5

On Tue, Mar 15, 2011 at 2:40 PM, vov <vov...@mail.ru> wrote:

> After submitting a form:
>
> add(new Form("form") //
>        .add(new TextField("text", new Model(), String.class) //
>            .add(EmailAddressValidator.getInstance())))
>
> with empty field the fallowing error occur:('' is not a valid email
> address.)
>
> Without setting type for TextField - all fine
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Set-FormComponent-Type-and-EmailValidator-tp3356588p3356588.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to