Hi Ricard
As is now, mootips are compiled against wicket 1.4 and thus incompatible
with the 1.3 branch. So you are completely correct. But it should be
somewhat easy to make it compile against 1.3..
regards Nino
rvieregge wrote:
A newbie needs some help here...
I've an existing application that uses wicket 1.3.5, and I've tried to add a
simple (non-ajax) tooltip using mootips from wicketstuff-minis-1.4-SNAPSHOT.
Here's my code:
Label projectLabel = new Label("projectName",
projectStatus.getProjectAssignment().getProject().getName());
projectLabel.add(new MootipBehaviour("Tooltip Title", "Tooltip contents."));
Debugging this in eclipse, the label gets added, a MootipBehaviour gets
created and added to the label component. The component add calls the
MootipBehaviour's bind, which does an add of an AttributeModifer to change
the title. That's where it blows up:
java.lang.NoSuchMethodError:
org.apache.wicket.Component.add([Lorg/apache/wicket/behavior/IBehavior;)Lorg/apache/wicket/Component;
org.wicketstuff.minis.mootipbehavior.MootipBehaviour.bind(MootipBehaviour.java:138)
org.apache.wicket.Component.add(Component.java:929)
net.rrm.ehour.ui.panel.overview.projectoverview.ProjectOverviewPanel$1.populateItem(ProjectOverviewPanel.java:242)
org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:573)
org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127)
org.apache.wicket.Component.internalBeforeRender(Component.java:1002)
org.apache.wicket.Component.beforeRender(Component.java:1034)
...
I don't see how I'm missing the Component.add(IBehavoiur) method. Is it
because I'm using wicketstuff-minis.1.4-SNAPSHOT? I don't see an older
version of mootips. Do I need to recompile mootips or all of
wicketstuff-minis?
Or am I completely on the wrong track?
Thanks...
Richard
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]