I'm attempting to switch to using RequestFactory instead of GWT-RPC and 
manually creating DTOs. It's been going pretty well, except I've hit one 
use-case that is just a brick wall.

I have a panel that is an Editor<DocumentProxy> which uses a 
RequestFactoryEditorDriver to handle the editing. One of the properties of 
DocumentProxy is another proxy, which I want to edit in a dialog box that 
shows when a button is clicked in the panel. The dialog is another Editor.

The problem is that anytime something changes in this dialog, I want to 
flush the editor, send the current values to the server for validation, and 
report any errors right away. This works fine, but the dialog box has a 
cancel button, which should revert any changes made in the dialog box.

I was able to do this before by storing the original value when it's set, 
and editing a clone while in the dialog box. But entity proxies can't be 
usefully cloned in any way that I currently see, so I'm at a loss as to how 
to get this behavior.

Any suggestions? I'm currently on GWT 2.1.1rc1, should be upgrading to 2.1.1 
soon.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to