I use PageableListView to make a table and there is a column called 'delete',
which works fine but I want to add a confirm window so when people click
'delete' a window will pop up asking 'yes' or 'no', in html, this can be
done use javascript, but with wicket control link button, how to add to it?
final PageableListView listView = new PageableListView("boxList",
thisBoxList, 10) {
protected void populateItem(ListItem item) {
final Box box = (Box)item.getModelObject();
final int index = item.getIndex();
item.add(new Label("boxID", String.valueOf(box.getBarcode())));
item.add(new Label("JobProfileName", box.getJobProfileName()));
item.add(new Link("Delete") {
public void
onClick() {
mpm.deleteBox(box.getBarcode());
thisBoxList.remove(index);
}
});
}
};
Many thanks!
--
View this message in context:
http://www.nabble.com/how-to-add-a-confirm-window-to-a-Link-button--tf4696906.html#a13425883
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]