I have a domain object defined as:

public class MyObject {
  private AnotherObject property;
  ... // getters/setters
}

I have a custom cell defined as:

public class MyTextColumn extends TextColumn<MyObjectProxy> {
    @Override
    public String getValue(MyObjectProxy my) {
        return Util.getAsString(my.getProperty);
    }
}

I have a ListDataProvider<MyObjectProxy> associated to a CellTable.

To create a MyObjectProxy I do:

MyRequest request = MyRequestProvider.get();
MyObjectProxy x = request.create(MyObjectProxy.class);
AnotherObjectProxy y = request.create(AnotherObject.class);
x.setProperty(y);
...

I add this object to the list data provider and it works fine. Now if I do 
the same thing again (2 MyObjectProxy in the list), the cell table return an 
IllegalArgumentException in the return Util.getAsString(my.getProperty);. I 
tried to use the same request to create all the proxies but I have the same 
exception.

java.lang.IllegalArgumentException: Attempting to edit an EntityProxy 
previously edited by another RequestContext

I want to be able to create a List of MyObject proxy and display them in a 
CellTable. When the user is done adding the MyObject(s), he will click on a 
button that will persists the all these MyObject. 

Thanks

-- 
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/-/REktbGhheE81azBK.
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.

Reply via email to