Re: I/O 2013 - GWT Sessions?
Hi! The recording of "*Google I/O 2013 - GWT Roadmap for the Future*" has been uploaded to youtube. You can find it here: http://youtu.be/Ul-LbfkJ-tw Regards Tom -- 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+unsubscr...@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Help! Some confusing problems about gwt rpc with generics!
Thank you very much,Alex. Yes,maybe I shouldn't send List over rpc and use generics in gwt rpc like this way. But I also have some problems about the exception above. The generic parameter K would be still erased in the generated Proxy implementing that interface,even though I bind the parameter type,such as String, in the subinterface, which will be used in the app client page. Right? As it happens when I call the second function T callServer(K id), I am not sure whether it means the gwt rpc doesn't support the generics? Or it is just a bug? Thanks again. On 8月29日, 下午3时18分, Alex Dobjanschi wrote: > Are you sure you need a generic RemoteService? Like Jeff stated, RPC > proxyCreator needs to ensure all subtypes of the types specified in your > RemoteService need to be serialized (that way, server & client can > communicate without problems). This will bloat the size of generated code. > Moreover, having T & K can only reduce the code-size by 100 bytes or so, > like this: > > public interface GenericsRpcService extends RemoteService{ > T callServer(List id); > T callServer(K id); > > } > > *public interface UserRpcService extends GenericsRpcService {* > * // Other (additional methods).* > *}* > * > * > Notice the 2 methods from GenericsRpcService are already present in the > subinterface. This is the only advantage you can get. Besides, you need a > type literal for *GWT.create *so there's no way to call *GWT.create > (GenericRpcService.class) *(same goes with dependency injection -- you > can't bind a generics interface). -- 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: Help! Some confusing problems about gwt rpc with generics!
Thank you very much,Jeff. Yes,as you say, I shouldn't send List over rpc. Another problem, what do you think about the exception above? The generic parameter K would be still erased in the generated Proxy implementing that interface,even though I bind the parameter type,such as String, in the subinterface, which will be used in the app client page. Right? As the exception is threw when I call the second function T callServer(K id), I am not sure whether it means the gwt rpc doesn't support the generics? Or it is just a gwt rpc bug? On 8月29日, 上午10时25分, Jeff Larsen wrote: > Don't send List over rpc. The serializer has to take every impl of List and > create a serialization policy for it. Try it with ArrayList and see what you > get. > > Also, K has to be defined as something, preferably something as strongly > typed as possible. And all instances of T and K must also be serializable. > > in short, creating a generic rpc service this way is going to be a > nightmare. Check out the command pattern for solving this problem. Look into > gwt-dispatch or gwtp also has a dispatching framework. . -- 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.
Help! Some confusing problems about gwt rpc with generics!
I make a test about gwt rpc these days, and meet some confusing problems. At first, I created a project named testGwtRpc by the gwt plug-in. Certainly,this is a helloworld project,and it works fine. Second,I made some changes for the project,especially adding the generics on the rpc service interface. Just like this below: public interface GenericsRpcService extends RemoteService{ T callServer(List id); T callServer(K id); } @RemoteServiceRelativePath("greet") public interface RpcService extends GenericsRpcService{ } Then ,some strange happened.In the client page, it failed when I called the function T callServer(K id) ,but worked fine when calling T callServer(List id). The correspongding exception is as follows: Starting Jetty on port [WARN] testServlet: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.ClassNotFoundException: aa at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: com.google.gwt.user.client.rpc.SerializationException: java.lang.ClassNotFoundException: aa at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 572) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java: 119) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader $ValueReader$8.readValue(ServerSerializationStreamReader.java:137) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java: 381) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:303) ... 22 more Caused by: java.lang.ClassNotFoundException: aa at java.lang.ClassLoader.findClass(ClassLoader.java:359) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 352) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 337) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 542) ... 26 more Actually, I think it is because parameters would be compiled as Object type when we used generics in the gwt rpc service interface. It is undoubted that the Object type can't be serialized in the gwt rpc. So the exception was threw. But after I tried the function T callServer(List id), I knew the problem was not so simple. So, my questions are: How does the gwt compiler work for the java generics in gwt rpc service interface? What differences are there between those two functions above? Attached below is the testGwtRpc project. --
Re: AppEngine Users Service with GWT will always reload page/module upon login
Here's another solution: 1. Cookie the user with a UUID for each browser page instance. You can do this either server side or client side, though I'm a bit wary of client side UUID generation. For most intents and purposes, the possibility of a clash is too low to worry about. 2. If the user is not logged in, when submitting the data, save the data either in Memcache or the datastore with the UUID as a key. If you use the datastore, you'll have to set up a cron job that does garbage collection. 3. When the user relogs in, retrieve the state from the server side and popular the UI. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Tue, Oct 12, 2010 at 6:36 AM, Shedokan wrote: > Maybe open the login in a new window or in a new tab and once the user > has logged in he will click a button like "I have logged in" and then > just ajax to the server and check his login status. > > On 5 אוקטובר, 20:27, Haris wrote: > > A good idea. However there bound to be user who type very long message > > and time out. > > > > On Oct 5, 7:56 pm, Shedokan wrote: > > > > > Maybe instead try asking the person to login before enabling him the > > > option to write a message? > > > > > On Oct 3, 12:31 pm,Haris wrote: > > > > > > Using Users Service, after filling up login and password and press > OK, > > > > onModuleLoad is executed. Basically the gwt module is reloaded. I am > > > > going to loose data entry stuff form the user. > > > > > > For instant if someone is typing a forum post and click submit only > to > > > > discover that login already timeout. The person relogin using User > API > > > > login page > > > > only to discover that the text typed is lost because of this. > > > > > > Any suggestion? > > > > > > Regards, > > > >Haris > > -- > 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-tool...@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. > > -- 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-tool...@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: com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1& 40
What's your application ID? That URL doesn't look like it's a valid ID. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Tue, Sep 21, 2010 at 7:46 AM, Jose Manuel wrote: > Hi, I am getting this error when I try to deploy a application to > AppEngine. The application works just fine in hosted mode, within > Eclipse. This is my second deploy > > Here's the complete log: > > com.google.appengine.tools.admin.AdminException: Unable to update app: > Error posting to URL: > > https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1&; > 400 Bad Request > > Client Error (400) > The request is invalid for an unspecified reason. > > >at > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: > 62) > >at > > com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: > 271) > >at > > com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: > 145) > >at > > org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: > 38) > >at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > > Caused by: java.io.IOException: Error posting to URL: > > https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1&; > 400 Bad Request > > Client Error (400) > The request is invalid for an unspecified reason. > > >at > > com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: > 149) > >at > > com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: > 82) > >at > > com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: > 582) > >at > > com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: > 400) > >at > > com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: > 112) > >at > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: > 56) > >... 4 more > > Thanks > > -- > 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-tool...@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. > > -- 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-tool...@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 with GAE Blobstore
Here's a sample project I'm working on that does an upload to blobstore as well as uses the high performance image serving framework: http://github.com/ikai/gwt-gae-image-gallery Warning: This is still a work in progress, but the upload/image serving bits are there. On Sep 6, 9:54 am, Brandon Donnelson wrote: > Here is what I did to upload:http://demofileuploadgae.appspot.com/- demo > > http://code.google.com/p/gwt-examples/source/browse/trunk/DemoUpload/- Source > Code > > Brandon Donnelson -- 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-tool...@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: Google's commitment to GWT
GWT isn't going away. Google uses GWT across multiple products internally and externally, and there is an active developer community. Our announced partnership at I/O with VMWare/SpringSource signifies a long term investment in this product: http://www.springsource.org/roo. On Fri, Aug 20, 2010 at 9:53 AM, Hugh Acland wrote: > As far as I am aware GWT is not going anywhere. I too have investment in > GWT and would hate to see its demise but I have yet to hear an official > announcement from Google. > > On Fri, Aug 20, 2010 at 5:11 PM, David Pinn wrote: > >> Perhaps it's the demise of Wave; or maybe I've just been hanging out >> with too many Ruby fan boys; but I'm nervous about the future of GWT. >> >> I have a huge investment in GWT, in terms of learning and effort, not >> to mention a sizeable and growing code base. >> >> Please tell me that GWT isn't going away. >> >> -- >> 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-tool...@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. >> >> > -- > 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-tool...@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. > -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- 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-tool...@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: Deploying GWT applications on OSGi Equinox
Hello. Sorry for being too late to respond. Yes I've seen this, I tested a simple web page and a simple servlet on embedded Jetty using extension points. And no I'm not from the UK, I'm from Tunisia :) On 11 avr, 02:11, Geoffry Roberts wrote: > Ian, > > Did you see how to use extension points to specify your servlets? It can be > found with the link below, in case you missed it. > > http://www.eclipse.org/equinox/server/http_writing_application.php > > BTW Are you in the UK? I notice you write me very early in the morning my > time. > > On Fri, Apr 10, 2009 at 6:31 AM, lan wrote: > > > Yes I've just finished reading > > > On 8 avr, 17:20, gcr wrote: > > > Ian, > > > > Have seen the article "Embedding an HTTP server in Equinox"? > > > > If not give it a read and we can continue. It explains how to do > > > without war file. > > > >http://www.eclipse.org/equinox/server/http_in_equinox.php > > > > On Apr 8, 2:41 am, lan wrote: > > > > > Yes I'm absolutely interested. > > > > I don't understand how you don't use a war file. > > --~--~-~--~~~---~--~~ 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: Deploying GWT applications on OSGi Equinox
Yes, I've just finished reading. On 10 avr, 14:31, lan wrote: > Yes I've just finished reading > > On 8 avr, 17:20, gcr wrote: > > > Ian, > > > Have seen the article "Embedding an HTTP server in Equinox"? > > > If not give it a read and we can continue. It explains how to do > > without war file. > > >http://www.eclipse.org/equinox/server/http_in_equinox.php > > > On Apr 8, 2:41 am, lan wrote: > > > > Yes I'm absolutely interested. > > > I don't understand how you don't use a war file. --~--~-~--~~~---~--~~ 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: Deploying GWT applications on OSGi Equinox
Yes I've just finished reading On 8 avr, 17:20, gcr wrote: > Ian, > > Have seen the article "Embedding an HTTP server in Equinox"? > > If not give it a read and we can continue. It explains how to do > without war file. > > http://www.eclipse.org/equinox/server/http_in_equinox.php > > On Apr 8, 2:41 am, lan wrote: > > > Yes I'm absolutely interested. > > I don't understand how you don't use a war file. --~--~-~--~~~---~--~~ 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: Deploying GWT applications on OSGi Equinox
Yes I'm absolutely interested. I don't understand how you don't use a war file. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Deploying GWT applications on OSGi Equinox
Hello I've been searching for a way to deploy GWT web applications on OSGi Equinox platform, I've followed this blog http://blog.springsource.com/2008/11/07/deploying-gwt-applications-in-springsource-dm-server-part-1/ on how to deploy a sample war (StockWatcher) on Spring DM Server, but I wan't to do that simply on Equinox. I've tried to do that, I installed the war bundle, it was successfully installed and resolved, I browse the application, I see my StockWatcher page, but it's static,and there is no dynamic refresh on the page (I got the "You've done it" message). Seems like the rpc mechanism doesn't work. Does someone know how to fix this?? Thank you. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Adding GWT widget in a simple web app
Is there a way to simply add GWT widgets in a simple web app? I mean is it possible to use GWT components in a non-GWT application? Thank you. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Building toCollege-net Web site
Hello Being new to GWT, I wanted to follow the application toCollege.net Unfortunately, I couldn't build it, I'm following the "Building toCollege.net" pdf document, I checked out the code using svn, no problem. But when I try "mvn compile", I got this unexpected exception: [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/ google/gwt/dev/GWTCompiler Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.GWTCompiler at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Any ideas?? thx --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---