Guys,
If I need to reference a Label multiple times on the page.
Is there a better way than creating multiple redundant but distinct labels?
Is this the only option?
add(new Label("authorName1"));
add(new Label("authorName2"));
add(new Label("authorName3"));
<span wicket:id="authorName1"></span>
<span wicket:id="authorName2"></span>
<span wicket:id="authorName3"></span>
This (non-one-to-one) usage...
add(new Label("authorName"));
<span wicket:id="authorName"></span>
<span wicket:id="authorName"></span>
... causes error:
WicketMessage: The component [Component id = author.name] has the same
wicket:id as another component already added at the same level
Phil
--
Phil Grimm
Mobile: (858) 335-3426
Skype: philgrimm336