Your markup didn't make it into the mail message. Since you need component ids for two components in the second example (instead of one), you need different markup.
Thomas On Sat, Feb 28, 2009 at 12:53 AM, novotny <[email protected]> wrote: > > Hi, > > The sample from the javadocs works: > > Java: > > RepeatingView view = new RepeatingView("repeater"); > view.add(new Label("1", "hello")); > view.add(new Label("2", "goodbye")); > view.add(new Label("3", "good morning")); > > > Markup: > > > > > > Yields: > > > hello > goodbye > good morning > > > > However, I can't seem to add a label to a BoomarkablePageLink in the same > way... does anyone have an idea of how to do this? > > I was trying > > RepeatingView view = new 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 from the Wicket - User mailing list archive at Nabble.com. > -- Wicket & Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com
