Re: Links and labels

2010-03-22 Thread Sigmar Muuga
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

Re: Links and labels

2010-03-22 Thread Jeremy Thomerson
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

Links and labels

2010-03-21 Thread Sigmar Muuga
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

Re: Links and labels

2010-03-21 Thread Martin Makundi
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:  

Re: Links and labels

2010-03-21 Thread Steve Mactaggart
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

Re: a simple RepeatingView to display links with labels

2009-02-28 Thread Martijn Dashorst
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

a simple RepeatingView to display links with labels

2009-02-27 Thread novotny
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.