Yes if you implement IFormModelUpdateListener and add a form validator in
form.

On Mon, Apr 11, 2011 at 11:01 AM, Chris Colman <chr...@stepaheadsoftware.com
> wrote:

> What if I want the Panel containers to have their own updateModel and
> validate methods? Will those methods be called on a class I derive from
> Panel?
>
> >-----Original Message-----
> >From: Pedro Santos [mailto:pedros...@gmail.com]
> >Sent: Monday, 11 April 2011 11:54 PM
> >To: users@wicket.apache.org
> >Subject: Re: Form composed of Panel components
> >
> >Form will process nested form components regardless of the web markup
> >container component you used to group them.
> >
> >On Mon, Apr 11, 2011 at 10:46 AM, Chris Colman
> ><chr...@stepaheadsoftware.com
> >> wrote:
> >
> >> I can't derive my Panels from FormComponentPanel because a strict
> >> inheritance hierarchy of Panels is already in place. I've started
> >> playing around with the Panels in question implementing
> >> IFormVisitorParticipant and IFormModelUpdateListener and this seems
> to
> >> be at least calling the validate and updateModel methods in my Panels
> >> now - I think plain vanilla Panels are ignored by the Form processing
> >> mechanism unless they implement these interfaces?
> >>
> >> >-----Original Message-----
> >> >From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no]
> >> >Sent: Monday, 11 April 2011 11:11 PM
> >> >To: users@wicket.apache.org
> >> >Subject: RE: Form composed of Panel components
> >> >
> >> >Look into org.apache.wicket.markup.html.form.FormComponentPanel<T>
> >> >
> >> >- Tor Iver
> >> >
> >> >-----Original Message-----
> >> >From: Chris Colman [mailto:chr...@stepaheadsoftware.com]
> >> >Sent: 11. april 2011 15:08
> >> >To: users@wicket.apache.org
> >> >Subject: Form composed of Panel components
> >> >
> >> >I have a complex form that I choose to break down into logical sub
> >> Panel
> >> >components and then add them as children to the Form.
> >> >
> >> >The sub Panels themselves then have FormComponents like text fields
> and
> >> >DropDownChoice components added to them. Will the normal
> >> validate/update
> >> >mechanism simply work like that or do I need to override some
> methods
> >> in
> >> >my Panel classes or make the Panel classes implement certain
> interfaces
> >> >(eg., IFormVisitorParticipant etc.,)?
> >> >
> >> >Chris Colman
> >> >
> >> >
> >>
> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >--
> >Pedro Henrique Oliveira dos Santos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to