I have a component whose parent does this:
class Parent extends Panel
private Component child;
onBeforeRender()
{
child.setVisibilityAllowed(false);
super.onBeforeRender();
}
I would expect child's onBeforeRender() to not be executed but it is,
because Component.internalBeforeRender calls isVisible() rather than
determineVisibility().
Is that by design? If so, why?
If this is a bug, should the following line in
Component.internalBeforeRender():
if ((isVisible() || callOnBeforeRenderIfNotVisible()) &&
!getFlag(FLAG_RENDERING) &&
!getFlag(FLAG_PREPARED_FOR_RENDER))
be this:
if ((determineVisibility() || callOnBeforeRenderIfNotVisible())
&&
!getFlag(FLAG_RENDERING) &&
!getFlag(FLAG_PREPARED_FOR_RENDER))
thanks
-nikita
-----
----------------
Nikita Tovstoles
vside.com
----------------
--
View this message in context:
http://www.nabble.com/isVisibilityAllowed%28%29-not-consulted-before-calling-onBeforeRender%28%29--tp20651326p20651326.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]