MissingMarkupError, but...
<a href="#" wicket:id="repeatme"><wicket:container
wicket:id="label"></wicket:container></a>
and:
RepeatingView rv = new RepeatingView("repeatme");
rv.add(new BookmarkablePageLink(rv.newChildId(),
FooPage.class).add(new Label("label", "Foo")));
rv.add(new BookmarkablePageLink(rv.newChildId(),
BarPage.class).add(new Label("label", "Bar")));
add(rv);
would work.
Martijn
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.
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]