In your example, you are attempting to invoke

JavaScriptSupport.addInitializerCall()

This requires that the javascript method being invoked is in the
Tapestry.Initializer namespace. In your example, it would be trying to
invoke Tapestry.Initializer.updateGrid(). If you show the javascript
console (in firefox or chrome), you should see an error that this function
cannot be found.

I was suggesting that you use JavascriptSupport.addScript() instead which
can invoke a method in any namespace.

Assuming that you are trying to invoke a javascript method called
"updateGrid" in the global namespace (ie window.updateGrid()) you should
instead invoke it using

javascriptSupport.addScript("updateGrid()");


On Monday, 13 February 2012, Михаил Слободянюк <slobodyanu...@gmail.com>
wrote:
> 13 февраля 2012 г. 10:32 пользователь Lance Java
> <lance.j...@googlemail.com>написал:
>
>> Try:
>>
>> jsSupport.addScript("someFunction('%s')", someVar)
>>
>>
> Where i must place this call? How  someFunction has been called?
>

Reply via email to