Hi,

is it possible to save all children of a ListEditor?

----------------------------

interface Driver extends RequestFactoryEditorDriver<List<CardProxy>,
ListEditor<CardProxy, CardEditor>> {}

// Create the driver which manages the data-bound widgets
driver = GWT.<Driver> create(Driver.class);

//CardEditorSource extends EditorSource<CardEditor>
ListEditor<CardProxy, CardEditor> listEditor = ListEditor.of(new
CardEditorSource());

driver.initialize(eventBus, Application.get().getFactory(),
listEditor);

CardRequest cardRequest =
Application.get().getFactory().getCardRequest();
//do i need to specify a method for flush here ? e.g. persist(cards)

//cards is a List<CardProxy> set from outside
driver.edit(cards,  cardRequest);

//if have tried
listEditor.setValue(cards);
//and
//driver.display(cards);
//for both cases the cards are shown correctly but saving does not
work


//save button
void onSaveClick(ClickEvent event) {
RequestContext flush = driver.flush();


----------------------------

-- 
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.

Reply via email to