Hello,

I'd like to port an older GWT application to GWT 2.2 and make use of the 
Editor framework and the Requestfactory to reduce some code. The current 
application uses the command pattern to provide an undo/redo functionality. 
For databinding, each model class has extensive listener interfaces 
(onTitleChanged(), onDescriptionChanged(), etc) and widgets are updated by 
using these listeners. Accordingly, each possible change through a widget is 
reflected in a separate command class. Because all of this is handwritten 
code, it amounts to quite a lot of clutter.

I can rather easily replace the underlying data model with EntityProxies to 
simplify server communication. But can I use the Editor framework, or parts 
of it, to implement a command pattern? Possibly be providing my own kind of 
EditorDriver?

The driver would need to be able to register changes in the child 
editors/widgets instantly (onBlur, etc), create a command and put it on the 
stack. Also the driver needs to register "outside" changes (like the undo 
button) to the entity and update the the child editors accordingly. Is this 
possible? I realize that I need to write a couple of deferred binding 
generators, but does it make sense to (partly) use the Editor infrastructure 
for this, or is it just not at all designed for that?

Regards,
Tobias

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