Skip to content
Frank Hossfeld edited this page May 1, 2018 · 11 revisions

If you have other questions about the framework or would like further information about a question, just let me know by leaving a message on the FAQ discussion in the Mvp4g Google group or the Mvp4g Gitter room.

General

Will Mvp4g2 work with J2CL / GWT 3??

Yes, it will!

Mvp4g2 has no dependencies to GWT nor to any other third party lib that has a dependency to GWT! So we expect, that programs based on mvp4g2 will work with J2CL / GWT 3. But, keep in mind, that may be other libs - you are using inside your project - will avoid working with J2CL / GWT 3. In this case your application will not work with J2CL / GWT 3!

What's a presenter?

In a MVP architecture, the presenter is in charge of the logic of the application. It acts upon the model and the view. In the Mvp4g2 framework, a presenter is also an object that implements the IsPresenter-interface.

What's a view?

In the MVP architecture, a view is the object that displays the data and routes user commands to the presenter to act upon that data. In the Mvp4g2 framework, a view extends the LazyReverseView-class or implements the IsLazyRevierseView-interface.

Are there limitations regarding the use of widget libraries?

The developer is free to use any widgets library he wants. There are no limitations!

What's an event bus and how can it dispatch events?

The event bus is a Java object, generated by the Mvp4g library in charge of dispatching events between presenters and handlers. It allows presenters and handlers to communicate between each other without a direct link between them (no spaghetti effect).

When and how are presenters and views instantiated? When and how views and services injected into presenters? When is the event bus created and configured?

All these actions are done thanks to the following lines:

MyApplication application = new MyApplicationImpl();
application.run();

The first line instantiates the generated Java class.

The call application.run(); will:

  • create the instances of views, presenters and history converters.
  • create the event bus.
  • injects views and event bus in the presenters, inject the eventbus into the handlers and inject the presenter into the view.

Is Mvp4g compatible with all browsers?

Mvp4g is 100% Java so it is guaranteed to be compatible with all the browsers thanks to the GWT compiler.

Can Mvp4g be used with gwt-dispath or restful services?

Yes, Mvp4g let you use anything you want to do the back-end communication.