I have this almost going.

I hit a bug in public

SimpleEntityProxyId.equals

boolean equals(Object o) {
    if (!(o instanceof SimpleEntityProxyId<?>)) {
      return false;
    }
    SimpleEntityProxyId<?> other = (SimpleEntityProxyId<?>) o;
    if (!proxyClass.equals(other.proxyClass)) {
      return false;
    }
    return (clientId != NEVER_EPHEMERAL && clientId == other.clientId)
        || serverId.equals(other.serverId);
  }

both entities here were created locally.

So here I'll have clientId == 12 and other.clientId == 13 for example.

So that part is OK but then it goes into the ||

serverId here is null because it never got into the server, so it throws an NPE.





On Sun, Oct 3, 2010 at 11:43 AM, Patrick Julien <[email protected]> wrote:
> On Sun, Oct 3, 2010 at 11:21 AM, BobV <[email protected]> wrote:
>> On Sun, Oct 3, 2010 at 10:57 AM, Patrick Julien <[email protected]> wrote:
>>> Any sample somewhere then because I am not getting how to use this
>>> class properly
>>
>> The FavoritesWidget in the DynaTableRf sample uses ListEditor.  See
>> the uses of the displayedList field.  It works this way so that
>> re-ordering operations on the list (like calling Collections.sort())
>> will keep both the backing data and the displayed list of editors in
>> sync.
>
> I'm aware of this widget but I'm trying to use HasDataEditor with a
> CellTable so it doesn't exactly translate 1:1
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to