Hi Thiago, Using this approach, if I was to invoke this ajax URL I'd have to process the zone response myself manually. What I'd like to be able to do is update the context or params on an event link so that when the clicks on it the response and corresponding zone update is automatically taken care of.
Now, I can update the context or request params on the client side, but it seems like these updates are ignored For example: If I have an tapestry event link on the page which generates the following html: <a id="ignore2" onclick="javascript:return Tapestry.waitForPage(event);" href="/home.alerts:ignore2">>mylink</a> I can update the href using js to add a request parameter: <a id="ignore2" onclick="javascript:return Tapestry.waitForPage(event);" href="/home.alerts:ignore2?param=value">>mylink</a> or add a context: <a id="ignore2" onclick="javascript:return Tapestry.waitForPage(event);" href="/home.alerts:ignore2/value">>mylink</a> but what is submitted to the server when the link is selected is always the original url: "/home.alerts:ignore2" there seems to be no simple way around this?! - Joel On Mon, 2011-03-28 at 19:30 -0300, Thiago H. de Paula Figueiredo wrote: > On Mon, 28 Mar 2011 19:10:00 -0300, Joel Halbert <j...@su3analytics.com> > wrote: > > > I need a way of submitting the dynamic content back to the server as > > part of an ajax request I'm not clear how I would be able to do this in > > the manner you suggest. > > Define an event name, @Inject ComponentResources and use its > createEventLink() method. It returns a Link. To get an absolute URL out of > it, invoke its toAbsoluteURI() method. Now just pass this URL to your AJAX > code, most probably using JavascriptSupport.addScript(). Add your data as > query parameters. >