Proxy events being fired/handled twice after upgrade to 1.0-RC2 from .8 om GWT 2.5

54 views
Skip to first unread message

coderinabstract

unread,
Apr 3, 2013, 1:38:02 PM4/3/13
to gwt-pl...@googlegroups.com
Weird behavior on app after upgrade

Have a presenterwidget firing event and presenter intercepting standard proxy event.... 

seing it being handled twice in event handler? do not see on older version in app.

Anybody seen this... ?

Thanks and cheers...

coderinabstract

unread,
Apr 3, 2013, 3:52:33 PM4/3/13
to gwt-pl...@googlegroups.com
For more clarity this are event generated by @GenEvent and handled by @ProxyEvent in presenter. These have been working fine for a long time in an older app and started noticing this in a few screens where data started getting populated twice suddenly on the double firing of events.

coderinabstract

unread,
Apr 3, 2013, 9:15:33 PM4/3/13
to gwt-pl...@googlegroups.com
After a lot of spinning.. reverted back to .8-SNAPSHOT and things are back to normal again.. no multiple events firing.. Please let me know if you want me to open an issue... Feels like this is deep in the framework... Thanks and Cheers.

Laurent Mignon

unread,
Apr 4, 2013, 4:41:35 AM4/4/13
to gwt-pl...@googlegroups.com
HI,

Same issue but solved by:
* removing the Ginjector class, (and its declaration in the gwt.xml file) 
* removing my entry point (and its declaration in the gwt.xml file)
* modifying the way the module is declared in the gwt.xml file. 
        <inherits name='com.gwtplatform.mvp.MvpWithEntryPoint'/>
        <set-configuration-property name="gin.ginjector.modules"
                                value="x.y.z.gin.ClientModule"/>
In my case the problems seemed to be related to the new way GWTP is bootstapped and duplicate initializations by the Ginjector.class (this one seems to be no more required)

-lmi

coderinabstract

unread,
Apr 4, 2013, 2:11:08 PM4/4/13
to gwt-pl...@googlegroups.com
Thanks for the suggestion. I think I followed all the steps with only difference I had custom Entry point as shown in docs. Will try it out again and update. However, I think there has to be some error handling when this happens to alert the user that single event is being handled twice, as this is a major issue and also alert user on illegal configuration similar to errors on double bound presenters/views.

Thanks again.. and Cheers

Joseph Lust

unread,
Apr 4, 2013, 3:16:26 PM4/4/13
to gwt-pl...@googlegroups.com
Thanks Laurent Mignon.

I've been seeing some odd double proxy calls (not using @GenEvent) when using breakpoints (hit twice, expected once). I'm on that newer RC, but even before that I saw an odd behavior. One very odd behavior is on clicking links to other pages, i.e. #!foo;n=1;m=2, the URL appears in the browser location bar as  #!foo;n=1;m=2 and then flips to  #!foo;m=2;n=1.

However, I bet this has to do with Ginjector setup as I've had it in my gwt.xml file. I bet there are two of them kicking around in there. I'll check it out tonight.

That said, I think the docs need a clean up as various different mechanisms are shown in the various docs and samples, but combinations of them can clearly have bad consequences. It would be great if one of them could be the suggested mechanism and the others deprecated and labeld as such.

Sincerely,
Joseph

Christian Goudreau

unread,
Apr 13, 2013, 5:01:06 PM4/13/13
to gwt-pl...@googlegroups.com
Agreed, there's a lot of cleanup to do in the documentation. If using Ginjector generation, you MUST be really careful. But the old way of doing things is still working as the Ginjector generation is only kicked off when GWT.Create applicationController.


--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Christian Goudreau
Reply all
Reply to author
Forward
0 new messages