Re: GWT - Basic RequestFactory example
In my example, dependency injection is used over the server side service classes, so I can inject into them other classes using DI. This gives me the ability to test my services in isolation and also few more advantages such as scopes and etc. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Basic RequestFactory example
Hello Miroslav, sorry, my fault. You are right. Now everything works. I will test your example. Can you explain to me, why i better to use Injection of RequestFactory? Many thanks, Lubor On 19 led, 13:10, Miroslav Genov wrote: > Hello, > Are you sure that all jar from lib folder are added in your classpath ? > > It seems that guice-servlet-3.0-rc1.jar is missing. > > Also you can check whether you have only one version of guice in your > classpath. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Basic RequestFactory example
Hello, Are you sure that all jar from lib folder are added in your classpath ? It seems that guice-servlet-3.0-rc1.jar is missing. Also you can check whether you have only one version of guice in your classpath. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Basic RequestFactory example
Thanks for your reply Miroslav, unortunatelly when i am trying to Run as Web Application in Eclipse, i got this error: Initializing AppEngine server Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed C:\development\springsource\workspace \MySampleApplication\war\WEB-INF/appengine-web.xml Successfully processed C:\development\springsource\workspace \MySampleApplication\war\WEB-INF/web.xml [WARN] failed com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@608760{/,C: \development\springsource\workspace\MySampleApplication\war}: java.lang.NoClassDefFoundError: com/google/inject/servlet/ GuiceServletContextListener [WARN] failed JettyContainerService$ApiProxyHandler@157ea4a: java.lang.NoClassDefFoundError: com/google/inject/servlet/ GuiceServletContextListener [WARN] Error starting handlers java.lang.NoClassDefFoundError: com/google/inject/servlet/ GuiceServletContextListener I think, that i have problems with Guice library, but when i try to change libraries to 3.0R2, i got same error. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Basic RequestFactory example
I had a small sample project that could help: https://github.com/mgenov/injecting-request-factory I don't know how simple is it, but it may help you some how. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT - Basic RequestFactory example
Hello all, i am completely beginner in Java and GWT. When i create GWT project in Eclipse, is there functional GWT-RPC interface. I am able to change function of this example, connect into database, get database data from server to client, load war on Tomcat etc. But i think, that i need functionality of RequestFactory, however i don't uderstand to examples (for example http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk%2Fsamples%2Fexpenses). In these examples is very much things, which are unknown to me now (Maven, Spring Roo). On http://code.google.com/intl/cs-CZ/webtoolkit/doc/latest/DevGuideRequestFactory.html is good tutorial, but there is not information, where to place this pieces of code. Can anyone send me example without unecessary code, ideally with explanation, why is this on server, why is this on client, on shared, why i need (do i?) domain etc? Many thanks. Lubor Kemza -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.