Thank you, I ended up doing it client-side, but I appreciate the feedback,
I'm sure it will be useful in another moment.

Cheers,
Xavier

2010/3/16 Igor Vaynberg <igor.vaynb...@gmail.com>

> you can override onbeforerender, call super first, then iterate over
> the children and do what you need to.
>
> -igor
>
> On Tue, Mar 16, 2010 at 6:44 AM, Xavier López <xavil...@gmail.com> wrote:
> > Hi,
> >
> > I have a ListView that build up a list of checks. These Checks have all
> to
> > be enabled or disabled depending on a bean's property. That property is
> > binded to a general checkbox (outside the listview). When the user
> changes
> > the selection on the main checkbox, the ones in the listview
> enable/disable.
> > Now, I see that I can't use the same method I use in the Ajax Behavior,
> > because at constructor time, the ListView has not been populated yet.
> >
> > Is there a way to invoke a method after ListView' s onPopulate() ?
> > Is it a better approach to override isEnabled() on those Checks ? The
> bean
> > holding the property to decide it is large, I think I should use a binded
> > model in this case (getModel().bind("generalProperty"), or the
> propertyModel
> > from the general checkbox).
> >
> > Thanks,
> > Xavier
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
"Klein bottle for rent--inquire within."

Reply via email to