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:
http://www.wicket-library.com/wicket-examples/linkomatic/home


On Feb 27, 2014, at 11:03 AM, Alberto Brosich <abros...@ogs.trieste.it> wrote:

> 
> 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 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 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 inside another package (subpackage in my case) the
>>> link became the name of that package plus the href specified in the html
>>> panel. For example:
>>> 
>>> <wicket:link><a href="HomePage.html">...</></wicket:link>
>>> 
>>> In a page inside package "subpackage" the link is:
>>> "subpackage/HomePage.html" and not "../".
>>> 
>>> What I'm doing wrong?
>>> 
>>> Regards
>>> 
>>> Alberto
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to