GWT portlet issue
Hello , I used gwt-portlets.jar file to create portlet in GWT. But i got compile time error like compiling module test.Testing2 [ERROR] Errors in 'jar:file:/home/user/Desktop/GWT%20PORTLET%20/gwt- portlets-0.0/gwt-portlets.jar!/org/gwtportlets/portlet/client/layout/ LayoutUtil.java' [ERROR] Internal compiler error java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at org.gwtportlets.portlet.rebind.WidgetFactoryHelperGenerator.generate(WidgetFactoryHelperGenerator.java: 58) 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: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 268) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 257) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 96) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:173) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $400(AbstractCompiler.java:139) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 588) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java: 97) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java: 52) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java: 569) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java: 33) at com.google.gwt.dev.Precompile.precompile(Precompile.java:284) at com.google.gwt.dev.Precompile.precompile(Precompile.java:233) at com.google.gwt.dev.Precompile.precompile(Precompile.java:145) at com.google.gwt.dev.Compiler.run(Compiler.java:232) at com.google.gwt.dev.Compiler.run(Compiler.java:198) at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 82) at com.google.gwt.dev.Compiler.main(Compiler.java:177) [ERROR] Unexpected internal compiler error java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at org.gwtportlets.portlet.rebind.WidgetFactoryHelperGenerator.generate(WidgetFactoryHelperGenerator.java: 58) 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: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 268) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 257) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 96) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:173) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
Re: Compiling GWT Trunk w/ Tests : Can't get past 50K tests passed
On 16 March 2012 22:07, Joseph Lust lifeofl...@gmail.com wrote: For my personal edification I've setup TeamCity to build all new GWT updates from the Google SVN (yes, I checkout the tools folder too). Everything builds fine (7min), but when I enable the tests in Ant, per the official GWT build instructions, TC dies at 2h 15m to OutOfMemory errors. I've setup TC to run the JVM with 512MB PermGen and 4GB max heap, but it still only makes it to ~50,600 tests passed until it fails out. It dies around this point whether running 2GB, 3GB, or 4GB heap sizes (I had gotten PermGen errors earlier, but 512MB seems to have fixed that). So, my question is, does anyone else try building GWT with the tests? It seems like a rather obscene number of tests, but surely it works inside Google. And if you wonder why I am doing this, it is just to poke around and learn more about GWT, unit testings, and best dev practices in general. Build Machine Specs: Ubuntu 11.10, AMD FX8150 (unit tests utilize all cores), 16GB Ram, SSD. I tried the same thing (at least a year ago, though) and ran into the exact same problems. And also wondered whether anyone had ever run them all. :-) -- 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: ff11 gwt dev plugin
I've build it for linux 32 and 64bit for now and dropped it here: http://acleung.com/gwt-dev-plugin.gwt -Alan On Fri, Mar 16, 2012 at 9:04 AM, Eike Thies thies.e...@gmail.com wrote: to sad that i think you have a point here :( arghhh... where is my firefox portable just to test my gwt application :P Am Freitag, 16. März 2012 15:08:13 UTC+1 schrieb Olivier Scherler: I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote: Hello Alan. Can you compile the plugin for FF11? regards Am Freitag, 16. März 2012 15:08:13 UTC+1 schrieb Olivier Scherler: I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote: Hello Alan. Can you compile the plugin for FF11? regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jdcUZouxGZ0J. 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: ff11 gwt dev plugin
Correct link: http://acleung.com/gwt-dev-plugin.xpi Again FF11 linux only. On Sat, Mar 17, 2012 at 3:05 AM, Alan Leung acle...@google.com wrote: I've build it for linux 32 and 64bit for now and dropped it here: http://acleung.com/gwt-dev-plugin.gwt -Alan On Fri, Mar 16, 2012 at 9:04 AM, Eike Thies thies.e...@gmail.com wrote: to sad that i think you have a point here :( arghhh... where is my firefox portable just to test my gwt application :P Am Freitag, 16. März 2012 15:08:13 UTC+1 schrieb Olivier Scherler: I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote: Hello Alan. Can you compile the plugin for FF11? regards Am Freitag, 16. März 2012 15:08:13 UTC+1 schrieb Olivier Scherler: I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote: Hello Alan. Can you compile the plugin for FF11? regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jdcUZouxGZ0J. 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 Dev plug-in for Firefox 11
I had just compiled a FF11 linux 32 / 64 only version here: http://acleung.com/gwt-dev-plugin.xpi -Alan On Fri, Mar 16, 2012 at 1:34 PM, Alan Leung acle...@google.com wrote: I am working on it On Fri, Mar 16, 2012 at 6:10 AM, Paul Wujek paul.wu...@gmail.com wrote: Today Ubuntu is asking me to update for FF11, but of course this will kill my development environment. Is there an estimate of when the GWT plug-in will be available? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/j0Nmn9KFKIQJ. 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 FileUpload - Servlet options and handling response
Check out the http://code.google.com/p/gwtupload/ project. Easy to use and extend. On Friday, March 16, 2012 10:27:39 PM UTC+1, Ashish wrote: I am new to GWT and am trying to implement a file upload functionality. Found some implementation help over the internet and used that as reference. But have some questions related to that: The actual upload or writing the contents of file on server(or disk) will be done by a servlet. Is it necessary that this servlet (say MyFileUploadServlet) extends HttpServlet? OR I can use RemoteServiceServlet or any other servlet or implement any other interface? If yes, which method do I need to implement/override? In my servlet, after everything is done, I need to return back the response back to the client. I think form.addSubmitCompleteHandler() can be used to achieve that. From servlet, I could return text/html (or String type object) and then use SubmitCompleteEvent.getResults() to get the result. Question is that can I use my custom object instead of String (lets say MyFileUploadResult), populate the results in it and then pass it back to client? or can I get back JSON object? Currently, after getting back the response and using SubmitCompleteEvent.getResults(), I am getting some HTML tags added to the actual response such as : pre Image upload successfully /pre . Is there a way to get rid of that? Thanks a lot in advance! Regards, Ashish -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Lsccms1eoSoJ. 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 Dev plug-in for Firefox 11
Thank-you for the quick turn-around. On Mar 17, 6:07 am, Alan Leung acle...@google.com wrote: I had just compiled a FF11 linux 32 / 64 only version here: http://acleung.com/gwt-dev-plugin.xpi -Alan On Fri, Mar 16, 2012 at 1:34 PM, Alan Leung acle...@google.com wrote: I am working on it On Fri, Mar 16, 2012 at 6:10 AM, Paul Wujek paul.wu...@gmail.com wrote: Today Ubuntu is asking me to update for FF11, but of course this will kill my development environment. Is there an estimate of when the GWT plug-in will be available? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/j0Nmn9KFKIQJ. 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.
Defining a Jetty realm in hosted mode
Did you tell it which files are protected? This also goes in the web.xml -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0CJaUmgcDl0J. 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.
sending a data stream directly to a client printer via GWT
What if you just send the client a PDF of what needs to be printed and then they can print that from within their PDF application. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/h9I9uwoBLwwJ. 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: JBoss+WAR+RPC+GWT Concepts understanding
Anto, Honesty, you should download an existing, working sample project into Eclipse or your IDE of choice and run it. Then modify it as you snoop around and learn about it's inner workings. The best documentation of GWT and its workings is the Google documentationhttps://code.google.com/webtoolkit/overview.html. Read it all, and all of your above questions should be satiated. There are many existing projects available online, just Google for them and you'll find items like https://code.google.com/p/gwt-in-practice/ where you can get working examples of the war files, UI, RPC, etc. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7FVUtCxX5RUJ. 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: ff11 gwt dev plugin
Thanks! 2012/3/17 Alan Leung acle...@google.com Correct link: http://acleung.com/gwt-dev-plugin.xpi Again FF11 linux only. On Sat, Mar 17, 2012 at 3:05 AM, Alan Leung acle...@google.com wrote: I've build it for linux 32 and 64bit for now and dropped it here: http://acleung.com/gwt-dev-plugin.gwt -Alan On Fri, Mar 16, 2012 at 9:04 AM, Eike Thies thies.e...@gmail.com wrote: to sad that i think you have a point here :( arghhh... where is my firefox portable just to test my gwt application :P Am Freitag, 16. März 2012 15:08:13 UTC+1 schrieb Olivier Scherler: I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote: Hello Alan. Can you compile the plugin for FF11? regards Am Freitag, 16. März 2012 15:08:13 UTC+1 schrieb Olivier Scherler: I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote: Hello Alan. Can you compile the plugin for FF11? regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jdcUZouxGZ0J. 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. -- 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.
ant build - waiting for virtual device to exit
Hi I'm having more than 3 gwt projects in my workspace, when i try to run build.xml for a specific project i get a waiting for virtual device to execute progress bar message and no further response, but ant works fine for my other 2 projects, anyone can help me? -- 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.
HTML Code Generation
Hello! I have created some Widgets with GWT Designer in Eclipse. Now I would like to get to the HTML code, GWT produces, programmatically (not the events, just the code of the static pages). You can get this code by calling UIObject.toString() but this works only running the compiled code in a web browser. But I was not able to get this code calling compiled JAVA Code (getting the error: GWT.create() is only usable in client code!). Is there any way to get around this or any other way producing the static html code of a widget with a JAVA program? 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: GWT Dev plug-in for Firefox 11
I am using it with Ubuntu 64 bit. Works fine. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aCLeK2OLGFgJ. 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: Register your company if you are using GWT
Kanagaral, I added a section to the GWT Wikipedia page on enterprise usage of GWT. I wrote up what I thought to be the salient features that made my employer choose it as our strategic technology choice. Feel free to add any other reasons, or examples you might think of (and add any translations if you like). Also, anyone else in GWT community chime in too. Frankly I find GWT far more powerful than many other existing frameworks, yet many developers are unaware of this and choose not to use it. I think it is critical for us to promulgate its strengths. Hopefully burnishing this article will give COO's a justification for GWT usage. https://en.wikipedia.org/wiki/Google_Web_Toolkit#Enterprise_Usage Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wlqW7dGDDYIJ. 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.
The import com.google.gwt.user cannot be resolved
I am going through the GWT Tutorials, specifically the Making Remote Procedure Calls tutorial, and I have created an interface with the following provided code: package com.google.gwt.sample.stockwatcher.client; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(stockPrices) public interface StockPriceService extends RemoteService { StockPrice[] getPrices(String[] symbols); } I am getting the following errors: The import com.google.gwt.user cannot be resolved RemoteServiceRelativePath cannot be resolved to a type RemoteService cannot be resolved to a type I am using GWT 2.4.0, which I understand does not align with the tutorial, but unfortunately I cannot think of how I should update the provided code in the tutorial to 2.4. How can I fix the above code to eliminate these errors? Thanks in advance for any help. -- 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 Dev plug-in for Firefox 11
Thanks. Any ETA on Vista x64? On Mar 17, 3:07 am, Alan Leung acle...@google.com wrote: I had just compiled a FF11 linux 32 / 64 only version here: http://acleung.com/gwt-dev-plugin.xpi -Alan On Fri, Mar 16, 2012 at 1:34 PM, Alan Leung acle...@google.com wrote: I am working on it On Fri, Mar 16, 2012 at 6:10 AM, Paul Wujek paul.wu...@gmail.com wrote: Today Ubuntu is asking me to update for FF11, but of course this will kill my development environment. Is there an estimate of when the GWT plug-in will be available? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/j0Nmn9KFKIQJ. 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: Register your company if you are using GWT
On Saturday, March 17, 2012 6:22:07 PM UTC+1, Joseph Lust wrote: Kanagaral, I added a section to the GWT Wikipedia page on enterprise usage of GWT. I wrote up what I thought to be the salient features that made my employer choose it as our strategic technology choice. Feel free to add any other reasons, or examples you might think of (and add any translations if you like). Also, anyone else in GWT community chime in too. Frankly I find GWT far more powerful than many other existing frameworks, yet many developers are unaware of this and choose not to use it. I think it is critical for us to promulgate its strengths. Hopefully burnishing this article will give COO's a justification for GWT usage. https://en.wikipedia.org/wiki/Google_Web_Toolkit#Enterprise_Usage I'm not sure Java makes it any *easier* to unit-test than JS. Node.js and other similar standalone JS runners (V8, SpiderMonkey, etc.), or things like http://code.google.com/p/google-js-test/ make it quite easy to write and run unit-tests too; and there are tools to run them in HtmlUnit or real browsers if you need (just like GWTTestCase). They are just different tools because JS is a different technology than Java, but I don't think ones make it easier than the others. It might be easier for you you if you have a Java background, but that's about you then, not about the tools per se. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/80rBSrBOyiYJ. 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: The import com.google.gwt.user cannot be resolved
There's nothing to fix in that code. You're probably missing something in your setup (classpath, *.gwt.xml, I don't know) On Saturday, March 17, 2012 6:41:07 PM UTC+1, oogie wrote: I am going through the GWT Tutorials, specifically the Making Remote Procedure Calls tutorial, and I have created an interface with the following provided code: package com.google.gwt.sample.stockwatcher.client; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(stockPrices) public interface StockPriceService extends RemoteService { StockPrice[] getPrices(String[] symbols); } I am getting the following errors: The import com.google.gwt.user cannot be resolved RemoteServiceRelativePath cannot be resolved to a type RemoteService cannot be resolved to a type I am using GWT 2.4.0, which I understand does not align with the tutorial, but unfortunately I cannot think of how I should update the provided code in the tutorial to 2.4. How can I fix the above code to eliminate these errors? Thanks in advance for any help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8lk5YjHGaokJ. 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: base64 to image in gwt client
I've used this Base64 class for both images and URL-safe encoding: http://iharder.net/base64 It is in the public domain. On Friday, March 16, 2012 5:41:28 AM UTC-4, Amruta Deshpande wrote: I have a image in form of byte array on my server. I m encoding it with base64 as follows byte[] bytes = bos.toByteArray(); String base64 = com.google.gwt.user.server.Base64Utils.toBase64(bytes); base64 = data:image/jpg;base64,+base64; I am using GWT on client side. I want to display this image and trying to build image object follws: public void setInput(DataSource input) { Image image = new Image(myUser.getImg()); this.setWidget(i, 4, image); } but this is not working... can somebody help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/e2PFP16E9rUJ. 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.
Using @UiHandler for click event on custom widget
I have created a custom widget which is basically a HTMLPanel that extends Composite and is styled as a button. I'm using the widget with UiBinder, but I want to use the @UiHandler annotation inside the view where the button is located and catch its click event. How can I do this? I have tried doing something like this but it doesn't work: @UiField HTMLPanel mainContainer; @UiConstructor public CustomButton(String text) { initWidget(binder.createAndBindUi(this)); setText(text); mainContainer.addDomHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(Clicky); fireEvent(event); } }, ClickEvent.getType()); } In my view: @UiHandler(customButton) public void customButton(ClickEvent event) { Window.alert(Clicky!); } I get error: [ERROR] Field 'customButton' does not have an 'addClickHandler' method associated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WpeTLccF-xsJ. 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: Using @UiHandler for click event on custom widget
Just implement the interface HasClickHandlers in your custom button so you have an addClickHandler() method. public CustomButton extends Composite implements HasClickHandlers { public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } } -- J. Am Samstag, 17. März 2012 21:58:50 UTC+1 schrieb Jonas: I have created a custom widget which is basically a HTMLPanel that extends Composite and is styled as a button. I'm using the widget with UiBinder, but I want to use the @UiHandler annotation inside the view where the button is located and catch its click event. How can I do this? I have tried doing something like this but it doesn't work: @UiField HTMLPanel mainContainer; @UiConstructor public CustomButton(String text) { initWidget(binder.createAndBindUi(this)); setText(text); mainContainer.addDomHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(Clicky); fireEvent(event); } }, ClickEvent.getType()); } In my view: @UiHandler(customButton) public void customButton(ClickEvent event) { Window.alert(Clicky!); } I get error: [ERROR] Field 'customButton' does not have an 'addClickHandler' method associated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QAy3FeSG7w4J. 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: How to share an RPC RemoteServiceServlet between apps?
On Saturday, March 10, 2012 12:54:08 AM UTC-5, Alfredo Quiroga-Villamil wrote: If I am not mistaken you can override in your ServiceImplementation a couple of methods (your choice which one). In RemoteServiceServlet, you will find: getSerializationPolicy doGetSerializationPolicy Likely the latter will be easier to override. Overriding doGetSerializationPolicy worked, thanks. The code in RemoteServiceServlet.loadSerializationPolicy shows you how to do it. Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ltcPHlDAn-cJ. 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: The import com.google.gwt.user cannot be resolved
Please be sure that you import gwt-user.jar to your buildpath.Good luck to you. 2012/3/18 Thomas Broyer t.bro...@gmail.com There's nothing to fix in that code. You're probably missing something in your setup (classpath, *.gwt.xml, I don't know) On Saturday, March 17, 2012 6:41:07 PM UTC+1, oogie wrote: I am going through the GWT Tutorials, specifically the Making Remote Procedure Calls tutorial, and I have created an interface with the following provided code: package com.google.gwt.sample.**stockwatcher.client; import com.google.gwt.user.client.**rpc.RemoteService; import com.google.gwt.user.client.**rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(**stockPrices) public interface StockPriceService extends RemoteService { StockPrice[] getPrices(String[] symbols); } I am getting the following errors: The import com.google.gwt.user cannot be resolved RemoteServiceRelativePath cannot be resolved to a type RemoteService cannot be resolved to a type I am using GWT 2.4.0, which I understand does not align with the tutorial, but unfortunately I cannot think of how I should update the provided code in the tutorial to 2.4. How can I fix the above code to eliminate these errors? Thanks in advance for any help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8lk5YjHGaokJ. 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-contrib] Mavenizing GWT
On 16 March 2012 20:26, Ray Cromwell cromwell...@google.com wrote: I agree with most of this, but I just wanted to mention that I think breaking up the dependency chain will be a little tricky for maven when it comes to tests. Maven general practice is that a given module contains its tests and runs them. The problem with gwt-dev and gwt-user is that many of the gwt-user tests can't run unless gwt-dev has been built, but gwt-dev IIRC has some tests that depend on gwt-user. So it may be that you need to make separate gwt-dev-tests/gwt-user-tests subprojects. Personally, I'd like to break up GWT-user further into lots tiny pieces, like Core, I/O, Emulation, RPC, Widgets, DOM/Media/HTML, etc We can still build an uber gwt-user.jar, but there are lots of projects that don't use everything, and being able to move stuff off of the classpath speeds up the compiler and dev-mode. There are some projects like PlayN for example, that pretty much only use Core. Yes, that would be wonderful! -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Issue 7038: CompositeEditor and ListEditor optimizations (issue1664803)
Reviewers: rdayal, Description: Issue 7038: CompositeEditor and ListEditor optimizations Initializer and Refresher visitors cause CompositeEditors' sub-editors to be visited twice: once by the EditorChain#attach() they should be calling in their setValue, and then once again by the visitor stepping into sub-editors. When a CompositeEditor has a ListEditor as a sub-editor, that ListEditor then would create a ListEditorWrapper twice in a row, leading in creating sub-editors to dispose them right away, which is obviously bad for performance. Having the Initializer and Refresher avoid visiting CompositeEditors' sub-editors (because setValue would have already done so) fixes the issue. Additionally, ListEditor unconditionally recreate its ListEditorWrapper in setValue even when setting the same value as the one being edited. This leads to recreating all sub-editors instead of reusing them (even though the EditorSource should take care of this already for best performance in all cases). Please review this at https://gwt-code-reviews.appspot.com/1664803/ Affected files: M user/src/com/google/gwt/editor/client/adapters/ListEditor.java M user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java M user/src/com/google/gwt/editor/client/impl/Refresher.java M user/test/com/google/gwt/editor/client/SimpleBeanEditorTest.java Index: user/src/com/google/gwt/editor/client/adapters/ListEditor.java diff --git a/user/src/com/google/gwt/editor/client/adapters/ListEditor.java b/user/src/com/google/gwt/editor/client/adapters/ListEditor.java index 592a188cde90a0c996e3c382345e1689ba4cb9af..40f46cb26e32fde25bb3eeb19d84a2a8c862a772 100644 --- a/user/src/com/google/gwt/editor/client/adapters/ListEditor.java +++ b/user/src/com/google/gwt/editor/client/adapters/ListEditor.java @@ -18,6 +18,7 @@ package com.google.gwt.editor.client.adapters; import com.google.gwt.editor.client.CompositeEditor; import com.google.gwt.editor.client.Editor; import com.google.gwt.editor.client.EditorDelegate; +import com.google.gwt.editor.client.impl.Refresher; import java.util.Collections; import java.util.List; @@ -124,6 +125,11 @@ public class ListEditorT, E extends EditorT implements * @param value a List of data objects of type T */ public void setValue(ListT value) { +if ((list == null value == null) || (list != null list.isSameValue(value))) { + // setting the same value as the one being edited + list.refresh(); + return; +} if (list != null) { // Having entire value reset, so dump the wrapper gracefully list.detach(); Index: user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java diff --git a/user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java b/user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java index b028a7983bba67432a0e8198baf31ce1e6b2a72b..968de45ded2b7b7ee21be85ef2bf28f250cdaa38 100644 --- a/user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java +++ b/user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java @@ -122,4 +122,41 @@ class ListEditorWrapperT, E extends EditorT extends AbstractListT { List? extends E getEditors() { return editors; } + + /** + * Checks whether that ListEditorWrapper can be reused for the passed list. + * p + * The ListEditorWrapper can be reused if and only if the backing list is the + * same instance as the passed list. + */ + boolean isSameValue(ListT value) { +// identity check intentional +return (backing == value); + } + + /** + * Refresh the editors in case the backing list has been modified from + * outside the ListEditorWrapper list. + * p + * This is basically the opposite from {@link #flush()}. It's used to + * reuse sub-editors instead of recreating a ListEditorWrapper from + * scratch. + */ + void refresh() { +int i = 0; +for (T item : backing) { + if (i size()) { +this.set(i, item); + } else { +assert i == size(); +this.add(i, item); + } + i++; +} +while (backing.size() size()) { + remove(size() - 1); +} +assert backing.size() == size(); +assert backing.equals(workingCopy); + } } \ No newline at end of file Index: user/src/com/google/gwt/editor/client/impl/Refresher.java diff --git a/user/src/com/google/gwt/editor/client/impl/Refresher.java b/user/src/com/google/gwt/editor/client/impl/Refresher.java index dee6f1877cba4f658fd5c18b9adb6dcbb15d5ac2..6043899d8ed75faa718abcce30e86abcf9c90dce 100644 --- a/user/src/com/google/gwt/editor/client/impl/Refresher.java +++ b/user/src/com/google/gwt/editor/client/impl/Refresher.java @@ -45,6 +45,9 @@ public class Refresher extends EditorVisitor { asLeaf.setValue(toSet); } } -return true; +// CompositeEditor's setValue should create sub-editors and attach them to +// the EditorChain, which will traverse