I'm on the latest snapshot and am having a problem using replaceWith().
When I have wicket logging turned on I can see all sorts of activity, but my
page doesn't get updated. Below is the code I'm using. I ripped this code
off from eelco's blog at
http://chillenious.wordpress.com/2006/11/30/ask-confirmation-on-link-clicks-with-wicket/.
Does anyone see anything wrong here? Do you need more info?
public void onClick() {
DeleteLink.this.replaceWith(new ConfirmDeletePanel(
DeleteLink.this.getId(), "really delete?") {
@Override
protected void onCancel() {
replaceWith(DeleteLink.this);
}
@Override
protected void onConfirm() {
Filter filter =
(Filter)getParent().getParent().getModelObject();
service.delete(filter);
replaceWith(DeleteLink.this);
}
});
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user