You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nourredine <no...@atos.net> on 2012/08/14 15:00:34 UTC
Re: Howto render a block and put it into a JSON reply?
Christian,
I ended up following the source code of
"MultiZoneUpdateEventResultProcessor#processResultValue" method and
"SingleZonePartialRendererFilter" class (which is nearly what Lance had
suggested).
It concerns the "DataTableModel"'s default implementation [1] that can
easily be replaced.
I had also to add a javascript callback [2] to call the
"Tapestry.loadScriptsInReply" function for displaying zones with their
scripts.
1 -
https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java
2 -
https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/components/datatables/dataTables.js
Some aspects need to be improved, but at the moment, it does the job.
Thank you all guys for your help :)
Nourredine.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Howto-render-a-block-and-put-it-into-a-JSON-reply-tp5486823p5715387.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org