Yes that's exactly what I was looking for, I found the example in the mailing list. Thanks!
On Mon, 2010-07-26 at 09:30 -0700, Arjun Dhar wrote: > > Lots of dynamic stuff? > > If you have lots of dynamic stuff you can use a texttemplate to interpolate > your variables with it works really smooth, heres an example: > > > ... > HashMap variables = new HashMap(); > variables.put("alert", "helloworld"); > TextTemplate textTemplate=new TextTemplate(); > textTemplate.interpolate(variables); > String js= textTemplate.asString(); > > … > > corrosponding java script, notice the template signature ${…} > > alert("${alert}"); > > So above code will produce a javascript string ‘alert(“hello world”)’ very > useful. > > > .... Thats in the first link I showed you; helps you put variables in > whatever markup you want. Am sure there are other approaches also, but have > a look before you think its not meant for you. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org