Detecting Proxy Update via EntityProxyChange event

96 views
Skip to first unread message

Arash

unread,
Jan 29, 2012, 7:29:14 AM1/29/12
to Google Web Toolkit
I am trying to add a handler to detect the proxy changes. The
event.getWriteOperation() does detect the UPDATE operation but it is
more generalized than what I actually need. The doc reads: "An UPDATE
event is fired whenever a client encounters a proxy for the first
time, or encounters a proxy whose version number has changed." How do
I only detect the proxy whose version number has changed?!!!

Thanks,

Thomas Broyer

unread,
Jan 29, 2012, 10:08:42 AM1/29/12
to google-we...@googlegroups.com
If you already know the EntityProxyId<?> the event is about?

Ignacio Baca Moreno-Torres

unread,
May 23, 2012, 2:32:32 PM5/23/12
to google-we...@googlegroups.com
So... what is EntityProxyChange for?

I am using EntityProxyChange to keep in sync two view (list and details of people). But I am not sure if this is correct. Every time I receive an UPDATE event, I send a new request. Because I suscribe EntityProxyChange in both views, list and details, I need to send two request. I use RequestBatcher, so practicaly only one request is sended, but anyway Its look ugly.

If I want to use the "same" proxy in multiples views, views which shown all at the same time, which is the best aproach? EntityProxyChange or create my owns application events.

Jens K. Schødt

unread,
Oct 31, 2013, 5:39:00 AM10/31/13
to google-we...@googlegroups.com
I agree. I get an UPDATE just by getting new proxies. We do not now if the version has changed so why is it an UPDATE...? That should be a FETCH operation
IMO the event is not really useful without this distinction.

Regards, J
Reply all
Reply to author
Forward
0 new messages