Hi all, Let's say my page has an AJAX actionlink. This link has a context that specifies the component name to render in a zone. The @OnEvent method called in my page should return to the browser the body of the component (which name has been specified as a context parameter).
It looks like this in the tml: <t:actionlink t:zone="myZone" t:context="component1">component1</t:actionlink> <t:actionlink t:zone="myZone" t:context="component2">component2</t:actionlink> <t:zone t:id="myZone"> and in the java class: @OnEvent(EventConstants.ACTION) public Object renderComponent(String componentName){ ... //return the body of "componentName" } I could wrap all my component into Tapestry Blocks (in my page), and then return the block at the end of the @OnEvent method. But I can't do this, because in some cases, the page may not know all the component names. Do you know how I could do this ? TextStreamResponse maybe... Thanks in advance. Clément