Re: How to prevent rendering of unauthorized components?

2010-07-19 Thread Pedro Santos
Hi Martin, I'm suspect answering this question, because I like the current design that treat authorization restriction as an exception. You can override the logRuntimeException method on your app RequestCycle and implement rules to hide the authorization exception from the log. About to have an

Re: How to prevent rendering of unauthorized components?

2010-07-19 Thread Martin Makundi
I am not rendering the page.. wicket is. Probably user has bookmarked a page and logged off and tries to log in again using the bookmark... or something. Really quite strange and I think wicket should take care of it transparently without exception. ** Martin 2010/7/19 Pedro Santos

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread nino martinez wael
Hmm do you end up with an exception or? 2010/7/15 Martin Makundi martin.maku...@koodaripalvelut.com Hi! I would like to avoid this error, to prevent the render alltogether. How can I do that? 2010-07-15 17:15:52,117 75919560 [24056...@qtp-13963314-568] ERROR RequestCycle - Component

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Martin Makundi
I get this exception.. I don't want it ;] I want wicket to serve onunauthorizedaccess page. ** Martin 2010/7/16 nino martinez wael nino.martinez.w...@gmail.com: Hmm do you end up with an exception or? 2010/7/15 Martin Makundi martin.maku...@koodaripalvelut.com Hi! I would like to avoid

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread nino martinez wael
I would have thought that wicket auth would pick it up and intercept the request in the request cycle and redirect.. Aparrently the last bit(redirecting) are missing.. You should be able to implement this yourself.. I know this is vague. I'd start by looking in the source of wicket auth.. regards

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Martin Makundi
Do you have an idea where the leak occurs so I can prevent this? ** Martin 2010/7/16 nino martinez wael nino.martinez.w...@gmail.com: I would have thought that wicket auth would pick it up and intercept the request in the request cycle and redirect.. Aparrently the last bit(redirecting) are

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Pedro Santos
Hi Martin, the AuthorizationException handle mechanism that redirect response to the AccessDeniedPage is implemented at AbstractRequestCycleProcessor response method. You can set the onunauthorizedaccess page at the accessDeniedPage property on the ApplicationSettings. I don't understand what do

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Martin Makundi
Hi! This is what I have: /** * @see org.apache.wicket.RequestCycle#onRuntimeException(org.apache.wicket.Page, java.lang.RuntimeException) */ @Override public Page onRuntimeException(Page page, RuntimeException e) { if ((e instanceof PageExpiredException)

How to prevent rendering of unauthorized components?

2010-07-15 Thread Martin Makundi
Hi! I would like to avoid this error, to prevent the render alltogether. How can I do that? 2010-07-15 17:15:52,117 75919560 [24056...@qtp-13963314-568] ERROR RequestCycle - Component [Page class = com.mycompany.application.view.application.MainPage, id = 0, version = 3, ajax = 1] does not