Questions tagged [gwt-mvp]

This is an implementation of the Model-View-Presenter pattern for GWT.

This is an implementation of the Model-View-Presenter pattern for GWT (Google Web Toolkit) based on the "GWT App Architecture Best Practices - Ray Ryan" GWT Model-View-Presenter is a design pattern for large scale application development. Being derived from MVC, it divides between view and logic and helps to create well-structured, easily testable code

124 questions
5
votes
4 answers

GWT Anchor to Place?

In a GWT 2.1+ app, how can I generate a link to a place for external consumption? For instance, say I want to create a link to Place1. For internal consumption I could do presenter.goTo(new Place1("token")). How can I make this into an Anchor or…
Justin
  • 9,419
  • 7
  • 34
  • 41
5
votes
2 answers

What is the advantage of the MVP pattern (GWT)

I just read this article and it did confuse me a lot. Secondly, this model allows us to minimize our use of GWTTestCase, which relies on the presence of a browser, and, for the bulk of our code, write lightweight (and fast) JRE tests (which don't…
Mark
  • 7,507
  • 12
  • 52
  • 88
5
votes
2 answers

How do you use GWT's SimpleEventBus or EventBus?

I'm working on developing some simple graphing software which needs to be implemented in both swing and gwt. On the gwt side, I'm going to use gwt-g2d for the canvas. I was hoping to use an eventbus across both implementations to simplify some of…
Brian
  • 1,026
  • 11
  • 18
4
votes
1 answer

GWT - Where should i use code splitting while using places/activities/mappers?

"core" refers to the initial piece of the application that is loaded. In order to bind url to places, GWT uses PlaceTokenizer

. When loading the application from the url, it calls the method P getPlace(String token) to retrieve a…

Garagos
  • 588
  • 1
  • 4
  • 16
4
votes
2 answers

GWT/Gin Presenter instantiation

I've implemented a GWT application following the recommendations of this tutorial. I also downloaded the sample code, and I noticed that every Presenter of the demo needed to be injected in the main presenter constructor to be instantiated. The…
Carlos Gavidia-Calderon
  • 7,145
  • 9
  • 34
  • 59
3
votes
3 answers

GWT MVP and SmartGWT compatibility

In my new project client has requested to use GWT/SmartGWT for developing presentation tier. (Note: Screens are not much complex) I am aware about the MVP Pattern (never used) but I need to decide which flavor of the MVP pattern I should use which…
Bhavesh
  • 519
  • 6
  • 26
3
votes
3 answers

Preserving navigation/history state in GWT with MVP pattern

I've implemented a basic GWT app based on on the MVP pattern Google recommends. What I'm trying to figure out is the best way to store navigation/history state once you fill your application with data. Let's say you have a search that returns a…
stuff22
  • 1,662
  • 4
  • 24
  • 42
3
votes
1 answer

Creating dynamic view in GWT using MVP Arch

I am starting new project using GWT but in this project view will be dynamic. I will read all metadata from XML configuration files and create view according to this metadata. I want to use MVP architecture with GWT but I need to know how I can use…
firstthumb
  • 4,627
  • 6
  • 35
  • 45
3
votes
1 answer

GWT/MVP: detecting change events in a table with proper MVP pattern

We're using gwt-presenter, but not really a question specific to that... I've got a table with users in it. As I build the table in the view (from the data provided by the presenter), I need to add two action buttons ("Edit", and "Delete") at the…
jmccartie
  • 4,956
  • 8
  • 50
  • 71
3
votes
1 answer

Using GIN and mvp4g

I'd like to use gwt-dispatch Command Patter implementation in my app. I'm using also mvp4g. How can I make DefaultDispatchAsync available to inject into my presenters using GIN or make it globally available, so I can access it from my presenters?
jjczopek
  • 3,319
  • 2
  • 32
  • 72
3
votes
2 answers

Use html template in gwt

I want to realize a MVP gwt application using this external HTML template. Is it possible create HTML pages and use them in a gwt project instead of write java code in "view" classes to produce HTML?
Mario Lepore
  • 307
  • 2
  • 8
  • 18
3
votes
1 answer

Where to put state that's needed by different GWT activities?

I'm currently working on a GWT application and I'm still a little fuzzy on how it all fits together (the joy of having to make changes without first coming to an understanding of the whole framework, although that might be difficult anyway). We have…
Joey
  • 344,408
  • 85
  • 689
  • 683
2
votes
2 answers

GWT MVP History back

I have a MVP application implemented. Back button is working fine. I'd like to programatically go back to the previous place. How would I do that? I'm looking for something like: clientFactory.getPlaceController().goBack(); Thanks.
Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59
2
votes
3 answers

Implementing multiple views via GWT-platform?

I'm implementing a web application which will support different views according to different browsers. For example, In mobile browsers, it will show a smaller view to users with less UI elements. But we'd like to use same presenters. I have a…
Jake W
  • 2,788
  • 34
  • 39
2
votes
1 answer

Achieving MVP architecture with a CellTable

MVP paradigm assumes that the model and view are connected via the presenter, but CellTable by default requires a type argument in its constructor. So does this mean CellTable cannot be made to fit MVP?
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
1
2
3
8 9