Ok, setting the InitializationPriority did solve the issue for me:
jsSupport.addScript(InitializationPriority.IMMEDIATE, "bmiChart();", new
JSONObject());
regards
Daniel
Am 10.02.2011 13:11, schrieb Thiago H. de Paula Figueiredo:
On Thu, 10 Feb 2011 09:52:49 -0200, Daniel Henze
<daniel.he...@gmx.com> wrote:
Dear List members,
Hi!
Does JavaScriptSupport only work with Prototype? Any hint is
appreciated.
No.
DOES NOT WORK:
@Environmental
private JavaScriptSupport jsSupport;
void beginRender(MarkupWriter writer){
jsSupport.addInitializerCall("bmiChart();", new JSONObject());
}
You should use the addScript() method instead. Check the generated
JavaScript code inside the HTML. ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org