While I'm sure it could be made to work with addScript IMHO it's just not the
right way.

 @SetupRender 
        void setupRender() { 
                js.addInitializerCall("GoogleMap",
createInitializerJsonObject()); 
        } 

Then in mygooglemap.js (I use jquery but it's more or less the same for
prototype)

(function($){
    /** Container of functions that may be invoked by the Tapestry.init()
function. */
    $.extend(Tapestry.Initializer, {
        GoogleMap: function(specs){
                //specs will be your JSONObject                 
        }
    });
})(jQuery);

When your page loads Tapestry will call your initializer for each JSONObject
you add. It also works for zones. addScript gets tricky for zones.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tml-parameter-rendered-into-a-JavaScript-string-tp5512889p5513362.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to