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
-- 
View this message in context: 
http://www.nabble.com/wicket%2C-mootips-and-a-NoSuchMethodError-tp20674603p20674603.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to