Probably you need a getter on your ASO returning an IActionListener-instance which calls your method. Then you can say <a jwcid="@DirectLink" listener="ognl:myStateObject.someMethod" parameters="ognl:somevalue">
with : class YourStateObjectClass { IActionListener getSomeMethod() { return new IActionListener() { ... } } > -----Original Message----- > From: Willem van Asperen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 06, 2006 3:35 PM > To: tapestry-user@jakarta.apache.org > Subject: DirectLink listening to session state method > > > Hi All, > > Is there a way to create an @DirectLink that listens to a > method on a state object that I have in my session? > > What I would like to do is: > > <a jwcid="@DirectLink" listener="myStateObject.someMethod" > parameters="ognl:somevalue"> > > Here the someMethod method returns a string with the name of > the 'next' page. > > Thanks, > > Willem van Asperen > > PA Consulting Group > Innovation. Responsiveness. Delivery. > Coltbaan 33 > P.O. Box 1043 > 3430 BA Nieuwegein > The Netherlands > http://www.paconsulting.com/ > > DISCLAIMER: This document should only be read by those > persons to whom it is addressed and is not intended to be > relied upon by any person without subsequent written > confirmation of its contents. PA Consulting Group disclaims > all responsibility and accepts no liability (including in > negligence) for the consequences of any person acting, or > refraining from acting, on such information prior to the > receipt by those persons of subsequent written confirmation. > If you have received this e-mail message in error, please > notify us immediately by telephone on +31302829600. Please > also destroy and delete the message from your computer. Any > form of reproduction, dissemination, copying, disclosure, > modification, distribution and/or publication of this e-mail > message is strictly prohibited. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]