Re: [Wicket-user] cookies

2007-01-08 Thread Loren Rosen
I'm writing this up as a 'how-to' topic for the wiki, and I've got a few questions. First, assuming the addCookie call is inside something inheriting from WebPage, it seems you need to first call getWebRequestCycle in order to get the WebRequest and WebResponse:

Re: [Wicket-user] cookies

2007-01-08 Thread Igor Vaynberg
On 1/8/07, Loren Rosen [EMAIL PROTECTED] wrote: I'm writing this up as a 'how-to' topic for the wiki, and I've got a few questions. First, assuming the addCookie call is inside something inheriting from WebPage, it seems you need to first call getWebRequestCycle in order to get the WebRequest

Re: [Wicket-user] cookies

2006-10-19 Thread Juergen Donnerstag
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

Re: [Wicket-user] cookies

2006-10-19 Thread Scott Swank
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 :

[Wicket-user] cookies

2006-10-18 Thread Scott Swank
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