This is only in theory though, I haven't tried it.
Note that adding and removing items from the list is a different story, as the list you get from the ListEditor/HasDataEditor is already a "working copy" of the one passed to the editor.
This I experimented with, in two fashions depending on the constraints:
- simply modify the list, as it would be persisted with the whole object being edited (or with a service call passing the edited list as an argument);
- queue add and remove service calls to our RequestContext, that we'll fire later on (after we flush the EditorDriver to persist changes made in other non-list editors)
Because we do not edit the list items' properties, we were able to use the HasDataEditor (with a CellList in our case, but you could use a CellTable equally well)
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment