Hello,
I've found howto set a cookie.
I come to you to know more about why setting the cookie in renderPage()
works, but not in beginPageRender() ??
Thanks
Cyrille
=================
I put my little code here, to archive it in Internet ;-)
public abstract class Home extends BasePage
{
@Override
public void renderPage( ResponseBuilder builder, IRequestCycle cycle )
{
super.renderPage( builder, cycle );
setCookie("TestCookie", "789");
}
@InjectObject("infrastructure:cookieSource")
public abstract CookieSource getCookieSource();
void setCookie( String name, String value )
{
getCookieSource().writeCookieValue(name, value);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]