Trying adding <binding name="stateful" expression="false"/>
What's happening is that on your initial page of your application, there's no HttpSession (it gets created on demand). However, ActionLink and DirectLink require that there is an HttpSession and throw StaleLinkException if there isn't one ... unless you set stateful to false. This is generally only an issue on the Home page of an application, since almost anything interesting your do subsequently will store some server-side state, and thus create a session. -- [EMAIL PROTECTED] http://tapestry.sf.net > Hi, > > I searched the archives for this problem I'm having, but didn't see > anything. Maybe someone could help. > > I have a simple page that contains an action method. It seems that every > time I invoke a ActionLink, my session immediately times out. Using > DirectLink has the identical behavior, but PageLinks work as advertised. Am > I missing something simple? > > Thanks, > Eric > > In my .java: > > public void myAction(IRequestCycle cycle) { > > SomePage nextPage = > (SomePage) cycle.getPage("SomePage"); > > .... > > cycle.setPage(nextPage); > } > > In my .page: > > <component id="invokeMyAction" type="ActionLink"> > <binding name="listener" expression="listeners.myAction"/> > </component> > > In my .html: > > <a jwcid="invokeMyAction">Do Something</a> > > > > ********************************************************************** > This message, including any attachments, contains confidential information > intended for a specific individual and purpose, and is protected by law. If you > >are not the intended recipient, please contact sender immediately by reply > e-mail and destroy all copies. You are hereby notified that any disclosure, > copying, or distribution of this message, or the taking of any action based on > it, is strictly prohibited. > TIAA-CREF > ********************************************************************** > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
