wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Wicket Ajax and Session expiry
Date Mon, 03 Sep 2012 14:32:01 GMT
On Mon, Sep 3, 2012 at 4:27 PM, Arjun Dhar <dhar_ar@yahoo.com> wrote:
> Yess!
>
> I found the an implementation of IAuthorizationStrategy and in the Site
> Application I do:
> getSecuritySettings().setAuthorizationStrategy(authStrategy);
>
> I built an Annotation, where all pages using that annotation are mapped to
> the Authorization Strategy. Its all come back on that front thanks.
>
> However, the Auth Strategy is on the WebPage's. How are the Ajax Links and
> components protected?

     public void onUnauthorizedInstantiation(Component component) {

As you see it is actually on Component, rather than on a Page.

> Furthermore I have :
>
>
> ..The redirection works well for Web-Pages, but for Ajax calls on failure
> goes to Site landing page which is not consistent with the code above.
>
> So on the Ajax Front I'm still not clear.

Attach the debugger and see what happens.

>
>
>
> -----
> Software documentation is like sex: when it is good, it is very, very good; and when
it is bad, it is still better than nothing!
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-and-Session-expiry-tp4651715p4651717.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message