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

Reply via email to