tom
unread,Sep 16, 2011, 1:58:24 PM9/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Hello,
in my app, I've got a tree that displays data for my EntityProxies. Now when an EntityProxy is updated, I'd like to update the data shown in the tree. For this, I've implemented an EntityProxyChange handler that is then registered for the type of EntityProxies I want to handle the updates for.
This works fine. Every time I persist my EntityProxies, an EntityProxyChangeEvent with an UPDATE WriteOperation is fired and it ends up in my handler.
The problem is that the handler is also notified when the tree loads the data (every time a new node is expanded). I guess this happens because seeing an EntityProxy for the first time is also an EntityProxyChangeEvent with an UPDATE WriteOperation.
How can I distinguish these two different events?
regards
Tom