Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes:http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.comwrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) 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:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:342) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at
Re: Help - laying out contents on a page
You can also just use a FlowPanel with gives you a div which you can then style using css. i.e. create 3 divs for each column and float each to the left to stack them horizontally. On Nov 18, 1:16 pm, nick_name acharya@gmail.com wrote: Hi, I am a noob and am trying to draw something like below on the screen. FIRST SECOND THIRD String1 : String String1 : String String1 : String String2 : String String2 : String String2 : String String_long3 : String String3_long : String String3 : String There are 3 columns of data and each column has 3 rows each. The thing is, I am not able to get the alignment between columns. Should I use HTMLTable or something else? plz help. 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=.
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) 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:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:342) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at
Re: Problem: FormPanel / FileUpload - special characters and german umlauts
Thanks for your answer! My html file has the correct type and I am using the correct method on your form. In the Client, the special chars of the FormPanel items are still ok, before it's submitted. (e.g. Grüße) If I get the Strings of the submitted items in the servlet (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e) I have no more idea to solve my problem... On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote: check that your html file has the correct content type: meta http-equiv=content-type content=text/html; charset=UTF-8 then put a breakpoint in your servlet and check if the special chars are still ok and make sure, to use the correct method on your form setMethod(FormPanel.METHOD_POST) On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote: Hey there, using the FormPanel with the FileUpload widget, the strings from the TextBoxes and TextAreas of my FormPanel don't support some special characters and german umlauts. On the client-side everything is okay, but arriving at the server, the characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like ü Ã? ä ö ü and so on. My server-side will send eMails with those Strings and I would like to have them correctly. Can anyone of you guys help me? Would be great! Cheers! -- 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=.
Re: Serving the GWT files from a CDN?
It's definitely possible to serve GWT static assets from a CDN, see comments from an earlier discussion: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/92ec90538cb4453a/a4dfe85c81c2e8ce?q=#a4dfe85c81c2e8ce I've not tried the JS technique you describe nor have I used the proxying technique described by Sri. I just used a subdomain for my static assets which is served from the CDN. Then I served the webpage that hosts the GWT app from the same place serving RPC to satisfy Same Origin Policy (SOP). Good luck, C. On Nov 18, 4:50 am, Dobes dob...@gmail.com wrote: I'm looking to improve load times for our application (and our site) and I think a CDN (like SimpleCDN or something) could be really helpful. For example, serve the js code from cdn.mydomain.com and run the RPC servlet from api.mydomain.com. Has anyone tried using a CDN with GWT modules? I've heard that in javascript you can do something like document.domain = 'mydomain.com' and this would allow you to treat all subdomains of mydomain.com as the same domain with respect to the same- origin-policy. Would I be able to run document.domain='mydomain.com' in my onModuleLoad() using JSNI and gain the ability to access an RPC servlet at api.mydomain.com if the GWT code was served from cdn.mydomain.com ? Based on what I read in Issue 214 (http://code.google.com/p/google-web-toolkit/issues/detail?id=214 ) the cross-site linker should also make this possible by using js files instead of an html iframe, so the js operates in the same domain as the host page instead of the domain of the *.cache.html file. However, the continued existence of the std linker seems to imply that there must be some drawback to using the cross-site linker. Any ideas what that disavantages of the cross-site linker might be? Thanks, Dobes -- 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=.
Re: Problem: FormPanel / FileUpload - special characters and german umlauts
what does request.getCharacterEncoding() show? if you use commons-file upload, you could try to manually set the encoding upload.setHeaderEncoding(encoding) -- to the same value you use in your meta tag On 18 Nov., 10:18, GWT-Newbie manuel.krann...@fun.de wrote: Thanks for your answer! My html file has the correct type and I am using the correct method on your form. In the Client, the special chars of the FormPanel items are still ok, before it's submitted. (e.g. Grüße) If I get the Strings of the submitted items in the servlet (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e) I have no more idea to solve my problem... On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote: check that your html file has the correct content type: meta http-equiv=content-type content=text/html; charset=UTF-8 then put a breakpoint in your servlet and check if the special chars are still ok and make sure, to use the correct method on your form setMethod(FormPanel.METHOD_POST) On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote: Hey there, using the FormPanel with the FileUpload widget, the strings from the TextBoxes and TextAreas of my FormPanel don't support some special characters and german umlauts. On the client-side everything is okay, but arriving at the server, the characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like ü Ã? ä ö ü and so on. My server-side will send eMails with those Strings and I would like to have them correctly. Can anyone of you guys help me? Would be great! Cheers! -- 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=.
Decent development hardware for GWT ?
My compiles are getting slower and slower (4 mins currently). It's a not a huge app, master detail input forms, grids, tabs, menubar and status bar, one servlet, ca 10 RPC calls. Third party grid, compiled separetly. Common classes in a separate project, compiled separetly. WinXP SP3, AMD Athlon Dual Core, 2.71 GHz, 7200 rpm disks Could someone please share a hardware setup that you are happy with ? Getting compiles down to at least 1 minute would be nice... Would a recent and decent Dell Precision model reduce the compile time ? (I know that splitting the project into smaller parts is also part of a total solution, but currently I'm mainly interested in what can be achieved with hardware) -- 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=.
Re: Decent development hardware for GWT ?
The javac compiles are a small fraction of the total time taken - that you have third party stuff and common classes javac-compiled separately is probably not very important to the time taken overall. It's the monolithic compile to javascript that's slow. What is most important is the number of permutations done in the compilation. For development, you should only have one permutation most of the time - until you need to test on multiple browsers/languages. Your gwt.xml file should have something of the form: set-property name=user.agent value=gecko1_8/ for compilation only on firefox. You can use user agents safari, opera, ie8 and ie6. If you have a very old firefox, you can also use gecko. How many permutations do you have? You can also compile more quickly by using fewer optimisations if you're using trunk or one of the pre-release 2.0 versions. The option is -draftCompile on my slightly old copy of trunk. It does make the javascript quite a bit slower though. As for hardware - first make sure you have enough RAM that you don't need to use virtual memory. If it's still slow after all the above, then a faster computer is always going to help (it made a big difference for me). HTH, Paul hjo1620 wrote: My compiles are getting slower and slower (4 mins currently). It's a not a huge app, master detail input forms, grids, tabs, menubar and status bar, one servlet, ca 10 RPC calls. Third party grid, compiled separetly. Common classes in a separate project, compiled separetly. WinXP SP3, AMD Athlon Dual Core, 2.71 GHz, 7200 rpm disks Could someone please share a hardware setup that you are happy with ? Getting compiles down to at least 1 minute would be nice... Would a recent and decent Dell Precision model reduce the compile time ? (I know that splitting the project into smaller parts is also part of a total solution, but currently I'm mainly interested in what can be achieved with hardware) -- 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=. -- 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=.
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Hi Sri, I am using Hibernate to access the database and used the example from http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. When i create a hibernate session from rpc servlet, it throws error INetAddress is a restricted class. :( Even i tried GiLead library, even in that when i tried to create a hibernate session and set it to persistance manager it throws the same error. :( regards, Muthu On Nov 18, 12:25 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Short Answer : Just disable Google App Engine for your project, and things should start working. Its a setting in the Google Eclipse Plugin. Long Answer : GWT and Google App Engine (GAE) are two separate projects, and you don't have to use them together. If you enable GAE - you cannot use any other database. If you disable GAE and only use GWT - you can use whatever you want on the server side. Client side restrictions still apply. Many, many users have accidentally enabled GAE (or is it enabled by default?) and have faced this issue, so this isn't new. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Hi Sri, I am using Hibernate to access the database and used the example from http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. When i create a hibernate session from rpc servlet, it throws error INetAddress is a restricted class. :( Even i tried GiLead library, even in that when i tried to create a hibernate session and set it to persistance manager it throws the same error. :( regards, Muthu On Nov 18, 12:25 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at
Re: Problem: FormPanel / FileUpload - special characters and german umlauts
Yes, I'm using commons-file upload. My meta tag is: meta http-equiv=content-type content=text/html; charset=UTF-8 request.getCharacterEncoding() shows UTF-8 upload.getHeaderEncoding() now also shows UTF-8 But still getting the wrong result. -.- On 18 Nov., 11:40, Martin Trummer martin.trum...@24act.at wrote: what does request.getCharacterEncoding() show? if you use commons-file upload, you could try to manually set the encoding upload.setHeaderEncoding(encoding) -- to the same value you use in your meta tag On 18 Nov., 10:18, GWT-Newbie manuel.krann...@fun.de wrote: Thanks for your answer! My html file has the correct type and I am using the correct method on your form. In the Client, the special chars of the FormPanel items are still ok, before it's submitted. (e.g. Grüße) If I get the Strings of the submitted items in the servlet (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e) I have no more idea to solve my problem... On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote: check that your html file has the correct content type: meta http-equiv=content-type content=text/html; charset=UTF-8 then put a breakpoint in your servlet and check if the special chars are still ok and make sure, to use the correct method on your form setMethod(FormPanel.METHOD_POST) On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote: Hey there, using the FormPanel with the FileUpload widget, the strings from the TextBoxes and TextAreas of my FormPanel don't support some special characters and german umlauts. On the client-side everything is okay, but arriving at the server, the characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like ü Ã? ä ö ü and so on. My server-side will send eMails with those Strings and I would like to have them correctly. Can anyone of you guys help me? Would be great! Cheers! -- 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=.
Re: Problem: FormPanel / FileUpload - special characters and german umlauts
hm - works for me maybe you should make a simple testapplication and post the entry point class and a minimal version of your servlet On 18 Nov., 13:20, GWT-Newbie manuel.krann...@fun.de wrote: Yes, I'm using commons-file upload. My meta tag is: meta http-equiv=content-type content=text/html; charset=UTF-8 request.getCharacterEncoding() shows UTF-8 upload.getHeaderEncoding() now also shows UTF-8 But still getting the wrong result. -.- On 18 Nov., 11:40, Martin Trummer martin.trum...@24act.at wrote: what does request.getCharacterEncoding() show? if you use commons-file upload, you could try to manually set the encoding upload.setHeaderEncoding(encoding) -- to the same value you use in your meta tag On 18 Nov., 10:18, GWT-Newbie manuel.krann...@fun.de wrote: Thanks for your answer! My html file has the correct type and I am using the correct method on your form. In the Client, the special chars of the FormPanel items are still ok, before it's submitted. (e.g. Grüße) If I get the Strings of the submitted items in the servlet (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e) I have no more idea to solve my problem... On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote: check that your html file has the correct content type: meta http-equiv=content-type content=text/html; charset=UTF-8 then put a breakpoint in your servlet and check if the special chars are still ok and make sure, to use the correct method on your form setMethod(FormPanel.METHOD_POST) On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote: Hey there, using the FormPanel with the FileUpload widget, the strings from the TextBoxes and TextAreas of my FormPanel don't support some special characters and german umlauts. On the client-side everything is okay, but arriving at the server, the characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like ü Ã? ä ö ü and so on. My server-side will send eMails with those Strings and I would like to have them correctly. Can anyone of you guys help me? Would be great! Cheers! -- 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=.
com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
Hi, I am getting following error while trying to access http://localhost:/A_Test_App.html?gwt.codesvr=172.16.14.38:51241 Connection received from SonyVaio.mshome.net:51327 [ERROR] Failed to load module 'a_test_app' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3' at SonyVaio.mshome.net:51327 com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:225) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:127) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:940) at com.google.gwt.dev.DevModeBase$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:97) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:345) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:192) at java.lang.Thread.run(Unknown Source) any idea what is wrong? 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=.
Re: Decent development hardware for GWT ?
Heheeh... It takes a few minutes for me as well. Maybe more than 5 minutes! What means to have many permutations? Is it bad? In terms of code, what it means? Anyway... I could take 30 minutes to compile as long as it continues to work fine for me. [], José Vicente On 18 nov, 12:20, Paul Robinson ukcue...@gmail.com wrote: The javac compiles are a small fraction of the total time taken - that you have third party stuff and common classes javac-compiled separately is probably not very important to the time taken overall. It's the monolithic compile to javascript that's slow. What is most important is the number of permutations done in the compilation. For development, you should only have one permutation most of the time - until you need to test on multiple browsers/languages. Your gwt.xml file should have something of the form: set-property name=user.agent value=gecko1_8/ for compilation only on firefox. You can use user agents safari, opera, ie8 and ie6. If you have a very old firefox, you can also use gecko. How many permutations do you have? You can also compile more quickly by using fewer optimisations if you're using trunk or one of the pre-release 2.0 versions. The option is -draftCompile on my slightly old copy of trunk. It does make the javascript quite a bit slower though. As for hardware - first make sure you have enough RAM that you don't need to use virtual memory. If it's still slow after all the above, then a faster computer is always going to help (it made a big difference for me). HTH, Paul hjo1620 wrote: My compiles are getting slower and slower (4 mins currently). It's a not a huge app, master detail input forms, grids, tabs, menubar and status bar, one servlet, ca 10 RPC calls. Third party grid, compiled separetly. Common classes in a separate project, compiled separetly. WinXP SP3, AMD Athlon Dual Core, 2.71 GHz, 7200 rpm disks Could someone please share a hardware setup that you are happy with ? Getting compiles down to at least 1 minute would be nice... Would a recent and decent Dell Precision model reduce the compile time ? (I know that splitting the project into smaller parts is also part of a total solution, but currently I'm mainly interested in what can be achieved with hardware) -- 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 athttp://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: just completed the stockwatcher tutorial..
If you just want to test it in a browser click the Compile/Browse button in the hosted mode browser and that kicked off Firefox for me. That red toolbox on the menu runs the compiler so I don't think you need to mess with a build.xml when you run the compiler you get something like: Compiling module com.google.gwt.sample.stockwatcher.StockWatcher Compiling 6 permutations Permutation compile succeeded Linking into /Users/james/Documents/workspace/StockWatcher/war Link succeeded Compilation succeeded -- 17.020s Have you tried copying that war file in the path of Apache? I use AppEngine so have not worked directly w/ Apache locally. Check to make sure any extra libs you used are in war/WEB-INF/lib/ before you compile. -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
Prashant, Would you mind replying back with the case sensitive name of your module? E.g. is it: a_test_app.gwt.xml or A_Test_App.gwt.xml? - Chris On Wed, Nov 18, 2009 at 8:56 AM, Prashant antsh...@gmail.com wrote: Hi, I am getting following error while trying to access http://localhost:/A_Test_App.html?gwt.codesvr=172.16.14.38:51241 Connection received from SonyVaio.mshome.net:51327 [ERROR] Failed to load module 'a_test_app' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3' at SonyVaio.mshome.net:51327 com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:225) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:127) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:940) at com.google.gwt.dev.DevModeBase$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:97) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:345) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:192) at java.lang.Thread.run(Unknown Source) any idea what is wrong? 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: just completed the stockwatcher tutorial..
The following link contains information related to deploying your GWT application: http://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html On Wed, Nov 18, 2009 at 9:40 AM, NMAGOCIO nmago...@gmail.com wrote: If you just want to test it in a browser click the Compile/Browse button in the hosted mode browser and that kicked off Firefox for me. That red toolbox on the menu runs the compiler so I don't think you need to mess with a build.xml when you run the compiler you get something like: Compiling module com.google.gwt.sample.stockwatcher.StockWatcher Compiling 6 permutations Permutation compile succeeded Linking into /Users/james/Documents/workspace/StockWatcher/war Link succeeded Compilation succeeded -- 17.020s Have you tried copying that war file in the path of Apache? I use AppEngine so have not worked directly w/ Apache locally. Check to make sure any extra libs you used are in war/WEB-INF/lib/ before you compile. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
it is A_Test_App.gwt.xml -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
Thanks. The issue is a result of ModuleDefLoader looking for a caseless version of your module name. We're currently looking into a fix. More information can be found on the GWT Contributors Group: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/4f1dc198248c1b0d/f5292aacafae0479?lnk=gstq=103801#f5292aacafae0479 On Wed, Nov 18, 2009 at 9:49 AM, Prashant antsh...@gmail.com wrote: it is A_Test_App.gwt.xml -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: GWT: JUnit Google App Engine Tutorial assumes intelligence
Good find. We'll get this updated in the final release. On Wed, Nov 18, 2009 at 1:15 AM, Angel Marquez angel.marq...@gmail.comwrote: Consistently, The DynaTable Example pop up included with GWT 2.0RC refers to 'hosted mode' in the RPC could not be reached dialog window. The dialog should read 'development mode'. C, low, text. : ) On Tue, Nov 17, 2009 at 6:47 AM, Jeff Chimene jchim...@gmail.com wrote: On Mon, Nov 16, 2009 at 10:31 AM, Angel Marquez angel.marq...@gmail.comwrote: Fantastic. In the meantime I'm going through the GWT AE developer guides in tandem with the fielding dissertation and a java pub on their REST api, very interesting. It would be nice to have the completed tutorial source files readily available as well. Specifically for the JUnit AE sections of GWT SW. I have a lot of errors when attempting to compile and the source files are to large to attach(I could upload and send a link..). Hopefully I would be able to run a diff/compare if their was a source to compare to and figure out what needs to be fixed. I keep on reading people are using GWT 2.0. Is this available to the public or is this list a mix of people that are not current and can't be? All I'm aware that is available to me is 1.7. http://google-web-toolkit.googlecode.com/files/gwt-2.0.0-ms2.zip See also http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC Search the list archive for announcing ms2 for the announcement. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Navigation and GWT
Hi, iam on the process of evaluating GWT for a new project, i have 2 questions: - How does GWT handles or lets say simulate the navigation between pages, and is there any atricles/best practices for handling that. - Where can i find a list of GWT widgets demo, where i can introduce GWT in action, and here i mean the basic ones which is already shipped with the GWT libraries not the extended ones. -- 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=.
Problem run hosted mode in tomcat
Hello I have a problem run hosted mode in gwt 1.7 from tomcat. I was read article from http://code.google.com/intl/pl/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s and do not know how can I do it. I do not want use a jetty because I have problem config datasource. Somebody help me?? Please :) -- 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=.
ParseException with gwt 2 rc1
Downloaded and used gwt 2 rc1 and was happy to see my production project just compiles out of the box, however I kept getting this exception. Generated a new project in netbeans and used a hello world service and I still get the following error: I've gone the URL myself '/org.codepimps.webapplication1.Main/ D520D4505782D7B29D3FC971D9253D19.gwt.rpc' and I can see that the file is indeed there. I can't make any RPC with RC1, I always get this exception no matter what project I'm in. WebModule[/WebApplication1]GWTService: ERROR: Failed to parse the policy file '/org.codepimps.webapplication1.Main/ D520D4505782D7B29D3FC971D9253D19.gwt.rpc' java.text.ParseException: Expected: className, [true | false] at com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream (SerializationPolicyLoader.java:116) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy (RemoteServiceServlet.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy (RemoteServiceServlet.java:117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead (ServerSerializationStreamReader.java:429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 754) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 847) at org.apache.catalina.core.ApplicationFilterChain.servletService (ApplicationFilterChain.java:427) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:315) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java: 94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke (PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1096) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java:288) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter (DefaultProcessorTask.java:647) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess (DefaultProcessorTask.java:579) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process (DefaultProcessorTask.java:831) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask (DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run (TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run (SSLWorkerThread.java:106) WebModule[/WebApplication1]Exception while dispatching incoming RPC call -- 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=.
GWT 2.0 RC1 - Mail Sample display blank on IE browser in Quirks Mode
Hi, I tried the Mail Sample in GWT 2.0 RC1 and encountered the followings: -- for Internet Explorer: When run with this doctype: Quirks Mode !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Result: IE displays nothing but a blank page. When run with this: Standard Mode: !doctype html Result: OK Chrome / FireFox: It works perfect in both Quirks Mode and Standards Mode -- Does anyone know why ? Thank you very much ! -- 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=.
Re: Trouble installing Google Eclipse Plugin 1.2 RC1
Glad to hear that you are up in running. The plugin installation process will be simplified via the update mechanism once we roll out the official release. On Wed, Nov 18, 2009 at 1:27 AM, Dalla dalla_man...@hotmail.com wrote: Hi again I got it working now, apperently it wasn´t enough to uninstall the GEP, I also had to uninstall the GWT SDK for 1.7.1 aswell as the SDK for GAE 1.2.6 /Daniel On 18 Nov, 01:24, Rajeev Dayal rda...@google.com wrote: As an additional note, this also applies to Eclipse 3.5. On Tue, Nov 17, 2009 at 7:03 PM, Chris Ramsdale cramsd...@google.com wrote: Great to here. After talking this over with Rajeev it is worth pointing out to the rest of the group that the general installation rules for Eclipse 3.4 and up are set such that installs via updates will take precedence over installs via the dropins directory. On Tue, Nov 17, 2009 at 6:45 PM, Jeff Chimene jchim...@gmail.com wrote: On Tue, Nov 17, 2009 at 4:02 PM, Chris Ramsdale cramsd...@google.com wrote: On Tue, Nov 17, 2009 at 5:25 PM, Jeff Chimene jchim...@gmail.com wrote: On Tue, Nov 17, 2009 at 2:32 PM, Dalla dalla_man...@hotmail.com wrote: I´m having issues getting the Plugin version 1.2 RC1 to work correctly in Eclipse. However only selecting New from the file menu there´s a Google Web Toolkit directory containing options to create ClientBundle and UiBinder among other things So far, the upgrades (GWT2.0-rc1 and GEP) seem OK. Two questions: 1. Are these Windows-only options? I don't see them under Linux.. The platform specific installs have been combined into a single install that will run on Windows, Mac, and Linux. 2. I did have to create a Java launch to workaround the -style directive error. Is this still an issue? I've personally tested this several times without error. Would you mind replying with the list of installed plugins so we can check what version you have installed on your system? To check, do the following: Help-Install New Software, and click on the What is already installed link in the lower right hand corner Yeah, that was it. To be clear: I install Eclipse as root. When I put the GEP into the dropins directory, I forgot that I had installed the GEP plugin using the Eclipse software installer. After temporarily removing the directory in dropins, I uninstalled the earlier GEP. After replacing the new version in dropins and starting Eclipse as root, all is as expected. Thanks, Chris -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at
Re: Google Web Toolkit 2.0 RC1 Now Available
Oh, good to hear. There was some discussion about whether deRPC would make it into 2.0 or not, and I didn't see it mentioned in the Wiki. Sorry about that! -- Arthur Kalmenson On Tue, Nov 17, 2009 at 3:33 PM, Chris Ramsdale cramsd...@google.com wrote: The deRPC components live under the com.google.gwt.rpc package and are available in the RC. The doc may be a bit sparse or missing in a few spots but we're adding content daily as we march towards release. On Tue, Nov 17, 2009 at 2:58 PM, Arthur Kalmenson arthur.k...@gmail.com wrote: Congrats on the release! We'll definitely be using GWT 2 in our next project, I can't wait! But I guess deRPC didn't make it in? Any chance of it appearing before the final release? -- Arthur Kalmenson On Tue, Nov 17, 2009 at 2:32 PM, br...@google.com br...@google.com wrote: You should be in good shape either way, actually. The same project structure will work with either SDK version, so you can retain the option to switch back and forth. The only one-way choice would be if you start using the new UiBinder, ClientBundle, and layout panel stuff. If you need to play it conservatively, you could hold off on those things, but you can at least start using the new in-browser development mode, which should make you even more productive as you push toward your own launch. Big picture, though, we're eager to finalize 2.0, so I wouldn't expect too long an RC cycle this time. In other words, you should even be safe to start using 2.0-only features in the timeframe you're describing. On Nov 17, 2:23 pm, Yozons Support on Gmail yoz...@gmail.com wrote: What's the ETA now for GWT 2.0 final? I am developing now under 1.7.1, but won't expect to be in production for another 4 months or so. Would I be better off getting a jump on 2.0 now or would I risk 2.0 not being ready for production over the next several months? -- 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=. -- 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=. -- 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=. -- 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=.
Re: instanceof Element check fails in FF
On Nov 17, 6:14 am, bhomass bhom...@gmail.com wrote: I have this statement NodeListNode childNodes = tdElement.getChildNodes(); for (int i=0; ichildNodes.getLength(); i++){ Node childNode = childNodes.getItem(i); if (childNode instanceof Element !#text.equals (childNode.getNodeName())){ dosomething(); } } but the #text nodes get thru the if (childNode instanceof Element) check. I have to add if (childNode instanceof Element !#text.equals (childNode.getNodeName()) to fix it. I am sure #text is not an element, and this problem does not occur in IE, only in FF. anyone else knows about this anomaly? That's not a bug: Element is a JavaScriptObject, and all JavaScriptObject-derived class are 'instanceof' others. See http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideOverlayTypes and particularly http://sites.google.com/site/io/surprisingly-rockin-javascript-and-dom-programming-in-gwt (this is explicitly spelled out at slide 26) and http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes (search for instanceof) In your case, the fix is easy: if (Element.is(childNode)) { dosomething(); } -- 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=.
Re: Bundled Image as panel background using CssResourceClientBundle
On Nov 17, 10:32 pm, mnenchev nenchev.mari...@gmail.com wrote: Hi, i have image 1x600px that i need to repeat as panel background. I am using CssResource and Client Bundle but i do not know how to do it or i am missing somthing. I use �...@imageoptions (repeatStyle=RepeatStyle.Horizontal), but it seems it is not working? I am using gwt 2.0 MS2. The image is just rendered once(not repeated in order to create background). Pleas could you give me some example how to do this with CssResource and ClientBundle. How are you using the ImageResource in your CssResource? defining a @sprite? -- 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=.
Where to get GWT 2.0 browser blugins for offline usage
Hi All! GWT 2.0 requires browser plugin to debug application. Is there any code hosting or downloads repository where I can get those plugins to reinstall them on demand event without connecting to the internet? -- 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=.
Static variables or Session?
Hi all, according to you, in order to save user's information, is it better saving them into static variables or in session? Thanks in advance -- 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=.
Re: Static variables or Session?
I am assuming you mean client side static variables v/s server session (doesn't make sense any other way).. GWT recommends going stateless - which means no session. In practice, however, we compromised a little. In our application, we store roles/permissions in session so that we can authorize a RPC request. Everything else is store in client side variables. --Sri 2009/11/18 iaio81 stefano.taurie...@gmail.com Hi all, according to you, in order to save user's information, is it better saving them into static variables or in session? Thanks in advance -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: Static variables or Session?
Ok, what I've done until nowthanks!!! But in order to authorize RPC request, couldn't you use static variables or you intend for make it easier? On 18 Nov, 19:24, Sripathi Krishnan sripathi.krish...@gmail.com wrote: I am assuming you mean client side static variables v/s server session (doesn't make sense any other way).. GWT recommends going stateless - which means no session. In practice, however, we compromised a little. In our application, we store roles/permissions in session so that we can authorize a RPC request. Everything else is store in client side variables. --Sri 2009/11/18 iaio81 stefano.taurie...@gmail.com Hi all, according to you, in order to save user's information, is it better saving them into static variables or in session? Thanks in advance -- 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.
Update data in real-time
Hi all, in my application I need update for example a number in a cell after having inserted in the DB particular records...Is it better using RPC call with Timer class every 1 minute ( for example) or using comet (for example GWTAdapterStreamHub) or someone has some other advises? Thanks in advance -- 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.
Will 2.0 be backwards compatible with 1.7?
Hello, I'm looking at starting some new development with GWT, and I'm intrigued by the changes coming in 2.0. I'd like to use 2.0, if for no other reason than that it supports java 6 64-bit, so I don't have to worry about fiddling with my development environment, or adding special java installs on our target deployment platform (which uses 64-bit java 6) I've downloaded the 2.0 milestone 2 release. Since there isn't yet the full set of documentation for 2.0, and I'm new to GWT, and there are nice tutorials and books for 1.X, I'm wondering if I can expect to use the 2.0ms2 release, to get started with the tutorial and start prototyping new development using the 1.X tutorials, examples and documentation. Also, what about smartgwt? Will the lates smartgwt 1.3 release work under gwt 2.0? Thanks, Jason -- 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 Hosted Mode crashing after Snow Leopard 10.6.2 Update
another, possibly better fix can be found here:- http://code.google.com/p/google-web-toolkit/issues/detail?id=4220#c22 hth, /J On Nov 16, 6:28 pm, ale aleee...@gmail.com wrote: thanks a lot! It's work fine. On 12 Nov, 12:35, Daniel Kurka kurka.dan...@googlemail.com wrote: I found a very UGLY solution to my problem (which enables me to continue working). I replaced in LowLevelSaf.java public static native void gcUnprotect(int, int); to public static void gcUnprotect(int, int) {} causing the invalid access This is not a real fix, just a very nasty workaround If you run into the same problem you can download a fixed gwt-dev.jar from here: http://www.daniel-kurka.de/gwt-dev-1.7.1-mac-sf-4.0.4-fix.jar -- 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 2.0 RC1 - Mail Sample display blank on IE browser in Quirks Mode
They're using the new layout panels, which can only be expected to work in standards mode. On 18 Nov., 09:16, shiang sfk...@gmail.com wrote: Hi, I tried the Mail Sample in GWT 2.0 RC1 and encountered the followings: -- for Internet Explorer: When run with this doctype: Quirks Mode !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Result: IE displays nothing but a blank page. When run with this: Standard Mode: !doctype html Result: OK Chrome / FireFox: It works perfect in both Quirks Mode and Standards Mode -- Does anyone know why ? Thank you very much ! -- 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.
Help with connection properties
So, i have DBProperties.xml file in PUBLIC package in my app. I read this xml by RequestBuilder class. Next i put read data to panel with database configuration. If the data on this panel will change i want to write them to the same file (DBProperties.xml). Next I wanted to read xml in the same way from DataBaseConn.class but it does't work. I wonder how can i use data from DBProperties.xml (which is located in PUBLIC package) to connect with database. I don't want to create file localy but i want to use existing file in pub package. -- 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: Will 2.0 be backwards compatible with 1.7?
With 2.0 we've added added features such as UiBinder, ClientBundle, and layout panel while continuing to work with existing 1.x applications. Given this, you shouldn't have any issues working through the existing documentation and examples using the 2.0 Release Candidate. I would suggest upgrading to the latest RC instead of using MS2. The RC can be downloaded here: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC I haven't tested SmartGWT 1.3 with 2.0, but given that we're maintaining backwards compatibility there shouldn't be any issues. Are there any RC users out there that have recompiled and run a SmartGWT intensive app? - Chris On Wed, Nov 18, 2009 at 2:00 PM, Jason Rosenberg jbrosenb...@gmail.comwrote: Hello, I'm looking at starting some new development with GWT, and I'm intrigued by the changes coming in 2.0. I'd like to use 2.0, if for no other reason than that it supports java 6 64-bit, so I don't have to worry about fiddling with my development environment, or adding special java installs on our target deployment platform (which uses 64-bit java 6) I've downloaded the 2.0 milestone 2 release. Since there isn't yet the full set of documentation for 2.0, and I'm new to GWT, and there are nice tutorials and books for 1.X, I'm wondering if I can expect to use the 2.0ms2 release, to get started with the tutorial and start prototyping new development using the 1.X tutorials, examples and documentation. Also, what about smartgwt? Will the lates smartgwt 1.3 release work under gwt 2.0? Thanks, Jason -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Will 2.0 be backwards compatible with 1.7?
Thanks Chris, I'll get started with the 2.0 RC... Do we have a prospective release date for 2.0? Jason Chris Ramsdale wrote: With 2.0 we've added added features such as UiBinder, ClientBundle, and layout panel while continuing to work with existing 1.x applications. Given this, you shouldn't have any issues working through the existing documentation and examples using the 2.0 Release Candidate. I would suggest upgrading to the latest RC instead of using MS2. The RC can be downloaded here: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC I haven't tested SmartGWT 1.3 with 2.0, but given that we're maintaining backwards compatibility there shouldn't be any issues. Are there any RC users out there that have recompiled and run a SmartGWT intensive app? - Chris On Wed, Nov 18, 2009 at 2:00 PM, Jason Rosenberg jbrosenb...@gmail.com mailto:jbrosenb...@gmail.com wrote: Hello, I'm looking at starting some new development with GWT, and I'm intrigued by the changes coming in 2.0. I'd like to use 2.0, if for no other reason than that it supports java 6 64-bit, so I don't have to worry about fiddling with my development environment, or adding special java installs on our target deployment platform (which uses 64-bit java 6) I've downloaded the 2.0 milestone 2 release. Since there isn't yet the full set of documentation for 2.0, and I'm new to GWT, and there are nice tutorials and books for 1.X, I'm wondering if I can expect to use the 2.0ms2 release, to get started with the tutorial and start prototyping new development using the 1.X tutorials, examples and documentation. Also, what about smartgwt? Will the lates smartgwt 1.3 release work under gwt 2.0? Thanks, Jason -- 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 mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@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. -- 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: Will 2.0 be backwards compatible with 1.7?
Chris, SmartGWT 1.3 supports GWT 2.0. If anyone runs into any issues, feel free to post the details on the SmartGWT forum. Thanks, Sanjiv On Wed, Nov 18, 2009 at 2:37 PM, Chris Ramsdale cramsd...@google.comwrote: With 2.0 we've added added features such as UiBinder, ClientBundle, and layout panel while continuing to work with existing 1.x applications. Given this, you shouldn't have any issues working through the existing documentation and examples using the 2.0 Release Candidate. I would suggest upgrading to the latest RC instead of using MS2. The RC can be downloaded here: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC I haven't tested SmartGWT 1.3 with 2.0, but given that we're maintaining backwards compatibility there shouldn't be any issues. Are there any RC users out there that have recompiled and run a SmartGWT intensive app? - Chris On Wed, Nov 18, 2009 at 2:00 PM, Jason Rosenberg jbrosenb...@gmail.comwrote: Hello, I'm looking at starting some new development with GWT, and I'm intrigued by the changes coming in 2.0. I'd like to use 2.0, if for no other reason than that it supports java 6 64-bit, so I don't have to worry about fiddling with my development environment, or adding special java installs on our target deployment platform (which uses 64-bit java 6) I've downloaded the 2.0 milestone 2 release. Since there isn't yet the full set of documentation for 2.0, and I'm new to GWT, and there are nice tutorials and books for 1.X, I'm wondering if I can expect to use the 2.0ms2 release, to get started with the tutorial and start prototyping new development using the 1.X tutorials, examples and documentation. Also, what about smartgwt? Will the lates smartgwt 1.3 release work under gwt 2.0? Thanks, Jason -- 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: Will 2.0 be backwards compatible with 1.7?
While we don't have a specific date, we're eager to finalize 2.0 and don't expect this RC cycle to be too long. - Chris On Wed, Nov 18, 2009 at 2:42 PM, Jason Rosenberg jbrosenb...@gmail.comwrote: Thanks Chris, I'll get started with the 2.0 RC... Do we have a prospective release date for 2.0? Jason Chris Ramsdale wrote: With 2.0 we've added added features such as UiBinder, ClientBundle, and layout panel while continuing to work with existing 1.x applications. Given this, you shouldn't have any issues working through the existing documentation and examples using the 2.0 Release Candidate. I would suggest upgrading to the latest RC instead of using MS2. The RC can be downloaded here: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC I haven't tested SmartGWT 1.3 with 2.0, but given that we're maintaining backwards compatibility there shouldn't be any issues. Are there any RC users out there that have recompiled and run a SmartGWT intensive app? - Chris On Wed, Nov 18, 2009 at 2:00 PM, Jason Rosenberg jbrosenb...@gmail.comwrote: Hello, I'm looking at starting some new development with GWT, and I'm intrigued by the changes coming in 2.0. I'd like to use 2.0, if for no other reason than that it supports java 6 64-bit, so I don't have to worry about fiddling with my development environment, or adding special java installs on our target deployment platform (which uses 64-bit java 6) I've downloaded the 2.0 milestone 2 release. Since there isn't yet the full set of documentation for 2.0, and I'm new to GWT, and there are nice tutorials and books for 1.X, I'm wondering if I can expect to use the 2.0ms2 release, to get started with the tutorial and start prototyping new development using the 1.X tutorials, examples and documentation. Also, what about smartgwt? Will the lates smartgwt 1.3 release work under gwt 2.0? Thanks, Jason -- 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.comgoogle-web-toolkit%2bunsubscr...@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. -- 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.comgoogle-web-toolkit%2bunsubscr...@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.
GWT with IntelliJ?
I see in the docs that there seems to be special support for GWT in Eclipse (with the developer plugin). I have been using IntelliJ, I'm wondering if I will be ok, or should really switch to Eclipse. IntelliJ does seem to have a GWT 'facet', but I don't think it has all that the eclipse plugin has. What are the main benefits of using the Eclipse GWT plugin? Thanks, Jason -- 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.
Is there a way to tell the GWT Compiler to ignore pieces of code?
Here's what I would like to do: Selenium tests are easiest to run if each element has a unique id. I would like to be able to do something along the lines of: if Compiler style is Pretty.. include the line: widget.setElementId(easy-to-locate-id-for-tests) but if I set the Compiler to Obfuscated (i.e. production), I don't want that extra test code in there. Is this possible? If so, how? -Tristan -- 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.
@SingleJsoImpl in GWT 2.0??
Dear GWT 2.0 developers, I noticed the latest announcement about GWT 2.0, Milestone 2, here... http://groups.google.com/group/google-web-toolkit/browse_thread/thread/15f20608f0a73b73 ...and I noticed that it does not make any mention of the @SingleJsoImpl feature, which is described here... http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes Can we still expect this feature in GWT 2.0? To provide a little more detail: I have been creating a GWT Overlay Type library for Dojo's GFX library, and I have encountered the difficulty of creating access to an overlay type without an intermediate type. My solution, for now, is to create public access to all of the overlay types and have a delegate library of types that use the overlay types. The pur;pose of the delegate types are to offer a more acceptable Java API, since they are not subclasses of JavaScriptObject and therefore do not have the JavaScriptObject restrictions. So, for example, where an overlay type can only provide a final method, the corresponding delegate type can provide a non- final method, which calls the overlay type's final method. However, these delegate types are problematic because they involve a lot of extra object creation that does not occur when using the overlay types directly. So it seems like I can resolve some of this with the use of @SingleJsoImpl, and I am wondering whether or not I can surely expect this in GWT 2.0. -- 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.
Great Tool for Load Testing GWT sites = BrowserMob
I have no affiliation with this service, but I just started using it today to set up some load testing for the site I just built, and I am really impressed with it. Easy to use, great features / reporting, fully support for AJAX / JavaScript heavy sites like GWT if you use their real browser tests. It is fairly cheap too -- and you get free load testing and site monitoring with limitations with a trial account - so it is easy to setup your scripts with the trial account and pay to scale the test up to more users. I just thought I'd pass it along here if someone is looking for a good tool to stress their site. http://browsermob.com -- 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: @SingleJsoImpl in GWT 2.0??
The functionality that you are looking for is in 2.0. The compiler simply figures it out, so there's no need for an explicit annotation. - Chris On Wed, Nov 18, 2009 at 3:25 PM, MonkeyMike mikebin...@gmail.com wrote: Dear GWT 2.0 developers, I noticed the latest announcement about GWT 2.0, Milestone 2, here... http://groups.google.com/group/google-web-toolkit/browse_thread/thread/15f20608f0a73b73 ...and I noticed that it does not make any mention of the @SingleJsoImpl feature, which is described here... http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes Can we still expect this feature in GWT 2.0? To provide a little more detail: I have been creating a GWT Overlay Type library for Dojo's GFX library, and I have encountered the difficulty of creating access to an overlay type without an intermediate type. My solution, for now, is to create public access to all of the overlay types and have a delegate library of types that use the overlay types. The pur;pose of the delegate types are to offer a more acceptable Java API, since they are not subclasses of JavaScriptObject and therefore do not have the JavaScriptObject restrictions. So, for example, where an overlay type can only provide a final method, the corresponding delegate type can provide a non- final method, which calls the overlay type's final method. However, these delegate types are problematic because they involve a lot of extra object creation that does not occur when using the overlay types directly. So it seems like I can resolve some of this with the use of @SingleJsoImpl, and I am wondering whether or not I can surely expect this in GWT 2.0. -- 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.comgoogle-web-toolkit%2bunsubscr...@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.
GEP 1.1.2 GWT 2.0 rc1 error Unknown argument: -style Google Web Toolkit 2.0.0-rc1
Trying to run dev mode from GEP 1.1.2 with 2.0 rc1 I get this error Unknown argument: -style Google Web Toolkit 2.0.0-rc1 I haven't had any problems with ms1 or ms2. Seems when you try to run you project as a web application with GEP 1.1.2 it automatically adds a -style attribute which no longer seems to be supported. I can run it fine from the command line. I guess GEP needs to be fixed. -- 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: GEP 1.1.2 GWT 2.0 rc1 error Unknown argument: -style Google Web Toolkit 2.0.0-rc1
I guess I should have read this http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC so nevermind. On Nov 18, 3:07 pm, Trevor Skaife tska...@gmail.com wrote: Trying to run dev mode from GEP 1.1.2 with 2.0 rc1 I get this error Unknown argument: -style Google Web Toolkit 2.0.0-rc1 I haven't had any problems with ms1 or ms2. Seems when you try to run you project as a web application with GEP 1.1.2 it automatically adds a -style attribute which no longer seems to be supported. I can run it fine from the command line. I guess GEP needs to be fixed. -- 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.
GPE debug error: ContentViewer must have a content provider when input is set
I received this error today after starting a debug session: ContentViewer must have a content provider when input is set I resisted writing this email, so did not copy more details. Restarting Eclipse did not resolve this error. I resolved this problem by closing/opening the project. I really don't know how to reproduce it. If it happens again, i will post the entire error log. Google Plugin for Eclipse 3.51.1.101.v200911161426 com.google.gdt.eclipse.suite.e35.feature.feature.group Eclipse Web Developer Tools 3.1.1.v200908120400-7R77FSpEVw2xXR0CtKvX6bG6a2qU org.eclipse.wst.web_ui.feature.feature.group -- 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=.
Re: Decent development hardware for GWT ?
GWT-compiles are slow, that's a fact. But they are normally used only for deployment or when you exceptionally need to test in a real browser. Normally when you make changes to your code you just need to hit reload in the hosted modewindow, and that takes only seconds. On Nov 18, 12:52 pm, hjo1620 hjo1...@gmail.com wrote: My compiles are getting slower and slower (4 mins currently). It's a not a huge app, master detail input forms, grids, tabs, menubar and status bar, one servlet, ca 10 RPC calls. Third party grid, compiled separetly. Common classes in a separate project, compiled separetly. WinXP SP3, AMD Athlon Dual Core, 2.71 GHz, 7200 rpm disks Could someone please share a hardware setup that you are happy with ? Getting compiles down to at least 1 minute would be nice... Would a recent and decent Dell Precision model reduce the compile time ? (I know that splitting the project into smaller parts is also part of a total solution, but currently I'm mainly interested in what can be achieved with hardware) -- 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=.
Re: Decent development hardware for GWT ?
Olivier Gérardin wrote: GWT-compiles are slow, that's a fact. But they are normally used only for deployment or when you exceptionally need to test in a real browser. Normally when you make changes to your code you just need to hit reload in the hosted modewindow, and that takes only seconds. Unless you're unlucky enough to have started with a Struts-based application, in which case it's hard to see how your GWT forms interact with your real services unless you run from the WAR file. At least, we never found a way to make it work. -- 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=.
Will 2.0 get rid of the deprecated APIs?
Hi, are deprecated APIs going to get cleaned with the final 2.0? The docs still have them. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html 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-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=.
Re: GPE debug error: ContentViewer must have a content provider when input is set
Hi Jeff, This is a known bug that we'll have fixed for the next RC. To avoid this error, do not close the Web App Launch View once it has been opened (minimization is okay, the problem occurs when you actually close the view). If you do get into this state, restarting Eclipse will fix the problem. Sorry about this - I know it is an annoying bug. Rajeev On Wed, Nov 18, 2009 at 4:52 PM, Jeff Chimene jchim...@gmail.com wrote: I received this error today after starting a debug session: ContentViewer must have a content provider when input is set I resisted writing this email, so did not copy more details. Restarting Eclipse did not resolve this error. I resolved this problem by closing/opening the project. I really don't know how to reproduce it. If it happens again, i will post the entire error log. Google Plugin for Eclipse 3.51.1.101.v200911161426 com.google.gdt.eclipse.suite.e35.feature.feature.group Eclipse Web Developer Tools 3.1.1.v200908120400-7R77FSpEVw2xXR0CtKvX6bG6a2qU org.eclipse.wst.web_ui.feature.feature.group -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: Will 2.0 get rid of the deprecated APIs?
That seems to be the official position: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/33ef903fe5097437/82dc098a5854df1a My guess is that someone just started working on the GWT 2.0 javadocs -- copying over the 1.6 doc tree as a starting point. On Nov 18, 2:06 pm, dmen dmenou...@gmail.com wrote: Hi, are deprecated APIs going to get cleaned with the final 2.0? The docs still have them. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html 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-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=.
Re: GWT with IntelliJ?
In my brief experience, there are no inherent advantages of the GWT plugin except (1) the ease with which it facilitates creation of configurations for running and debugging in hosted-mode; and (2) the breadth of GWT examples that use eclipse. To point (2), there is a dearth of such examples that use IntelliJ. I, for one, would be keenly interested in finding more such practice with IntelliJ, as it is my preferred IDE. Toward that end, I hope someone with experience using GWT with IntelliJ will chime in on this thread. On Nov 18, 1:52 pm, Jason Rosenberg jbrosenb...@gmail.com wrote: I see in the docs that there seems to be special support for GWT in Eclipse (with the developer plugin). I have been using IntelliJ, I'm wondering if I will be ok, or should really switch to Eclipse. IntelliJ does seem to have a GWT 'facet', but I don't think it has all that the eclipse plugin has. What are the main benefits of using the Eclipse GWT plugin? Thanks, Jason -- 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=.
Re: GPE debug error: ContentViewer must have a content provider when input is set
On Wed, Nov 18, 2009 at 3:12 PM, Rajeev Dayal rda...@google.com wrote: Hi Jeff, This is a known bug that we'll have fixed for the next RC. To avoid this error, do not close the Web App Launch View once it has been opened (minimization is okay, the problem occurs when you actually close the view). Hi Rajeev, That's probably the case. I do seem to recall closing the view, rather than minimizing same. The new view is extremely cool, btw. If you do get into this state, restarting Eclipse will fix the problem. I did cycle Eclipse, but it didn't resolve the issue. I normally exit Eclipse w/ one or more projects open. The last gasp was to close/reopen the project. That did seem to be the cure. I was quite surprised that cycling Eclipse didn't clear whatever. That's why I resisted a post: I figured it was pilot error. I even checked ps -ax to be sure, for sure. If you have the fix, great. Just saying that closing/reopening the project was the only way to reset the state. Such action seems to force Eclipse into some kind of state rebuild? Congrats on the GPE: muy suave. Sorry about this - I know it is an annoying bug. Rajeev On Wed, Nov 18, 2009 at 4:52 PM, Jeff Chimene jchim...@gmail.com wrote: I received this error today after starting a debug session: ContentViewer must have a content provider when input is set I resisted writing this email, so did not copy more details. Restarting Eclipse did not resolve this error. I resolved this problem by closing/opening the project. I really don't know how to reproduce it. If it happens again, i will post the entire error log. Google Plugin for Eclipse 3.51.1.101.v200911161426 com.google.gdt.eclipse.suite.e35.feature.feature.group Eclipse Web Developer Tools 3.1.1.v200908120400-7R77FSpEVw2xXR0CtKvX6bG6a2qU org.eclipse.wst.web_ui.feature.feature.group -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
GWT and Google Analytic's Events via JSNI
Hello, I want to be able to create Google Analytic's Events from GWT. I am able to call the trackPageview method but not the trackEvent from GWT using JSNI. Working: public static native void trackPageView(String pageName) /*-{ $wnd.pageTracker._trackPageview(pageName); }-*/; NOT Working: public static native void trackEvent(String category, String action) /*-{ $wnd.pageTracker._trackEvent(category, action); }-*/; Any ideas?? also from the HTML page i am able to track events by calling this method in the onclick tag: pageTracker._trackEvent('category', 'action'); i also tried: public static native void trackEvent(String category, String action) /*-{ try{ var ga = $wnd._gat._getTracker(UA- XX); ga._setSessionTimeout(5); ga._initData(); ga._trackEvent(category, action); } catch (err) {} }-*/; -- 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=.
Re: Decent development hardware for GWT ?
We are running in VMWare Workstation and the base machine is a i7 950 with 6gigs of RAM and 1 rpm disks (seperate disks for VMs and OS) The build produces a 10 meg war, of which about 3 megs of which is GWT / GXT. The dev compile (2 permutations) takes 2:12 including 300 tests - so the actual gwt comple is 1 min. The Integration build Athalon 3400+ (6 perms) takes about 6mins (including tests) The i7 dev machines work very well with GWT (the machine is still usable during the compile - not the case on the quad core I previously was using... too many 100% cpu spikes) - also the fast disks prevent VMWare performance issues as much as possible. -- 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=.
Re: @SingleJsoImpl in GWT 2.0??
That's great! Thanks for the quick reply. :) On Nov 18, 12:43 pm, Chris Ramsdale cramsd...@google.com wrote: The functionality that you are looking for is in 2.0. The compiler simply figures it out, so there's no need for an explicit annotation. - Chris On Wed, Nov 18, 2009 at 3:25 PM, MonkeyMike mikebin...@gmail.com wrote: Dear GWT 2.0 developers, I noticed the latest announcement about GWT 2.0, Milestone 2, here... http://groups.google.com/group/google-web-toolkit/browse_thread/threa... ...and I noticed that it does not make any mention of the @SingleJsoImpl feature, which is described here... http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes Can we still expect this feature in GWT 2.0? To provide a little more detail: I have been creating a GWT Overlay Type library for Dojo's GFX library, and I have encountered the difficulty of creating access to an overlay type without an intermediate type. My solution, for now, is to create public access to all of the overlay types and have a delegate library of types that use the overlay types. The pur;pose of the delegate types are to offer a more acceptable Java API, since they are not subclasses of JavaScriptObject and therefore do not have the JavaScriptObject restrictions. So, for example, where an overlay type can only provide a final method, the corresponding delegate type can provide a non- final method, which calls the overlay type's final method. However, these delegate types are problematic because they involve a lot of extra object creation that does not occur when using the overlay types directly. So it seems like I can resolve some of this with the use of @SingleJsoImpl, and I am wondering whether or not I can surely expect this in GWT 2.0. -- 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.comgoogle-web-toolkit%2bunsubscr...@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=.
GWT compiler option to simply validate code
Hello, I am creating a GWT Overlay Type library, and have just written an ant build file for creating the JAR file that GWT applications will import. To maintain code integrity, I make the JAR creation depend on a java compile of all the code, and also a gwt compile. Obviously, this is meant to ensure that the code in the library is acceptable Java, and also that it is acceptable GWT. When I run the GWT compiler, however, I get an error related to the fact that my library has no entry point... - Buildfile: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml javac-compile: [javac] Compiling 2 source files to C:\Data\Dev \EclipseWorkspaceTrunk\gwtgfx\build\javac gwt-compile: [java] Compiling module gwtgfx.GwtGfx [java][ERROR] Module has no entry points defined BUILD FAILED C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:25: The following error occurred while executing this line: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:45: Java returned: 1 Total time: 3 seconds - Of course, it makes perfect sense that my library has no entry point since it is, in fact, a library... not an application. Is there an option for the GWT compiler to do only the parts that I want here? I want the GWT compiler to ensure, for example, that all of my JavaScriptObject subclasses follow the specified restrictions (has a protected no-arg constructor, instance methods are final, etc)... and anything else that the GWT compiler might do now, or in the future, to check that the GWT code is valid. If not having an entry point means that there is no reasonable way to do one or more of the compiler steps, then that should be okay because those steps probably aren't relevant for a library anyways. As a temporary hack, I guess I am going to include an entry point, but I really don't want to ship this. Is there a better alternative? Thanks in advance. :) -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
I tried upgrading from 1.7.1 to 2.0RC1 and I must say I'm unhappy because I am running into this error, too, now. I tried renaming my gwt.xml file to be all lowercase, but that's not resolving it. The exception shown in Eclipse: [ERROR] Failed to load module 'esfgwt_app' from user agent 'Mozilla/ 4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)' at david06.home:2245 com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:225) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: 155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:940) at com.google.gwt.dev.DevModeBase $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:97) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule (OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection (BrowserChannelServer.java:345) at com.google.gwt.dev.shell.BrowserChannelServer.run (BrowserChannelServer.java:192) at java.lang.Thread.run(Thread.java:619) And the Eclipse webapp debug view shows: 17:47:46.053 [ERROR] [esfgwt_app] Unable to find 'esfgwt_app.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? The file esfgwt_app.gwt.xml is used to compile the code just fine, and of course is in the WEB-INF/classes location after the build. Any idea? It seems like such a waste to revert all my Eclipse, etc. to get back to 1.7.1 now. I'd much prefer to get 2.0RC1 working. Thanks, David -- 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=.
Success with an interesting configuration
Hi, Here's a success report for latest GPE RC2 in what may be an uncommon configuration: 1. SSH to an X Window client using the Cygwin X Window server; 2. Start Eclipse, which connects to the Windows X server; 3. Start GWT debug session; 4. Start Firefox 3.5.5 for Windows; 5. Paste the debug URL and update both IP addresses to point to the X client machine; 6. Install the XPI as requested; 7. ! -- 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=.
GWT on PlayStation 3 (PS3) browser
Has anyone gotten GWT to work on the PS3 browser? I tried the barebones app created by the Eclipse GWT plugin on the PS3 and it didn't work (only the static HTML showed up). On the other hand, a simple window.onload does work. So at least the PS3 browser has some JavaScript support. For example: window.onload = function() { document.getElementById(nameFieldContainer).innerHTML = John; document.getElementById(sendButtonContainer).innerHTML = Adams; } -- Bosco -- 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=.
Re: GWT compiler option to simply validate code
Although I'm still very interested to get an answer to my previous post, I have just implemented the temporary hack that I mentioned, and I actually would say that it's a good approach. I created a Build gwt module, which has an entry point, and inherits the overlay type library. I edited my ant file's gwt-compile target so that it runs a gwt-compile on the Build module, and the gwt-compile succeeded. There are 2 nice things about this approach... 1) The make-jar target can create a jar file which only contains code from the library, and so I don't have to ship the build module. 2) The Build module's entry point actually is a nice space to write some code which uses the library, as another set of tests. I haven't done this yet, but in theory I could write some code which calls all of the code in the library, and this would ensure that the intended usage of the library is compliant with the GWT compiler as well. However, perhaps this is redundant if the library has a suite of unit tests. Anyways, as I said, I'm still curious to know how I might be able to run the gwt-compiler to execute only those compile steps which are relevant to a library (as opposed to an application). Cheers, Mike On Nov 18, 5:52 pm, MonkeyMike mikebin...@gmail.com wrote: Hello, I am creating a GWT Overlay Type library, and have just written an ant build file for creating the JAR file that GWT applications will import. To maintain code integrity, I make the JAR creation depend on a java compile of all the code, and also a gwt compile. Obviously, this is meant to ensure that the code in the library is acceptable Java, and also that it is acceptable GWT. When I run the GWT compiler, however, I get an error related to the fact that my library has no entry point... - Buildfile: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml javac-compile: [javac] Compiling 2 source files to C:\Data\Dev \EclipseWorkspaceTrunk\gwtgfx\build\javac gwt-compile: [java] Compiling module gwtgfx.GwtGfx [java] [ERROR] Module has no entry points defined BUILD FAILED C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:25: The following error occurred while executing this line: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:45: Java returned: 1 Total time: 3 seconds - Of course, it makes perfect sense that my library has no entry point since it is, in fact, a library... not an application. Is there an option for the GWT compiler to do only the parts that I want here? I want the GWT compiler to ensure, for example, that all of my JavaScriptObject subclasses follow the specified restrictions (has a protected no-arg constructor, instance methods are final, etc)... and anything else that the GWT compiler might do now, or in the future, to check that the GWT code is valid. If not having an entry point means that there is no reasonable way to do one or more of the compiler steps, then that should be okay because those steps probably aren't relevant for a library anyways. As a temporary hack, I guess I am going to include an entry point, but I really don't want to ship this. Is there a better alternative? Thanks in advance. :) -- 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=.
Re: Is there a way to tell the GWT Compiler to ignore pieces of code?
GWT builds that specific use case. Use the widget.ensureDebugId() to set the ids. In dev and test, inherit the debug module. Put the following line in your module xml inherits name='com.google.gwt.user.Debug'/ When compiling for production, remove the debug module. That way, the test code will be removed. To simplify your scripts, create a new module MyModuleTest.gwt.xml which inherits from MyModule.gwt.xml, and add the extra inherits line. Then compile the appropriate module based on the environment. --Sri 2009/11/19 Tristan tristan.slomin...@gmail.com Here's what I would like to do: Selenium tests are easiest to run if each element has a unique id. I would like to be able to do something along the lines of: if Compiler style is Pretty.. include the line: widget.setElementId(easy-to-locate-id-for-tests) but if I set the Compiler to Obfuscated (i.e. production), I don't want that extra test code in there. Is this possible? If so, how? -Tristan -- 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.comgoogle-web-toolkit%2bunsubscr...@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=.
google-web-toolkit-incubator for GWT 2.0RC1?
The google-web-toolkit-incubator site says it will have JARs built for release including RC, but I don't see any. Google Web Toolkit 1.7 and earlier are supported via downloadable jars. New jars will be provided to match future GWT milestones, RCs, and releases. Is there a plan. Will the 1.7 version work under 2.0 since 2.0 is supposedly compatible with 1.7? 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=.
Re: GWT with IntelliJ?
You really don't miss a whole lot .. . The Eclipse Plugin is great for newbies to get started with GWT. But once you gain some experience, it doesn't add much to your productivity. In fact - things like same folder for input as well as output have caused us great pain. In our project, we have ANT targets to run gwtc and to start the oophm server. Individual developers are free to use their preferred IDE and configure it to invoke the appropriate ant targets. I am looking forward to the day where the plugin supports a WYSIWYG editor for the UiBinder xmls. That is perhaps the only feature that would make me start using the plugin. --Sri 2009/11/19 wil.pannell wil.pann...@pepsiamericas.com In my brief experience, there are no inherent advantages of the GWT plugin except (1) the ease with which it facilitates creation of configurations for running and debugging in hosted-mode; and (2) the breadth of GWT examples that use eclipse. To point (2), there is a dearth of such examples that use IntelliJ. I, for one, would be keenly interested in finding more such practice with IntelliJ, as it is my preferred IDE. Toward that end, I hope someone with experience using GWT with IntelliJ will chime in on this thread. On Nov 18, 1:52 pm, Jason Rosenberg jbrosenb...@gmail.com wrote: I see in the docs that there seems to be special support for GWT in Eclipse (with the developer plugin). I have been using IntelliJ, I'm wondering if I will be ok, or should really switch to Eclipse. IntelliJ does seem to have a GWT 'facet', but I don't think it has all that the eclipse plugin has. What are the main benefits of using the Eclipse GWT plugin? Thanks, Jason -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: Decent development hardware for GWT ?
Unless you're unlucky enough to have started with a Struts-based application, in which case it's hard to see how your GWT forms interact with your real services unless you run from the WAR file. At least, we never found a way to make it work. You should try the oophm plugin, and run it with the -noserver argument. That way, you can delegate the RPC calls to whatever application server you are using, but still do partial compiles and debugging similar to what hosted mode provides. --Sri 2009/11/19 David C. Hicks dhi...@i-hicks.org Olivier Gérardin wrote: GWT-compiles are slow, that's a fact. But they are normally used only for deployment or when you exceptionally need to test in a real browser. Normally when you make changes to your code you just need to hit reload in the hosted modewindow, and that takes only seconds. Unless you're unlucky enough to have started with a Struts-based application, in which case it's hard to see how your GWT forms interact with your real services unless you run from the WAR file. At least, we never found a way to make it work. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
I should add that I'm only using GWT, not the App Engine, which is listed on the issues list. When I create a new google project, the greeting code works and I can debug it. But if I then copy over my code from a 1.7.1 project, it continues to get the error shown above. -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
One final comment for tonight I did a compile and released to my Tomcat test system and it all appears to work fine. So it seems that the code is building correctly, etc., but I just cannot use the debugger. Then, I tried again using the Eclipse version for debugging, and while I get the error, I now note that it appears to still work in debug. It will first tell me to use an URL like: http://localhost:/?gwt.codesvr=192.168.1.3:1563 I enter that, it receives the error mentioned above. Then I just try: http://localhost:/ And the app comes up, and it appears I can run with debug, etc. So I guess the error is not fatal. This is some relief to me since I can get back to work! I hope whatever the issue is will be fixed, though. It's odd to be sure. -- 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=.
Re: com.google.gwt.core.ext.UnableToCompleteException while using Development Mode
Turns out I lied. The debugger only seems to break in server code and won't break in client code, most likely because of the module load failure when using the debug URL generated. So this appears to be a bug with the 2.0 RC1 debugger in some fashion, as it relates to Eclipse or the browser plug-ins (though I get the same error on FF 3.5 or IE 8). -- 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=.
Re: GWT on PlayStation 3 (PS3) browser
I have been using the PS3 browser with TVersity and my primary objective is to use GWT in a similar fashion. BD-J apps are embedded java applications and I want to create the menu systems discless. If I could get the app engine tutorial to deploy I would check for you; but, I can't. I tried the PS3 browser with hulu, youtubeMovies to no avail. If you come up with resources for this please share. If you have a link to check on the browser post and I'll check it out on my end. On Wed, Nov 18, 2009 at 6:27 PM, bosco monkey groups@boscoso.comwrote: Has anyone gotten GWT to work on the PS3 browser? I tried the barebones app created by the Eclipse GWT plugin on the PS3 and it didn't work (only the static HTML showed up). On the other hand, a simple window.onload does work. So at least the PS3 browser has some JavaScript support. For example: window.onload = function() { document.getElementById(nameFieldContainer).innerHTML = John; document.getElementById(sendButtonContainer).innerHTML = Adams; } -- Bosco -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: GWT on PlayStation 3 (PS3) browser
I know once you are in the browser you need to into menu/tools/javascript and enable. I think it is off by default. On Wed, Nov 18, 2009 at 8:58 PM, Angel Marquez angel.marq...@gmail.comwrote: I have been using the PS3 browser with TVersity and my primary objective is to use GWT in a similar fashion. BD-J apps are embedded java applications and I want to create the menu systems discless. If I could get the app engine tutorial to deploy I would check for you; but, I can't. I tried the PS3 browser with hulu, youtubeMovies to no avail. If you come up with resources for this please share. If you have a link to check on the browser post and I'll check it out on my end. On Wed, Nov 18, 2009 at 6:27 PM, bosco monkey groups@boscoso.comwrote: Has anyone gotten GWT to work on the PS3 browser? I tried the barebones app created by the Eclipse GWT plugin on the PS3 and it didn't work (only the static HTML showed up). On the other hand, a simple window.onload does work. So at least the PS3 browser has some JavaScript support. For example: window.onload = function() { document.getElementById(nameFieldContainer).innerHTML = John; document.getElementById(sendButtonContainer).innerHTML = Adams; } -- Bosco -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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=.
Re: Decent development hardware for GWT ?
Thanks for your answer: i7 based machine with 1 rpm disks, ought to be good enough for me, since my project is way smaller. Any URL you can share to a pre-built system ? Or is it a DIY PC build ? -- 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=.
Re: Problem: FormPanel / FileUpload - special characters and german umlauts
Solved the problem :) It wasn't the GWT making complications, the chars arrived at the server correctly, but were misinterpreted by Apache Commons Fileupload reading the items with the filItem.getString()-Method. In addition to upload.setHeaderEncoding(UTF-8), I had to add a argument to every getString() method, which says, that he mustn't use the american ASCII, but UTF-8. (fileItem.getString(UTF-8)) Thanks for your attempt! Happy coding. On 18 Nov., 14:24, Martin Trummer martin.trum...@24act.at wrote: hm - works for me maybe you should make a simple testapplication and post the entry point class and a minimal version of your servlet On 18 Nov., 13:20, GWT-Newbie manuel.krann...@fun.de wrote: Yes, I'm using commons-file upload. My meta tag is: meta http-equiv=content-type content=text/html; charset=UTF-8 request.getCharacterEncoding() shows UTF-8 upload.getHeaderEncoding() now also shows UTF-8 But still getting the wrong result. -.- On 18 Nov., 11:40, Martin Trummer martin.trum...@24act.at wrote: what does request.getCharacterEncoding() show? if you use commons-file upload, you could try to manually set the encoding upload.setHeaderEncoding(encoding) -- to the same value you use in your meta tag On 18 Nov., 10:18, GWT-Newbie manuel.krann...@fun.de wrote: Thanks for your answer! My html file has the correct type and I am using the correct method on your form. In the Client, the special chars of the FormPanel items are still ok, before it's submitted. (e.g. Grüße) If I get the Strings of the submitted items in the servlet (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e) I have no more idea to solve my problem... On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote: check that your html file has the correct content type: meta http-equiv=content-type content=text/html; charset=UTF-8 then put a breakpoint in your servlet and check if the special chars are still ok and make sure, to use the correct method on your form setMethod(FormPanel.METHOD_POST) On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote: Hey there, using the FormPanel with the FileUpload widget, the strings from the TextBoxes and TextAreas of my FormPanel don't support some special characters and german umlauts. On the client-side everything is okay, but arriving at the server, the characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like ü Ã? ä ö ü and so on. My server-side will send eMails with those Strings and I would like to have them correctly. Can anyone of you guys help me? Would be great! Cheers! -- 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=.
Re: Is there a way to tell the GWT Compiler to ignore pieces of code?
Excellent! That is exactly what I needed Sri, thank you. On another note, I am having trouble compiling and running the debug/ test module at all. I can compile it, but I don't know how to use the test module instead of the regular module when launching from Eclipse. I'm using gwt 2.0 built from trunk, so I'm not sure what the configuration is supposed to look like (I can get the normal module to run properly just fine). I just keep on getting the error trying to use the debug module in dev mode: Failed to load module 'myModule' from user agent 'Safari DMP'at (where myModule is the normal one that works by itself) Here's the configuration I'm using Java Application [main] project: myproject main class: com.google.gwt.dev.DevMode [arguments] program arguments: com.unecloud.SeleniumTests -startupUrl http://localhost:/MyPage.html [classpath] I have the source and test folder included (SeleniumTests.gwt.xml is in the test folder) Any ideas what I'm missing? On Nov 18, 8:32 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: GWT builds that specific use case. Use the widget.ensureDebugId() to set the ids. In dev and test, inherit the debug module. Put the following line in your module xml inherits name='com.google.gwt.user.Debug'/ When compiling for production, remove the debug module. That way, the test code will be removed. To simplify your scripts, create a new module MyModuleTest.gwt.xml which inherits from MyModule.gwt.xml, and add the extra inherits line. Then compile the appropriate module based on the environment. --Sri 2009/11/19 Tristan tristan.slomin...@gmail.com Here's what I would like to do: Selenium tests are easiest to run if each element has a unique id. I would like to be able to do something along the lines of: if Compiler style is Pretty.. include the line: widget.setElementId(easy-to-locate-id-for-tests) but if I set the Compiler to Obfuscated (i.e. production), I don't want that extra test code in there. Is this possible? If so, how? -Tristan -- 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.comgoogle-web-toolkit%2bunsubscr...@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=.
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Hi Sri, Its working fine after disabling the appengine. Thanks sri. regards, Muthu On Nov 18, 3:44 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Short Answer : Just disable Google App Engine for your project, and things should start working. Its a setting in the Google Eclipse Plugin. Long Answer : GWT and Google App Engine (GAE) are two separate projects, and you don't have to use them together. If you enable GAE - you cannot use any other database. If you disable GAE and only use GWT - you can use whatever you want on the server side. Client side restrictions still apply. Many, many users have accidentally enabled GAE (or is it enabled by default?) and have faced this issue, so this isn't new. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Hi Sri, I am using Hibernate to access the database and used the example from http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. When i create a hibernate session from rpc servlet, it throws error INetAddress is a restricted class. :( Even i tried GiLead library, even in that when i tried to create a hibernate session and set it to persistance manager it throws the same error. :( regards, Muthu On Nov 18, 12:25 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339)
[gwt-contrib] Re: Comment on GWT_2_0_RC in google-web-toolkit
Comment by brunabasseio: good article For more information: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6979 committed - tr...@6968 was merged into this branch...
Revision: 6979 Author: jlaba...@google.com Date: Wed Nov 18 05:37:52 2009 Log: tr...@6968 was merged into this branch Accounting for time difference between host and client in CookieTest#testExpires svn merge --ignore-ancestry -c 6968 https://google-web-toolkit.googlecode.com/svn/trunk . http://code.google.com/p/google-web-toolkit/source/detail?r=6979 Modified: /releases/2.0/branch-info.txt /releases/2.0/user/test/com/google/gwt/user/client/CookieTest.java === --- /releases/2.0/branch-info.txt Tue Nov 17 19:58:44 2009 +++ /releases/2.0/branch-info.txt Wed Nov 18 05:37:52 2009 @@ -754,3 +754,7 @@ tr...@6977 was merged into this branch Fix xhtml.ent url in mail/client/TopPanel.ui.xml svn merge --ignore-ancestry -c 6977 https://google-web-toolkit.googlecode.com/svn/trunk . + +tr...@6968 was merged into this branch + Accounting for time difference between host and client in CookieTest#testExpires + svn merge --ignore-ancestry -c 6968 https://google-web-toolkit.googlecode.com/svn/trunk . === --- /releases/2.0/user/test/com/google/gwt/user/client/CookieTest.java Wed Sep 30 16:46:38 2009 +++ /releases/2.0/user/test/com/google/gwt/user/client/CookieTest.java Wed Nov 18 05:37:52 2009 @@ -76,7 +76,7 @@ Cookies.setCookie(lateCookie, late, expiresLate); Cookies.setCookie(sessionCookie, forever, null); -delayTestFinish(6 * 1000); +delayTestFinish(7000); // Wait until the cookie expires before checking it Timer timer = new Timer() { @Override @@ -96,7 +96,7 @@ finishTest(); } }; -timer.schedule(5010); +timer.schedule(6000); } /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Reusing CssResource's @def (within e.g. UiBinder)
@bobv, will anything pathological happen to the generated code if lots of ui.xml files all do this? Remember that each ui.xml defines its own ClientBundle. The common css will be duplicated every time you do this, but this may be what you want, depending on whether or not the common css should be shared between the widget types at runtime. If the common css can be reused, you would be better off creating an @Shared CssResource for the common CSS and then having the per-UI.xml CssResource mix in the additional rules. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6980 committed - Edited wiki page through web user interface.
Revision: 6980 Author: b...@google.com Date: Wed Nov 18 06:09:49 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=6980 Modified: /wiki/CssResource.wiki === --- /wiki/CssResource.wiki Mon Nov 9 07:00:31 2009 +++ /wiki/CssResource.wiki Wed Nov 18 06:09:49 2009 @@ -518,7 +518,7 @@ String other(); } -interface Resources { +interface Resources extends ClientBundle { @Import({TreeCss.class, CbCss.class}) MyCss css(); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: NPE during Serialization in deRPC
com.google.gwt.rpc.server.WebModePayloadSink.getBytes(WebModePayloadSink.java:860) at com.google.gwt.rpc.server.WebModePayloadSink$PayloadVisitor.constructorFunction(WebModePayloadSink.java:607) Can you run your server code with assertions enabled? This should have tripped the assertion on line 605, and possibly something before that. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6981 committed - Reduce log levels for DevMode startup and remove stderr logging of sta...
Revision: 6981 Author: j...@google.com Date: Wed Nov 18 06:54:16 2009 Log: Reduce log levels for DevMode startup and remove stderr logging of startup URL. Patch by: jat Review by: bruce http://code.google.com/p/google-web-toolkit/source/detail?r=6981 Modified: /trunk/dev/core/src/com/google/gwt/dev/DevMode.java /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java === --- /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Mon Nov 16 18:59:09 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Wed Nov 18 06:54:16 2009 @@ -344,7 +344,7 @@ ui.setCallback(RestartServerEvent.getType(), this); // TODO(jat): find a safe way to get an icon for the servlet container TreeLogger serverLogger = ui.getWebServerLogger(getWebServerName(), null); - serverLogger.log(TreeLogger.INFO, Starting HTTP on port + getPort(), + serverLogger.log(TreeLogger.TRACE, Starting HTTP on port + getPort(), null); server = options.getServletContainerLauncher().start(serverLogger, getPort(), options.getWarDir()); @@ -375,6 +375,7 @@ return options.getServletContainerLauncher().getName(); } + @Override protected synchronized void produceOutput(TreeLogger logger, StandardLinkerContext linkerStack, ArtifactSet artifacts, ModuleDef module) throws UnableToCompleteException { === --- /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java Mon Nov 16 18:59:09 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java Wed Nov 18 06:54:16 2009 @@ -703,7 +703,7 @@ try { for (String prenormalized : options.getStartupURLs()) { startupURL = normalizeURL(prenormalized, getPort(), getHost()); -logger.log(TreeLogger.INFO, Starting URL: + startupURL, null); +logger.log(TreeLogger.TRACE, Starting URL: + startupURL, null); launchURL(startupURL); } } catch (UnableToCompleteException e) { @@ -764,7 +764,7 @@ * subclasses that need to change the behavior of ShellModuleSpaceHost. * * @param logger TreeLogger to use - * @param typeOracle + * @param compilationState * @param moduleDef * @return ShellModuleSpaceHost instance */ @@ -881,9 +881,6 @@ getTopLogger().log(TreeLogger.ERROR, Invalid URL + url, e); throw new UnableToCompleteException(); } -System.err.println(Using a browser with the GWT Developer Plugin, please browse to); -System.err.println(the following URL:); -System.err.println( + url); final URL helpInfoUrl = parsedUrl; getTopLogger().log(TreeLogger.INFO, Waiting for browser connection to + url, null, new HelpInfo() { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Reduce log levels, remove stderr launch URL message
On 2009/11/17 23:38:18, bruce wrote: LGTM Committed to trunk at r6981, will merge to releases/2.0 shortly. http://gwt-code-reviews.appspot.com/104801 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Reduce log levels, remove stderr launch URL message
On 11/17/09, Thomas Matthijs thomas.matth...@gmail.com wrote: There used to be a copy-pasteable URL in the DevMode log window of the app you started (removed in 6559), I found this hugely helpfull when i was new to devmode and could not remember the the ?gwt.codesrv or the magical path/directory it put the project in (altho it seems to always be just the root / now). You should see a log message Waiting for browser connection to ... with the URL, and a Launch default browser link there. Does that not meet your needs? -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] [google-web-toolkit] r6973 committed - Adds additional icon sizes so Alt-Tab (etc) doesn't try and scale up t...
Window.setIconImages was introduced in Java 1.6. This doesn't compile on 1.5. Dan On Tue, Nov 17, 2009 at 5:52 PM, codesite-nore...@google.com wrote: Revision: 6973 Author: j...@google.com Date: Tue Nov 17 14:51:47 2009 Log: Adds additional icon sizes so Alt-Tab (etc) doesn't try and scale up the 16x16 icon. Also fixes unused import left in previous change. Patch by: jat Review by: rjrjr (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6973 Added: /trunk/dev/core/src/com/google/gwt/dev/shell/icon64.png Modified: /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/dev/shell/icon64.png Tue Nov 17 14:51:47 2009 Binary file, no diff available. === --- /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Fri Oct 16 20:22:17 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Tue Nov 17 14:51:47 2009 @@ -31,6 +31,7 @@ import java.awt.event.WindowEvent; import java.io.File; import java.net.URL; +import java.util.Arrays; import java.util.Map; import javax.swing.Icon; @@ -181,7 +182,12 @@ �...@override public void initialize(Type logLevel) { super.initialize(logLevel); - ImageIcon gwtIcon = loadImageIcon(icon24.png); + ImageIcon gwtIcon16 = loadImageIcon(icon16.png); + ImageIcon gwtIcon24 = loadImageIcon(icon24.png); + ImageIcon gwtIcon32 = loadImageIcon(icon32.png); + ImageIcon gwtIcon48 = loadImageIcon(icon48.png); + ImageIcon gwtIcon64 = loadImageIcon(icon64.png); + ImageIcon gwtIcon128 = loadImageIcon(icon128.png); frame = new JFrame(GWT Development Mode); tabs = new JTabbedPane(); if (options.alsoLogToFile()) { @@ -189,7 +195,7 @@ } mainWnd = new ShellMainWindow(logLevel, options.getLogFile(main.log)); topLogger = mainWnd.getLogger(); - tabs.addTab(Development Mode, gwtIcon, mainWnd, GWT Development Mode); + tabs.addTab(Development Mode, gwtIcon24, mainWnd, GWT Development Mode); frame.getContentPane().add(tabs); frame.setSize(950, 700); frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); @@ -202,7 +208,9 @@ } } }); - frame.setIconImage(loadImageIcon(icon16.png).getImage()); + frame.setIconImages(Arrays.asList(gwtIcon48.getImage(), + gwtIcon32.getImage(), gwtIcon64.getImage(), gwtIcon128.getImage(), + gwtIcon16.getImage())); frame.setVisible(true); } === --- /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java Tue Nov 17 14:20:58 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java Tue Nov 17 14:51:47 2009 @@ -68,7 +68,6 @@ import javax.swing.event.TreeSelectionListener; import javax.swing.event.HyperlinkEvent.EventType; import javax.swing.text.html.HTMLDocument; -import javax.swing.text.html.HTMLEditorKit; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeCellRenderer; import javax.swing.tree.DefaultTreeModel; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] [google-web-toolkit] r6973 committed - Adds additional icon sizes so Alt-Tab (etc) doesn't try and scale up t...
Sigh, thanks for catching that. Any suggestions for setting more than one icon in JDK 1.5? If not, I guess I can reflectively call setIconImages if it is there and fallback to the old behavior on JDK 1.5. On 11/18/09, Daniel Rice (דניאל רייס) r...@google.com wrote: Window.setIconImages was introduced in Java 1.6. This doesn't compile on 1.5. Dan On Tue, Nov 17, 2009 at 5:52 PM, codesite-nore...@google.com wrote: Revision: 6973 Author: j...@google.com Date: Tue Nov 17 14:51:47 2009 Log: Adds additional icon sizes so Alt-Tab (etc) doesn't try and scale up the 16x16 icon. Also fixes unused import left in previous change. Patch by: jat Review by: rjrjr (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6973 Added: /trunk/dev/core/src/com/google/gwt/dev/shell/icon64.png Modified: /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/dev/shell/icon64.png Tue Nov 17 14:51:47 2009 Binary file, no diff available. === --- /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Fri Oct 16 20:22:17 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Tue Nov 17 14:51:47 2009 @@ -31,6 +31,7 @@ import java.awt.event.WindowEvent; import java.io.File; import java.net.URL; +import java.util.Arrays; import java.util.Map; import javax.swing.Icon; @@ -181,7 +182,12 @@ �...@override public void initialize(Type logLevel) { super.initialize(logLevel); - ImageIcon gwtIcon = loadImageIcon(icon24.png); + ImageIcon gwtIcon16 = loadImageIcon(icon16.png); + ImageIcon gwtIcon24 = loadImageIcon(icon24.png); + ImageIcon gwtIcon32 = loadImageIcon(icon32.png); + ImageIcon gwtIcon48 = loadImageIcon(icon48.png); + ImageIcon gwtIcon64 = loadImageIcon(icon64.png); + ImageIcon gwtIcon128 = loadImageIcon(icon128.png); frame = new JFrame(GWT Development Mode); tabs = new JTabbedPane(); if (options.alsoLogToFile()) { @@ -189,7 +195,7 @@ } mainWnd = new ShellMainWindow(logLevel, options.getLogFile(main.log)); topLogger = mainWnd.getLogger(); - tabs.addTab(Development Mode, gwtIcon, mainWnd, GWT Development Mode); + tabs.addTab(Development Mode, gwtIcon24, mainWnd, GWT Development Mode); frame.getContentPane().add(tabs); frame.setSize(950, 700); frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); @@ -202,7 +208,9 @@ } } }); - frame.setIconImage(loadImageIcon(icon16.png).getImage()); + frame.setIconImages(Arrays.asList(gwtIcon48.getImage(), + gwtIcon32.getImage(), gwtIcon64.getImage(), gwtIcon128.getImage(), + gwtIcon16.getImage())); frame.setVisible(true); } === --- /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java Tue Nov 17 14:20:58 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java Tue Nov 17 14:51:47 2009 @@ -68,7 +68,6 @@ import javax.swing.event.TreeSelectionListener; import javax.swing.event.HyperlinkEvent.EventType; import javax.swing.text.html.HTMLDocument; -import javax.swing.text.html.HTMLEditorKit; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeCellRenderer; import javax.swing.tree.DefaultTreeModel; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Reduce log levels, remove stderr launch URL message
You should see a log message Waiting for browser connection to ... with the URL, and a Launch default browser link there. Does that not meet your needs? Maybe i'm doing it wrong, but that's not what i get. http://imgur.com/uWqfx If you go to http://localhost:/ you get an alert error saying thing may need to be compiled. But if you go to http://localhost:/?gwt.codesvr=127.0.0.1:9997 everything works. As a first time user this is quite confusing and non obvious -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6982 committed - Fix XHR memory leak one more time by re-using a static null function....
Revision: 6982 Author: b...@google.com Date: Wed Nov 18 07:47:46 2009 Log: Fix XHR memory leak one more time by re-using a static null function. Patch by: bobv Review by: jgw http://code.google.com/p/google-web-toolkit/source/detail?r=6982 Modified: /trunk/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java === --- /trunk/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java Mon Nov 16 12:36:36 2009 +++ /trunk/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java Wed Nov 18 07:47:46 2009 @@ -75,6 +75,13 @@ */ public static final int DONE = 4; + /** + * This is used to clear the onReadyStateChange handler. It is used by + * {...@link #clearOnReadyStateChange()}. + */ + @SuppressWarnings(unused) + private static final JavaScriptObject NULL_FUNCTION = JavaScriptObject.createFunction(); + /** * Creates an XMLHttpRequest object. * @@ -113,7 +120,7 @@ public final native void clearOnReadyStateChange() /*-{ var self = this; $wnd.setTimeout(function() { - self.onreadystatechange = function(){}; + self.onreadystatechange = @com.google.gwt.xhr.client.XMLHttpRequest::NULL_FUNCTION; }, 0); }-*/; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Improve NumberFormat.format to avoid weird rounding issues
http://gwt-code-reviews.appspot.com/97812/diff/1/2 File user/src/com/google/gwt/i18n/client/NumberFormat.java (right): http://gwt-code-reviews.appspot.com/97812/diff/1/2#newcode1323 Line 1323: String digits = Double.toString(number); On 2009/11/17 22:14:49, jat wrote: This essentially reduces to + number in JS -- how certain are we that the result is sufficiently predictable across all browsers and locales that we can get the correct result. For example, what happens in locales that use different decimal/comma separators, or something besides E for exponential notation? I am very leery of relying on this behavior. Ok, after doing some more research, Number.toString appears to be locale-independent, while Number.toLocaleString does locale-specific formatting, so I think this is safe. However, I noticed the toFixed and toPrecision which might make this code simpler. https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toFixed https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toPrecision http://gwt-code-reviews.appspot.com/97812 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6983 committed - Ensure server info from superclasses doesn't stomp on subclass info....
Revision: 6983 Author: r...@google.com Date: Wed Nov 18 07:57:10 2009 Log: Ensure server info from superclasses doesn't stomp on subclass info. This fixes external issue 3969 (http://code.google.com/p/google-web-toolkit/issues/detail?id=3969). When a class with superclasses was being serialized, the extra info for the superclass and the subclass were being stored in the same place using WeakMapping. The result was that the superclass version was seen when deserializing the subclass, causing an exception. By using different keys, we can associate each portion of the data with the appropriate phase of the serialization/deserialization process. Review by: bobv http://code.google.com/p/google-web-toolkit/source/detail?r=6983 Modified: /trunk/user/src/com/google/gwt/user/rebind/rpc/FieldSerializerCreator.java === --- /trunk/user/src/com/google/gwt/user/rebind/rpc/FieldSerializerCreator.java Wed Nov 11 11:41:51 2009 +++ /trunk/user/src/com/google/gwt/user/rebind/rpc/FieldSerializerCreator.java Wed Nov 18 07:57:10 2009 @@ -121,6 +121,18 @@ return sb.toString(); } + + /** + * Returns the depth of the given class in the class hierarchy + * (where the depth of java.lang.Object == 0). + */ + private int getDepth(JClassType clazz) { +int depth = 0; +while ((clazz = clazz.getSuperclass()) != null) { + depth++; +} +return depth; + } private SourceWriter getSourceWriter(TreeLogger logger, GeneratorContext ctx) { String qualifiedSerializerName = SerializationUtils.getFieldSerializerName( @@ -272,7 +284,9 @@ */ if (serializableClass.isEnhanced()) { sourceWriter.println(WEAK_MAPPING_CLASS_NAME + .set(instance, - + \server-enhanced-data\, streamReader.readString());); + + \server-enhanced-data- + + getDepth(serializableClass) + + \, streamReader.readString());); } for (JField serializableField : serializableFields) { @@ -320,7 +334,9 @@ if (serializableClass.isEnhanced()) { sourceWriter.println(streamWriter.writeString((String) - + WEAK_MAPPING_CLASS_NAME + .get(instance, \server-enhanced-data\));); + + WEAK_MAPPING_CLASS_NAME + + .get(instance, \server-enhanced-data- + + getDepth(serializableClass) + \));); } for (JField serializableField : serializableFields) { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix JDK 1.6+ dependency for setting multiple icons in Swing UI
Reviewers: bobv, Dan Rice, Description: r6973 broke JDK 1.5, and this fixes it by making the call reflectively and falling back to the old behavior if that fails. Please review this at http://gwt-code-reviews.appspot.com/103807 Affected files: dev/core/src/com/google/gwt/dev/SwingUI.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix JDK 1.6+ dependency for setting multiple icons in Swing UI
Don't ignore the exceptions that are actual errors. http://gwt-code-reviews.appspot.com/103807/diff/1/2 File dev/core/src/com/google/gwt/dev/SwingUI.java (right): http://gwt-code-reviews.appspot.com/103807/diff/1/2#newcode86 Line 86: protected interface TabPanelCollection { Is this change related? http://gwt-code-reviews.appspot.com/103807/diff/1/2#newcode344 Line 344: } catch (NoSuchMethodException e) { This is the only expected exception, right? The others shouldn't be silently ignored. http://gwt-code-reviews.appspot.com/103807 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Reduce log levels, remove stderr launch URL message
Are you including a host page in your DevMode launch config? You should be using -startupUrl Foo.html to tell GWT which host page you want to use, and then it will generate a complete URL for you. On 11/18/09, Thomas Matthijs thomas.matth...@gmail.com wrote: You should see a log message Waiting for browser connection to ... with the URL, and a Launch default browser link there. Does that not meet your needs? Maybe i'm doing it wrong, but that's not what i get. http://imgur.com/uWqfx If you go to http://localhost:/ you get an alert error saying thing may need to be compiled. But if you go to http://localhost:/?gwt.codesvr=127.0.0.1:9997 everything works. As a first time user this is quite confusing and non obvious -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Reduce log levels, remove stderr launch URL message
On Wed, Nov 18, 2009 at 17:15, John Tamplin j...@google.com wrote: Are you including a host page in your DevMode launch config? You should be using -startupUrl Foo.html to tell GWT which host page you want to use, and then it will generate a complete URL for you. Ah much better indeed: 00:00:05.309 [INFO] Waiting for browser connection to http://localhost:/index.html?gwt.codesvr=127.0.0.1:9997; Thanks! -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6984 committed - Reduce unnecessary public visibility, add javadoc....
Revision: 6984 Author: j...@google.com Date: Wed Nov 18 08:26:08 2009 Log: Reduce unnecessary public visibility, add javadoc. Patch by: jat Review by: bobv http://code.google.com/p/google-web-toolkit/source/detail?r=6984 Modified: /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java === --- /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Tue Nov 17 14:51:47 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Wed Nov 18 08:26:08 2009 @@ -48,11 +48,17 @@ /** * Module handle for Swing UI. */ - public class SwingModuleHandle implements ModuleHandle { + protected class SwingModuleHandle implements ModuleHandle { private final TreeLogger logger; private final ModulePanel tab; +/** + * Create an immutable module handle. + * + * @param logger logger to use for this module + * @param tab the module panel associated with this instance + */ public SwingModuleHandle(TreeLogger logger, ModulePanel tab) { this.logger = logger; this.tab = tab; @@ -62,6 +68,9 @@ return logger; } +/** + * @return the ModulePanel associated with this module instance. + */ public ModulePanel getTab() { return tab; } @@ -70,7 +79,7 @@ /** * Interface to group activities related to adding and deleting tabs. */ - public interface TabPanelCollection { + protected interface TabPanelCollection { /** * Add a new tab containing a ModuleTabPanel. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix JDK 1.6+ dependency for setting multiple icons in Swing UI
LGTM http://gwt-code-reviews.appspot.com/103807 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6985 committed - Fix breakage against JDK 1.5 due to r6973....
Revision: 6985 Author: j...@google.com Date: Wed Nov 18 08:39:41 2009 Log: Fix breakage against JDK 1.5 due to r6973. Patch by: jat Review by: bobv http://code.google.com/p/google-web-toolkit/source/detail?r=6985 Modified: /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java === --- /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Wed Nov 18 08:26:08 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/SwingUI.java Wed Nov 18 08:39:41 2009 @@ -27,11 +27,15 @@ import com.google.gwt.dev.ui.RestartServerEvent; import com.google.gwt.dev.util.collect.HashMap; +import java.awt.Image; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.net.URL; -import java.util.Arrays; +import java.util.ArrayList; +import java.util.List; import java.util.Map; import javax.swing.Icon; @@ -217,9 +221,8 @@ } } }); -frame.setIconImages(Arrays.asList(gwtIcon48.getImage(), -gwtIcon32.getImage(), gwtIcon64.getImage(), gwtIcon128.getImage(), -gwtIcon16.getImage())); +setIconImages(topLogger, gwtIcon48, gwtIcon32, gwtIcon64, gwtIcon128, +gwtIcon16); frame.setVisible(true); } @@ -313,4 +316,46 @@ } return moduleTabPanel; } -} + + /** + * Set the images for the frame. On JDK 1.5, only the last icon supplied is + * used for all needs. + * + * @param logger logger to use for warnings + * @param icons one or more icons + */ + private void setIconImages(TreeLogger logger, ImageIcon... icons) { +if (icons.length == 0) { + return; +} +Exception caught = null; +try { + // if this fails, we fall back to the JDK 1.5 method + Method method = frame.getClass().getMethod(setIconImages, List.class); + ListImage imageList = new ArrayListImage(); + for (ImageIcon icon : icons) { +Image image = icon.getImage(); +if (image != null) { + imageList.add(image); +} + } + method.invoke(frame, imageList); + return; +} catch (SecurityException e) { + caught = e; +} catch (IllegalArgumentException e) { + caught = e; +} catch (NoSuchMethodException e) { + // ignore, expected on JDK 1.5 +} catch (IllegalAccessException e) { + caught = e; +} catch (InvocationTargetException e) { + caught = e; +} +if (caught != null) { + logger.log(TreeLogger.WARN, Unexpected exception setting icon images, + caught); +} +frame.setIconImage(icons[icons.length - 1].getImage()); + } +} -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix JDK 1.6+ dependency for setting multiple icons in Swing UI
On 2009/11/18 16:30:20, bobv wrote: LGTM Thanks, committed to trunk at r6985, will merge to releases/2.0 shortly. http://gwt-code-reviews.appspot.com/103807 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r6986 committed - Merge trunk r6981, r6984-6985 into this branch...
Revision: 6986 Author: j...@google.com Date: Wed Nov 18 08:54:38 2009 Log: Merge trunk r6981, r6984-6985 into this branch Cleanup logging, reduce visibility of SwingUI internals, fix JDK 1.5 breakage svn merge --ignore-ancestry -c6981 \ https://google-web-toolkit.googlecode.com/svn/trunk/ . svn merge --ignore-ancestry -r6983:6985 \ https://google-web-toolkit.googlecode.com/svn/trunk/ . http://code.google.com/p/google-web-toolkit/source/detail?r=6986 Modified: /releases/2.0/branch-info.txt /releases/2.0/dev/core/src/com/google/gwt/dev/DevMode.java /releases/2.0/dev/core/src/com/google/gwt/dev/DevModeBase.java /releases/2.0/dev/core/src/com/google/gwt/dev/SwingUI.java === --- /releases/2.0/branch-info.txt Wed Nov 18 05:37:52 2009 +++ /releases/2.0/branch-info.txt Wed Nov 18 08:54:38 2009 @@ -758,3 +758,10 @@ tr...@6968 was merged into this branch Accounting for time difference between host and client in CookieTest#testExpires svn merge --ignore-ancestry -c 6968 https://google-web-toolkit.googlecode.com/svn/trunk . + +tr...@6981,6984,6985 was merged into this branch + Cleanup logging, reduce visibility of SwingUI internals, fix JDK 1.5 breakage +svn merge --ignore-ancestry -c6981 \ + https://google-web-toolkit.googlecode.com/svn/trunk/ . +svn merge --ignore-ancestry -r6983:6985 \ + https://google-web-toolkit.googlecode.com/svn/trunk/ . === --- /releases/2.0/dev/core/src/com/google/gwt/dev/DevMode.java Mon Nov 16 19:22:20 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/DevMode.java Wed Nov 18 08:54:38 2009 @@ -343,7 +343,7 @@ ui.setCallback(RestartServerEvent.getType(), this); // TODO(jat): find a safe way to get an icon for the servlet container TreeLogger serverLogger = ui.getWebServerLogger(getWebServerName(), null); - serverLogger.log(TreeLogger.INFO, Starting HTTP on port + getPort(), + serverLogger.log(TreeLogger.TRACE, Starting HTTP on port + getPort(), null); server = options.getServletContainerLauncher().start(serverLogger, getPort(), options.getWarDir()); @@ -374,6 +374,7 @@ return options.getServletContainerLauncher().getName(); } + @Override protected synchronized void produceOutput(TreeLogger logger, StandardLinkerContext linkerStack, ArtifactSet artifacts, ModuleDef module) throws UnableToCompleteException { === --- /releases/2.0/dev/core/src/com/google/gwt/dev/DevModeBase.java Mon Nov 16 19:22:20 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/DevModeBase.java Wed Nov 18 08:54:38 2009 @@ -703,7 +703,7 @@ try { for (String prenormalized : options.getStartupURLs()) { startupURL = normalizeURL(prenormalized, getPort(), getHost()); -logger.log(TreeLogger.INFO, Starting URL: + startupURL, null); +logger.log(TreeLogger.TRACE, Starting URL: + startupURL, null); launchURL(startupURL); } } catch (UnableToCompleteException e) { @@ -764,7 +764,7 @@ * subclasses that need to change the behavior of ShellModuleSpaceHost. * * @param logger TreeLogger to use - * @param typeOracle + * @param compilationState * @param moduleDef * @return ShellModuleSpaceHost instance */ @@ -881,9 +881,6 @@ getTopLogger().log(TreeLogger.ERROR, Invalid URL + url, e); throw new UnableToCompleteException(); } -System.err.println(Using a browser with the GWT Developer Plugin, please browse to); -System.err.println(the following URL:); -System.err.println( + url); final URL helpInfoUrl = parsedUrl; getTopLogger().log(TreeLogger.INFO, Waiting for browser connection to + url, null, new HelpInfo() { === --- /releases/2.0/dev/core/src/com/google/gwt/dev/SwingUI.java Tue Nov 17 14:54:53 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/SwingUI.java Wed Nov 18 08:54:38 2009 @@ -27,11 +27,15 @@ import com.google.gwt.dev.ui.RestartServerEvent; import com.google.gwt.dev.util.collect.HashMap; +import java.awt.Image; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.net.URL; -import java.util.Arrays; +import java.util.ArrayList; +import java.util.List; import java.util.Map; import javax.swing.Icon; @@ -48,11 +52,17 @@ /** * Module handle for Swing UI. */ - public class SwingModuleHandle implements ModuleHandle { + protected class SwingModuleHandle implements ModuleHandle { private final TreeLogger logger; private final ModulePanel tab; +/** + * Create an immutable module handle. + * + * @param logger