Re: How to log every RPC service request and response
Ok, ill give it a try! I thought about that cause i read it in the securing requestfactory with this custom header thread before. Regards On Apr 5, 10:33 pm, Thomas Broyer t.bro...@gmail.com wrote: On Tuesday, April 5, 2011 7:17:18 PM UTC+2, opn wrote: How would I do this for RequestFactory? (Hope you don't mind that I'm asking it here, follow-up question) It's much easier! Use the 3-args init() method of the RequestFactory to pass a RequestTransport (most probably one that extends the DefaultRequestTransport). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JavaScript errors in dynamic host page
I'm trying to implement the dynamic host page pattern as described here: http://code.google.com/webtoolkit/articles/dynamic_host_page.html; but Im finding that the module won't load. I suspect that the existence of two JavaScript errors in GWT-generated code are the reason. When running the application inside Dev Mode, the following two JavaScript errors are found: 1. Uncaught TypeError: Object #Document has no method 'write' ... this occurs on the following statement: $doc.write($intern_64); ... where $intern_64 is set to script defer=deferdiscusswrite.onInjectionDone('discusswrite')/script 2. Uncaught TypeError: Cannot set property 'cssText' of null ... this occurs on the following statement: iframe.style.cssText = $intern_37; It seems that the iframe.style is null at that point. I'm flummoxed as to the reason for these error messages. If I turn the page into a status HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
Oops! Bad spelling. The last paragraph should read: I'm flummoxed as to the reason for these error messages. If I turn the page into a static HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? On Apr 6, 5:49 pm, David Pinn dp...@byandlarge.net wrote: I'm trying to implement the dynamic host page pattern as described here:http://code.google.com/webtoolkit/articles/dynamic_host_page.html; but Im finding that the module won't load. I suspect that the existence of two JavaScript errors in GWT-generated code are the reason. When running the application inside Dev Mode, the following two JavaScript errors are found: 1. Uncaught TypeError: Object #Document has no method 'write' ... this occurs on the following statement: $doc.write($intern_64); ... where $intern_64 is set to script defer=deferdiscusswrite.onInjectionDone('discusswrite')/script 2. Uncaught TypeError: Cannot set property 'cssText' of null ... this occurs on the following statement: iframe.style.cssText = $intern_37; It seems that the iframe.style is null at that point. I'm flummoxed as to the reason for these error messages. If I turn the page into a status HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Need to change BackColor of Tree Item When I MouseOver on It
I want to change color of tree Item on mouse Over Event ,I tried it by using CSS but can't get it pl. help how can i do it. for menu Item I get back color change when I mouse over but I didn't get for Tree Item -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Overriding font-family in standard.css and/or Modifying standard.css?
Thanks for response. I'm using CssResource, yes...no reference to the CSS file in the HTML file. I don't think it is to do with the loadtime in this particular instance... Are you able to use a GWT theme and override styles? I don't think I'm the only one with this problem; I think it's the way it is... On Apr 5, 9:30 pm, Jeff Larsen larse...@gmail.com wrote: It probably has to do with the loadtime of your stylesheets. How are you loading your custom style sheets? in the .html file or are you loading them via CssResource? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
Have you used firebug to check that the response body *and* the http headers are the same in the static and dynamic versions? On 06/04/11 08:54, David Pinn wrote: Oops! Bad spelling. The last paragraph should read: I'm flummoxed as to the reason for these error messages. If I turn the page into a static HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? On Apr 6, 5:49 pm, David Pinndp...@byandlarge.net wrote: I'm trying to implement the dynamic host page pattern as described here:http://code.google.com/webtoolkit/articles/dynamic_host_page.html; but Im finding that the module won't load. I suspect that the existence of two JavaScript errors in GWT-generated code are the reason. When running the application inside Dev Mode, the following two JavaScript errors are found: 1. Uncaught TypeError: Object #Document has no method 'write' ... this occurs on the following statement: $doc.write($intern_64); ... where $intern_64 is set to script defer=deferdiscusswrite.onInjectionDone('discusswrite')/script 2. Uncaught TypeError: Cannot set property 'cssText' of null ... this occurs on the following statement: iframe.style.cssText = $intern_37; It seems that the iframe.style is null at that point. I'm flummoxed as to the reason for these error messages. If I turn the page into a status HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Mac + Google Maps 1.1 Library + Google Web Toolkit 2.2.0 SDK Bundle for Eclipse 3.5
Hi everybody, I've bought a mac (macbook pro i7) and I must use Google Maps 1.1 Library to develop an application. The problem is that if I try to run the library tutorial (http:// code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) I have this problem during execution: 13:25:29.654 [ERROR] [provamaps] Uncaught exception escaped java.lang.ExceptionInInitializerError: null at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:284) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:235) at dominio.sito.provaMaps.client.ProvaMaps.buildUi(ProvaMaps.java: 39) at dominio.sito.provaMaps.client.ProvaMaps.access$0(ProvaMaps.java: 35) at dominio.sito.provaMaps.client.ProvaMaps$1.run(ProvaMaps.java: 30) at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelper.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.google.gwt.maps.client.impl.MapImpl.lt;clinitgt; (MapImpl.java:45) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:284) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:235) at dominio.sito.provaMaps.client.ProvaMaps.buildUi(ProvaMaps.java: 39) at dominio.sito.provaMaps.client.ProvaMaps.access$0(ProvaMaps.java: 35) at dominio.sito.provaMaps.client.ProvaMaps$1.run(ProvaMaps.java: 30) at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelper.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java: 277) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 259) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 585) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.google.gwt.maps.client.impl.MapImpl.lt;clinitgt; (MapImpl.java:45) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at
Re: Mac + Google Maps 1.1 Library + Google Web Toolkit 2.2.0 SDK Bundle for Eclipse 3.5
So, did you recompile gwt-maps with GWT 2.2.0? http://code.google.com/p/gwt-google-apis/issues/detail?id=447 I wonder if the jsio libraries were excluded from your .jar file for some reason? On Wed, Apr 6, 2011 at 7:42 AM, Alberto sturialb...@gmail.com wrote: Hi everybody, I've bought a mac (macbook pro i7) and I must use Google Maps 1.1 Library to develop an application. The problem is that if I try to run the library tutorial (http:// code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) I have this problem during execution: 13:25:29.654 [ERROR] [provamaps] Uncaught exception escaped java.lang.ExceptionInInitializerError: null at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:284) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:235) at dominio.sito.provaMaps.client.ProvaMaps.buildUi(ProvaMaps.java: 39) at dominio.sito.provaMaps.client.ProvaMaps.access$0(ProvaMaps.java: 35) at dominio.sito.provaMaps.client.ProvaMaps$1.run(ProvaMaps.java: 30) at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelper.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.google.gwt.maps.client.impl.MapImpl.lt;clinitgt; (MapImpl.java:45) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:284) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:235) at dominio.sito.provaMaps.client.ProvaMaps.buildUi(ProvaMaps.java: 39) at dominio.sito.provaMaps.client.ProvaMaps.access$0(ProvaMaps.java: 35) at dominio.sito.provaMaps.client.ProvaMaps$1.run(ProvaMaps.java: 30) at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelper.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java: 277) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 259) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 585) at
Re: JavaScript errors in dynamic host page
I have now. :-) The two versions differ only in this: the static version has these HTTP headers, whereas the dynamic version does not. Accept-Ranges: bytes ETag: W/4071-1302051328262 Last-Modified: Wed, 06 Apr 2011 00:55:28 GMT Content-Type: text/html I will make the dynamic version produce these headers also. Do you think their omission is to blame? On Apr 6, 8:03 pm, Paul Robinson ukcue...@gmail.com wrote: Have you used firebug to check that the response body *and* the http headers are the same in the static and dynamic versions? On 06/04/11 08:54, David Pinn wrote: Oops! Bad spelling. The last paragraph should read: I'm flummoxed as to the reason for these error messages. If I turn the page into a static HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? On Apr 6, 5:49 pm, David Pinndp...@byandlarge.net wrote: I'm trying to implement the dynamic host page pattern as described here:http://code.google.com/webtoolkit/articles/dynamic_host_page.html; but Im finding that the module won't load. I suspect that the existence of two JavaScript errors in GWT-generated code are the reason. When running the application inside Dev Mode, the following two JavaScript errors are found: 1. Uncaught TypeError: Object #Document has no method 'write' ... this occurs on the following statement: $doc.write($intern_64); ... where $intern_64 is set to script defer=deferdiscusswrite.onInjectionDone('discusswrite')/script 2. Uncaught TypeError: Cannot set property 'cssText' of null ... this occurs on the following statement: iframe.style.cssText = $intern_37; It seems that the iframe.style is null at that point. I'm flummoxed as to the reason for these error messages. If I turn the page into a status HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need to change BackColor of Tree Item When I MouseOver on It
If you're using CellTree, see this thread, especially the last post, on how to set custom css styles for CellTree: https://groups.google.com/group/google-web-toolkit/browse_thread/thread/144b025bfa3421c3/c3eb2ad898ae06af Good luck! El 06/04/11 03:19, Nagendra escribió: I want to change color of tree Item on mouse Over Event ,I tried it by using CSS but can't get it pl. help how can i do it. for menu Item I get back color change when I mouse over but I didn't get for Tree Item -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Gwt 2.1 CellTable row
Hello guys, I'm using CellTable on my project. If the page size is 10 and I've 15 rows, Cell table display on the first page results from 1-10, when I turn page it displays result from 5-15. Is possibile change this behaviuor displaying on the first page results from 1-10 and on the second page results from 10-15? Thanks Cheers Daniele -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
Using BurpSuite, I intercepted the HTTP response to the request for the dynamic page, inserting the four headers that I mentioned earlier. It worked. I am now officially very excited. As to *why* it worked, I am in the dark. On Apr 6, 10:13 pm, David Pinn dp...@byandlarge.net wrote: I have now. :-) The two versions differ only in this: the static version has these HTTP headers, whereas the dynamic version does not. Accept-Ranges: bytes ETag: W/4071-1302051328262 Last-Modified: Wed, 06 Apr 2011 00:55:28 GMT Content-Type: text/html I will make the dynamic version produce these headers also. Do you think their omission is to blame? On Apr 6, 8:03 pm, Paul Robinson ukcue...@gmail.com wrote: Have you used firebug to check that the response body *and* the http headers are the same in the static and dynamic versions? On 06/04/11 08:54, David Pinn wrote: Oops! Bad spelling. The last paragraph should read: I'm flummoxed as to the reason for these error messages. If I turn the page into a static HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? On Apr 6, 5:49 pm, David Pinndp...@byandlarge.net wrote: I'm trying to implement the dynamic host page pattern as described here:http://code.google.com/webtoolkit/articles/dynamic_host_page.html; but Im finding that the module won't load. I suspect that the existence of two JavaScript errors in GWT-generated code are the reason. When running the application inside Dev Mode, the following two JavaScript errors are found: 1. Uncaught TypeError: Object #Document has no method 'write' ... this occurs on the following statement: $doc.write($intern_64); ... where $intern_64 is set to script defer=deferdiscusswrite.onInjectionDone('discusswrite')/script 2. Uncaught TypeError: Cannot set property 'cssText' of null ... this occurs on the following statement: iframe.style.cssText = $intern_37; It seems that the iframe.style is null at that point. I'm flummoxed as to the reason for these error messages. If I turn the page into a status HTML page - my app won't work properly in this fashion, but just for the sake of testing - then everything works just fine. Can you help me understand what's going on here, and how I might get around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
On Wednesday, April 6, 2011 2:13:24 PM UTC+2, David Pinn wrote: I have now. :-) The two versions differ only in this: the static version has these HTTP headers, whereas the dynamic version does not. Accept-Ranges: bytes ETag: W/4071-1302051328262 Last-Modified: Wed, 06 Apr 2011 00:55:28 GMT Content-Type: text/html I will make the dynamic version produce these headers also. Please don't! (well, except for the Content-Type –but it's very strange that you don't have it already– and possibly Last-Modified) Do you think their omission is to blame? No it's not. Could you share your dynamic code? is it JSP or servlet? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
Hmm, could it be that your browser interpreted the result as XHTML rather than HTML? (because of the absence of Content-Type, it had to sniff; but your response probably has issues as there are very few reasons that unlabeled HTML could be sniffed as XHTML) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
Yes, yes! That's it! I had the following at the top of both the static and dynamic pages: ? xml version=1.0 encoding=utf-8 ? When I removed it from the dynamic version, it worked. And I didn't have to mess around with any headers. On Apr 6, 10:36 pm, Thomas Broyer t.bro...@gmail.com wrote: Hmm, could it be that your browser interpreted the result as XHTML rather than HTML? (because of the absence of Content-Type, it had to sniff; but your response probably has issues as there are very few reasons that unlabeled HTML could be sniffed as XHTML) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.String) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: java.net.Socket 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 org.postgresql.core.PGStream.init(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java: 76) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java: 66) at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection.java: 125) at org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJdbc3Connection.java: 30) at org.postgresql.jdbc3.Jdbc3Connection.init(Jdbc3Connection.java: 24) at org.postgresql.Driver.makeConnection(Driver.java:393) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.gwt.app.server.ManejadorBD.checkUser(ManejadorBD.java:11) at com.gwt.app.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java: 15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at
Re: JavaScript errors in dynamic host page
Glad that it works, but you should really send a Content-Type header! (and if you have to do it manually, try to send the encoding in it too, rather than using a meta –or nothing at all?!–: Content-Type:text/html;charset=UTF-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScript errors in dynamic host page
So, GWT doesn't like XHTML? On Apr 6, 10:59 pm, Thomas Broyer t.bro...@gmail.com wrote: Glad that it works, but you should really send a Content-Type header! (and if you have to do it manually, try to send the encoding in it too, rather than using a meta –or nothing at all?!–: Content-Type:text/html;charset=UTF-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
I am trying to access via HSQLDB. My class is: public class ManejadorBD { public boolean checkUser(String user, String pass) throws Exception{ Class.forName(org.hsqldb.jdbcDriver); Properties prop = new Properties(); prop.load(this.getClass().getResource(database.properties).openStream()); JDBCDriver driver = new JDBCDriver(); Connection conn = driver.connect(jdbc:postgresql://localhost: 5432/3encult, prop); String sql = SELECT login,password FROM \user\; Statement statement = (JDBCStatement) conn.createStatement(); ResultSet tabla = statement.executeQuery(sql); while(tabla.next()){ if(user == tabla.getString(login) pass == tabla.getString(password)) return true; else return false; } } } And the properties file is: user=3encult password=3encult But the connection object is null, what coult the problem be? Thanks! Regars! On Apr 5, 9:16 pm, Paul Robinson ukcue...@gmail.com wrote: You can't access a regular SQL DB if you're using google app engine. Either turn off the GAE setting or use GAE compatible data access. On 05/04/11 12:57, Jose Luis Hernandez wrote: java.lang.NoClassDefFoundError: org.postgresql.core.Logger is a restricted class. Please see the Google App Engine developer's guide for more details. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.String) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: java.net.Socket 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 org.postgresql.core.PGStream.init(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java: 76) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java: 66) at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection.java: 125) at org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJdbc3Connection.java: 30) at org.postgresql.jdbc3.Jdbc3Connection.init(Jdbc3Connection.java: 24) at org.postgresql.Driver.makeConnection(Driver.java:393) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.gwt.app.server.ManejadorBD.checkUser(ManejadorBD.java:11) at com.gwt.app.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java: 15) at
Re: JavaScript errors in dynamic host page
On Wednesday, April 6, 2011 3:01:20 PM UTC+2, David Pinn wrote: So, GWT doesn't like XHTML? Yes http://code.google.com/p/google-web-toolkit/issues/detail?id=710 (but actually, the whole Web doesn't like XHTML, so it's a non-issue) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RichTextArea, SafeHtml, and general rich text best practices
Thank you Patrice! I'll take a look at it. On Apr 5, 8:58 am, Patrice De Saint Steban patou.de.saint.ste...@gmail.com wrote: Hello, I'm doing the same thing, and I write a new Sanitize class to accept more tags and parameters. I use this sanitizer before and after the setHtml() and getHtml() of the RichTextArea. I share the file in attachment, If there are some issues thanks to inform me. Patrice ComplexeHtmlSanitizer.java 15KViewDownload -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mac + Google Maps 1.1 Library + Google Web Toolkit 2.2.0 SDK Bundle for Eclipse 3.5
GREAT! Thank you very much, i was convinced it was an error related to the operative system/jvm, but on linux and windows I used an earlier GWT version... :) Thank you! On 6 Apr, 13:54, Eric Ayers zun...@google.com wrote: So, did you recompile gwt-maps with GWT 2.2.0? http://code.google.com/p/gwt-google-apis/issues/detail?id=447 I wonder if the jsio libraries were excluded from your .jar file for some reason? On Wed, Apr 6, 2011 at 7:42 AM, Alberto sturialb...@gmail.com wrote: Hi everybody, I've bought a mac (macbook pro i7) and I must use Google Maps 1.1 Library to develop an application. The problem is that if I try to run the library tutorial (http:// code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) I have this problem during execution: 13:25:29.654 [ERROR] [provamaps] Uncaught exception escaped java.lang.ExceptionInInitializerError: null at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:284) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:235) at dominio.sito.provaMaps.client.ProvaMaps.buildUi(ProvaMaps.java: 39) at dominio.sito.provaMaps.client.ProvaMaps.access$0(ProvaMaps.java: 35) at dominio.sito.provaMaps.client.ProvaMaps$1.run(ProvaMaps.java: 30) at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelp er.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne lServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.google.gwt.maps.client.impl.MapImpl.lt;clinitgt; (MapImpl.java:45) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:253) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:284) at com.google.gwt.maps.client.MapWidget.lt;initgt; (MapWidget.java:235) at dominio.sito.provaMaps.client.ProvaMaps.buildUi(ProvaMaps.java: 39) at dominio.sito.provaMaps.client.ProvaMaps.access$0(ProvaMaps.java: 35) at dominio.sito.provaMaps.client.ProvaMaps$1.run(ProvaMaps.java: 30) at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelp er.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne lServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenera tor.java: 277) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja va: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator ExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at
Re: CellTable Grouping
By grouping you mean set a rowspan ? You can set the rowspan of cell using the cellTable api : public void setRowSpan(final int row, final int column, final int rowSpan) { cellTable.getRowElement(row).getCells().getItem(column).setRowSpan(rowSpan); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory / When is Entity.findEntity used?
Every entity on request factory must provide a static EntityName findEntityName(Long id) method, is that correct? If I use a locator, the locator already has a find() method. Doesn't they have the same purpose? Do I really need both? -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable Grouping
I need to add rows to the table and dynamically change the headers based on which rows are being grouped. For example, if I had a table of books and grouped by Authors, I would want to add a row with colspan set to the entire table columand remove the Authors column from the grid. Removing the column is sorta easy, I still need to be sorting on that column, but adding the additional row is part that I haven't figured out (without copy/pasting CellTable and maiming it to my own specifications). 2011/4/6 Raphaël Brugier raphael.brug...@gmail.com By grouping you mean set a rowspan ? You can set the rowspan of cell using the cellTable api : public void setRowSpan(final int row, final int column, final int rowSpan) { cellTable.getRowElement(row).getCells().getItem(column).setRowSpan(rowSpan); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: java.net.Socket 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 org.postgresql.core.PGStream.init(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionF actoryImpl.java: 76) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java : 66) at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection .java: 125) at org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJdbc3Connection .java: 30) at org.postgresql.jdbc3.Jdbc3Connection.init(Jdbc3Connection.java: 24) at org.postgresql.Driver.makeConnection(Driver.java:393) at org.postgresql.Driver.connect(Driver.java:267)
Re: JDBC Connection on GWT
Are you do an Google App Engine Application or a simple GWT applitacion? If is a GWT application, remove of project configuration that use GAE SDK. 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: java.net.Socket 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 org.postgresql.core.PGStream.init(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionF actoryImpl.java: 76) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java : 66) at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection
Re: JDBC Connection on GWT
It is an application, but in future it should be integrated into OSGi, then deploy in Felix server! On Apr 6, 4:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you do an Google App Engine Application or a simple GWT applitacion? If is a GWT application, remove of project configuration that use GAE SDK. 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: java.net.Socket 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 org.postgresql.core.PGStream.init(PGStream.java:62) at
Re: JDBC Connection on GWT
If is a GAE application, I think that you can't use SQL database, but I don't know GAE- 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com It is an application, but in future it should be integrated into OSGi, then deploy in Felix server! On Apr 6, 4:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you do an Google App Engine Application or a simple GWT applitacion? If is a GWT application, remove of project configuration that use GAE SDK. 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the
Re: Gwt 2.1 CellTable row
This is by design, SimplePager ensures you always view a whole page. There are lots of posts about this issue with earlier versions of GWT on the internet. Here's an example of a simple pager extension that does what you need:- /** * A custom Pager that maintains a set page size and displays page numbers and * total pages more elegantly. SimplePager will ensure codepageSize/ code * rows are always rendered even if the last page has less than * codepageSize/code rows remain. */ public class GuvnorSimplePager extends SimplePager { //Page size is normally derieved from the visibleRange private int pageSize = 10; @Override public void setPageSize(int pageSize) { this.pageSize = pageSize; super.setPageSize( pageSize ); } // We want pageSize to remain constant @Override public int getPageSize() { return pageSize; } // Page forward by an exact size rather than the number of visible // rows as is in the norm in the underlying implementation @Override public void nextPage() { if ( getDisplay() != null ) { Range range = getDisplay().getVisibleRange(); setPageStart( range.getStart() + getPageSize() ); } } // Page back by an exact size rather than the number of visible rows // as is in the norm in the underlying implementation @Override public void previousPage() { if ( getDisplay() != null ) { Range range = getDisplay().getVisibleRange(); setPageStart( range.getStart() - getPageSize() ); } } // Override so the last page is shown with a number of rows less // than the pageSize rather than always showing the pageSize number // of rows and possibly repeating rows on the last and penultimate // page @Override public void setPageStart(int index) { if ( getDisplay() != null ) { Range range = getDisplay().getVisibleRange(); int displayPageSize = getPageSize(); if ( isRangeLimited() getDisplay().isRowCountExact() ) { displayPageSize = Math.min( getPageSize(), getDisplay().getRowCount() - index ); } index = Math.max( 0, index ); if ( index != range.getStart() ) { getDisplay().setVisibleRange( index, displayPageSize ); } } } // Override to display 0 of 0 when there are no records (otherwise // you get 1-1 of 0) and 1 of 1 when there is only one record // (otherwise you get 1-1 of 1). Not internationalised (but // neither is SimplePager) protected String createText() { NumberFormat formatter = NumberFormat.getFormat( #,### ); HasRows display = getDisplay(); Range range = display.getVisibleRange(); int pageStart = range.getStart() + 1; int pageSize = range.getLength(); int dataSize = display.getRowCount(); int endIndex = Math.min( dataSize, pageStart + pageSize - 1 ); endIndex = Math.max( pageStart, endIndex ); boolean exact = display.isRowCountExact(); if ( dataSize == 0 ) { return 0 of 0; } else if ( pageStart == endIndex ) { return formatter.format( pageStart ) + of + formatter.format( dataSize ); } return formatter.format( pageStart ) + - + formatter.format( endIndex ) + (exact ? of : of over ) + formatter.format( dataSize ); } } Cheers, Mike On Apr 6, 8:31 am, bond daniele.re...@gmail.com wrote: Hello guys, I'm using CellTable on my project. If the page size is 10 and I've 15 rows, Cell table display on the first page results from 1-10, when I turn page it displays result from 5-15. Is possibile change this behaviuor displaying on the first page results from 1-10 and on the second page results from 10-15? Thanks Cheers Daniele -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
Also, I am trying to access via HSQLDB. My class is: public class ManejadorBD { public boolean checkUser(String user, String pass) throws Exception{ Class.forName(org.hsqldb.jdbcDriver); Properties prop = new Properties(); prop.load(this.getClass().getResource(database.properties).openStream()); JDBCDriver driver = new JDBCDriver(); Connection conn = driver.connect(jdbc:postgresql:// localhost: 5432/3encult, prop); String sql = SELECT login,password FROM \user\; Statement statement = (JDBCStatement) conn.createStatement(); ResultSet tabla = statement.executeQuery(sql); while(tabla.next()){ if(user == tabla.getString(login) pass == tabla.getString(password)) return true; else return false; } } } And the properties file is: user=3encult password=3encult I read ctbe properties file and I can obtain the user and password, but when I want to connect to database I obtain null. On API Webpage is said that properties file at least should be contain user and password. Also I call to acceptsURL method with the URL of database and it is returned true. Then, the connection to URL can be established, but the properties are not loaded. The user and pass are OK! I have created the user on database. http://hsqldb.sourceforge.net/doc/2.0/apidocs/org/hsqldb/jdbc/JDBCDriver.html#connect(java.lang.String, java.util.Properties) http://hsqldb.sourceforge.net/doc/2.0/apidocs/org/hsqldb/jdbc/JDBCDriver.html#acceptsURL(java.lang.String) On Apr 6, 4:25 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If is a GAE application, I think that you can't use SQL database, but I don't know GAE- 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com It is an application, but in future it should be integrated into OSGi, then deploy in Felix server! On Apr 6, 4:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you do an Google App Engine Application or a simple GWT applitacion? If is a GWT application, remove of project configuration that use GAE SDK. 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at
Bug in TextBox.setEnabled(boolean enabled)?
When I call the method TextBox.setEnabled(false) the textbox element does not get the correct markup. The markup is: input type=text class=gwt-TextBox disabled= The markup should be: input type=text class=gwt-TextBox disabled=disabled Is this a bug or feature? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer in Eclipse?
That is a very open-ended question, so I would suggest starting with the docs... http://code.google.com/webtoolkit/tools/gwtdesigner/index.html If you have specific questions not addressed there, feel free to ask. On Apr 5, 9:16 am, ChrisDane gregersen@gmail.com wrote: Hi there, Looks nice with the GWT Designer in Eclipse, but how do you use it? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory / When is Entity.findEntity used?
On Wednesday, April 6, 2011 3:57:31 PM UTC+2, Magno Machado wrote: Every entity on request factory must provide a static EntityName findEntityName(Long id) method, is that correct? Yes (provided your entity's ID is of type Long), unless you use a Locator. If I use a locator, the locator already has a find() method. Doesn't they have the same purpose? Do I really need both? The goal of the Locator is to replace the constraints imposed on the entity, namely: getId, getVersion and static findXxx method. If you use a Locator, you no longer have to provide those methods on your entity class, RequestFactory will ask the Locator *instead*. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Unittests and LogConfiguration.loggingIsEnabled
Hi, according to the docs, I created a template snippet to write log- entries:: if (LogConfiguration.loggingIsEnabled()) { Logger.getLogger(someplace).finer(somelog); } This works perfectly fine. My problem is now, that I'm unable to run this class in a mocked unittest as either * ``LogConfiguration.loggingIsEnabled()`` tries to call ``GWT.create()`` or * when using ``GWTMockUtilities.disarm()`` I will get a NullPointerException. What is the trick to have this working in unittests (non-client-test). Please give me a hint. Thanks, Andi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Bug in TextBox.setEnabled(boolean enabled)?
TextBox setDisable sets the disabled *property* (i.e. elem.disabled=true). What you see here is a re-serialization of the DOM by your development tools. As for the markup is / markup should be: in SGML-based-HTML (something no single browser ever implemented), the markup could be either input disabled or input disabled=disabled. In HTML5, it can be either input disabled, input disabled= or input disabled=disabled, but the value of the attribute actually doesn't matter (only those 3 forms don't generate a parse error, or in other words are the only conformant forms). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT MVP
I've been looking into GWT and MVP recently and to be honest I'm very confused. My project involves around 40 different pages / individual views, or whatever the correct terminology is. I've been reading tutorials that follow Model-View-Presenter and others that use Activities and Places. Which one should I be using? Many thanks, Alex -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Comet and GWT
Is there someone working with Comet in GWT? I tried to look for it, there are some libraries in which allow you to do it, but I couldn't put any of them to work. I've tried rocket-gwt and comet-gwt, but always getting errors and the tutorials they provide are a little bit poor. Could someone give me any tips? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
NullPointerException while createAndBindUI in dialogbox
Hi All, I have simple dialog bix and the ui is defined in the fololowing ui.xml. This is working fine as long as I have one widget on the HTMLPanel. It's throwing the NullPointerException at this.setWidget(uiBinder.createAndBindUi(this)); If I add a pager object. Help me inresolving this issue. Thanks in advance !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:cell=urn:import:com.google.gwt.user.cellview.client xmlns:dom=urn:import:com.google.gwt.dom.client ui:style .cellTable { border-bottom: 1px solid #ccc; text-align: left; margin-bottom: 4px; } /ui:style g:HTMLPanel cell:CellTable addStyleNames='{style.cellTable}' ui:field=attributeTable / /g:HTMLPanel /ui:UiBinder MyDialogBox.java /** * UiBinder. */ interface Binder extends UiBinderWidget, MyDialogBox { } // CHECKSTYLE:OFF - not GWT friendly. @UiField CellTableDialogInfo attributeTable; /** * The pager used to change the range of data. */ SimplePager pager; public MyDialogBox() { super(true); this.setWidget(uiBinder.createAndBindUi(this)); this.setModal(true); buildUI(); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Scroll Bar Issue
Hi Is there an update with regards to the status of the DataGrid. An approximate release schedule is very much appreciated. Thanks On Feb 10, 2:11 pm, John LaBanca jlaba...@google.com wrote: On Thu, Feb 10, 2011 at 12:20 AM, Vish vnd...@gmail.com wrote: John, DataGrid as you mentioned above, is very important for our project too and if you could provide about its release it would be very much appreciable. The current plan is to get it into GWT 2.3, which we just started working on. I'm hoping to have DataGrid checked into trunk by early March, but it could slip if other priorities come up. I wish I could provide a firm date, but we have a lot going on and its hard to know exactly when I'll be able to work on it. If you star this issue, it'll throw some fuel on the fire and increase the priority. Personally, I think its long overdue.http://code.google.com/p/google-web-toolkit/issues/detail?id=188 On Jan 21, 8:35 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: +1 On Jan 21, 2011 7:53 AM, wajad abbasi wajadabb...@gmail.com wrote: Thanks for your reply. Dear when will data grid be available??? OR is there any other Widget/Option which gives this kind of feature like smartgwt's Live Gird On Jan 20, 8:18 pm, John LaBanca jlaba...@google.com wrote: It isn't possible with CellTable. I'm working no a variation of CellTable called DataGrid that will add this specific feature. Thanks, John LaBanca jlaba...@google.com On Thu, Jan 20, 2011 at 9:12 AM, wajad abbasi wajadabb...@gmail.com wrote: I am adding celltable widget in scrollPanel. I want to set its header to be fixed and data should be under Vertical scroll or is there any possibility to control the Horizontal scroll bar.. Please help me if anyone can. i m working it out from last month. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com google-web-toolkit%2Bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%252Bunsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com google-web-toolkit%2Bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. - Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
New Created Web App launched in Eclipse - Waiting for launch URLs
Hi, I created a new Web App with Google Web Toolkit in Eclipse and clicked Run. The URL that should show in the Development Tab below the Code doesnt appear, it keeps saying Waiting or launch URLs. The Console Tab however says The server is running at http://localhost:/; in the last line. What am I doing wrong? thanks in advance, Champy -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Plugin failed to connect in development mode
I am using windows 7. i installed latest gwt for eclipse 3.6 (Helios) and created the sample program using the gwt. When i try to run the program from the development mode it shows me the error Plugin failed to connect to development mode server at 127.0.0.1:9997. I uninstall and install the plugin still it shows me the above error. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Book that covers latest GWT release
Team, I was looking at all the Books reference provided on GWT site at http://code.google.com/webtoolkit/books.html. I did not see any of the books that covers the latest GWT releases. I looked in Ryan Dewsbury's Google Web Toolkit Application, but found the content to be stale when Ryan started describing about very first application in the book. Is there any other book that is missing from your list that is most up to date, or there is none? Thanks, Vicky -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Book that covers latest GWT release
This one covers 2.1 except RequestFactory. I'm not aware of any yet that cover RequestFactory. https://www.packtpub.com/google-app-engine-java-and-gwt-application-development/book /dmc On Tue, Apr 5, 2011 at 11:31 PM, Vicky solid@gmail.com wrote: Team, I was looking at all the Books reference provided on GWT site at http://code.google.com/webtoolkit/books.html. I did not see any of the books that covers the latest GWT releases. I looked in Ryan Dewsbury's Google Web Toolkit Application, but found the content to be stale when Ryan started describing about very first application in the book. Is there any other book that is missing from your list that is most up to date, or there is none? Thanks, Vicky -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
dont think you can mix hssqldb and postgres drivers On Wed, Apr 6, 2011 at 10:39 AM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Also, I am trying to access via HSQLDB. My class is: public class ManejadorBD { public boolean checkUser(String user, String pass) throws Exception{ Class.forName(org.hsqldb.jdbcDriver); Properties prop = new Properties(); prop.load(this.getClass().getResource(database.properties).openStream()); JDBCDriver driver = new JDBCDriver(); Connection conn = driver.connect(jdbc:postgresql:// localhost: 5432/3encult, prop); String sql = SELECT login,password FROM \user\; Statement statement = (JDBCStatement) conn.createStatement(); ResultSet tabla = statement.executeQuery(sql); while(tabla.next()){ if(user == tabla.getString(login) pass == tabla.getString(password)) return true; else return false; } } } And the properties file is: user=3encult password=3encult I read ctbe properties file and I can obtain the user and password, but when I want to connect to database I obtain null. On API Webpage is said that properties file at least should be contain user and password. Also I call to acceptsURL method with the URL of database and it is returned true. Then, the connection to URL can be established, but the properties are not loaded. The user and pass are OK! I have created the user on database. http://hsqldb.sourceforge.net/doc/2.0/apidocs/org/hsqldb/jdbc/JDBCDriver.html#connect(java.lang.String, java.util.Properties) http://hsqldb.sourceforge.net/doc/2.0/apidocs/org/hsqldb/jdbc/JDBCDriver.html#acceptsURL(java.lang.String) On Apr 6, 4:25 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If is a GAE application, I think that you can't use SQL database, but I don't know GAE- 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com It is an application, but in future it should be integrated into OSGi, then deploy in Felix server! On Apr 6, 4:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you do an Google App Engine Application or a simple GWT applitacion? If is a GWT application, remove of project configuration that use GAE SDK. 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile
Re: New Created Web App launched in Eclipse - Waiting for launch URLs
copy that url into a browser window. On Wed, Apr 6, 2011 at 5:26 AM, Champyrivers daniel.riegle...@googlemail.com wrote: Hi, I created a new Web App with Google Web Toolkit in Eclipse and clicked Run. The URL that should show in the Development Tab below the Code doesnt appear, it keeps saying Waiting or launch URLs. The Console Tab however says The server is running at http://localhost:/; in the last line. What am I doing wrong? thanks in advance, Champy -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Plugin failed to connect in development mode
Are you test with the sample provided by the eclipse plugin? New - Web Application Project 2011/4/6 avn avni...@gmail.com I am using windows 7. i installed latest gwt for eclipse 3.6 (Helios) and created the sample program using the gwt. When i try to run the program from the development mode it shows me the error Plugin failed to connect to development mode server at 127.0.0.1:9997. I uninstall and install the plugin still it shows me the above error. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: New Created Web App launched in Eclipse - Waiting for launch URLs
you need to find the Development Mode window inside eclipse and copy/paste that url. It should have ?gwt.codesvr=127.0.0.1:9097 (or something similar) at the end of the url. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory / When is Entity.findEntity used?
I'm using a locator, but I still have to have a findXXX method on my entity... If not, I receive an error saying that my entity doesn't provide an static findXXX method On Wed, Apr 6, 2011 at 11:52 AM, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, April 6, 2011 3:57:31 PM UTC+2, Magno Machado wrote: Every entity on request factory must provide a static EntityName findEntityName(Long id) method, is that correct? Yes (provided your entity's ID is of type Long), unless you use a Locator. If I use a locator, the locator already has a find() method. Doesn't they have the same purpose? Do I really need both? The goal of the Locator is to replace the constraints imposed on the entity, namely: getId, getVersion and static findXxx method. If you use a Locator, you no longer have to provide those methods on your entity class, RequestFactory will ask the Locator *instead*. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC Connection on GWT
Turn off App Engine in the project properties and run your servlets on your own tomcat/java server. The App Engine servlet context has restricted java apis like Socket and jdbc. If you want to use GAE, check out objectify-appengine for a simple way to store your data. If not, then google GWT external server jboss for approaches to rolling your own. On Wed, Apr 6, 2011 at 9:00 AM, Ed ej19...@gmail.com wrote: dont think you can mix hssqldb and postgres drivers On Wed, Apr 6, 2011 at 10:39 AM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Also, I am trying to access via HSQLDB. My class is: public class ManejadorBD { public boolean checkUser(String user, String pass) throws Exception{ Class.forName(org.hsqldb.jdbcDriver); Properties prop = new Properties(); prop.load(this.getClass().getResource(database.properties).openStream()); JDBCDriver driver = new JDBCDriver(); Connection conn = driver.connect(jdbc:postgresql:// localhost: 5432/3encult, prop); String sql = SELECT login,password FROM \user\; Statement statement = (JDBCStatement) conn.createStatement(); ResultSet tabla = statement.executeQuery(sql); while(tabla.next()){ if(user == tabla.getString(login) pass == tabla.getString(password)) return true; else return false; } } } And the properties file is: user=3encult password=3encult I read ctbe properties file and I can obtain the user and password, but when I want to connect to database I obtain null. On API Webpage is said that properties file at least should be contain user and password. Also I call to acceptsURL method with the URL of database and it is returned true. Then, the connection to URL can be established, but the properties are not loaded. The user and pass are OK! I have created the user on database. http://hsqldb.sourceforge.net/doc/2.0/apidocs/org/hsqldb/jdbc/JDBCDriver.html#connect(java.lang.String , java.util.Properties) http://hsqldb.sourceforge.net/doc/2.0/apidocs/org/hsqldb/jdbc/JDBCDriver.html#acceptsURL(java.lang.String) On Apr 6, 4:25 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If is a GAE application, I think that you can't use SQL database, but I don't know GAE- 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com It is an application, but in future it should be integrated into OSGi, then deploy in Felix server! On Apr 6, 4:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you do an Google App Engine Application or a simple GWT applitacion? If is a GWT application, remove of project configuration that use GAE SDK. 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com then, how can I access to pastgres database? Because I am using the java.sql package that is permited. On Apr 6, 3:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You are used restricted classes: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. See whitelist http://code.google.com/appengine/docs/java/jrewhitelist.html classes 2011/4/6 Jose Luis Hernandez jose.hernande...@gmail.com Well, the new error is: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S tring) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at
Re: Last Page too big in SimplePager
It seems my original reply didn't get recorded properly, so I will try again with less detail... I noticed that if you call setRangeLimited(false), you get the behavior that you expect, but the forward buttons do not get grayed out. If you look at setPageStart(int) is uses isRangeLimited and display's isRowCountExact() values to determine whether or not pageSize records should be shown. If both are true you will get your page of pageSize. It seems to me that if isRangeLimited, meaning whether or not the page range should be limited to the actual data, is true you would want to only see the 5 remaining records instead of a full page of pageSize records. So what I did was copy AbstractPager into my project and change isRangeLimited to !isRangeLimited in setPageStart(int). See code below: protected void setPageStart(int index) { if (display != null) { Range range = display.getVisibleRange(); int pageSize = range.getLength(); if (!isRangeLimited display.isRowCountExact()) { index = Math.min(index, display.getRowCount() - pageSize); } index = Math.max(0, index); if (index != range.getStart()) { display.setVisibleRange(index, pageSize); } } } You could also extend SimplePager and accomplish the same thing... Can someone from the GWT team comment on this? Thanks, Pat -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: New Created Web App launched in Eclipse - Waiting for launch URLs
Maybe NOT a URL problem?? I am having a similar issue *maybe* When I run my application it starts up and then terminates leaving the console saying it has started and the url waiting for I was able to recompile my project a couple of times and the issue went away but now I can't get around it. Other projects work fine (non GAE) but this one (is GAE) will terminate immediately after startup Please help On Apr 6, 12:30 pm, Jeff Larsen larse...@gmail.com wrote: you need to find the Development Mode window inside eclipse and copy/paste that url. It should have ?gwt.codesvr=127.0.0.1:9097 (or something similar) at the end of the url. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Trouble with CheckboxCell in CellTable
Hi, I have problem with update a checkbox column. I try make a sample, but I can't reproduce, but when I debug my app, I reach CheckboxCell.render method: pre @Override public void render(Context context, Boolean value, SafeHtmlBuilder sb) { // Get the view data. Object key = context.getKey(); Boolean viewData = getViewData(key); if (viewData != null viewData.equals(value)) { clearViewData(key); viewData = null; } if (value != null ((viewData != null) ? viewData : value)) { sb.append(INPUT_CHECKED); } else { sb.append(INPUT_UNCHECKED); } } /pre value parameter is false, so the checkBox must display unchecked, but when ask: Boolean viewData = getViewData(key); Return true and then show checkbox checked becouse don't clear cache data. Is this a bug? I use GWT 2.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable busy state
Hi - is there a way to manually toggle a CellTable's busy state on and off? It would be nice to be able to do this during load. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP
I think first you should read about gwt platform ( http://code.google.com/p/gwt-platform/) and google-gin ( http://code.google.com/p/google-gin/) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP
On Wednesday, April 6, 2011 12:04:47 AM UTC+2, Alex wrote: Which one should I be using? You are maybe confused, because some terms are more theoretical (or abstract) and others are used in the Code. Also, there is not only one way to do MVP in GWT. You can check out mvp4g if it fits more your mental model. http://code.google.com/p/mvp4g/ http://code.google.com/p/mvp4g/ http://mvp4g.blogspot.com/2011/04/mvp-pattern-associated-with-event-bus.html H -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Comet and GWT
You can use the atmosphere framework and his GWT module : http://code.google.com/p/atmosphere-gwt-comet/ Alexandre. 2011/4/6 Lucas Garcia somentelu...@gmail.com Is there someone working with Comet in GWT? I tried to look for it, there are some libraries in which allow you to do it, but I couldn't put any of them to work. I've tried rocket-gwt and comet-gwt, but always getting errors and the tutorials they provide are a little bit poor. Could someone give me any tips? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Advance Login With Multi Module Example
In response to the below blog post (by Ben Northrop) http://www.summa-tech.com/blog/2011/02/22/structuring-gwt-modules-for-large-applications I set up a sample app which uses a dynamic login page. So if you want more control over a login page but don't want it as part of your main module, take a look and let me know of any comments and suggestions or questions. It is a simple app but may serve as an okay example.. Demo: http://gwt-advanced-login.appspot.com/ Code: https://github.com/ashtonthomas/GwtAdvancedLogin I have created a sample application which uses a separate LoginModule to handle any pre-authentication/login stuff. I have included two main modules Overview: You have two main module that you want to put behind a login and you want to have full GWT-Control over your login page. I have created a Login module which loads and will fire a quick rpc to check for an existing session (if so redirect). It will show a form to either login or register The web.xml defines two servlets for the two main modules and a servlet for the login module. The two main module servlets are very basic. All they do is check for an existing user (if yes: return an html page which points to ModuleX.nocache.js, Otherwise, return an html page the loads the login.nochache.js) The default welcome file will just load login. Check out the web.xml and the servlets and login (entry point) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Book that covers latest GWT release
Soon GWT in Action Second edition ... http://www.manning.com/tacy/ On 6 avr, 04:31, Vicky solid@gmail.com wrote: Team, I was looking at all the Books reference provided on GWT site athttp://code.google.com/webtoolkit/books.html. I did not see any of the books that covers the latest GWT releases. I looked in Ryan Dewsbury's Google Web Toolkit Application, but found the content to be stale when Ryan started describing about very first application in the book. Is there any other book that is missing from your list that is most up to date, or there is none? Thanks, Vicky -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory / When is Entity.findEntity used?
Are you sure all EntityProxy interfaces that indicate the entity in the @ProxyFor or @ProxyForName annotation also have the locator= value in that annotation too? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Relative paths in files retrieved by RequestBuilder
I suggest you hunt around your deployed app and you'll find the relative path that works. It may likely be src='../../my.jpg' or something similar On Tue, Apr 5, 2011 at 5:01 PM, Sekhar Ravinutala sek...@allurefx.comwrote: I'm loading some HTML on the fly using RequestBuilder (GWT/GAE). The files load OK, but the images in the file referenced by relative paths won't load. E.g., img src=whatever.jpg won't work, but absolute path /path-to-file/whatever.jpg does. Is there way to make relative paths work when using RequestBuilder? It's not practical to use absolute paths in the files...so hope there's an easy solution. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Advance Login With Multi Module Example
thanx for sharing this On Wed, Apr 6, 2011 at 11:01 PM, Ashton Thomas ash...@acrinta.com wrote: In response to the below blog post (by Ben Northrop) http://www.summa-tech.com/blog/2011/02/22/structuring-gwt-modules-for-large-applications I set up a sample app which uses a dynamic login page. So if you want more control over a login page but don't want it as part of your main module, take a look and let me know of any comments and suggestions or questions. It is a simple app but may serve as an okay example.. Demo: http://gwt-advanced-login.appspot.com/ Code: https://github.com/ashtonthomas/GwtAdvancedLogin I have created a sample application which uses a separate LoginModule to handle any pre-authentication/login stuff. I have included two main modules Overview: You have two main module that you want to put behind a login and you want to have full GWT-Control over your login page. I have created a Login module which loads and will fire a quick rpc to check for an existing session (if so redirect). It will show a form to either login or register The web.xml defines two servlets for the two main modules and a servlet for the login module. The two main module servlets are very basic. All they do is check for an existing user (if yes: return an html page which points to ModuleX.nocache.js, Otherwise, return an html page the loads the login.nochache.js) The default welcome file will just load login. Check out the web.xml and the servlets and login (entry point) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Trouble with CheckboxCell in CellTable
A workaround is http://code.google.com/p/google-web-toolkit/issues/detail?id=5964 On 6 abr, 12:01, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Hi, I have problem with update a checkbox column. I try make a sample, but I can't reproduce, but when I debug my app, I reach CheckboxCell.render method: pre @Override public void render(Context context, Boolean value, SafeHtmlBuilder sb) { // Get the view data. Object key = context.getKey(); Boolean viewData = getViewData(key); if (viewData != null viewData.equals(value)) { clearViewData(key); viewData = null; } if (value != null ((viewData != null) ? viewData : value)) { sb.append(INPUT_CHECKED); } else { sb.append(INPUT_UNCHECKED); } } /pre value parameter is false, so the checkBox must display unchecked, but when ask: Boolean viewData = getViewData(key); Return true and then show checkbox checked becouse don't clear cache data. Is this a bug? I use GWT 2.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can't refresh CellTable
My bad. I was calling setRowData(0, list) instead of setRowData(list). I changed it and it worked. Regards, Néstor Boscán 2011/4/5 Néstor Boscán nesto...@gmail.com Interesting behaviour. Now I can add rows, remove rows, but when I try to add rows again the table won't refresh. Regards, Néstor Boscán 2011/4/5 Néstor Boscán nesto...@gmail.com Thanks a lot for that answer, and yes it does look ugly!!! But it will have to do. Regards, Néstor Boscán On Tue, Apr 5, 2011 at 4:31 PM, mike b mbaker.t...@gmail.com wrote: We're having the same problem getting a CheckBoxCell to go from un-checked to checked to un-checked... I can see in Firebug where the HTML input does NOT have checked in it, but it still shows a checked box. This is what we had to do... Its ugly but it works consistently. actualList.remove(5); Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { cellTable.setRowData(new ArrayListMyObject());//set a blank list here } }); // let the browser catch up Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { cellTable.setRowData(actualList); // not put the actual list back into it } }); Good luck! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP
No offense to the other posters, but I wouldn't go anywhere near platform or mvp4g right off. Just confuses the issue. Having recently been where you're at, I'd go here first: http://martinfowler.com/eaaDev/uiArchs.html. That should shed more light on why MVP is of interest period. Humble View is definitely an item to read. I had to implement The Humble Dialog Box with gwt-presenter and all unit/integration tests before I groked just the _why_ of why I'd want to pursue MVP. As of this post, I have checked out gwt-platform, mvp4g, Guice 2.0 and Guice 3.0 MVP -- still haven't decided the direction I'm headed. IMHO, Schilly was right in that the code muddles the theoretical discussions or visa-versa. MVP is a concept. The frameworks are based upon that, but they possess different implementations based upon the concept. Good luck! On Tue, Apr 5, 2011 at 3:04 PM, Alex alex...@gmail.com wrote: I've been looking into GWT and MVP recently and to be honest I'm very confused. My project involves around 40 different pages / individual views, or whatever the correct terminology is. I've been reading tutorials that follow Model-View-Presenter and others that use Activities and Places. Which one should I be using? Many thanks, Alex -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Developper plugin without internet connection
Hi, I'm working on a computer which does not have any internet connection. I try to install the GWT Developper plugin for IE on this computer but it does not work because the installer (GwtDevPluginSetup.exe) tries to find the latest plugin version on the google web site. Is there any way to directly download the installer (gwt-dev- plugin.msi ?) ? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP
Better to use MVP with activities and places as suggested by official GWT team. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No available instantiable subtypes. reached via type
Hi, I have a requirement where I wanted to use my existing dto/models available to build new UI using GWT. To achieve above statement I followed: step 1: Created a separate java project contains all interfaces for the existing dto/models. and I also put Models.gwt.xml file to use dto/ models in GWT client. step2: generated a source jar for the above project step3: added the above source jar into GWT projects classpath step4: inherited the Models module in a GWT module. step5: Performed GWT Compile on the GWT modules which inherits the Models module. I have ModelTest interface in the above source jar and ModelTest implementation is available as byte code in another jar. basically, In the GWT client code I am using ModelTest reference. During the GWT compilation process I get the following error saying: Generating the client proxy for remote service interface 'ModelTest has no available instantiable subtypes. (reached via ModelTest) Subtype ModelTest in not instantiable. I am using GWT2.2.0. I have no clue about this error. Please share your thoughts on this. Thanks in advance! Saida.Dhanavath -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Auto-formats the GWT tools projects (excluding api-checker covered in (issue1402803)
http://gwt-code-reviews.appspot.com/1402803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9948 committed - Temporarily introduces configuration property UiBinder.useSafeHtmlTemp...
Revision: 9948 Author: rj...@google.com Date: Wed Apr 6 03:31:11 2011 Log: Temporarily introduces configuration property UiBinder.useSafeHtmlTemplates to allow UiBinder's SafeHtml integration to be disabled while the last couple of kinks are worked out. Review at http://gwt-code-reviews.appspot.com/1402801 Review by: sbruba...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9948 Modified: /trunk/user/src/com/google/gwt/uibinder/UiBinder.gwt.xml /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttributeMessageInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/MockUiBinderWriter.java === --- /trunk/user/src/com/google/gwt/uibinder/UiBinder.gwt.xml Wed Feb 9 13:31:48 2011 +++ /trunk/user/src/com/google/gwt/uibinder/UiBinder.gwt.xml Wed Apr 6 03:31:11 2011 @@ -18,9 +18,19 @@ source path=client/ source path=resources/ + !-- Pluggable factory for creating field types for HTML elements -- - define-configuration-property name=uibinder.html.elementfactory is-multi-valued=false/ + define-configuration-property name=uibinder.html.elementfactory is-multi-valued=false/ set-configuration-property name=uibinder.html.elementfactory value=com.google.gwt.uibinder.rebind.GwtDomHtmlElementFactory/ + + !-- By default UiBinder implementations are generated to use SafeHtmlTemplates +to help protect against the introduction of cross-site scripting (XSS) attacks. +This deprecated property can be used to disable that integration while the +kinks are worked out. Its use is strongly discouraged, and the property will +be removed in the near future. -- + define-configuration-property name=UiBinder.useSafeHtmlTemplates is-multi-valued=false/ + set-configuration-property name=UiBinder.useSafeHtmlTemplates value=true/ + generate-with class=com.google.gwt.uibinder.rebind.UiBinderGenerator when-type-assignable class=com.google.gwt.uibinder.client.UiBinder/ /generate-with === --- /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttributeMessageInterpreter.java Wed Mar 9 09:01:28 2011 +++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttributeMessageInterpreter.java Wed Apr 6 03:31:11 2011 @@ -46,8 +46,16 @@ throws UnableToCompleteException { MessagesWriter messages = writer.getMessages(); for (AttributeMessage am : messages.consumeAttributeMessages(elem)) { + String message = am.getMessageUnescaped(); + if (!writer.useSafeHtmlTemplates()) { +/* + * We have to do our own simple escaping to if the SafeHtml integration + * is off + */ +message += .replaceAll(\\, \amp;\).replaceAll(\'\, \#39;\); + } elem.setAttribute(am.getAttribute(), -writer.tokenForStringExpression(am.getMessageUnescaped())); +writer.tokenForStringExpression(message)); } /* === --- /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java Wed Mar 9 09:01:28 2011 +++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java Wed Apr 6 03:31:11 2011 @@ -91,8 +91,12 @@ // Create an element to hold the widget. String tag = getLegalPlaceholderTag(elem); - return + tag + id=' + uiWriter.tokenForStringExpression(idHolder) - + '/ + tag + ; + if (uiWriter.useSafeHtmlTemplates()) { +idHolder = uiWriter.tokenForStringExpression(idHolder); + } else { +idHolder = \ + + idHolder + + \; + } + return + tag + id=' + idHolder + '/ + tag + ; } return null; } === --- /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java Wed Mar 9 09:01:28 2011 +++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java Wed Apr 6 03:31:11 2011 @@ -55,8 +55,10 @@ * message. */ class WidgetPlaceholderInterpreter extends HtmlPlaceholderInterpreter { - // Could break this up into three further classes, for HasText, HasHTML - // and Other, but that seems more trouble than it's worth. + /* + * Could break this up into three further classes, for HasText, HasHTML and + * Other, but that seems more trouble than it's worth. + */ private int serial = 0; private final String ancestorExpression; @@ -132,8 +134,12 @@ } private String genOpenTag(String name, String idHolder) { -String openTag = String.format(span id='%s', -
[gwt-contrib] Change RequestFactoryMagic - RequestFactorySource in comment (issue1406801)
Reviewers: robertvawter, Description: Change RequestFactoryMagic - RequestFactorySource in comment Please review this at http://gwt-code-reviews.appspot.com/1406801/ Affected files: M user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java Index: user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java === --- user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java (revision 9947) +++ user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java (working copy) @@ -28,7 +28,7 @@ * ServiceLayer serviceLayer = ServiceLayer.create(); * SimpleRequestProcessor processor = new SimpleRequestProcessor(serviceLayer); * EventBus eventBus = new SimpleEventBus(); - * MyRequestFactory f = RequestFactoryMagic.create(MyRequestFactory.class); + * MyRequestFactory f = RequestFactorySource.create(MyRequestFactory.class); * f.initialize(eventBus, new InProcessRequestTransport(processor)); * /pre * -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Reformat autobeans package to cut down on diff churn for lazy reification patch. (issue1407801)
Reviewers: rice, Description: Reformat autobeans package to cut down on diff churn for lazy reification patch. Patch by: bobv Review by: rice Please review this at http://gwt-code-reviews.appspot.com/1407801/ Affected files: M user/src/com/google/gwt/autobean/client/impl/AbstractAutoBeanFactory.java M user/src/com/google/gwt/autobean/client/impl/ClientPropertyContext.java M user/src/com/google/gwt/autobean/client/impl/JsniCreatorMap.java M user/src/com/google/gwt/autobean/client/impl/JsoSplittable.java M user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java M user/src/com/google/gwt/autobean/server/AutoBeanFactoryMagic.java M user/src/com/google/gwt/autobean/server/Configuration.java M user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java M user/src/com/google/gwt/autobean/shared/AutoBeanUtils.java M user/src/com/google/gwt/autobean/shared/AutoBeanVisitor.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Reformat autobeans package to cut down on diff churn for lazy reification patch. (issue1407801)
LGTM http://gwt-code-reviews.appspot.com/1407801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change RequestFactoryMagic - RequestFactorySource in comment (issue1406801)
LGTM http://gwt-code-reviews.appspot.com/1406801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9949 committed - Reformat autobeans package to cut down on diff churn for lazy reificat...
Revision: 9949 Author: b...@google.com Date: Wed Apr 6 04:44:12 2011 Log: Reformat autobeans package to cut down on diff churn for lazy reification patch. Patch by: bobv Review by: rice Review at http://gwt-code-reviews.appspot.com/1407801 http://code.google.com/p/google-web-toolkit/source/detail?r=9949 Modified: /trunk/user/src/com/google/gwt/autobean/client/impl/AbstractAutoBeanFactory.java /trunk/user/src/com/google/gwt/autobean/client/impl/ClientPropertyContext.java /trunk/user/src/com/google/gwt/autobean/client/impl/JsniCreatorMap.java /trunk/user/src/com/google/gwt/autobean/client/impl/JsoSplittable.java /trunk/user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java /trunk/user/src/com/google/gwt/autobean/server/AutoBeanFactoryMagic.java /trunk/user/src/com/google/gwt/autobean/server/Configuration.java /trunk/user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java /trunk/user/src/com/google/gwt/autobean/shared/AutoBeanUtils.java /trunk/user/src/com/google/gwt/autobean/shared/AutoBeanVisitor.java === --- /trunk/user/src/com/google/gwt/autobean/client/impl/AbstractAutoBeanFactory.java Thu Mar 3 07:14:17 2011 +++ /trunk/user/src/com/google/gwt/autobean/client/impl/AbstractAutoBeanFactory.java Wed Apr 6 04:44:12 2011 @@ -26,8 +26,7 @@ /** * Provides base implementations of AutoBeanFactory methods. */ -public abstract class AbstractAutoBeanFactory implements AutoBeanFactory, -EnumMap { +public abstract class AbstractAutoBeanFactory implements AutoBeanFactory, EnumMap { protected MapEnum?, String enumToStringMap; // This map is almost always one-to-one === --- /trunk/user/src/com/google/gwt/autobean/client/impl/ClientPropertyContext.java Mon Mar 21 12:22:19 2011 +++ /trunk/user/src/com/google/gwt/autobean/client/impl/ClientPropertyContext.java Wed Apr 6 04:44:12 2011 @@ -64,8 +64,7 @@ this.paramCounts = null; } - public ClientPropertyContext(Object instance, Setter setter, - Class?[] types, int[] paramCounts) { + public ClientPropertyContext(Object instance, Setter setter, Class?[] types, int[] paramCounts) { this.instance = instance; this.setter = setter; this.simpleType = null; @@ -77,14 +76,14 @@ * plus one for the root type, equals the total number of types passed in. */ if (ClientPropertyContext.class.desiredAssertionStatus()) { - assert types.length == paramCounts.length : Length mismatch - + types.length + != + paramCounts.length; + assert types.length == paramCounts.length : Length mismatch + types.length + != + + paramCounts.length; int count = 1; for (int i = 0, j = paramCounts.length; i j; i++) { count += paramCounts[i]; } - assert count == types.length : Mismatch in total parameter count - + count + != + types.length; + assert count == types.length : Mismatch in total parameter count + count + != + + types.length; } } === --- /trunk/user/src/com/google/gwt/autobean/client/impl/JsniCreatorMap.java Thu Mar 3 07:14:17 2011 +++ /trunk/user/src/com/google/gwt/autobean/client/impl/JsniCreatorMap.java Wed Apr 6 04:44:12 2011 @@ -48,8 +48,7 @@ return null; } - public T AutoBeanT create(ClassT clazz, - AbstractAutoBeanFactory factory, Object delegate) { + public T AutoBeanT create(ClassT clazz, AbstractAutoBeanFactory factory, Object delegate) { JsArrayJavaScriptObject arr = get(clazz.getName()); if (arr != null) { assert arr.get(1) != null : No delegate-based constructor; @@ -62,8 +61,7 @@ return this[key]; }-*/; - private native T AutoBeanT invoke(JavaScriptObject fn, Object arg1, - Object arg2)/*-{ + private native T AutoBeanT invoke(JavaScriptObject fn, Object arg1, Object arg2)/*-{ return fn(arg1, arg2); }-*/; === --- /trunk/user/src/com/google/gwt/autobean/client/impl/JsoSplittable.java Wed Nov 24 12:33:58 2010 +++ /trunk/user/src/com/google/gwt/autobean/client/impl/JsoSplittable.java Wed Apr 6 04:44:12 2011 @@ -109,8 +109,7 @@ } public String getPayload() { -throw new UnsupportedOperationException( -Cannot convert JsoSplittable to payload); +throw new UnsupportedOperationException(Cannot convert JsoSplittable to payload); } public ListString getPropertyKeys() { @@ -136,7 +135,7 @@ }-*/; public native boolean isString() /*-{ -return typeof(this) == 'string' || this instanceof String; +return typeof (this) == 'string' || this instanceof String; }-*/; public native int size() /*-{ === --- /trunk/user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java Thu Mar 3 07:14:17 2011 +++
[gwt-contrib] Convert AutoBeans to use JSOs as their backing store with lazy reification of (issue1407802)
Reviewers: rice, rjrjr, Description: Convert AutoBeans to use JSOs as their backing store with lazy reification of values. Use JsonSplittable in DevMode to avoid JSNI overhead. Patch by: bobv Review by: rice, rjrjr Please review this at http://gwt-code-reviews.appspot.com/1407802/ Affected files: M dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java M tools/api-checker/config/gwt22_23userApi.conf M user/src/com/google/gwt/autobean/client/impl/AbstractAutoBeanFactory.java M user/src/com/google/gwt/autobean/client/impl/ClientPropertyContext.java M user/src/com/google/gwt/autobean/client/impl/JsoSplittable.java M user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java M user/src/com/google/gwt/autobean/server/impl/BeanMethod.java M user/src/com/google/gwt/autobean/server/impl/BeanPropertyContext.java M user/src/com/google/gwt/autobean/server/impl/FactoryHandler.java M user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java M user/src/com/google/gwt/autobean/server/impl/ProxyAutoBean.java M user/src/com/google/gwt/autobean/server/impl/ShimHandler.java M user/src/com/google/gwt/autobean/server/impl/SimpleBeanHandler.java M user/src/com/google/gwt/autobean/server/impl/TypeUtils.java M user/src/com/google/gwt/autobean/shared/AutoBean.java M user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java M user/src/com/google/gwt/autobean/shared/AutoBeanUtils.java M user/src/com/google/gwt/autobean/shared/Splittable.java M user/src/com/google/gwt/autobean/shared/ValueCodex.java M user/src/com/google/gwt/autobean/shared/impl/AbstractAutoBean.java A user/src/com/google/gwt/autobean/shared/impl/AutoBeanCodexImpl.java M user/src/com/google/gwt/autobean/shared/impl/EnumMap.java A user/src/com/google/gwt/autobean/shared/impl/HasSplittable.java D user/src/com/google/gwt/autobean/shared/impl/LazySplittable.java A user/src/com/google/gwt/autobean/shared/impl/SplittableComplexMap.java A user/src/com/google/gwt/autobean/shared/impl/SplittableList.java A user/src/com/google/gwt/autobean/shared/impl/SplittableSet.java A user/src/com/google/gwt/autobean/shared/impl/SplittableSimpleMap.java M user/src/com/google/gwt/autobean/shared/impl/StringQuoter.java M user/src/com/google/gwt/core/client/JsonUtils.java M user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java M user/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java M user/super/com/google/gwt/autobean/super/com/google/gwt/autobean/shared/impl/StringQuoter.java M user/test/com/google/gwt/autobean/AutoBeanSuite.java M user/test/com/google/gwt/autobean/client/AutoBeanTest.java A user/test/com/google/gwt/autobean/server/SplittableJreTest.java M user/test/com/google/gwt/autobean/shared/AutoBeanCodexTest.java A user/test/com/google/gwt/autobean/shared/SplittableTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Auto-formats the GWT tools projects (excluding api-checker covered in (issue1402803)
I still the the assignment line breaks are really ugly this way, but if others would rather avoid long lines no matter how ugly the result is, I can go with it. http://gwt-code-reviews.appspot.com/1402803/diff/6001/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java File tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/6001/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java#newcode51 tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java:51: private static final String[] DAYS = new String[] { Thanks. http://gwt-code-reviews.appspot.com/1402803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Auto-formats the GWT tools projects (excluding api-checker covered in (issue1402803)
http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java File tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java#newcode52 tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java:52: new String[]{sun, mon, tue, wed, thu, fri, sat}; On 2011/04/06 04:15:00, jat wrote: The whitespace is easily fixed by changing the formatter: whitespace / arrays / array initializers / before opening brace Added that to this patch. The lousy line breaks on assignments seems harder to fix -- the options are no breaks or break like the above. I think it is more likely that assignments all over the place will be made worse by this than the alternative, which seems to mostly hit field initializations. Hey look at that, the brace formatting change killed 2 birds with one stone in this case. http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java#newcode396 tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java:396: + dayPeriodContext[@type=\format\]/ On 2011/04/05 13:43:27, jat wrote: Why does this get indended again? If it is consistent I can live with it, but it seems wrong. I think it looks wrong to us because we're used to not indenting before the string concatenation when formatted on a second line. The unwritten rule it seems to consistently follow is that new statements get one indent from the parent of the statement, (2 spaces), line continuation gets 2 indents from the parent statement (4 spaces). http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/GenerateGwtCldrData.java File tools/cldr-import/src/com/google/gwt/tools/cldr/GenerateGwtCldrData.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/GenerateGwtCldrData.java#newcode59 tools/cldr-import/src/com/google/gwt/tools/cldr/GenerateGwtCldrData.java:59: UOption[] options = On 2011/04/05 13:43:27, jat wrote: Wow, this one is really ugly: It splts the assignment in a weird place, it puts the opening brace on its own line yet puts the closing brace at the end (with no space even). I definitely think this needs more tweaking. The assignment break is consistent with the way assignments are formatted everywhere else (setting PROCESSORS above). I have no idea why it put the lead curly on its own line and spent about 30 minutes diddling unsuccessfully to make it go away. http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/LocaleData.java File tools/cldr-import/src/com/google/gwt/tools/cldr/LocaleData.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/LocaleData.java#newcode432 tools/cldr-import/src/com/google/gwt/tools/cldr/LocaleData.java:432: type); On 2011/04/05 13:43:27, jat wrote: Why does it increase the indent level and then go back? I can't find a specific setting that allows you to control this, but the general indentation rule is: 1 indent (2 spaces) is for a new statement 2 indents (4 spaces) is for a continuation of the previous line. In the olden days, I thought there used to be special cases for string concatenation, but I don't see them any more. http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/LocalizedNamesProcessor.java File tools/cldr-import/src/com/google/gwt/tools/cldr/LocalizedNamesProcessor.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/LocalizedNamesProcessor.java#newcode100 tools/cldr-import/src/com/google/gwt/tools/cldr/LocalizedNamesProcessor.java:100: .getVariantNotNull()); On 2011/04/05 13:43:27, jat wrote: Another awkward split. Consequence of the builder pattern formatter change we discussed back when that change was made. http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/LocalizedNamesProcessor.java#newcode339 tools/cldr-import/src/com/google/gwt/tools/cldr/LocalizedNamesProcessor.java:339: .getRegions(locale.getLanguageNotNull() + _ + locale.getScriptNotNull()); On 2011/04/05 13:43:27, jat wrote: Yikes. Bad assignment split, and splitting at . rather than in the argument list looks really bad. Again, the assignment split appears to me to be consistent throughout the reformatting. http://gwt-code-reviews.appspot.com/1402803/diff/6001/eclipse/external/cldr-tools/.classpath File eclipse/external/cldr-tools/.classpath (right): http://gwt-code-reviews.appspot.com/1402803/diff/6001/eclipse/external/cldr-tools/.classpath#newcode7
[gwt-contrib] Re: Auto-formats the GWT tools projects (excluding api-checker covered in (issue1402803)
http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java File tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java#newcode396 tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java:396: + dayPeriodContext[@type=\format\]/ On 2011/04/06 15:33:49, zundel wrote: I think it looks wrong to us because we're used to not indenting before the string concatenation when formatted on a second line. The unwritten rule it seems to consistently follow is that new statements get one indent from the parent of the statement, (2 spaces), line continuation gets 2 indents from the parent statement (4 spaces). I disagree, but I won't fight it (mostly because it appears to be a change in the Eclipse formatter that I didn't find a knob to control). By that logic, every succeeding line with + should be indented further, but it isn't (and would be very ugly if it did). It also represents a change to the formatting we have been using for 4+ years. I think there is an argument for indenting again when there is another level of nesting, like: foo(long,list,of,arguments, bar(more,arguments,here, and,here)) but that isn't what is happening here. http://gwt-code-reviews.appspot.com/1402803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Auto-formats the GWT tools projects (excluding api-checker covered in (issue1402803)
http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java File tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java (right): http://gwt-code-reviews.appspot.com/1402803/diff/1/tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java#newcode396 tools/cldr-import/src/com/google/gwt/tools/cldr/DateTimeFormatInfoProcessor.java:396: + dayPeriodContext[@type=\format\]/ On 2011/04/06 15:39:55, jat wrote: On 2011/04/06 15:33:49, zundel wrote: I think it looks wrong to us because we're used to not indenting before the string concatenation when formatted on a second line. The unwritten rule it seems to consistently follow is that new statements get one indent from the parent of the statement, (2 spaces), line continuation gets 2 indents from the parent statement (4 spaces). I disagree, but I won't fight it (mostly because it appears to be a change in the Eclipse formatter that I didn't find a knob to control). By that logic, every succeeding line with + should be indented further, but it isn't (and would be very ugly if it did). It also represents a change to the formatting we have been using for 4+ years. I think there is an argument for indenting again when there is another level of nesting, like: foo(long,list,of,arguments, bar(more,arguments,here, and,here)) but that isn't what is happening here. The rule I think its following is illustrated below at 399+ line 399 is the start of a new line line 400 is the continuation of line 399 - it gets 2 indents line 401 is also a continutation of 399 so it also gets 2 indents... from tthe start of 399. http://gwt-code-reviews.appspot.com/1402803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Autoformat the api-checker tool source (issue1405801)
On Wed, Apr 6, 2011 at 12:11 AM, John Tamplin j...@google.com wrote: On Tue, Apr 5, 2011 at 8:35 PM, Ray Ryan rj...@google.com wrote: I don't think it's reasonable to ask Eric to tweak the auto formatter. We had that conversation already. He's just doing the same thing we have eclipse configured to do, right? Well, my understanding of the changes made to the formatter settings were: change the line width to 100 let lines break at method invocations So, I am not sure why there are other changes which, IMHO, look really terrible. I thought the point of doing a few small blocks of code first was specifically to look for things like this that could be improved before we run it on everything. I can't look for real right now. Did you really find something aggregious? Well, I think it is pretty egregious, but YMMV. In particular: the loss of the space in array initialization is a change for the worse that is one checkbox to fix Fixed in another patch the assignment breaking is harder to fix, but I think the change is net for the worse because while the old settings allowed overly long lines, The decision to turn that property on was due to the effects in: http://gwt-code-reviews.appspot.com/1368802 There were some internal discussions about this that culminated in the gwt_format.xml change to turn on wrapping assignments at http://gwt-code-reviews.appspot.com/1371802 they seemed to occur only rarely in field initializers, and it is easy enough to work around that by initializing them in an initializer block instead of on the same line. The current settings will screw up line breaks on assignments all over the place. The indentation issue I am talking about is like this. Previous settings: logger.log(TreeLogger.log, A really long message + variable); while the new settings do this: logger.log(TreeLogger.log, A really long message + variable); however, I don't see where this is coming from. From what I can tell, this isn't a setting (at least not anymore), maybe the eclipse formatter in Eclipse 3.6 has changed. Regarding detecting the builder pattern, it could detect multiple invocations a.foo().bar().foo().baz() etc, but I agree the current formatter doesn't have that capability and the new setting is better than the old setting. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Creating groups of rows in CellTable
I have a requirement that our users should be able to dynamically create groups of rows inside a celltable. For example, lets say a user was searching for books, and wanted to group by Author. The Author column should be hidden (this isn't a problem), but there should be a new row with a colspan=numColumns and eventually the ability to show/hide the Books written by the author. The tricky part is adding a new row basically breaks a lot of assumptions inside HasDataPresenter. From what I can gather, and through my testing, it assumes row x = list.get(x) which is true under the current model of CellTable, but that becomes false when I start dynamcially adding rows. So now in order to get rows/columns to work properly, i've got a ton of copy/paste coding to do. HasDataPresenter, AbstractHasData and CellTable are the 3 that I've narrowed down so far that I need to copy/paste and then modify in order to get access to the correct items. The only reason I need to extend AbstractHasData is because I need to plug in my own version of HasDataPresenter. So my first question is, what would you think about changing AbstractHasData to allow for a pluggable HasDataPresenter and changing HasDataPresenter to be a protected instead of package private class and then refactoring some of the methods in there to be overrideable and refactor some of them to be smaller, HasDataPresenter#resolvePendingState() for example. If I'm missing something and there is an easy way to do what I've described above, I would love to hear how to do it, but currently I'm doing the ugly/error prone/non-updateable process of copy/pasting those classes and making my own CellTable etc. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Autoformat the api-checker tool source (issue1405801)
http://gwt-code-reviews.appspot.com/1405801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9950 committed - Adding an empty interface to prevent the Google Plugin for Eclipse fro...
Revision: 9950 Author: schen...@google.com Date: Wed Apr 6 07:57:12 2011 Log: Adding an empty interface to prevent the Google Plugin for Eclipse from marking XsrfProtectedService as missing an Async class. Review at http://gwt-code-reviews.appspot.com/1386805 http://code.google.com/p/google-web-toolkit/source/detail?r=9950 Added: /trunk/user/src/com/google/gwt/user/client/rpc/XsrfProtectedServiceAsync.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/user/client/rpc/XsrfProtectedServiceAsync.java Wed Apr 6 07:57:12 2011 @@ -0,0 +1,22 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.user.client.rpc; + +/** + * Async peer of {@link XsrfProtectedService}. + */ +public interface XsrfProtectedServiceAsync { +} -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Autoformat the api-checker tool source (issue1405801)
Patch updates the formatting to put a space between ] and { in array initializers (see gwt_format.xml change in http://gwt-code-reviews.appspot.com/1402803 ) http://gwt-code-reviews.appspot.com/1405801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9951 committed - Cherry picking r9950 into releases/2.3m1. http://gwt-code-reviews.apps...
Revision: 9951 Author: schen...@google.com Date: Wed Apr 6 09:03:10 2011 Log: Cherry picking r9950 into releases/2.3m1. http://gwt-code-reviews.appspot.com/1386805/ http://code.google.com/p/google-web-toolkit/source/detail?r=9951 Added: /releases/2.3/user/src/com/google/gwt/user/client/rpc/XsrfProtectedServiceAsync.java === --- /dev/null +++ /releases/2.3/user/src/com/google/gwt/user/client/rpc/XsrfProtectedServiceAsync.java Wed Apr 6 09:03:10 2011 @@ -0,0 +1,22 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.user.client.rpc; + +/** + * Async peer of {@link XsrfProtectedService}. + */ +public interface XsrfProtectedServiceAsync { +} -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Temporarily introduces configuration property UiBinder.xssSafe to (issue1402801)
r9948 http://gwt-code-reviews.appspot.com/1402801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a new annotation SafeHtmlTemplates.SafeForCss to specify that a parameter is known to be ... (issue1384801)
http://gwt-code-reviews.appspot.com/1384801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Convert AutoBeans to use JSOs as their backing store with lazy reification of (issue1407802)
LGTM I think you probably meant codec rather than codex, but I can understand if this name change would be too much at this point. I hate the word reify, I don't really understand what it means and I doubt 99% of our users will either. Can you add a juicy comment somewhere that explains what it means in this context? http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java File user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java#newcode235 user/src/com/google/gwt/autobean/rebind/AutoBeanFactoryGenerator.java:235: sw.println(%s toReturn = getOrReify(\%s\);, castType, method.getPropertyName()); two spaces after = http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/FactoryHandler.java File user/src/com/google/gwt/autobean/server/impl/FactoryHandler.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/FactoryHandler.java#newcode77 user/src/com/google/gwt/autobean/server/impl/FactoryHandler.java:77: Whitespace-only change http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java File user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java (left): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java#oldcode65 user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java:65: * Private equivalent of org.json.JSONObject.getNames(JSONObject) Please restore this method and remove call to JSONObject.getNames below (in getPropertyKeys). http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java File user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java#newcode194 user/src/com/google/gwt/autobean/server/impl/JsonSplittable.java:194: String[] names = JSONObject.getNames(obj); Call local getNames method (for Android compatibility) http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/ProxyAutoBean.java File user/src/com/google/gwt/autobean/server/impl/ProxyAutoBean.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/server/impl/ProxyAutoBean.java#newcode180 user/src/com/google/gwt/autobean/server/impl/ProxyAutoBean.java:180: return null; Does this need a doc comment (to indicate that it's a stub implementation)? http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java File user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java#newcode27 user/src/com/google/gwt/autobean/shared/AutoBeanCodex.java:27: public class AutoBeanCodex { Do you mean 'codec'? (coder/decoder) http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/ValueCodex.java File user/src/com/google/gwt/autobean/shared/ValueCodex.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/ValueCodex.java#newcode31 user/src/com/google/gwt/autobean/shared/ValueCodex.java:31: public class ValueCodex { Codec? http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/impl/AutoBeanCodexImpl.java File user/src/com/google/gwt/autobean/shared/impl/AutoBeanCodexImpl.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/impl/AutoBeanCodexImpl.java#newcode40 user/src/com/google/gwt/autobean/shared/impl/AutoBeanCodexImpl.java:40: public class AutoBeanCodexImpl { Codec http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/impl/SplittableSet.java File user/src/com/google/gwt/autobean/shared/impl/SplittableSet.java (right): http://gwt-code-reviews.appspot.com/1407802/diff/1/user/src/com/google/gwt/autobean/shared/impl/SplittableSet.java#newcode26 user/src/com/google/gwt/autobean/shared/impl/SplittableSet.java:26: * This type is optimized for the read-only case. Might want to note that contains() is O(n)? http://gwt-code-reviews.appspot.com/1407802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a new annotation SafeHtmlTemplates.SafeForCss to specify that a parameter is known to be ... (issue1384801)
I renamed SafeCssProperties to SafeStyles, but I left the package as com.google.gwt.css so we can add more CSS support in the future (such as support for CSS in a CSS file or a style tag). The generator now throws an error if SafeStyles doesn't appear in the CSS_ATTRIBUTE_START context. http://gwt-code-reviews.appspot.com/1384801/diff/6006/user/src/com/google/gwt/safecss/shared/SafeCssProperties.java File user/src/com/google/gwt/safecss/shared/SafeCssProperties.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/6006/user/src/com/google/gwt/safecss/shared/SafeCssProperties.java#newcode46 user/src/com/google/gwt/safecss/shared/SafeCssProperties.java:46: * By convention, {@link SafeCssProperties} should only contain single quotes On 2011/03/14 23:10:02, xtof wrote: Since SafeHtmlTemplates has been changed to HTML-escape the value of style attributes, perhaps it might avoid some confusion to remove the suggestion about the quotes. It wouldn't hurt to instead remind users that SafeCssProperties strings may contain literal single or double quotes, and as such the entire CSS must be HTML escaped when used in a style attribute. One thing that is important to require is that SafeCssProperties may never contain literal angle brackets. Otherwise, it could be unsafe to place a SafeCssProperties into a style tag (where it can't be HTML escaped), e.g. if the SafeCssProperties such as font: 'foo /stylescriptevil/script' is used in a style sheet in a style tag; this could then break out of the style context into HTML. Done. http://gwt-code-reviews.appspot.com/1384801/diff/6006/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java File user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/6006/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode185 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:185: // escaping it. On 2011/03/14 23:10:02, xtof wrote: Perhaps remove the without escaping it since it is now escaped after all? Done. http://gwt-code-reviews.appspot.com/1384801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding table rendering tests to micro benchmarks. Table rendering tests are multiple orders of m... (issue1394802)
committed as r9925 http://gwt-code-reviews.appspot.com/1394802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9952 committed - Change RequestFactoryMagic - RequestFactorySource in comment...
Revision: 9952 Author: r...@google.com Date: Wed Apr 6 10:54:18 2011 Log: Change RequestFactoryMagic - RequestFactorySource in comment Review at http://gwt-code-reviews.appspot.com/1406801 Review by: robertvaw...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9952 Modified: /trunk/user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java === --- /trunk/user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java Tue Apr 5 10:47:39 2011 +++ /trunk/user/src/com/google/web/bindery/requestfactory/server/testing/InProcessRequestTransport.java Wed Apr 6 10:54:18 2011 @@ -28,7 +28,7 @@ * ServiceLayer serviceLayer = ServiceLayer.create(); * SimpleRequestProcessor processor = new SimpleRequestProcessor(serviceLayer); * EventBus eventBus = new SimpleEventBus(); - * MyRequestFactory f = RequestFactoryMagic.create(MyRequestFactory.class); + * MyRequestFactory f = RequestFactorySource.create(MyRequestFactory.class); * f.initialize(eventBus, new InProcessRequestTransport(processor)); * /pre * -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Comment on CodeSplitting in google-web-toolkit
Comment by boj...@gmail.com: However philosophically we speak, the fact is software will be modular. GWT promotes building huge monolithic apps with no inherent plugability. If you don't realize and fix this sooner, GWT will be on its death bed. OSGi is getting so much focus that it would be childish to ignore these concerns. For more information: http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a new annotation SafeHtmlTemplates.SafeForCss to specify that a parameter is known to be ... (issue1384801)
http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safecss/shared/SafeStyles.java File user/src/com/google/gwt/safecss/shared/SafeStyles.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safecss/shared/SafeStyles.java#newcode71 user/src/com/google/gwt/safecss/shared/SafeStyles.java:71: * attribute: Maybe instead say, comply with this type's contract (here and elsewhere) -- these examples are not inherently unsafe, they just don't comply with the type contract (specifically, the composability requirement). With that in mind, perhaps move the examples after the paragraph about composability? http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safecss/shared/SafeStyles.java#newcode88 user/src/com/google/gwt/safecss/shared/SafeStyles.java:88: * {@code http://trackingurl.com)} is appended to {@code background:url(}, the Hmm, so generally the SafeHtml contracts don't guarantee that the resulting HTML is side-effect free; in particular when we sanitize untrusted URIs we'll leave them alone as long as they have a whitelisted scheme. I.e. we'd allow img src='{0}' where the value of {0} is http://trackingurl.com/ Complete side effect freedom in this sense would be much harder to enforce (we'd have to somehow have a way to configure filters that know which domains are trusted and which ones are third-party). Perhaps a better example would be to use javascript:evil() as a url? http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safecss/shared/SafeStylesBuilder.java File user/src/com/google/gwt/safecss/shared/SafeStylesBuilder.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safecss/shared/SafeStylesBuilder.java#newcode42 user/src/com/google/gwt/safecss/shared/SafeStylesBuilder.java:42: * any escaping to it. Perhaps, any escaping or sanitization? http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java File user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode131 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:131: * liIf the parameter is not of type {@link SafeStyles}, the result is then I think this comment should remain unchanged; we always HTML escape the attribute value even if it came from a SafeStyles. http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode176 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:176: // TODO(xtof): Throw an exception if using SafeHtml within an attribute. I think you can remove this TODO, isn't this handled now in your new checks at the start of emitParameterExpression? http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode280 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:280: * definitely isn't what the user intended to do. Maybe user - developer? http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode315 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:315: logger.log(TreeLogger.WARN, I find the code is a bit hard to understand with the checks related to CSS_ATTRIBUTE contexts partially done here, and partially done up above in line 270ff. Might it be more readable if you move the checks from above to here (possibly splitting the two cases)? Not sure on this; might make the code more verbose... Otherwise, a comment noting the precondition established by the check in 270ff might help. http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/user/cellview/client/CellBrowser.java File user/src/com/google/gwt/user/cellview/client/CellBrowser.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/src/com/google/gwt/user/cellview/client/CellBrowser.java#newcode728 user/src/com/google/gwt/user/cellview/client/CellBrowser.java:728: private static final SafeHtml LEAF_IMAGE = SafeHtmlUtils Maybe break after = ? http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java File user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java (right): http://gwt-code-reviews.appspot.com/1384801/diff/8001/user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java#newcode60 user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java:60: SafeHtml templateWithCssAttribute(int height /* generates a compiled time warning */, compile time
[gwt-contrib] Re: Makes gadget linker shardable, derived from CrossSiteIframeLinker (issue1370808)
http://gwt-code-reviews.appspot.com/1370808/diff/14001/gadgets/src/com/google/gwt/gadgets/linker/computeUrlForGadgetResource.js File gadgets/src/com/google/gwt/gadgets/linker/computeUrlForGadgetResource.js (right): http://gwt-code-reviews.appspot.com/1370808/diff/14001/gadgets/src/com/google/gwt/gadgets/linker/computeUrlForGadgetResource.js#newcode31 gadgets/src/com/google/gwt/gadgets/linker/computeUrlForGadgetResource.js:31: return __MODULE_FUNC__.__moduleBase + resource; How is this file different than the computeUrlForResource.js that the linker uses? http://gwt-code-reviews.appspot.com/1370808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixing a few Cell Widget bugs. I combined these bugs because they are all quick fixes and fairly... (issue1408801)
Reviewers: fabiomfv, Description: Fixing a few Cell Widget bugs. I combined these bugs because they are all quick fixes and fairly straightforward. (Issue 5971) CompositeCell does not implement isEditing. I implemented isEditing in CompositeCell. (Issue 5993) TextInputCell and EditTextCell double escape values before putting them into text boxes. We no longer use the SafeHtmlRenderer to render the content of the input value, as input values are always treat their values as text. SafeHtml isn't valid in an attribute context. Selecting a range in a CellTable only works on the first page. DefaultSelectionEventManager now correctly subtracts the page start index when getting the selected values from the CellTable. Non-bubbling events (change/load/error/focus/blur) aren't captured in CellTable in IE9. Switched IE9 to use the StandardBase implementation, which is much simpler and works for IE9. Please review this at http://gwt-code-reviews.appspot.com/1408801/ Affected files: M user/src/com/google/gwt/cell/client/CompositeCell.java M user/src/com/google/gwt/cell/client/EditTextCell.java M user/src/com/google/gwt/cell/client/TextInputCell.java M user/src/com/google/gwt/user/cellview/CellView.gwt.xml D user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplSafari.java A user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplStandardBase.java M user/src/com/google/gwt/view/client/DefaultSelectionEventManager.java M user/test/com/google/gwt/cell/client/CompositeCellTest.java M user/test/com/google/gwt/cell/client/EditTextCellTest.java M user/test/com/google/gwt/cell/client/TextInputCellTest.java M user/test/com/google/gwt/view/client/DefaultSelectionEventManagerTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors