You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2013/09/04 10:04:30 UTC
Disabled drop down do not pass required validator.
Hello,
I have drop down with a required validator.
My form is not auto processed and I do the validation call.
If the field is disabled, the required valitator fails which I do not want.
A workaround was to override the method isInputNullable to return false.
Is this safe?
Or is there a better solution?
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabled-drop-down-do-not-pass-required-validator-tp4661187.html
Sent from the Users forum 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: Disabled drop down do not pass required validator.
Posted by cosmindumy <co...@yahoo.com>.
Thanks for response.
Seems that best solution is replicate wicket behaviour. To validate only if
is enabled and visible.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabled-drop-down-do-not-pass-required-validator-tp4661187p4661190.html
Sent from the Users forum 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: Disabled drop down do not pass required validator.
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
If a form component is disabled then the browser doesn't send its value to
the server.
On Wed, Sep 4, 2013 at 11:04 AM, cosmindumy <co...@yahoo.com> wrote:
> Hello,
> I have drop down with a required validator.
> My form is not auto processed and I do the validation call.
> If the field is disabled, the required valitator fails which I do not want.
> A workaround was to override the method isInputNullable to return false.
> Is this safe?
> Or is there a better solution?
> Thanks.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Disabled-drop-down-do-not-pass-required-validator-tp4661187.html
> Sent from the Users forum 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
>
>