Do it as a panel..?
Edgar Merino wrote:
Hello,
I've got a DataTable that needs to add to each of its Items a Link
and a Label, since I've only get one componentId from the
populateItem(Item cellItem, String componentId, IModel model) method,
I don't know what to do to be able to accomplish what I need.
This is what I need:
public void populateItem(Item cellItem, String componentId, IModel
model) {
Link link = new Link(componentId) {
public void onClick() {
//do Something
}
}
link.add(new Label("WHAT SHOULD I PUT HERE"), "label");
cellItem.add(link);
}
I hope someone can give me a hint on what to do, thank you in advance.
Edgar Merino
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]