Try this:

<a href="#" wicket:id="link1"><span wicket:id="id"></span></a>

**
Martin

2010/3/21 Sigmar Muuga <meedi...@gmail.com>:
> Hello, does anybody know, how to add label to links?
>
> I have markup like this:
>
> <a href="#" wicket:id="link1">[link label goes here]</a>
>
> Now in java I want to do something like this:
>
>        Link<Object> link = new BookmarkablePageLink<Object>("link1",
> HomePage.class, regParams);
>        link.add(new Label(id, "Register here!")); // this must be so,
> because I want to change this label runtime
>
> Sigmar
>

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

Reply via email to