Re: Disabled drop down do not pass required validator.

2013-09-04 Thread Martin Grigorov
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 cosmind...@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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Disabled drop down do not pass required validator.

2013-09-04 Thread cosmindumy
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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org