On 22 oct, 18:50, Vincent <[email protected]> wrote: > Hello, > > I'm working on a prototype which involve GWT 2.1 Activity and Editors. > The idea is that the Activity should warn the user (mayStop() return > non null) if the bean has been edited by the user. > > For now, the only way I find to achieve this is to call the flush > method to get the edited bean and compare it to the initial bean in > the Activity in the mayStop method. > > Is it the right way to do this or is there a better way to do it?
If you're using RequestFactory and editing a proxy (RequestFactoryEditorDriver) then you can probably use the RequestContext#isChanged method: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/shared/RequestContext.html#isChanged() But there's nothing at the editor level (that I know of), which means nothing if you're using SimpleBeanEditorDriver -- 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.
