Hi All...
I have ListEditor of editable widgets. Each widget is a simple
TextBox.
Workflow:
- clicking add, populating new empty editor in the list;
- filling the TextBox;
- saving....
The problem is that for the first 'save' I have a new record in DB
with version=0 & all other fields=null. After that it's saving ok...
Here is some code:
public interface Driver extends
SimpleBeanEditorDriver<List<PhoneNumProxy>, ListEditor<PhoneNumProxy,
PhoneNumEditView>> {}
ListEditor editor = ListEditor.of(new FieldEditorSource());
ListEditor listEditor=editor;
List displayedList=listEditor.getList();
Driver driver = GWT.<Driver> create(Driver.class);
driver.initialize(listEditor);
driver.edit(new ArrayList<PhoneNumProxy>());
Here is how I'm creating a new editor:
PhoneNumProxy
proxy=requests.phoneNumRequest().create(PhoneNumProxy.class);
displayedList.add(proxy);
Also, I'm doing listEditor.flush()
Any ideas what's wrong? Thx!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.