I have a panel with which I'm implementing IHeaderContributor and the
following code:
....
@Override
public void renderHead(IHeaderResponse response) {
response.renderOnLoadJavascript("alert('test')");
}
...
which output in the HTML:
...
<script type="text/javascript" src="../../resources/
org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></
script>
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "load", function(event) { alert('test');});
/*-->]]>*/</script>
...
However no matter what I seem to do (i've tried this about six
different way so far) the alert *never* fires (note: my actual script
is more complex, but I'm using alert to debug).
I've also tried it in both Safari 3.2.1 and Firefox 3.0.6 with the
same result (i.e. nothing happens)
Is there a known bug in 1.4-SNAPSHOT?
Does anyone else have this working?
- Brill
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org