Ah, you're right. You can't add script during the action phase, you
need to add the script when the zones are rendering.
Try this:
@Inject
private RenderSupport _support;
@Inject
private PageRenderQueue _queue;
MultiZoneUpdate onHello() {
_queue.addPartialMarkupRende
Thanks for the ideas Josh, Hopefully I can get some use out of them...
I am creating the Ajax.Request myself as this is essentially what the
Autocompleter does which is the best example I can find. I am infact
extending the Autocompleter so that I can trigger an Ajax communication
when an item
> I've recently come up with a solution for handling MultiZoneUpdate as the
> response from an Ajax.Request.
I'm not sure I follow why you need to create your own Ajax.Request
instead of using one of the built-in action/event link components. You
can give it the name of one zone but return a Multi
I've answered my own question:
Tapestry.onDOMLoaded(function(){
$("jsZone").observe(Tapestry.ZONE_UPDATED_EVENT, function(event){
/ find inner html and eval
});
});
this does work ok, however I'm suspicious that there's an easier/tidier
way to achieve the same already built in t
I've found where the JSON is built, and can't see a way to include a
script call anywhere in there.
So my first hacky inclination is to create a hidden zone who's innerHTML
will contain the javascript (which has been updated in the server side
event listener, and call it via something like
'e