gwt-mvp

Some GWT MVP newbie questions

I have worked with ASP.NET(C#, classic/MVC), Django(Python) and CI(php) but I am completely new to GWT and JSP/servlets, and I have been told to learn GWT MVP. So, I read a tutorial for GWT-MVP from google. I downloaded the project Contacts, which was used in that tutorial. After reading those, I could not figure out the whole thing. Her...

Scaling gwt's "Contacts" (sample project) AppController with MVP

I'm just learning GWT so I'm still trying to sort out all of its quirks and features. I'm reading through the example they give illustrating the MVP pattern, and I pretty much get it, except I'm wondering about one thing. The AppController they use implements the ValueChangeHandler interface and the onValueChange method is triggered wh...

Looking for input on GWT / MVP action w/o browser history change

Hello there, I am trying to develop a GWT app with the MVP pattern. So far so good except for one specific case of actions: actions that do not change the url (no browser history change). In the GWT MVP pattern, events are sent from presenters, the an app controller catches them and update the browser history. If the history has change...

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? ...

Connecting gwt-dispatch with guice and mvp4g

I have some questions regarding gwt-dispatch and guice. I'm using Guice 2.0, gwt-dispatch 1.1.0 snapshot, mvp4g 1.1.0 and GIN 1.0 First of all, I have defined simple action, result and handler: ListContactsAction.java public class ListContactsAction implements Action<ListContactsResult>{ public ListContactsAction() { } } L...

GWT Best Practices - MVP

A question for all the GWT gurus out there. I'm a newbie in GWT and am trying to understand the best practices of coding a GWT application. I have gone through "Large scale application development and MVP" based on Ray Ryan's talk at Google I/O 2009 and it has given me a good starting point. I downloaded the sample source code as well ...

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 end of the row. What's the best way to assign click handlers to these buttons so the pres...

How to collect a number of asynchronous callbacks?

Hi! Are there any techiques to collect a number of gwt-rpc service callback results? I have a dialog window used to create new or edit existing object. These objects have a number of references to other object. So when user creating or editing an object he may pick one in the ListBox. public class School { private String name; ...

MVP: Should the View implement a Presenter's interface or vice versa?

I am doing my first steps with GWT. I have a question after reading: Large scale application development and MVP Large scale application development and MVP - Part II In the first example the Presenter defines the interface for the View. public class ContactsPresenter implements Presenter { ... public interface Display extends H...

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 MVP for dynamic view, because all samples I see have static contents. Do you have any sugg...

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 http://stackoverflow.com/questions/2056/what-are-mvp-and-mvc-and-what-is-the-difference http://stackoverflow.com/questions/123...

Why two appoaches of implementing interface ( view and presenter) used GWT-MVP tutorial ?

My question is based on GWT Tutorial http://code.google.com/webtoolkit/articles/mvp-architecture-2.html Here we have two pair of view and presenter In EditContactPresenter we are defining the view interface inside the presenter class EditContactPresenter implements Presenter{ public interface Display { HasClickHandlers getS...

GWT ListBox with HasValue and @UiTemplate

I am trying to use ListBox with HasValue interface implemented, I got code / idea from the following link and I made the my own list box class http://turbomanage.wordpress.com/2010/04/01/selectonelistbox-for-use-with-gwtmvp/ Now the problem is I am using @UiTemplate in my Views and I am finding it difficult to cast ListBox to this ne...

Does anyone exist who has used JBoss Errai in their projects?

I am searching GWT Design to setup project. I could use MVP(GWTP) or JBoss Errai. I haven't decided yet. Is there anyone who experienced in one of these? You can give advantages and disadvantages of these frameworks. ...

GWT MVP Problem

Hi All, I am a newbie to GWT .I am trying to implement my code using MVP. So following a tutorial I have created a View, I have created a Presenter, I created a Display interface inside the presenter, My view implements my Presenter.Display interface. Just for the proof of concept I created a Button in the View. In my presenter I ...

String.indexOf(String s) in GWT fails when deployed to tomcat server

I seem to be having having an issue with String.indexOf(String s)/String.lastIndexOf(String s) in my GWT2 app when running it on a tomcat server. The following code is in a Presenter (client side). It works perfectly when running via the GWT Eclipse plugin, but returns "" when the app is deployed to a tomcat6 server. int start = messa...

How do GWT 2.1 data presentation widgets work in conjunction with MVP?

The Data Presentation Widgets in GWT 2.1 seem to have it all sewn up: model, view and presenter. So how does all of this data presentation goodness fit in with MVP? For example; how might I associate presenter (aka Activity) instances with the nodes of a CellTree? And is that even something that I should be trying to do? EDIT (elaborati...