Re: tml parameter rendered into a JavaScript string

2012-03-14 Thread Lance Java
See http://tapestry.1045711.n5.nabble.com/Getting-the-HTML-markup-string-from-a-RenderCommand-td5564418.html On Friday, 24 February 2012, Lance Java wrote: > I am writing a google maps component which can display markers on a map, each marker has an info window when it is clicked on. I'd like to

RE: tml parameter rendered into a JavaScript string

2012-02-27 Thread Guerin Laurent
r Database return list; } Laurent -Message d'origine- De : Lance Java [mailto:lance.j...@googlemail.com] Envoyé : lundi 27 février 2012 10:46 À : Tapestry users Objet : Re: tml parameter rendered into a JavaScript string Hi Laurent, I think the normal use case for using a google

Re: tml parameter rendered into a JavaScript string

2012-02-27 Thread Lance Java
m/exanpe/exanpe-t5-lib/blob/master/src/main/java/fr/exanpe/t5/lib/components/GMap.java >> >> The JS part (l. 2809) : >> >> https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/resources/fr/exanpe/t5/lib/components/js/exanpe-t5-lib.js >> >> Laurent. >> >> __

RE : RE : tml parameter rendered into a JavaScript string

2012-02-25 Thread Guerin Laurent
n the next release. Tanks for your feedback. Laurent De : Lance Java [lance.j...@googlemail.com] Date d'envoi : samedi 25 février 2012 11:49 À : Tapestry users Objet : Re: RE : tml parameter rendered into a JavaScript string Hi Laurent, I took

Re: RE : tml parameter rendered into a JavaScript string

2012-02-25 Thread Lance Java
t; Laurent. > > > De : Lance Java [lance.j...@googlemail.com] > Date d'envoi : vendredi 24 février 2012 17:37 > À : Tapestry users > Objet : Re: tml parameter rendered into a JavaScript string > > It seems I'm having troubles explainin

RE : tml parameter rendered into a JavaScript string

2012-02-24 Thread Guerin Laurent
d'envoi : vendredi 24 février 2012 17:37 À : Tapestry users Objet : Re: tml parameter rendered into a JavaScript string It seems I'm having troubles explaining what it is I'm trying to do. I need an implementation for generateInfoWindowHtml() in the code below. @Import(library="myg

Re: tml parameter rendered into a JavaScript string

2012-02-24 Thread trsvax
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

Re: tml parameter rendered into a JavaScript string

2012-02-24 Thread Lance Java
It seems I'm having troubles explaining what it is I'm trying to do. I need an implementation for generateInfoWindowHtml() in the code below. @Import(library="mygooglemap.js") public class GoogleMap { @Inject JavaScriptSupport jsSupport; @Parameter(required=true) R

Re: tml parameter rendered into a JavaScript string

2012-02-24 Thread trsvax
Perhaps it's not clear what you want but I think javaScriptSupport.addInitializerCall does exactly what you need if you create a Tapestry initializer in you javascript file. it puts your JSONObject into the html and then calls your javascript function in the initializer with each JSONObject as an a

Re: tml parameter rendered into a JavaScript string

2012-02-24 Thread Lance Java
Hi Thiago, I realise that I will need to use JavascriptSupport and an imported .js file to achieve this. My question is about generating the JsonObject serverside which will be used in JavascriptSupport.addScript(). I need to have a javascript string containing the infowindow html (see http://code

Re: tml parameter rendered into a JavaScript string

2012-02-24 Thread Thiago H. de Paula Figueiredo
If you need to generate JavaScript, do it by using JavaScriptSupport and imported .js files. On Fri, 24 Feb 2012 12:05:46 -0200, Lance Java wrote: I am writing a google maps component which can display markers on a map, each marker has an info window when it is clicked on. I'd like to pas