you can use the label component to inject any kind of markup you want. just be sure to call setRenderBodyOnly(true) on it so that it doesnt render its <span> tags.

ie

function check(x, y, z)
{
   ......
   alert(  '<span wicket:id="jsmessage"></span>'  );
   ......
}

and in java

add(new Label("jsmessage", "my _javascript_ message").setRenderBodyOnly(true));

-Igor



On 11/5/05, yongbl <[EMAIL PROTECTED]> wrote:
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 you Yahoo!?
New and Improved Yahoo! Mail - 1GB free storage!


Reply via email to