I tried this:
item.add(new AjaxFallbackButton("imRemove", PersonForm.this) {
@Override
public void onSubmit(AjaxRequestTarget target,
Form<?> form) {
person.getIMAccounts().remove(acc);
removeAll();
if (target != null) {
target.addComponent(rowPanel);
}
}
}.setDefaultFormProcessing(false));
but it's still not working, it looks like that on every single
imRemove#onSubmit in the list the last element will disappear. I have no
idea what's causing this behavior...
Regards,
Peter
2009-08-14 04:19 keltezéssel, Cserep Janos írta:
Because of this:
listview.setReuseItems(true);
You should do a
removeAll()
in your onSubmit() method when you change the model (the list in this case).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]