[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 accomplishing the same thing in Wicket?
  
 Regards,
 James Yong
 
 

Do let me know even if mine is a silly question :-(
In JSP, I can put %=name% inside javascipt
and in Freemarker, ${name}.
How can I approach with Wicket?

Thanks.







---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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:

 
 
  Hi,
 
  I am using Wicket 1.1. I wantedthe 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 accomplishing the same thing in Wicket?
 
  Regards,
  James Yong
 
 

 Do let me know even if mine is a silly question :-(
 In JSP, I can put %=name% inside javascipt
 and in Freemarker, ${name}.
 How can I approach with Wicket?

 Thanks.







 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 label, and experiment a bit with it.

Eelco


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user