Yes, you are right. I will do in that way.
The fact is I have a similar problem with some menu panels with several
links. I just wanted to do the easiest thing.
Now I have another problem with subclasses and subpackages but I will
send a new mail to the list with another topic.
Many thanks
Instead of using in-line wicket:link why not use a a wicket:id=“homePage”
and then add(new Link(“homePage”, HomePage.class)); to your parent class? That
will resolve no matter where its used from.
After all wicket:link is just a Link class at the end of the day.
Also see the examples page:
Hi,
I have an header panel with a link to the homepage of the site.
This panel is included in every page of the site.
If I use the wicket:link tag for that link it works fine (for example,
it is disabled in the homepage) for the pages in the same package of the
Homepage class.
If I am on a page
Have you read http://wicket.apache.org/guide/guide/urls.html#urls_3
?
Sven
On 02/27/2014 03:44 PM, Alberto Brosich wrote:
Hi,
I have an header panel with a link to the homepage of the site.
This panel is included in every page of the site.
If I use the wicket:link tag for that link it works
Yes, I read it.
Does it mean that have to do a different header panel for every
suppages level (using ../(../)HomePage.html link)?
Alberto
On Thu, 2014-02-27 at 16:30 +0100, Sven Meier wrote:
Have you read http://wicket.apache.org/guide/guide/urls.html#urls_3
?
Sven
On 02/27/2014