notification of data synchronization

4 views
Skip to first unread message

Johan Rydberg

unread,
Sep 1, 2010, 3:13:08 AM9/1/10
to GWT Pectin
Is it possible to somehow hookup a listener that will
get notified when the binding moves data from one end
to the other?

I would like to send out an application-wide message
on my eventbus when something changes.

Andrew

unread,
Sep 1, 2010, 4:35:07 AM9/1/10
to GWT Pectin
Can you just listen to value change events on the model? The binding
will either respond to a value change event or cause one. Or are you
only interested in value change events that are made by the binding?

Johan Rydberg

unread,
Sep 1, 2010, 7:25:34 AM9/1/10
to gwt-pecti...@googlegroups.com
On 9/1/10 10:35 AM, Andrew wrote:
> Can you just listen to value change events on the model? The binding
> will either respond to a value change event or cause one. Or are you
> only interested in value change events that are made by the binding?
>
I was thinking more in the lines of hooking up a listener to the Binder,
like this;

binder.addDataSyncHandler(new DataSyncHandler() {
public void dataSynchronized(DataSyncEvent event) {
...
}
});

And that will be fired for any binding that has been bound using that
binder.

Andrew

unread,
Sep 1, 2010, 8:18:00 AM9/1/10
to GWT Pectin
There's nothing there for that at this point, it would probably need
some unification of all the bindings to support it. I did a lot of
clean up in the last release but I suspect that there would need to be
more to support this. You can raise an issue if you like and I'll
have a think about it.
Reply all
Reply to author
Forward
0 new messages