The following is in Tapestry 4.1 (if the component references don't give it away).
I have an application which generates and renders a section of links on the page based on some other selected (DirectLink) link. The problem I am having is the new links must submit the form in order to accomplish their functionality. I have tried to accomplish this one of two ways: Using an LinkSubmit However the links that are generated are automatically "Stale". There are other LinkSubmits on the page which aren't rerendered upon selection of the DirectLink. So bascially that route doesn't work. What I tried next was a bit of a hack, but i dropped an EventListener method which listened for the clicks on a GenericLink component. I set it up for submitting my form, using the "submitForm" attribute. The form gets submitted but the event listener is never called. If i remove the "submitForm" attribute, the listener is called but the form isn't submitted. Another problem lies in the fact that my listener tells the page to refresh but the page never does (return void with async=false). The whole point is need the form rewind cycle to occur so that when my listener is called it will have all of the form input. The listener redirects the user to another page. Once the user has completed their work on that page, they return to the original page. The form data is lost in the navigation but it shouldn't be. I must be doing something wrong but I can't see it. Can anyone help? Thank you. -B -- View this message in context: http://n2.nabble.com/Problems-with-LinkSubmit-and-or-EventListener-tp2302994p2302994.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org