Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen
I did, in order to verify the fix, and have just filed an issue. http://code.google.com/p/google-web-toolkit/issues/detail?id=5981
The patch is below - it can be applied to 2.1.1 or 2.2.0-m1
Index: user/src/com/google/gwt/editor/client/impl/AbstractEditorDelegate.java
===================================================================
--- user/src/com/google/gwt/editor/client/impl/AbstractEditorDelegate.java (revision 9655)
+++ user/src/com/google/gwt/editor/client/impl/AbstractEditorDelegate.java (working copy)
@@ -177,9 +177,9 @@
public void refresh(T object) {
setObject(ensureMutable(object));
if (leafValueEditor != null) {
- leafValueEditor.setValue(object);
+ leafValueEditor.setValue(getObject());
} else if (valueAwareEditor != null) {
- valueAwareEditor.setValue(object);
+ valueAwareEditor.setValue(getObject());
}
refreshEditors();
}
@@ -252,12 +252,12 @@
* happened, only set the value and don't descend into any sub-Editors.
*/
if (leafValueEditor != null) {
- leafValueEditor.setValue(object);
+ leafValueEditor.setValue(getObject());
return;
}
if (valueAwareEditor != null) {
- valueAwareEditor.setValue(object);
+ valueAwareEditor.setValue(getObject());
}
if (object != null) {
On Fri, Feb 4, 2011 at 10:48 AM, Eric Andresen <ericandresen@gmail.com> wrote:
We are seeing this issue as well. Colin, did you try changing the AbstractEditorDelegate, and if so did you have any luck?--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.
--
218.248.6165
niloc132@gmail.com
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home