I'm trying to implement credentials memory functionality for a login form using cookies. I know there's an official example (http://wicketstuff.org/wicket13/signin2/?x=7*:org.apache.wicket.examples.signin2.SignIn2) however it simply delegates to some panel which is not available as source on the page. So anyway, it should be simple, and all works great except that I can not get the password field to get filled out upon page load. In my constructor of my panel I do the following:

Cookie credentials = ((WebRequest)getRequestCycle().getRequest()).getCookie("credentials");
       remember = credentials != null;
       if(remember){
           String[] credentialParts = credentials.getValue().split(":");
           username = credentialParts[0];
           password = credentialParts[1];
       }

The fields username and password of the panel are bound to the form using a CompoundPropertyModel. When I sniff request and response headers, I can see that indeed the cookie info is sent around fine. I guess it has to do with security somehow, but shouldn't this be possible even if I am using a PasswordTextField?

Thanks in advance,
Casper

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

Reply via email to