Maybe org.apache.wicket.markup.html.form.FormComponent.isInputNullable()
which is overridden by
org.apache.wicket.markup.html.form.AbstractTextComponent.isInputNullable()

On Fri, Jun 3, 2011 at 12:00 PM, Alexandros Karypidis <akary...@yahoo.gr> wrote:
> Hello,
>
> 1) I have a custom validator that implements INullAcceptingValidator.
> 2) A TextField component in my form has validator (1) attached to it and is
> setRequired(false).
> 3) When I submit my form with the text input empty, the validator does NOT
> get called. It only gets called if there is a value with the HTML input
> field.
>
> I was expecting that the validator would be invoked upon submission even if
> the text field is empty, in order to validate tha value "null". At least
> this is what I understand as far as INullAcceptingValidator goes. However,
> this does not appear to happen. Instead, Wicket goes on to call the form's
> onSubmit() method with the value "null" inside my model.
>
> What am I missing?
>
> ---------------------------------------------------------------------
> 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

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

Reply via email to