Hi, I'm using a nice js component called DHTMLX Grid in my T5 application. DhtmlxGrid fetched its data in an ajax request. Data is formatted as XML : <rows> <head> <column>…</column> </head> <row> <cell>…</cell> </row> </rows>
It is very convenient to use a tapestry page to dynamically create this file. Right now, I'm providing the grid a page render link to the xml page to fetch its data. It works great but requires extra effort to share state between the containing page and the data page. What I would like to do is providing the data through an event link in the main page. Here is what the code could look like : @InjectPage private XMLDataPage dataPage; @OnEvent("loadGrid") StreamResponse provideGridData(){ dataPage.setState(state); String result = pageRenderer.renderPageToString(dataPage); return new XMLStreamResponse(result); } Is it feasible ? Regards Guillaume --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org