Difference in behaviour with RequestFactoryEditorDriver and SimpleBeanEditorDriver, bug?

43 views
Skip to first unread message

Aidan O'Kelly

unread,
Jul 28, 2011, 6:39:55 PM7/28/11
to google-we...@googlegroups.com
Ok, I've been trying to do a very simple form to edit a (user sized)
list of strings, using ListEditor.

ListEditor is declared like this:
ListEditor<String, StringEditor> notifyEmails = ListEditor.of(new
StringEditorSource);

StringEditor is actually just a TextBox.
public class StringEditor extends TextBox implements
LeafValueEditor<String> { // Overrides of setValue/getValue for
debugging purposes omitted }

Now, the problem is, when notifyEmails.flush() is called by the editor
framework, the individual StringEditor widgets getValue() is never
called. The size of the list, is 'flushed' correctly, but the values
are not.

This is when I'm using RequestFactoryEditorDriver. If I switch to
using SimpleBeanEditorDriver, it works as expected. So this looks like
a bug in RequestFactoryEditorDriver, but maybe I'm missing something?

Thanks,
Aidan.

Thomas Broyer

unread,
Jul 28, 2011, 7:54:46 PM7/28/11
to google-we...@googlegroups.com
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6081
Will be fixed in 2.4, fix is not in RC1.

Aidan O'Kelly

unread,
Jul 28, 2011, 8:46:22 PM7/28/11
to google-we...@googlegroups.com
Ah, cheers Thomas, you're a godsend.

On Fri, Jul 29, 2011 at 12:54 AM, Thomas Broyer <t.br...@gmail.com> wrote:
> See http://code.google.com/p/google-web-toolkit/issues/detail?id=6081
> Will be fixed in 2.4, fix is not in RC1.
>

> --
> 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/-/BTY7ILuYV8cJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

Reply all
Reply to author
Forward
0 new messages