Hi,
I'm not sure if this is the right place to ask for help, but here we
go. I tried to use the gwt-dispatch jar to for some better pattern.I'm
using google-gin and guice for DI. The app start up fine and I get no
errors. But when I try to execute some Action with the Dispatcher I
get:

net.customware.gwt.dispatch.shared.UnsupportedActionException: null

After some digging in the code It seems like its unable to find the
handler for the action. But I have no clue why. Here is are the
related classes:

public class LoginUserHandler extends AbstractActionHandler<LoginUser,
LoginUserResult>{

    public LoginUserHandler() {
                super(LoginUser.class);
        }



        private IMAPService service = new IMAPServiceImpl();

    public LoginUserResult execute(LoginUser action, ExecutionContext
context) throws ActionException {
        try {
            return new LoginUserResult(service.login(action.getUserName
(), action.getPassword()));
        } catch (IMAPServiceException e) {
                e.printStackTrace();
            throw new ActionException(e);
        }
    }



    public void rollback(LoginUser user, LoginUserResult result,
ExecutionContext context) throws ActionException {
        // Nothing todo here
    }
}

public class LoginUserModule extends ServerDispatchModule{

        @Override
        protected void configureHandlers() {
                bindHandler(LoginUserHandler.class);
        }

}

public class MyGuiceServletConfig extends GuiceServletContextListener{

        @Override
        protected Injector getInjector() {
                return  Guice.createInjector(new DispatchServletModule(),new
LoginUserModule());
        }

}

Any ideas are welcome..

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to