Thursday, September 29, 2011

Re: Is it possible to flush the sub-editor of a CompositeEditor ?

It has already been discussed before, and I believe the correct (as in "respects the Editor contract") solution is to store the changes apart, use them in your columns to display the changed value, and apply those changes to the objects on flush().
The Showcase sample does something similar (not using the Editor framework, but with a "commit changes to objects" pattern, which is exactly what's needed by the Editor framework) in the "cell sampler": http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HPO6YtK0-VsJ.
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