You must include its javascript libraries:
add(ScriptaculousAjaxBehavior.newJavascriptBindingBehavior());
you need to have a scriptaculous dependency in your project's pom.xml
Vitek
Ryan O'Hara wrote:
I'm trying to use PrototipBehaviour. Below is my code:
Link detailsLink = new Link("Sample", new Model(sample));
Label label = new Label("sampleid", sample);
detailsLink.add(label);
PrototipBehaviour pb = new PrototipBehaviour("hallelujah!!");
label.add(pb);
add(detailsLink);
And below is the source that is produced:
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "load", function() { new
Tip($('sampleid1'),'hallelujah!!');;});
/*-->]]>*/</script>
<link rel="stylesheet" type="text/css"
href="../../../../../../resources/org.wicketstuff.minis.prototipbehaviour.PrototipBehaviour/prototip.css"
media="screen" />
<script type="text/javascript"
src="../../../../../../resources/org.wicketstuff.minis.prototipbehaviour.PrototipBehaviour/prototip-min.js"></script>
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "load", function() { new
Tip($('sampleid2'),'hallelujah!!');;});
/*-->]]>*/</script>
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "load", function() { new
Tip($('sampleid3'),'hallelujah!!');;});
/*-->]]>*/</script>
...
I would expect "hallelujah!!" to pop up during onmouseover of the
label, but I'm not seeing it. Any help would be greatly appreciated.
I'm using wicketstuff-minis-1.4.0-SNAPSHOT and Wicket 1.3.3.
Thanks,
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org