setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Hi, Is it a valid behavior that setRenderAllowed(...) method is called for invisible components (components that are not visible in hierarchy). I have a use case with DataView component displaying list of links. When I hide this DataView (eg. by setting dataView.setVisible(false)) then for each

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Wicket 1.4.18 On Mon, Sep 5, 2011 at 12:29 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, Is it a valid behavior that setRenderAllowed(...) method is called for invisible components (components that are not visible in hierarchy). I have a use case with DataView component displaying list

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Andrea Del Bene
Hi, I'm not completely sure, but setRenderAllowed is called to check rendering authorization, so it should be called also on invisible components. Wicket 1.4.18 On Mon, Sep 5, 2011 at 12:29 PM, Daniel Stochdaniel.st...@gmail.com wrote: Hi, Is it a valid behavior that

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Hi, Yes, it should be called also on invisible components, but only when it is any chance that these components can be rendered. If one of theirs parents are not visible, then such component will not be rendered. In my scenario DataView is visible only when dataView.getItemCount() 0. But it