Why not let you child components override isEnabled() and have part of the logic in it check if their parent is enabled?
On Thu, Feb 19, 2009 at 11:25 PM, taha siddiqi <tawushaf...@gmail.com>wrote: > Hi, > > I think I resolved it. I used FormComponentPanel.onRender( MarkupStream ) > > regards > tawus > > On Fri, Feb 20, 2009 at 10:42 AM, taha siddiqi <tawushaf...@gmail.com> > wrote: > > Hi, > > > > I have a FormComponentPanel with child components and i need to > > disable the children when FormComponentPanel is disabled( isEnabled() > > == false ). > > I can do that in onBeforeRender() but the problem is that I have to > > take the decision on whether to disable the FormComponentPanel in my > > IComponentOnBeforeRenderListener.beforeRender() and as this function > > is called after FormComponentPanel.onBeforeRender() I am not able > > to disable the child components. > > > > Please help > > > > thanks in advance > > tawus > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Jeremy Thomerson http://www.wickettraining.com