Re: How to enable/disable an hierarchy?

2010-12-01 Thread Einar Bjerve
Using onConfigure doesn't help much. If I disable the common parent, and call setEnabled in onConfigure in the few components I want visible, the components will still be disabled during the rendering phase because onComponentTag calls isEnabledInHierarchy. I could override onConfigure in every

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Wilhelmsen Tor Iver
I could override onConfigure in every component, and read the field that controls the enabling/disabling, but that would create a lot of boilerplate code for the 80-90% of FormComponents/links that should be disabled. It would be a lot cleaner to disable the parent, and only handle the ones I

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Einar Bjerve
Thanks, finally got it to work. By overriding parentPanel.onBeforeRender(), and visit the children I was able to enable/disable child components. It is important to call super.onBeforeRender() before visiting children to populate the ListView first. I could not use onConfigure() because some of

Re: How to enable/disable an hierarchy?

2010-11-30 Thread Igor Vaynberg
have a field in the page that controls whether or not these components should be enabled/disabled, then override their onconfigure() methods and setenable/disabled based on the field. -igor On Tue, Nov 30, 2010 at 3:17 PM, Einar Bjerve einar.bje...@gmail.com wrote: Hi all, How can we