Re: Populating ListBox's using Activities and Places

2011-07-13 Thread Thad
I'm stumped on how dumb I can make a particular view. Maybe this is another thread, but I have a view with two FormPanels, each FormPanel holding a FileUpload. In my onSubmitCompleteHandlers, I'd like the view to respond, in once case by calling an RPC function. How do I get all this into my presen

Re: Populating ListBox's using Activities and Places

2011-07-13 Thread Adam
We use a slight various of Thomas' suggestion. We introduced a new interface / class called a "Broker" which we define all of our rpc calling methods in. Then be default we typically have the activity implement the Broker interface, but if need be we could have a new class implement it. We pass

Re: Populating ListBox's using Activities and Places

2011-07-13 Thread Thomas Broyer
One of the goal of MVP is to make your presentation logic quickly & easily testable (in GWT, that means using "pure JUnit" rather than the sluggish GWTTestCase). As a result, you'd like to make you view as "dumb" as possible (without necessarily pushing everything to presenter though, as it'd lo

Populating ListBox's using Activities and Places

2011-07-13 Thread Craig
I have an application that uses the new Places and Activities methodology. In my View interfaces I have methods such as : HasValue getSubject(); HasValue getType(); Type is a simple POJO that has an id and name. The selections available for this is driven from the result of an RPC call.