You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sergio García <sg...@denodo.com> on 2007/11/29 11:51:02 UTC
Form componen validation on invisible components
Hi,
I have a form with three WebMarkupContainers that show/hide some parts of
the form. Inside the form there are three buttons used to change
WebMarkupConatiners visibility. I need validation when the user press submit
button, but visitor for form components does not check validation when the
component is hidden. ¿Any solutions?
--
View this message in context: http://www.nabble.com/Form-componen-validation-on-invisible-components-tf4896386.html#a14023391
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: Form componen validation on invisible components
Posted by Alex Objelean <al...@isdc.ro>.
You can do it in the following way:
1) Pure client side js handling
2) Using Ajax to update the components you are interested in.
Sergio García wrote:
>
>
>
> Alex Objelean wrote:
>>
>> There is a difference between a hidden component and invisible component.
>> When component is not visible, it's markup is not rendered, thus the
>> component is not validated. On the other hand, the hidden (in terms of
>> css: visibility='hidden') means that markup is rendered and validated.
>>
>> Regards,
>> Alex.
>>
>>
>
> Thanks. And, in wicket terms, ¿how can i make the textField within a
> WebMarkupContainer hidden when a button is pressed? ¿Can I change
> WebMarkupContainer css visibility from Wicket Java code?
>
>
--
View this message in context: http://www.nabble.com/Form-componen-validation-on-invisible-components-tf4896386.html#a14024774
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: Form componen validation on invisible components
Posted by Sergio García <sg...@denodo.com>.
Alex Objelean wrote:
>
> There is a difference between a hidden component and invisible component.
> When component is not visible, it's markup is not rendered, thus the
> component is not validated. On the other hand, the hidden (in terms of
> css: visibility='hidden') means that markup is rendered and validated.
>
> Regards,
> Alex.
>
>
Thanks. And, in wicket terms, ¿how can i make the textField within a
WebMarkupContainer hidden when a button is pressed? ¿Can I change
WebMarkupContainer css visibility from Wicket Java code?
--
View this message in context: http://www.nabble.com/Form-componen-validation-on-invisible-components-tf4896386.html#a14024582
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: Form componen validation on invisible components
Posted by Alex Objelean <al...@isdc.ro>.
There is a difference between a hidden component and invisible component.
When component is not visible, it's markup is not rendered, thus the
component is not validated. On the other hand, the hidden (in terms of css:
visibility='hidden') means that markup is rendered and validated.
Regards,
Alex.
Sergio García wrote:
>
> Hi,
>
> I have a form with three WebMarkupContainers that show/hide some parts of
> the form. Inside the form there are three buttons used to change
> WebMarkupConatiners visibility. I need validation when the user press
> submit button, but visitor for form components does not check validation
> when the component is hidden. ¿Any solutions?
>
--
View this message in context: http://www.nabble.com/Form-componen-validation-on-invisible-components-tf4896386.html#a14023754
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