So, first error was because that I called twice method service.context().
But now, after editing added proxy I get a second error - AutoBean has been
frozen
I feel the solution is at hand )), but nevertheless would welcome any
advice!
четверг, 7 ноября 2013 г., 22:34:19 UTC+4 пользователь almagnit написал:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.