[Wicket-user] Re: Dynamic text in Javascript's alert box

2005-11-05 Thread James Yong
yongbl i_yongbl at yahoo.com.sg writes: Hi,   I am using Wicket 1.1. I wanted the Javascript's alert box to show some dynamic message like below, which I can do easily with scriplet.   function check(x, y, z){    ..   alert(  '%= name %'  );    .. }   Is there a way of

Re: [Wicket-user] Re: Dynamic text in Javascript's alert box

2005-11-05 Thread Juergen Donnerstag
Well, Wicket is not a templating engine like velocity or freemarker but wicket supports them. Please see wicket-contrib-freemarker and wicket-contrib-velocity, both are projects in wicket-stuff. Juergen On 11/5/05, James Yong [EMAIL PROTECTED] wrote: yongbl i_yongbl at yahoo.com.sg writes:

Re: [Wicket-user] Re: Dynamic text in Javascript's alert box

2005-11-05 Thread Eelco Hillenius
Yeah, there's no scripting in Wicket. Everything has to be full components etc. What you can do however, is create a component that generates the whole javascript for you, e.g. working with string replacements. Best way to start with that is looking at the sources of some Wicket component, like