Why in #onBeginRequest() ?
This way your code will be called for every request. I guess this
logic should be invoked only after submittion of a Form with POST
method. Or if you use some kind of http client to make the requests to
your page.

On Fri, Mar 16, 2012 at 3:10 PM, Sven Hohage <sven.hoh...@googlemail.com> wrote:
> I've changed to 1.5 to implement your advice.
>
> My actual try is (inside application->init()):
>
> getRequestCycleListeners().add(new AbstractRequestCycleListener() {
>
>                        @Override
>                        public void onBeginRequest(RequestCycle rc) {
>                                StringValue uservalue =
> rc.get().getRequest().getPostParameters().getParameterValue("user");
>                                StringValue tokenvalue =
> rc.get().getRequest().getPostParameters().getParameterValue("token");
>                                if (tokenvalue != null && uservalue != null) {
>                                        
> SecurityHandler.tokenLogin(uservalue.toString(), tokenvalue.toString());
>                                }
>                        }
>
>
> Unfortunately I always got null.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



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

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

Reply via email to