Why would you need to use AjaxLink component?
Just put your script in the markup and it will do exactly what you expect it
to do.
Alex.
lodhur wrote:
>
> Hi Wicket-Users,
>
> I'm a new in wicket and I am stuck.
> Currently I create an AjaxLink in my Page as follows:
>
> Index.java:
> -----------
> ...
> add(new AjaxLink("showInfoWindow") {
> public void onClick(AjaxRequestTarget target) {
> aboutWindow.show(target);
> }
> });
> ...
>
> Index.html:
> -----------
> ...
> <div wicket:id="infoWindow"></div>
> about page
> ...
>
> As result Wicket rendered following:
> ------------------------------------
> ...
> <div id="infoWindow25" style="display:none"></div>
> ?
> Background: I want to use the function from my javascript menu.
>
> Maybe someone has an example?
>
> Thanks,
> Heiko
>
>
--
View this message in context:
http://www.nabble.com/how-to-generate-a-javascript-function-tf4856086.html#a13896044
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]