Wednesday, December 18, 2013

RequestFactory WITH MGWT-PHONEGAP

Hi, I have tested this RPC with mgwt-phonegap and works great, but
I have a problem with this  Blog Daniel Kurka - problem (RequestFactory with mgwt-phonegap)

code:
DefaultRequestTransport requestTransport = new DefaultRequestTransport();
                requestTransport.setRequestUrl("http://www.dailypoor.appspot.com/gwtRequest");
                FACTORY.initialize(EVENTBUS, requestTransport);

web.xml
<servlet>
    <servlet-name>requestFactoryServlet</servlet-name>
    <servlet-class>com.google.web.bindery.requestfactory.server.RequestFactoryServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>requestFactoryServlet</servlet-name>
    <url-pattern>/gwtRequest</url-pattern>
  </servlet-mapping>


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment