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?
well, there is no easy way to accomplish this in a way which is well
integrated with Wicket components/resource loading mechanisms. The
thing which comes closest to that is implementing a custom
WebMarkupContainer, attaching that to a <script> tag and generating
the appropriate function in java. Of course you can roughly do the
same thing using the freemarker / velocity components as Juergen
suggested.
btw, are you trying to do form validation using browser-side
JavaScript? (your example seems to come from something like that).
Regards,
Ralf
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user