why comes it in an infinite loop??

i think one is protected because that one has an alternative isVisibleInHierarchy()


johan



On 10/26/06, ChuckDeal <[EMAIL PROTECTED]> wrote:

I am defining a panel, which is visible only if at least one of its children
is visible.  So, it's isVisble() method calls visitChildren() with a visitor
that returns true as soon as it finds a visible child or null otherwise.
This worked until I started using an AuthorizationStrategy, now I also need
to check isRenderAllowed(), but it is protected.  I looked at
isVisibleInHierarchy(), but it goes through the component's ancestors and,
in my case, causes an infinite loop.

So, why is isRenderAllowed() protected when isEnabledAllowed() is public?

or maybe a better question

Is there a better way to do this visibility check?

Thanks
Chuck
--
View this message in context: http://www.nabble.com/why-is-isRenderAllowed%28%29-protected--tf2514044.html#a7011351
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to