Re: Form Validation / Field visibility
Got it. Thank you! Em 3 de nov de 2016 20:35, "Sven Meier"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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Form Validation / Field visibility
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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Form Validation / Field visibility
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. -- Marcel Barbosa Pinto 55 11 98255 8288