You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by eaglei22 <jc...@gmail.com> on 2014/07/09 00:48:03 UTC
Wicket version 6.15 referring to older Jar
I have gotten all the latest jars installed for the Wicket 6.15. I can verify
this in the Maven Dependencies directory.
For some reason, I feel it is still pointing to an older version of Wicket.
I am getting strange errors with the add method from the MarkupContainer.
Using the quick-start example, in the HomePage class I am getting an error
with:
add(new Label("message", "If you see this message wicket is properly
configured and running"));
The error is:
The method add(Component[]) in the type MarkupContainer is not applicable
for the arguments (Label)
Not sure why it is using Component[] as a argument and not Component...
childs
as I am used to.
I am using Eclipse.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-version-6-15-referring-to-older-Jar-tp4666502.html
Sent from the Users forum 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 version 6.15 referring to older Jar
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Use 'mvn dependency:tree' to see which versions of wicket-core are in the
classpath.
Also check what is the content of target/theNameOfTheWar.war#WEB-INF/lib/
after 'mvn package'. There must be just one wicket-core.jar there
If this is OK then the problem is in Eclipse's configuration. You can use
'mvn eclipse:eclipse' or 'File > Import Maven project' to regenerate
.classpath file.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, Jul 9, 2014 at 1:48 AM, eaglei22 <jc...@gmail.com> wrote:
> I have gotten all the latest jars installed for the Wicket 6.15. I can
> verify
> this in the Maven Dependencies directory.
>
> For some reason, I feel it is still pointing to an older version of Wicket.
> I am getting strange errors with the add method from the MarkupContainer.
>
> Using the quick-start example, in the HomePage class I am getting an error
> with:
>
> add(new Label("message", "If you see this message wicket is properly
> configured and running"));
>
> The error is:
> The method add(Component[]) in the type MarkupContainer is not applicable
> for the arguments (Label)
>
> Not sure why it is using Component[] as a argument and not Component...
> childs
>
> as I am used to.
>
>
> I am using Eclipse.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-version-6-15-referring-to-older-Jar-tp4666502.html
> Sent from the Users forum 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
>
>