Thanks, I searched through the Wicket source until I found WebRequest
& WebResponse.  Now I'm set...

public void onClick() {
  getWebResponse().addCookie(new Cookie("foo", "bar"));
  setResponsePage(new CookiePage());
}

public CookiePage() {
  String value = "";

  for (Cookie c : getWebRequest().getCookies())
    if (c.getName().equals("foo"))
      value = c.getValue();

  this.add(new Label("cookieInfo", value));
}

On 10/18/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Depends on what exactly you want to do.
> FormComponent.setPersisent(true) will "save" the forms value in a
> cookie and load it into the same FormComponent when the user reloads
> the page (login page: rememberMe). This approach doesnt require any
> cookie knowledge from users. If you need some thing else than get the
> servlet response object and handle the cookie yourself. No magic about
> it.
>
> Juergen
>
> On 10/19/06, Scott Swank <[EMAIL PROTECTED]> wrote:
> > I've searched the wiki & email list to no avail.  Does Wicket provide
> > any APIs for manipulating cookies?
> >
> > Thanks once again.
> >
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a
dictatorship in order to safeguard a revolution; one makes the
revolution in order to establish the dictatorship. The object of
persecution is persecution. The object of torture is torture. The
object of power is power.  -- George Orwell, 1984

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to