You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Øyvind Harboe <oy...@zylin.com> on 2005/08/15 09:03:30 UTC

Why does @PageLink cause session not to be created?

I'm getting "Stale Session error" if I add a @PageLink to the top of the
page.

The problem appears to be that @PageLink stops a session from being created when a 
session does not exist. 

If a session already exists when I activate the page, @PageLink is rendered correctly 
with a jsession in the query string and everything works correctly.

If I add the @PageLink to the bottom of the HTML page such that an @ActionLink which 
requires a session is rendered first, then things also work correctly.

How do I ensure that a session is created if a session does not already exist?

What part of the documentation did I not read?


Complete example:

http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-user/200508.mbox/%3c1123838585.9517.38.camel@localhost.localdomain%3e


Any help on this newbie question is greatly appreciated.

-- 
Øyvind Harboe
http://www.zylin.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org