You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rvieregge <rv...@rogers.com> on 2008/11/25 04:30:33 UTC

wicket, mootips and a NoSuchMethodError

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicket, mootips and a NoSuchMethodError

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org