Hi all,
I have a form which is handled via an async listener, which currently
just does some component updates:
ResponseBuilder builder = getRequestCycle().getResponseBuilder();
builder.updateComponent("dataPanes");
builder.updateComponent("filterSubmit");
But now I need to be able to execute some script on the client once the
updates have completed. I'm assuming this can be achieved, but I can't
figure out how.
I've tried using the writeBodyScript method, but the builder's writer is
null:
builder.beginBodyScript(writer, getRequestCycle());
builder.writeBodyScript(writer, "alert('here');", getRequestCycle());
builder.endBodyScript(writer, getRequestCycle());
If I change the listener to use JSON the writer is not null, but it
still doesn't work, and my update component calls don't work.
Any tips appreciated.
Thanks, Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]