I think that the last sample is too complicated. Wicket is meant to be
simple, I dont want to write 100 lines of code because of one simple
link.
On Mon, Mar 22, 2010 at 1:26 AM, Steve Mactaggart
steve.mactagg...@gmail.com wrote:
The other way I have implemented that in our local code is
That's what he's saying - write that as a link class and you can use it all
over your app with a single line that creates the link and nested label with
only one line of code.
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Mar 22, 2010 at 2:07 AM, 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:
LinkObject link = new BookmarkablePageLinkObject(link1,
HomePage.class, regParams);
link.add(new
Try this:
a href=# wicket:id=link1span 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:
The other way I have implemented that in our local code is to create a
LabeledBookmakableLink.
This link takes a 4th parameter that is the label to display. Then
override the onComponentTagBody to rewrite the contents of the a tag
to put in the content.
Code looks like:
public
RepeatingView(repeater);
view.add(new BookmarkablePageLink(1, MyPage.class).add(new Label(1,
hello)));
with the same markup to no avail.
Thanks, Jason
--
View this message in context:
http://www.nabble.com/a-simple-RepeatingView-to-display-links-with-labels-tp22256741p22256741.html
Sent
this message in context:
http://www.nabble.com/a-simple-RepeatingView-to-display-links-with-labels-tp22256741p22256741.html
Sent from the Wicket - User mailing list archive at Nabble.com.