Detecting Proxy Update via EntityProxyChange event

96 katselukertaa
Siirry ensimmäiseen lukemattomaan viestiin

Arash

lukematon,
29.1.2012 klo 7.29.1429.1.2012
vastaanottaja 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

lukematon,
29.1.2012 klo 10.08.4229.1.2012
vastaanottaja google-we...@googlegroups.com
If you already know the EntityProxyId<?> the event is about?

Ignacio Baca Moreno-Torres

lukematon,
23.5.2012 klo 14.32.3223.5.2012
vastaanottaja 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

lukematon,
31.10.2013 klo 5.39.0031.10.2013
vastaanottaja 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
Vastaa kaikille
Vastaa kirjoittajalle
Välitä
0 uutta viestiä