Re: Problem passing a Set as a parameter in RequestFactory?

2011-05-13 Thread Brian Reilly
I did some debugging, looking into the GWT source, and it seems like there's a problem with decoding the elements of the set. The JSON sent over the wire looks fine, but when the data structure is being constructed on the server side, all of the properties are null at the time that hashCode() is ca

Re: Problem passing a Set as a parameter in RequestFactory?

2011-05-13 Thread Eric Andresen
I switched my Set<>s to List<>s and it works no problem. What is interesting is that I use Set all over the place without any trouble, but when I use the Set it seems to fail. If I had to speculate, i'd guess that the RF is trying to recreate the collection using a hashcode based on the id of the

Re: Problem passing a Set as a parameter in RequestFactory?

2011-05-13 Thread Brian Reilly
This sounds like a problem that I ran into this as well, and even had a chance to sit down with David Chandler at Google I/O to look over it. Your case is more straightforward than mine (which involved trying to add to a Set on fetched ValueProxy) but I'd bet it's the same problem. I'm planning to

Re: Problem passing a Set as a parameter in RequestFactory?

2011-05-13 Thread Eric Andresen
It looks like I'm running into the problem inside EntityCodex.decode() : In the red code below, I see it iterate over all three items in my collection, but each time the "element" that comes out of the "decode" call has the same hashCode, so the HashSet ignores it. The hashCode always seems t

Problem passing a Set as a parameter in RequestFactory?

2011-05-12 Thread Eric Andresen
I have an application that creates a Set (a ValueProxy), and sends that set across the wire using the RequestFactory. When I add 3 distinct elements into the set and fire the context, I only get one item in the set on the server side. What is interesting is that I can see my setters being calle