GWT: Competing Events ( Blur / Selection ) -


i have tree containing data , widgets editing data single tree node. data tree nodes updated if 1 of widgets looses focus ( blurhandler ). if other node selected, widgets updated, showing data selected tree node ( selectionhandler ).

my problem is:

if i'm done editing widgets content , choose new tree node, events ( onselection , onblur ) fired in no clear defined order. testing firefox, event order onblur > onselection. in ie, chrome , safari order onselection > onblur.

so know if can define event order? or had similar problem , can tell me how can fix it?

in body of handler event want go second, put following:

scheduler.get().scheduledeferred(new scheduler.scheduledcommand() {     @override     public void execute() {         // action goes here     } }); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -