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
2
votes
1 answer

What is the EventBus passed into the AbstractActivity.start in GWT intended to be used for?

Before using the activities framework I would typically have one Global/Singleton instance of the GWT EventBus. Now I noticed the activity class passes an instance into my activities. Is this eventbus intended to do cross-application client-side…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
2
votes
1 answer

GWT RootLayoutPanel: This widget's parent does not implement HasWidgets

I'm working with GWT 2.4 and MVP pattern, so I have Presenters and Views (without UIBinder). I have problems with one of them. I have a View with a TabLayoutPanel and more widgets inside. If I use a LayoutPanel all works fine, but if I use…
jav_000
  • 173
  • 6
  • 13
2
votes
2 answers

Activity handlers don't get removed

I'm trying to get up to speed on using GWT Activities and Places. I'm testing with some source code originally found on this good blog post. I'm finding the Handlers that get added during bind() never seem to removed. My little understanding of…
Justin
  • 6,031
  • 11
  • 48
  • 82
2
votes
1 answer

Best practice to creating View layer in MVP GWT

I red google-gwt article about MVP and would like to ask about how you are creating the view layer. Suppose you have three different "elements" on one view, the Tree, the Table and Text. And now I think the best practice is to create these three…
Dawid D
  • 1,057
  • 13
  • 28
2
votes
2 answers

GWT MVP introduction questions

I have read a lot of gwt-mvp questions that are asked here, but since i'm totally new to this design pattern I would like to ask some questions: [1] The Activity-Place pattern is a different pattern than mvp? [2] In the MVP pattern presenters…
Fotinopoulos Giorgos
  • 1,027
  • 3
  • 17
  • 36
2
votes
2 answers

GWT: Tokenizing complex places

Using GWT with the MVP pattern, I'd like to have a place that represents a somewhat more complex state (as opposed to the canonical example that has only a "name"). My first inclination was to use a shared transfer object that I would serialize for…
Ray
  • 4,829
  • 4
  • 28
  • 55
2
votes
2 answers

GWT Activity and Editor Framework

I´ve been working on some small projects using GWT MVP framework + GWT Editors framework. I have Views interfaces with fields declared like: @Path("field") IsEditor> getField(); Views implementations look like this: @UiField …
user709433
  • 101
  • 1
  • 4
2
votes
0 answers

GWT RunAsync - Strange behavior in release mode

As suggested in this question GWT - Where should i use code splitting while using places/activities/mappers?, I created an ActivityProxy to nest my activities. I based my implementation on this…
Garagos
  • 588
  • 1
  • 4
  • 16
2
votes
0 answers

how u maintain a static menu bar in gwt using mvp framework

I would love to know from anyone who knows how we can keep the a widget in mvp static by putting it in the entry point class.Or is it recommended to include the widget in appcontroller. I have an issue like I want to make my menu bar static…
2
votes
1 answer

What is the IoC / "Springy" way to handle MVP in GWT? (Hint, probably not the Spring Roo 1.1 way)

This is the Spring Roo 1.1 way of doing a factory that returns a GWT Activity (Yes, Spring Framework) public Activity getActivity(ProxyPlace place) { switch (place.getOperation()) { case DETAILS: return new…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
2
votes
1 answer

mocking GWT EventBus with mockito

I have some problems spying on a real SimpleEventBus implementation of EventBus: I have an activity which is also a handler for a specific event. This event is fired by a service. The code: @Mock private AssetCellList view; @Mock private…
ramon_salla
  • 1,587
  • 1
  • 17
  • 35
2
votes
1 answer

GWT 2.1 Place/Activity technique glitch: URL changes before navigation is confirmed

I'm reading this google guide and using this sample code provided by google, but there's a glitch: using the back/forth buttons makes the URL change before the confirmation dialog has returned. This means that if the user decides not to navigate…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
2
votes
1 answer

How to change only one widget and leave the others the same with GWT's built in MVP-framework?

I'm just getting started using the built in MVP framework in GWT 2.1 and I have, what I think, a very simple question. When I read the official tutorial here or look at the gwt-plattform example here, one view always replaces another view. But what…
Chris Boesing
  • 5,239
  • 3
  • 26
  • 30
2
votes
2 answers

what should be the role of Controller in gwt applications implementing MVP pattern?

I am new to GWT and getting back to programming after long gap...my question is about MVP implementation in GWT, I have gone through the following post and they were quite helpfull, but i still have some doubts What are MVP and MVC and what is the…
2
votes
1 answer

MVP: multiple Views one Place

I am currently working on a web application that should implement the MVP design pattern, and I'm a little bit confused: The app will only have one Place to show composed by three smaller Views, there's no possibility to go in another Place just to…
1 2
3
8 9