Hi, it is me again :)

Again with some 'service trouble' ...

An IExternalPage is called from the browser.

in pageValidate (defined in MyBasePage only, all other pages are extending this 
page), I notice, that a login is required an therefor I redirect to the Login 
page:

throw new PageRedirectException(getLoginPage()) ;

-> now the pageValidate of Login.page is called and

logger.info("service:"+getRequestCycle().getService().getName()) ;

writes 'external' into the log (or an exception is thrown stating Login.page 
did not implement IExternalPage :) ).

In my understanding this should be 'page' ? Or is PageRedirectException(login) 
internally forwarding to the new page without refreshing the requestCycle() 
(also tried event.getRequestCycle(), getPage().getRequestCycle()).

I need the actual service the login-page is rendered with because I want to 
build a url using the services getLink() method.

So, does anyone know how to distinguish the services the right way ?

Would be great to get some feedback, I am browsing the docs / hacking my code 
for hours now to find a better solution to get the actual service. But till now 
I did not found one :(

Thank you in advance !

Bye, 
Gerald

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to