You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GWT Pectin
I have just started using pectin and particularly need to deal with
lists. I have "Apply" and "Reset" buttons associated with the list.
Reset removes all entries from the list.
To implement this I have added a method to my form model:
protected final ListFieldModel<String> trainSetFilters;
...
public void clearTrainSetFilters() {
try {
String v = null;
do {
v = trainSetFilters.get(0);
trainSetFilters.remove(v);
} while (v != null);
} catch (Exception e) {
// out of bounds exception when done
}
}
This seems quite an ugly way to do it. It would be nice to have a
clear method in ListFieldModel.
Alternatively is there a better way to do this?
Andrew Pietsch
unread,
Jul 16, 2010, 3:19:26 AM7/16/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message