You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dan12321 <we...@centrum.cz> on 2012/03/01 17:54:59 UTC
Re: wicket - check if user is logged (call method in every access
to server)
Thanks for help.
I try it and I create annotations for classes, that can reject access for
user without permissions and user is redirected to LoginPage.
But I do not know if it is possible create annotation for methods. If I
click on ajax link, same ajax method is called. It is possible to create
annotation for the method? To reject access to method and method do not be
executed and user will be redirected to LoginPage?
How can create it? How it will be register in my application?
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-check-if-user-is-logged-call-method-in-every-access-to-server-tp4431837p4435542.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
Re: wicket - check if user is logged (call method in every access to server)
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
This is not directly supported by the auth strategies.
A callback method (like onClick) cannot be executed for invisible or
disabled components/behaviors. So if the auth strategy forbid the
component then the component itself and all its behaviors wont be
reachable in the next request.
On Thu, Mar 1, 2012 at 6:54 PM, Dan12321 <we...@centrum.cz> wrote:
> Thanks for help.
> I try it and I create annotations for classes, that can reject access for
> user without permissions and user is redirected to LoginPage.
>
> But I do not know if it is possible create annotation for methods. If I
> click on ajax link, same ajax method is called. It is possible to create
> annotation for the method? To reject access to method and method do not be
> executed and user will be redirected to LoginPage?
>
> How can create it? How it will be register in my application?
> Thanks.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-check-if-user-is-logged-call-method-in-every-access-to-server-tp4431837p4435542.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