Questions tagged [gwt-dispatch]

gwt-dispatch implements a reusable 'command pattern' API for GWT. Inspired by Ray Ryan's Best Practices For Architecting Your GWT App session at Google I/O 2009, this is an implementation of the 'command pattern' discussed at the beginning of the video.

gwt-dispatch implements a reusable 'command pattern' API for GWT. Inspired by Ray Ryan's Best Practices For Architecting Your GWT App session at Google I/O 2009, this is an implementation of the 'command pattern' discussed at the beginning of the video.

12 questions
3
votes
1 answer

Gwt-dispatch injection

To use gwt-dispatch we create an object like: private static final DispatchAsync dispatchAsync = GWT.create(DefaultDispatchAsync.class); Is there any way to do this with injection, I mean how to inject this DispatchAsync object into other classes…
Gaurav
  • 31
  • 2
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
2
votes
1 answer

gwt-dispatch - command pattern alternative for GWT

Is there alternative to gwt-dispatch to be used in GWT project?
MatBanik
  • 26,356
  • 39
  • 116
  • 178
2
votes
1 answer

Why doesn't GWT use gwt-dispatch?

After looking into gwt-dispatch and the Google Wave I/O presentation (Best practices) (video here), I'm wondering why the official GWT release (2.0) doesn't use dispatch (ie. the command pattern) for it's RPC calls. Does anyone know?
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
1
vote
2 answers

Provider not getting injected

I am using gwt dispatch to communicate and get data from server to client. In order to get user specific data I want to store the user object in httpsession and access application specific data from servlet context but when I inject…
Komal Goyal
  • 233
  • 5
  • 17
1
vote
1 answer

When session timeout redirect to login page in GWT project

Could you advice me how to proceed in catching session timeout in a GWT project. I m using gwt dispatch lib. I m wonderig can i do something like implementing a filter and then checking if session exist or no but i suppose in gwt projects there are…
brakebg
  • 414
  • 3
  • 11
  • 24
1
vote
1 answer

Where to keep gwt-dispatch classes?

Where gwt-dispatcher classes (Action, Result, Handler) should be kept? I mean it should be all in client package or maybe shared or any other combination? How do You handle this?
jjczopek
  • 3,319
  • 2
  • 32
  • 72
0
votes
1 answer

RPC call doesnt working. GUICE + DISPATCH

I have a simple action and result classes. Handler for this just increment variable in action and returns it in result. Action public class IncrementCounter implements Action { private int amount; /** For…
Andrew
  • 591
  • 2
  • 12
  • 33
0
votes
1 answer

how to access ServletRequest object in gwt-dispatch ActionHandler<>?

This may be obvious but I can't see to find my way to the ServletRequest object within a gwt-dispatch ActionHandler.execute() method. I'm needing to get to the servlet's getRemoteHost() method. I'm using v1.0 of gwt-dispatch.
Stevko
  • 4,345
  • 6
  • 39
  • 66
0
votes
3 answers

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…
jjczopek
  • 3,319
  • 2
  • 32
  • 72
0
votes
1 answer

gwtp dispatchAsync not injected in onBind() method

I tried to inject DispatchAsync in Presenter class's onBind() method. @Inject DispatchAsync dispatchAsync; But, its null while I try to invoke execute inside dispatchAsync.onBind() method. I need to get details from server while loading. What can…
Bennet
  • 387
  • 1
  • 6
  • 13
0
votes
2 answers

Common calls handling using GWTP

I have a presenter which makes calls to Handler and get the data from server same data is needed for another widget which is a miniature version of the existing view, but this will present all time in application. Here what i have common is calls to…
JAVAC
  • 1,230
  • 3
  • 17
  • 38