Is it possible to add and edit added proxy to ListEditor.
I try to do the following:
[CODE]
add.addSelectHandler(new SelectEvent.SelectHandler() {
            @Override
            public void onSelect(SelectEvent event) {
                ManagerProxy entity = context.create(ManagerProxy.class);
                entity.setName("Some name");
                context.edit(entity);
                listEditor.getList().add(entity);              
            }
        });
[/CODE]
But getting an error:
[CODE]attempting to edit an entityproxy previously edited by another 
requestcontext[/CODE]

Well I try again:
[CODE]
add.addSelectHandler(new SelectEvent.SelectHandler() {
            @Override
            public void onSelect(SelectEvent event) {
                ManagerProxy entity = context.create(ManagerProxy.class);
                entity.setName("Some name");
                driver.edit(entity);
                listEditor.getList().add(driver.flush());
            }
        });
[/CODE]
Yes it works, but if the added row has changed, then get an error when 
saving and commiting grid changes:
[CODE]
AutoBean has been frozen
[/CODE]

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to