Friday, June 7, 2013

ListEditor and persisting changes to the server

Hi,

my goal is to get a kind of 'auto-persist' feature of my editors.

I have
  • a class 'A' defining a ListEditor that creates a list of class 'B' editors
  • a class B that implements ValueAwareEditor with a CheckBox attribute
  • the ValueChangeHandler of the CheckBox calls driver.flush()
  • communication uses RequestFactoryEditorDriver

Always if the value of some CheckBox has changed, I want the ListEditors parent class 'A' to call a persist service to immediately persist any changes in a sub-editor on the server.. An example with a 'Save' button in the class 'A' is already working.
I can only find examples that require user input. A guess is that calling a (static) method A.persist() in the ValueChangeHandler of a CheckBox is not the right way.
Probably you see that I'm very new to RequestFactory and Editors.

Thanks in advance.
Holger

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment