Open GoogleCodeExporter opened 8 years ago
Your error here is that ApplicationPresenter shouldn't be an handler of
MainEventBus & ApplicationEventBus. You should change your event bus to:
public interface MainEventBus extends EventBus {
...
@Event(modulesToLoad = ApplicationModule.class)
public void goToAppMainScreen();
}
Now the error message could be improved to help you understand why you have
this error. I will change it for a future release.
Original comment by plcoir...@gmail.com
on 27 Sep 2010 at 9:04
Thanks for the quick reply. I was right that I had a slighly wrong
understanding of how forwarding of events works.
Now it compiles fine.
Best regards,
Konrad Ciborowski
Kraków, Poland
Original comment by ci...@poczta.fm
on 27 Sep 2010 at 9:31
Original comment by plcoir...@gmail.com
on 1 Oct 2010 at 11:48
Original comment by plcoir...@gmail.com
on 1 Oct 2010 at 11:48
I also had this error message when my MainEventBus had a child module's view as
its start view. I have a main module with two child modules, the application
module itself and a login/registration module (might be a misuse, I'm just
trying it out).
I put the startView=LoginPanel.class attribute on the MainEventBus, so Mvp4g
wanted to bind the LoginPresenter with the MainEventBus, not the
LoginModuleEventBus.
Another related exception I faced was "com.mvp4g.client.Mvp4gModule: child
module ***.LoginMvp4gModule doesn't define any event to load its view." This
was because the autoDisplay attribute of the ChildModule annotation defaults to
true. There could be a hint in the exception about this property.
(Of course, I'm just trying the multi modules feature for the first time, so I
don't yet clearly get the all concepts.)
Best regards,
Gabor
Original comment by hhcofc...@gmail.com
on 1 Jun 2011 at 10:20
Original issue reported on code.google.com by
ci...@poczta.fm
on 27 Sep 2010 at 8:43