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:
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
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
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 :
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