Trying to create a ListView that shows a dynamically created list of
BookmarkablePageLink items, I first tried a list of labels, which seems
to be easier.
My java code looks like this:
List list = new ArrayList();
list.add("alpha");
list.add("beta");
list.add("gamma");
ListView listView = new ListView("listView", list)
{
protected void populateItem(ListItem item)
{
String link = (String)item.getModelObject();
item.add(new Label("link", link));
}
};
add(listView);
The HTML code fragment is:
<table>
<tr>
<td>
<span wicket:id="listView">
<span wicket:id="link"/><br/>
</span>
</td>
<td>CONTENT</td>
</tr>
</table>
In the created output, there are no link labels inside the "listView"
element. What am I doing wrong?
I hope, this is easy for any advanced user.
Thank you
Matthias Albert
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user