gwt-dispatch

Connecting gwt-dispatch with guice and mvp4g

与世无争的帅哥 提交于 2019-12-13 04:09:23
问题 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() { } } ListContactsResult.java public class ListContactsResult implements Result { private List<Contact> contactList; public ListContactsResult() { } public ListContactsResult(List

Provider<HttpSession> not getting injected

China☆狼群 提交于 2019-12-11 08:25:06
问题 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 Provider<HttpSession> when the handler execute is called but the dispatchservlet the provider is null i.e it does not get injected. following is the code from my action handler @Inject Provider<HttpSession> provider; public ReadEntityHandler() { } @Override public