See http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html
You need to return an ILink from your listener to cause a change to the url - otherwise, the url describes a directr link and triggeres the method everytime you refresh On Wed, Jan 7, 2009 at 7:38 AM, kk4Nabble <[email protected]> wrote: > > Hi all, > I am using tapestry 4.1.1 > > > > Click here > In the above code , mymethod which is a listener method is called when u > click on that link which says "click here" and it takes to new page.. > In the method mymethod i have created new object ,also this method calls > more methods. > > But when u refresh this page..this mymethod is again called.. > > Is nt it that it should be called only onclick of that direct link.. > Why is it calling the listener method each time the page refreshed? > > Is it a bug or expected behaviour of directlink? > > > -- > View this message in context: > http://www.nabble.com/Problem-with-direct-link-tp21325266p21325266.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Andreas Andreou - [email protected] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
