Got it. Thank you!

Em 3 de nov de 2016 20:35, "Sven Meier" <[email protected]> escreveu:

> Hi,
>
> your *IForm*Validator complains about some of its dependent components
> being invisible. So no need to remove any validators.
>
> Your IFormValidator's getDependentFormComponents() should only return
> visible components.
>
> Have fun
> Sven
>
>
> Am 03.11.2016 um 21:40 schrieb Marcel Barbosa Pinto:
>
>> Hello,
>>
>> I have a form which has some fields with validation attached to them.
>> When the user authenticates I hide some form elements.
>>
>> When the form is submitted I receive a Warn log entry:
>>
>> o.a.wicket.markup.html.form.Form - IFormValidator in form `form` depends
>> on
>> a component that has been removed from the page or is no longer visible.
>> Offending component id `email`.
>>
>> Should I always manually remove the validators from the components when
>> hiding them?
>>
>> Thanks.
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to