Questions tagged [mvp4g]

MVP4g is an extended / enhanced version of MVP which removes the boilerplated code by using annotations to bind the Model-View-Presenter along with EventBus.

GWT is a very powerful framework that allows you to build efficient applications, especially if you follow the Best Practices described by Ray Ryan at Google IO 2009:

  • Event Bus
  • Dependency Injection
  • Model View Presenter
  • Place Service

See http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

Mvp4g provides the tools to efficiently without masses of boilerplate code, achieve these Best Practices.

More Infos: http://mvp4g.github.io/mvp4g/

Source: https://github.com/mvp4g/mvp4g

42 questions
1
vote
1 answer

MVP4G presenter is not set

I have a problem, I develop an app with mvp4g framework. I have one view with tabs where in one tab is second view with tabs. When I try to call presenter from the second view, I get NPE (presenter is null). Here is code for first view: public…
user1289877
  • 279
  • 6
  • 12
1
vote
1 answer

GWT + MVP4g+Ivy: compilation error

I have added the mvp4g jar for project through ivy configuration.It added properly and also mention line in the gwt.xml file for mvp4g.But i am trying to compile the application it gives me following error: Loading inherited module…
1
vote
1 answer

How to check that Image is already exist or not on given path in GWT + MVP4G

I want to check if the Image exists or not on the fileSystem. I am using GWT 2.4 with the MVP4G framework. When I use IO.File on the client side to check file.exist(), it gives me an error because we cant use IO on client side, so How can I check…
milind_db
  • 1,274
  • 5
  • 34
  • 56
0
votes
1 answer

how (multiple=true) presenter and view can be initialized with parameters using eventBus.addHandler?

With the Mvp4g architecture, (Only)one instance of the view (injected using @Presenter annotation)is associated with its presenter. In my case, I have a EntityView with its Presenter EntityPresenter. whenever user clicks on an Leaf node of a…
Shanta
  • 262
  • 1
  • 4
  • 15
0
votes
1 answer

Error while compiling GWT code with Cross-Site support

In our *EntryPoint.gwt.xml we include the following to get Cross-Site support: With no changes to the code, we got the following error during compilation: [java] Compile of permutations succeeded [java] Linking into…
shaman.sir
  • 3,198
  • 3
  • 28
  • 36
0
votes
0 answers

GWT compilation error with Maven: No instance of Presenter is defined. Forget to annotate @Presenter or @EventHandler?

Migrate from Ant Ivy to Maven build tool. Little info about project: Multi-module project with few deploying artifacts. On Ant Ivy everything fine, compilation and deploy passes normal. Migrate on Maven pass successfully with 2.7.0 GWT version.…
0
votes
1 answer

On reload of page, mvp4g history mechanism fails

I have implemented a history mechanism for my mvp4g project. When I traverse through the pages, I can see the url also getting changed. But on reload of any page other than home page, always home page gets displayed instead of the desired page?…
0
votes
1 answer

Adding inject section in project

i have a problem with gin library. I don't understand how to include it in project. The project is very simple.(I made it for understanding gin, but still don't get it. This project should use gin library) We have first page with button and…
Andrew
  • 591
  • 2
  • 12
  • 33
0
votes
1 answer

Deferred binding in multi-module project and issues while accessing eventBus

I am creating a multi-module project with a single entry point class but has some issues, I have 2 modules as :- This is my main module, @ChildModule(moduleClass = MyChildModule.class) public class MyMainModule implements EntryPoint { @Override …
Pratik Rawlekar
  • 327
  • 4
  • 14
0
votes
1 answer

Why page cannot get bookmarked with History mechanism in GWT/MVP4G.?

I am trying to implement history mechanism with a GWT app but has problem with page bookmark i.e. in my case, I have created 3 pages where one get invoked from another. Now, the problem is if page3 is bookmarked then while invoking that bookmark it…
Pratik Rawlekar
  • 327
  • 4
  • 14
0
votes
1 answer

merge column header in DataGrid or cellTable in GWT 2.4

I want to know the workaround used to have colspan in DataGrid or CellTable I saw the the GWT showcase :http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid but there is no TableRowBuilder and AbstractHeaderOrFooterBuilder…
essalprod
  • 28
  • 1
  • 8
0
votes
2 answers

Warn the user that he is about to loose his change in Edit view when leaving to view to another in GWT

I want to prevent the user that he will loose his changes in an EditView when changing the view to another. I use MVP4G in my project and the project is divided as mvp's structure (one package for the template another one for views ..) is there any…
essalprod
  • 28
  • 1
  • 8
0
votes
1 answer

how to use eventBus.removeHandler in mvp4g?

I wanted to delete/clear all the instances of a presenter before firing an event. The documentation says to use eventBus.removeHandler(handler), I am not figure out how to get the handler object from the presenter class Presenter has multiple=true…
MeanMan
  • 1,040
  • 10
  • 25
0
votes
1 answer

How to add presenter to UiRenderer in GWT

I have created the CellRenderer using UiRenderer in GWT as mentioned at this page Link. Everything is working fine except I just don't know how to how to reset all elements in that list, Here is my code. View Class: /** * Created by ashish on…
Ashish
  • 14,295
  • 21
  • 82
  • 127
0
votes
2 answers

GWT exporter cast exception from GWT.create; Tried to use mvp4g with GWT-Exporter but GWT.create didn't work

I tried to use GWT-Exporter and it worked just fine when I copied the example. Then I tried to export an mvp4g Presenter Here's what I did: @Export() @Presenter(view = RegisterPluginDisplay.class) public class RegisterPluginPresenterImpl extends…
jgleoj23
  • 262
  • 2
  • 9