Try adding
<binding name="stateful" expression="false"/>
so it ends like this:
<component id="invokeMyAction" type="ActionLink">
<binding name="listener" expression="listeners.myAction"/>
<binding name="stateful" expression="false"/>
</component>
As is stated in the documentation ActionLink requires a "state" to
be present by default, and adding the stateful parameter setting it to
false you tell it to operate statelessly.
(I guess)
SE> Hi,
SE> I searched the archives for this problem I'm having, but didn't see
SE> anything. Maybe someone could help.
SE> I have a simple page that contains an action method. It seems that every
SE> time I invoke a ActionLink, my session immediately times out. Using
SE> DirectLink has the identical behavior, but PageLinks work as advertised. Am
SE> I missing something simple?
SE> Thanks,
SE> Eric
SE> In my .java:
SE> public void myAction(IRequestCycle cycle) {
SE> SomePage nextPage =
SE> (SomePage) cycle.getPage("SomePage");
SE> ....
SE> cycle.setPage(nextPage);
SE> }
SE> In my .page:
SE> <component id="invokeMyAction" type="ActionLink">
SE> <binding name="listener" expression="listeners.myAction"/>
SE> </component>
SE> In my .html:
SE> <a jwcid="invokeMyAction">Do Something</a>
SE> **********************************************************************
SE> 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
SE> 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,
SE> is strictly prohibited.
SE> TIAA-CREF
SE> **********************************************************************
SE> -------------------------------------------------------
SE> This sf.net email is sponsored by:ThinkGeek
SE> Welcome to geek heaven.
SE> http://thinkgeek.com/sf
SE> _______________________________________________
SE> Tapestry-developer mailing list
SE> [EMAIL PROTECTED]
SE> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
--
Saludos,
Pablo mailto:[EMAIL PROTECTED]
-------------------------------------------------------
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