I thought it better to reply here, so everyone can find it back later :)

As said before by default any self especting authorization strategy
will redirect to a login page if it detects that the user is not
authorized for the page / component currently being created. So the
trick is to make sure that error pages like PageExpiredErrorPage are
always authorized, how to do that depends on the framework of your
choice.

In the case of wicket-auth-roles there are potentially 2 places this happens:
AnnotationsRoleAuthorizationStrategy#isInstantiationAuthorized
MetaDataRoleAuthorizationStrategy#isInstantiationAuthorized

I suggest placing a breakpoint in both places and step through to see
what is denying the pageexpiredpage to instantiate.

Also if you are building custom errorpages it always is a good idea to
override isErrorPage to return true. (could not tell if that is what
you are doing, but just in case)

As for documentation for wicket-auth-roles: i am only aware of
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html which
has a slightly different focus then what you need :)
of course you could always check the examples.

Maurice

On Wed, Jun 4, 2008 at 1:50 AM, mfs <[EMAIL PROTECTED]> wrote:
>
> I am facing a similar issue, can someone direct me to right documentation, as
> to how to redirect to sessionExpiredPage instead of login page if session
> has expired..
>
>
>
> jd17 wrote:
>>
>> Hi Maurice,
>> thanks for your quick response. I have tested quite a bit this morning and
>> in most cases, the PageExpired page is being instantiated and redirected
>> to on timeouts, but in other cases, it is not. I do not understand the
>> exact circumstances, but I don't think the security strategy settings play
>> a role because otherwise, I would not see the PageExpired page at all.
>> José
>>
>>
>> Mr Mean wrote:
>>>
>>> Looks like your security strategy is not allowing your pageexpired
>>> page to be instantiated.
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/setPageExpiredErrorPage%28PageExpired.class%29--%3E-Login-page-loaded-instead-of-PageExpired-page-tp17596262p17636338.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]
>
>

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

Reply via email to