Re: Can't compile gadget with GWT Plugin 2.2 or 2.3 Beta
To be honest, I have no idea how to compile gwt-gadgets sources or where to get them from in the first place (I'm not a real developer). I was kind of hoping that Google might have a spare developer to do it if it's really that simple! Alternatively, if someone can help me out with some instructions on how to do this, I'd really appreciate it. On Apr 10, 2:52 am, Eric Ayers zun...@google.com wrote: That's exactly what the problem is (with all the gwt-google-api libraries and GWT 2.2) On Sat, Apr 9, 2011 at 12:34 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is gwt-gadgets compatible with gwt 2.2? Perhaps you must compile gwt-gadgets sources with gwt 2.2 for use in your project. 2011/4/8 dicko d...@mothdesign.com.au Hi there, I've seen a few posts complaining about this error but they seem to refer to issues using the Maps.jar. Anyway, I've recently updated the GWT plugin from 2.1 to 2.2 and can now no longer compile a gadget I've been building using the Gadgets plugin (gwt-gadgets.jar). I'm receiving this error: [ERROR] Unexpected java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator. java: 475) at com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java : 93) 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 com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 248) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns wers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript Compiler.java: 505) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: 35) at com.google.gwt.dev.Precompile.precompile(Precompile.java:541) at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Can anyone give me an idea of how this can be fixed or whether Google are working on this? I've temporarily re-added the GWT 2.1 plugin but obviously this won't be a long-term solution as I'm assuming my code will become deprecated at some point. 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. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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 compile gadget with GWT Plugin 2.2 or 2.3 Beta
You must update your version of GXT and use gxt-2.2.3 for GWT 2.2 2011/4/11 dicko d...@mothdesign.com.au To be honest, I have no idea how to compile gwt-gadgets sources or where to get them from in the first place (I'm not a real developer). I was kind of hoping that Google might have a spare developer to do it if it's really that simple! Alternatively, if someone can help me out with some instructions on how to do this, I'd really appreciate it. On Apr 10, 2:52 am, Eric Ayers zun...@google.com wrote: That's exactly what the problem is (with all the gwt-google-api libraries and GWT 2.2) On Sat, Apr 9, 2011 at 12:34 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is gwt-gadgets compatible with gwt 2.2? Perhaps you must compile gwt-gadgets sources with gwt 2.2 for use in your project. 2011/4/8 dicko d...@mothdesign.com.au Hi there, I've seen a few posts complaining about this error but they seem to refer to issues using the Maps.jar. Anyway, I've recently updated the GWT plugin from 2.1 to 2.2 and can now no longer compile a gadget I've been building using the Gadgets plugin (gwt-gadgets.jar). I'm receiving this error: [ERROR] Unexpected java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator. java: 475) at com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java : 93) 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 com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 248) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns wers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript Compiler.java: 505) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: 35) at com.google.gwt.dev.Precompile.precompile(Precompile.java:541) at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Can anyone give me an idea of how this can be fixed or whether Google are working on this? I've temporarily re-added the GWT 2.1 plugin but obviously this won't be a long-term solution as I'm assuming my code will become deprecated at some point. 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. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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. -- Rodolphe Gomes IT Developer Senior JAVA/J2EE Fully,
CellTable Row Color
Is it possible to change the bakcround colors of certain rows in a CellTable ie in a table of persons : men should be blue women should be pink Patrick -- 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 Refresh and keep the same view
Hello If you have a CellTable that shows obsoleta data that have to be reloaded ( a few entities , the same ones , be some data has ben changed) , how can you preserve the position (Page ) and selection ? Thanks Patrick -- 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 Row Color
You can use com.google.gwt.user.cellview.client.CellTable.setRowStyles(RowStylesT) to provide a class name by row. Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Is it possible to change the bakcround colors of certain rows in a CellTable ie in a table of persons : men should be blue women should be pink Patrick -- 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: CellTable Row Color
Any example showing this ? thanks anyway Patrick - Original Message - From: Alexandre Ardhuin To: google-web-toolkit@googlegroups.com Sent: Monday, April 11, 2011 9:48 AM Subject: Re: CellTable Row Color You can use com.google.gwt.user.cellview.client.CellTable.setRowStyles(RowStylesT) to provide a class name by row. Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Is it possible to change the bakcround colors of certain rows in a CellTable ie in a table of persons : men should be blue women should be pink Patrick -- 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. -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011 -- 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.
set domain for document
Hi, has anyone tried to set the domain for the host-page ? i want to the browser to send the cookie to both host1.mydomain.com host2.mydomain.com, i tried to call jsni from onModuleLoad also as from normal js (on body onload event ) ( document.domain=mydomain.com ) but it doesnt work. what could be the solution ? for silmulating the the real scenario., i set my host name to real domain (etc/hosts with entry 127.0.0.1 host1.mydomain.com), has anyone has experience that http://host1.mydomain.com:/index.jsp?gwt.codesvr=host1.mydomain.com:9997? will that work exactly as when i use 127.0.0.1 ? thanx -- 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 with only div's?
Ok, that's a long time ago. I remember that I solved that by creating the HTML string and then passing it in to a HTMLPanel instance. In the HTMLPanel you can just add the widgets through assigned id's. That worked pretty good and easy. I didn't extend the celltable functionality as it became too slippery. - Ed On Sat, Apr 9, 2011 at 11:14 PM, Ramon Salla rsal...@gmail.com wrote: Hi Ed, Did you manage to extend celltable to work only with divs? can you share the result? I tried it with no luck. Thankyou! -- 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 to Development Mode
I had a similar issue last week. A project that compiled and ran fine on Windows and Linux failed to run in Development mode on my OSX 10.6.7 laptop. Perversely it also ran fine on an OSX 10.6.6 desktop. I was getting onModuleLoad() threw an exception, due to GWT.create failing to bind a class that *was* available and in the right place, whenever I tried to do a mvn gwt:run to launch the app. Picking through the logs in the Development mode app, it turned out that I was getting a NullPointer during GXT.init because it was unable to load the default theme. The fix turned out to be adding ThemeManager.register(Slate.SLATE); to onModuleLoad() and inherits name=com.extjs.gxt.themes.Themes/ to the foo.gwt.xml config. These 2 lines fixed the NullPointer, which in turn fixed the seemingly unrelated binding error. I didn't get to the bottom of why it failed for me and not any of the other machines. As the code is all in version control, it was not a project layout issue. The app also ran fine in production mode on the troubled laptop, so my guess is some kind of race condition with the Development mode app bootstrap. My only advice is to ramp up the GWT logging and that your problem may be be unrelated to the Unable to find type 'sa.car.sa.fast.client.Main' Oli -- 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.
CellTree can't have more than 512 child nodes?
It seems I've encountered a problem whereas a node in a CellTree having more than 512 children will only show those first 512 children. Is this a known limitation, or could the problem lie somewhere else? I use a ListDataProvider for the node in question, so I think the model itself isn't the limitation. -- 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 Row Color
table.setRowStyles(new RowStylesPerson() { @Override public String getStyleNames(Person p, int rowIndex) { if (p.isWoman()) { return woman; } else { return man; } } }); and css rules : .woman { background-color: pink; } .man { background-color: blue; } Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Any example showing this ? thanks anyway Patrick - Original Message - *From:* Alexandre Ardhuin alexandre.ardh...@gmail.com *To:* google-web-toolkit@googlegroups.com *Sent:* Monday, April 11, 2011 9:48 AM *Subject:* Re: CellTable Row Color You can use com.google.gwt.user.cellview.client.CellTable.setRowStyles(RowStylesT) to provide a class name by row. Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Is it possible to change the bakcround colors of certain rows in a CellTable ie in a table of persons : men should be blue women should be pink Patrick -- 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. -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011 -- 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: CellTable Row Color
that simple ! A shame that it has so poor a documetation; thanks and sorry for the trouble Patrick - Original Message - From: Alexandre Ardhuin To: google-web-toolkit@googlegroups.com Sent: Monday, April 11, 2011 10:36 AM Subject: Re: CellTable Row Color table.setRowStyles(new RowStylesPerson() { @Override public String getStyleNames(Person p, int rowIndex) { if (p.isWoman()) { return woman; } else { return man; } } }); and css rules : .woman { background-color: pink; } .man { background-color: blue; } Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Any example showing this ? thanks anyway Patrick - Original Message - From: Alexandre Ardhuin To: google-web-toolkit@googlegroups.com Sent: Monday, April 11, 2011 9:48 AM Subject: Re: CellTable Row Color You can use com.google.gwt.user.cellview.client.CellTable.setRowStyles(RowStylesT) to provide a class name by row. Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Is it possible to change the bakcround colors of certain rows in a CellTable ie in a table of persons : men should be blue women should be pink Patrick -- 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. -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011 -- 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. -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011 -- 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: return persisted ID in proxy after successful persist()
Thanks a lot Y2i, it's working -- 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 compile gadget with GWT Plugin 2.2 or 2.3 Beta
http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource On Mon, Apr 11, 2011 at 2:16 AM, dicko d...@mothdesign.com.au wrote: To be honest, I have no idea how to compile gwt-gadgets sources or where to get them from in the first place (I'm not a real developer). I was kind of hoping that Google might have a spare developer to do it if it's really that simple! Alternatively, if someone can help me out with some instructions on how to do this, I'd really appreciate it. On Apr 10, 2:52 am, Eric Ayers zun...@google.com wrote: That's exactly what the problem is (with all the gwt-google-api libraries and GWT 2.2) On Sat, Apr 9, 2011 at 12:34 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is gwt-gadgets compatible with gwt 2.2? Perhaps you must compile gwt-gadgets sources with gwt 2.2 for use in your project. 2011/4/8 dicko d...@mothdesign.com.au Hi there, I've seen a few posts complaining about this error but they seem to refer to issues using the Maps.jar. Anyway, I've recently updated the GWT plugin from 2.1 to 2.2 and can now no longer compile a gadget I've been building using the Gadgets plugin (gwt-gadgets.jar). I'm receiving this error: [ERROR] Unexpected java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator. java: 475) at com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java : 93) 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 com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 248) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns wers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript Compiler.java: 505) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: 35) at com.google.gwt.dev.Precompile.precompile(Precompile.java:541) at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Can anyone give me an idea of how this can be fixed or whether Google are working on this? I've temporarily re-added the GWT 2.1 plugin but obviously this won't be a long-term solution as I'm assuming my code will become deprecated at some point. 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. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups
Re: RequestFactory Hibernate One to many mapping datatype
Hi to all, I'm still banging my head on this. I was thinking if a custom ServiceLayerDecorator overriding the resolveDomainMethod could solve the issue? Thanks a lot On 8 abr, 12:24, mfiandesio matteo.fiande...@gmail.com wrote: Hi to all, I am trying to retrieve an object with Hibernate User which has a one- to-many relationship with a Role object. This is mapped as a CollectionRole roles but requestfactory validation complains if the proxy interface has the method CollectionRoleProxy getRoles as the data type is not Set nor List. If i change the UserProxy method to SetRoleProxy getRoles it complains that in the User object does not exists a matching datatype method. All the hibernate mapped entity are in a jar that we use across various applications and it would be quite painful to change all the CollectionT to a Set or a List. Is there any way to change the validation beahviour? Thanks a lot, Matteo -- 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.
Window.alert cannot be launched after making an ajax call
Hi, I am trying to display a status after making an ajax call, the following is the code fragment. submitButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { // TODO Auto-generated method stub; for(int i = 0 ; i ageBoxes.length ; i++) { ageBoxes[i].validate(); //ajax call } Window.alert(Finished!); } }); submitButton is a button. ageBoxes is an array of TextBox. When the submit button is clicked, this click handler will be triggered and make ajax call(validate) for all the TextBox. The ajax call can be triggered successfully, however, the Window message box cannot be launched for some reasons. Can anyone give me ideas why the message box cannot be popped up after making a series of ajax call? 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.
Channel Listener and jsapi reference
Hi, I implemented channel api and channel listener (based on dance dance robot and connectr).The code looks alright to me but i'm still not receiving messages.I included reference to jsapi in html (_ah/channel/jsapi). Channel, ChannelFactory,Socket and SocketListener are written in Java like in danca,dance robot in client package.Is this way of referrencing wrong if I create channel listener in onModuleLoad() instead in html body? Please help! Thanks, Ania -- 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: Window.alert cannot be launched after making an ajax call
One of your validate() call is failing or one of the ageBoxes has not been initialized firebug would show ! Patrick - Original Message - From: Benson Fung benson.red...@gmail.com To: Google Web Toolkit google-web-toolkit@googlegroups.com Sent: Monday, April 11, 2011 12:49 PM Subject: Window.alert cannot be launched after making an ajax call Hi, I am trying to display a status after making an ajax call, the following is the code fragment. submitButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { // TODO Auto-generated method stub; for(int i = 0 ; i ageBoxes.length ; i++) { ageBoxes[i].validate(); //ajax call } Window.alert(Finished!); } }); submitButton is a button. ageBoxes is an array of TextBox. When the submit button is clicked, this click handler will be triggered and make ajax call(validate) for all the TextBox. The ajax call can be triggered successfully, however, the Window message box cannot be launched for some reasons. Can anyone give me ideas why the message box cannot be popped up after making a series of ajax call? 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. - Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011 -- 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 more abstract AsyncCallback class
i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists to be used in combo boxes for instance). so if i have a widget that needs 3 different lists (probably ListString or MapString, String) i specify a service-method for each list. the problem is to load all those lists, i have to implement one class (...implements AsyncCallback) for each list. but the only difference between this implementations is that they load the result in different lists: public void onSuccess(){ list1 = result } so how to implement an abstract callback class that could load its result into a given list/object (- a field of mother class) (if call by reference would exist in java i would giv list1 as an parameter for constructor and onSucces would load the result into this reference?!) an optimal implementation would be if the result type could be a generic type: A class lie this: class GeneralCallbackT implements AsyncCallbackT{ public GeneralCallback(T target){ ... } public onSuccess(T result){ target = result; } } is it possible to get such an abstract callback class? -- 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 autocompile ;)
hmmm... I will test thanks.. On 9 abr, 10:27, Harald Schilly harald.schi...@gmail.com wrote: On Friday, April 8, 2011 10:02:38 PM UTC+2, Diego Lovison wrote: For example in JavaScript I can write the code, save on database, ... You can do exactly the same in GWT as you are able to do in pure JavaScript. The reason is that there is this JSNI interface that lets you access the lower level. i.e. you can write a native void runRule(Element e, String code) /*-{ ... }-*/ function that takes an element of them dom and some javascript code acting on it. (I have never done this, but it is something along that.) 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.
howto determine development/hosted mode
Hi, my LoginServlet is outside GWT and therefore needs to redirect to the GWT app after successful login. I do this with response.sendRedirect (http://...myApp...;). However, when in development mode I need to append ?gwt.codesvr..., which does not work in hosted mode. So I need to determine, if I'm running in development mode or not. How can I do this? Do I really have to use if/then/else statements when dealing with URLs? What's the simplest way to keep my app running in both modes? Thank you Magnus -- 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 more abstract AsyncCallback class
try this: public class ListLoaderAsyncCallbackT implements AsyncCallbackArrayListT { private final ListT list; public ListLoaderAsyncCallback(ListT list) { this.list = list; } public void onSuccess(ArrayListT result) { list.clear(); list.addAll(result); } public void onFailure(Throwable caught) { ... } } ListSomeType myList = ; MyServiceAsync service = ; service.loadSomeData(new ListLoaderAsyncCallbackSomeType(myList)); On Mon, Apr 11, 2011 at 9:00 AM, tanteanni tantea...@hotmail.com wrote: i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists to be used in combo boxes for instance). so if i have a widget that needs 3 different lists (probably ListString or MapString, String) i specify a service-method for each list. the problem is to load all those lists, i have to implement one class (...implements AsyncCallback) for each list. but the only difference between this implementations is that they load the result in different lists: public void onSuccess(){ list1 = result } so how to implement an abstract callback class that could load its result into a given list/object (- a field of mother class) (if call by reference would exist in java i would giv list1 as an parameter for constructor and onSucces would load the result into this reference?!) an optimal implementation would be if the result type could be a generic type: A class lie this: class GeneralCallbackT implements AsyncCallbackT{ public GeneralCallback(T target){ ... } public onSuccess(T result){ target = result; } } is it possible to get such an abstract callback class? -- 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: need more abstract AsyncCallback class
On Mon, Apr 11, 2011 at 8:00 AM, tanteanni tantea...@hotmail.com wrote: an optimal implementation would be if the result type could be a generic type: A class lie this: class GeneralCallbackT implements AsyncCallbackT{ public GeneralCallback(T target){ ... } public onSuccess(T result){ target = result; } } is it possible to get such an abstract callback class? Sounds more like you would want an implementation that looked like: class CollectionLoadingCallbackT implements AsyncCallbackT { private final CollectionT col; public CollectionLoadingCallback(CollectionT col) { this.col = col; } public void onSuccess(T result) { col.add(result); } ... } Of course, I'm sure you'd want another callback to actually know when the value was received, but the general idea above would work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: howto determine development/hosted mode
Can't your servlet simply redirect to where you came from? (passing the return to URL in the request) -- 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 more abstract AsyncCallback class
D'oh! Looks like the offline gmail worked against me. :) Late posting a duplicate suggestion, and I meant to edit it. I was going to say it might be worthwhile to use TakesValueT instead of collection, so you can get the callback semantics in there. -- 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.
ClassNotFoundException: http:?
Has anyone seen this before? I have a pretty large set of Serializable object but to overly simpllity our classes, we have a Request object and a Query Object. class Request extends Serialiable { } Caused by: java.lang.ClassNotFoundException: http: at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 363) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 542) -- 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: ClassNotFoundException: http:?
Opps.. Sorry posted that too soon. The classes are: class Request implements Serialiable { public Request() {} public Request( Query q ) { } } -- 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 more abstract AsyncCallback class
thx both of us: to be sure i understand your suggestion: using list.add also adds to the list given in constructor? i know it's probably a java-noob question but why it is different to onSuccess ... list = result ? (besides that this isn't working ;-)) On 11 Apr., 14:55, Magno Machado magn...@gmail.com wrote: try this: public class ListLoaderAsyncCallbackT implements AsyncCallbackArrayListT { private final ListT list; public ListLoaderAsyncCallback(ListT list) { this.list = list; } public void onSuccess(ArrayListT result) { list.clear(); list.addAll(result); } public void onFailure(Throwable caught) { ... } } ListSomeType myList = ; MyServiceAsync service = ; service.loadSomeData(new ListLoaderAsyncCallbackSomeType(myList)); On Mon, Apr 11, 2011 at 9:00 AM, tanteanni tantea...@hotmail.com wrote: i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists to be used in combo boxes for instance). so if i have a widget that needs 3 different lists (probably ListString or MapString, String) i specify a service-method for each list. the problem is to load all those lists, i have to implement one class (...implements AsyncCallback) for each list. but the only difference between this implementations is that they load the result in different lists: public void onSuccess(){ list1 = result } so how to implement an abstract callback class that could load its result into a given list/object (- a field of mother class) (if call by reference would exist in java i would giv list1 as an parameter for constructor and onSucces would load the result into this reference?!) an optimal implementation would be if the result type could be a generic type: A class lie this: class GeneralCallbackT implements AsyncCallbackT{ public GeneralCallback(T target){ ... } public onSuccess(T result){ target = result; } } is it possible to get such an abstract callback class? -- 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 Paulohttp://blog.magnomachado.com.brhttp://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: ClassNotFoundException: http:?
How do you run the app? 2011/4/11 kevin kalo...@gmail.com Has anyone seen this before? I have a pretty large set of Serializable object but to overly simpllity our classes, we have a Request object and a Query Object. class Request extends Serialiable { } Caused by: java.lang.ClassNotFoundException: http: at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 363) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 542) -- 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: ClassNotFoundException: http:?
Maybe third time is a charm... I keep hitting tab-enter.. :( OK. So here are my overly simplified classes. When I send these object to the server via a basic Test.serial( Serializable s ) RCP service the following happens: Test.serial( new Request() ); // passes Test.serial( new Request(kevin) );// throws exception Test.serial( new Query(kevin) // passes Test.serial( new Request(kevin).getQuery() ) // passes. Obviously, this simple case will pass for everyone so there has got to be something else in my code that is breaking it. But I can't find a good way to debug it. Any tips / tricks into diagnosing this issue would be greatly appreciated. I'm debugging through the GWT code and the http seems to be coming from the URL to the service. My guess is that as its parsing the HTTP Post it's position is getting messed up. class Request implements Serialiable { Query q; public Request() {} public Request( Query q ) { this.q = q; } public Request(String s) { q = new Query( s ); } public Query getQuery() { return q; } } class Query { String s; public Query() { } public Query(String s) { this.s = s; } } -- 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: howto determine development/hosted mode
Hi Thomas, I know you know the problems with login inside/outside GWT, because we had a conversation on this topic for a while. Because of these problems, my login page is completely outside of GWT. It's just a JSP with a form, and the form's action attribute points to a LoginServlet. If the servlet redirected to where I came from, it would redirect to the JSP page, right? But it should redirect to my GWT app. After successful login we must leave the JSP and enter GWT. You often mentioned that you will always do the login outside GWT. So how do you do this? Magnus On 11 Apr., 15:07, Thomas Broyer t.bro...@gmail.com wrote: Can't your servlet simply redirect to where you came from? (passing the return to URL in the request) -- 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 more abstract AsyncCallback class
why it is different to onSuccess ... list = result ? (besides that this isn't working ;-)) 1. list = result implies that your callback has a reference to the object that is holding the list. Maybe it would be a problem for you, maybe not 2. list = result will make the list variable point to a new object. If you have any other object holding a reference to the previous list object, it will still point to that object after the assignment, so it won't see the objects that came from the rpc call On Mon, Apr 11, 2011 at 10:44 AM, tanteanni tantea...@hotmail.com wrote: thx both of us: to be sure i understand your suggestion: using list.add also adds to the list given in constructor? i know it's probably a java-noob question but why it is different to onSuccess ... list = result ? (besides that this isn't working ;-)) On 11 Apr., 14:55, Magno Machado magn...@gmail.com wrote: try this: public class ListLoaderAsyncCallbackT implements AsyncCallbackArrayListT { private final ListT list; public ListLoaderAsyncCallback(ListT list) { this.list = list; } public void onSuccess(ArrayListT result) { list.clear(); list.addAll(result); } public void onFailure(Throwable caught) { ... } } ListSomeType myList = ; MyServiceAsync service = ; service.loadSomeData(new ListLoaderAsyncCallbackSomeType(myList)); On Mon, Apr 11, 2011 at 9:00 AM, tanteanni tantea...@hotmail.com wrote: i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists to be used in combo boxes for instance). so if i have a widget that needs 3 different lists (probably ListString or MapString, String) i specify a service-method for each list. the problem is to load all those lists, i have to implement one class (...implements AsyncCallback) for each list. but the only difference between this implementations is that they load the result in different lists: public void onSuccess(){ list1 = result } so how to implement an abstract callback class that could load its result into a given list/object (- a field of mother class) (if call by reference would exist in java i would giv list1 as an parameter for constructor and onSucces would load the result into this reference?!) an optimal implementation would be if the result type could be a generic type: A class lie this: class GeneralCallbackT implements AsyncCallbackT{ public GeneralCallback(T target){ ... } public onSuccess(T result){ target = result; } } is it possible to get such an abstract callback class? -- 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 Paulohttp://blog.magnomachado.com.brhttp:// 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. -- 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.
There was a demo for creating visually overlapping tabs
My designer is wondering about making overlapping tabs with TabLayoutPanel, and I'm sure I saw a demo somewhere in the docs providing example images and css required to make it happen. I even found a picture of the result in the TabLayoutPanel docs: http://code.google.com/webtoolkit/doc/latest/images/TabLayoutPanel.png Can anyone point me to the doc that has the images and css to create such an effect? 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: need more abstract AsyncCallback class
On Mon, Apr 11, 2011 at 9:44 AM, tanteanni tantea...@hotmail.com wrote: using list.add also adds to the list given in constructor? i know it's probably a java-noob question but why it is different to onSuccess ... list = result ? (besides that this isn't working ;-)) Wow... this is so much easier to describe with paper and some drawings. :) You were on to it with the by-value versus by-reference question. By passing the collection, anyone can add to it if they have a copy of your reference. What they can not do is modify the original reference to point to a new collection. -- 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: ClassNotFoundException: http:?
This happens in production and devmode in either JUnit test or a live system. On Apr 11, 9:40 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: How do you run the app? 2011/4/11 kevin kalo...@gmail.com Has anyone seen this before? I have a pretty large set of Serializable object but to overly simpllity our classes, we have a Request object and a Query Object. class Request extends Serialiable { } Caused by: java.lang.ClassNotFoundException: http: at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java : 401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java : 363) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java: 542) -- 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: ClassNotFoundException: http:?
Is there any JUnit Tests for the ServerSerializationStreamReader that might help me test this? I couldn't find any good examples. If I use RCP.decodeRequest() it seems to require a bunch of policy files so I'm not sure how to simulate the Servlet env. -- 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: ClassNotFoundException: http:?
class Query is not mark as Serializable 2011/4/11 kevin kalo...@gmail.com This happens in production and devmode in either JUnit test or a live system. On Apr 11, 9:40 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: How do you run the app? 2011/4/11 kevin kalo...@gmail.com Has anyone seen this before? I have a pretty large set of Serializable object but to overly simpllity our classes, we have a Request object and a Query Object. class Request extends Serialiable { } Caused by: java.lang.ClassNotFoundException: http: at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java : 401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java : 363) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java: 542) -- 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. -- 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: ClassNotFoundException: http:?
This isn't real code. Just trying to describe what's working and what's not. In the real code... The the Request and Query both serialize find by themselves but when I pass a Request with a Query it fails. My assumption is that the Query object is fine but something about it existing breaks one of the other fields on the Request object but I can't figure out what/how that would happen. On Apr 11, 10:32 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: class Query is not mark as Serializable 2011/4/11 kevin kalo...@gmail.com This happens in production and devmode in either JUnit test or a live system. On Apr 11, 9:40 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: How do you run the app? 2011/4/11 kevin kalo...@gmail.com Has anyone seen this before? I have a pretty large set of Serializable object but to overly simpllity our classes, we have a Request object and a Query Object. class Request extends Serialiable { } Caused by: java.lang.ClassNotFoundException: http: at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java : 401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java : 363) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java: 542) -- 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. -- 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 more abstract AsyncCallback class
Try this: class LoadMapsE, T extends CollectionE implements AsyncCallbackT { On Mon, Apr 11, 2011 at 11:43 AM, tanteanni tantea...@hotmail.com wrote: meanwhile i tried your suggestions but i am struggling at getting the right signature: so i want a callback working of all kinds of collections and adding the result to the given collection: at the moment i got this: private class LoadMapsT extends Collection implements AsyncCallbackT { private T target; protected LoadMaps(T whereTo) { target = whereTo; } @Override public void onFailure(Throwable caught) { Window.alert(caught.getMessage()); } @Override public void onSuccess(T result) { target.addAll(result); } } the only problem is now: i can't call the constructor: MapString, ListString myMap = new HashMapString, ListString(); LoadMaps loadMaps = new LoadMaps(myMap); --The constructor AdminUnits.LoadMaps(TaskDoneEvent, MapString,ListString) is undefined besides this i get Type safety: The method addAll(Collection) belongs to the raw type Collection. References to generic type CollectionE should be parameterized in LoadMaps-onSuccess-target.addAll(result) so how to fix this On 11 Apr., 14:00, tanteanni tantea...@hotmail.com wrote: i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists to be used in combo boxes for instance). so if i have a widget that needs 3 different lists (probably ListString or MapString, String) i specify a service-method for each list. the problem is to load all those lists, i have to implement one class (...implements AsyncCallback) for each list. but the only difference between this implementations is that they load the result in different lists: public void onSuccess(){ list1 = result } so how to implement an abstract callback class that could load its result into a given list/object (- a field of mother class) (if call by reference would exist in java i would giv list1 as an parameter for constructor and onSucces would load the result into this reference?!) an optimal implementation would be if the result type could be a generic type: A class lie this: class GeneralCallbackT implements AsyncCallbackT{ public GeneralCallback(T target){ ... } public onSuccess(T result){ target = result; } } is it possible to get such an abstract callback class? -- 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: ClassNotFoundException: http:?
Here is the RCP request that is getting posted. If I debug it, it gets to at [107] (which is the last ...|1|21|22|21|23|0|0|0|0|7|0|0|0|A|24| 0|2|25|0|26|0|100|27|0|100|) which points to http://127.0.0.1:17000/showcase/com.example.gwt.showcase.Showcase.JUnit/|5CF4819B1A2569FD2C1B62654253B339|com.example.gwt.showcase.client.SerializationTestApi in the string array. Which then gets passed into the Class.forName() in the above stack. So it seems like the problem is the Client isn't encoding the request properly. Any idea's how I can figure how what the JS is doing? 7|0|27|http://127.0.0.1:17000/showcase/ com.example.gwt.showcase.Showcase.JUnit/| 5CF4819B1A2569FD2C1B62654253B339| com.example.gwt.showcase.client.SerializationTestApi|serialize| java.io.Serializable|com.example.messages.QueryRequest/1309523977| java.util.ArrayList/3821976829|[Ljava.lang.String;/2600011424| com.example.messages.QueryRequest$FacetFinderMode/1419225080| com.example.model.request.JoinFacetMode/2050282955| com.example.model.request.JoinRollupMode/1454680128| com.example.messages.QueryRequest$LemmaMode/1977780053| com.example.model.query.Term/272664779|com.example.model.query.Term $AnchorMode/3777322528|com.example.model.query.Term$SimilarityMode/ 2312654092|com.example.model.token.TokenList/2372341589| com.example.model.token.TokenList$OElement/2873797760| com.example.model.token.Token/3502218633|[C/2871596207| com.example.util.PropertyMap/3603188587|java.lang.String/2004016611| query|example|com.example.model.request.SortSpecification/3782503125| com.example.messages.QueryRequest$SpellCheckMode/613153596| com.example.messages.QueryRequest$StopwordsMode/1127197588| com.example.messages.QueryRequest$SynonymsMode/3597099861|1|2|3|4|1|5| 6|100|0|7|0|1|50|50|8|1|0|0|7|0|3|9|0|0|0|7|0|0|0|0|10|0|0|11|0|12|0|0| 0|0|0|13|14|0|0|15|0|0|16|1|0|17|1|0|0|18|A|0|7|0|0|19|10|97|116|116| 105|118|105|111|0|0|0|1|-14|20|0|1|21|22|21|23|0|0|0|0|7|0|0|0|A|24|0| 2|25|0|26|0|100|27|0|100| -- 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: Window.alert cannot be launched after making an ajax call
Oh!! you are right. Thanks for your help. So careless of me. On Apr 11, 7:23 pm, Patrick Cailly metronome.ba...@worldonline.fr wrote: One of your validate() call is failing or one of the ageBoxes has not been initialized firebug would show ! Patrick - Original Message - From: Benson Fung benson.red...@gmail.com To: Google Web Toolkit google-web-toolkit@googlegroups.com Sent: Monday, April 11, 2011 12:49 PM Subject: Window.alert cannot be launched after making an ajax call Hi, I am trying to display a status after making an ajax call, the following is the code fragment. submitButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { // TODO Auto-generated method stub; for(int i = 0 ; i ageBoxes.length ; i++) { ageBoxes[i].validate(); //ajax call } Window.alert(Finished!); } }); submitButton is a button. ageBoxes is an array of TextBox. When the submit button is clicked, this click handler will be triggered and make ajax call(validate) for all the TextBox. The ajax call can be triggered successfully, however, the Window message box cannot be launched for some reasons. Can anyone give me ideas why the message box cannot be popped up after making a series of ajax call? 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. - Aucun virus trouv dans ce message. Analyse effectu e par AVG -www.avg.fr Version: 10.0.1321 / Base de donn es virale: 1500/3564 - Date: 10/04/2011 -- 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: ClassNotFoundException: http:?
It's passing in http://127.0.0.1:17000/showcase/ com.example.gwt.showcase.Showcase.JUnit/ which is index 0 of the String pool and is reference the 1 in position 107 On Apr 11, 11:16 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Debug in dev mode and put a breakpoint here: com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java: 542) 2011/4/11 kevin kalo...@gmail.com Here is the RCP request that is getting posted. If I debug it, it gets to at [107] (which is the last ...|1|21|22|21|23|0|0|0|0|7|0|0|0|A|24| 0|2|25|0|26|0|100|27|0|100|) which points to http://127.0.0.1:17000/showcase/com.example.gwt.showcase.Showcase.JUn...5CF4819B1A2569FD2C1B62654253B339|com.example.gwt.showcase.client.Serializat ionTestApi in the string array. Which then gets passed into the Class.forName() in the above stack. So it seems like the problem is the Client isn't encoding the request properly. Any idea's how I can figure how what the JS is doing? 7|0|27|http://127.0.0.1:17000/showcase/ com.example.gwt.showcase.Showcase.JUnit/| 5CF4819B1A2569FD2C1B62654253B339| com.example.gwt.showcase.client.SerializationTestApi|serialize| java.io.Serializable|com.example.messages.QueryRequest/1309523977| java.util.ArrayList/3821976829|[Ljava.lang.String;/2600011424| com.example.messages.QueryRequest$FacetFinderMode/1419225080| com.example.model.request.JoinFacetMode/2050282955| com.example.model.request.JoinRollupMode/1454680128| com.example.messages.QueryRequest$LemmaMode/1977780053| com.example.model.query.Term/272664779|com.example.model.query.Term $AnchorMode/3777322528|com.example.model.query.Term$SimilarityMode/ 2312654092|com.example.model.token.TokenList/2372341589| com.example.model.token.TokenList$OElement/2873797760| com.example.model.token.Token/3502218633|[C/2871596207| com.example.util.PropertyMap/3603188587|java.lang.String/2004016611| query|example|com.example.model.request.SortSpecification/3782503125| com.example.messages.QueryRequest$SpellCheckMode/613153596| com.example.messages.QueryRequest$StopwordsMode/1127197588| com.example.messages.QueryRequest$SynonymsMode/3597099861|1|2|3|4|1|5| 6|100|0|7|0|1|50|50|8|1|0|0|7|0|3|9|0|0|0|7|0|0|0|0|10|0|0|11|0|12|0|0| 0|0|0|13|14|0|0|15|0|0|16|1|0|17|1|0|0|18|A|0|7|0|0|19|10|97|116|116| 105|118|105|111|0|0|0|1|-14|20|0|1|21|22|21|23|0|0|0|0|7|0|0|0|A|24|0| 2|25|0|26|0|100|27|0|100| -- 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: ClassNotFoundException: http:?
Debug in dev mode and put a breakpoint here: com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 542) 2011/4/11 kevin kalo...@gmail.com Here is the RCP request that is getting posted. If I debug it, it gets to at [107] (which is the last ...|1|21|22|21|23|0|0|0|0|7|0|0|0|A|24| 0|2|25|0|26|0|100|27|0|100|) which points to http://127.0.0.1:17000/showcase/com.example.gwt.showcase.Showcase.JUnit/|5CF4819B1A2569FD2C1B62654253B339|com.example.gwt.showcase.client.SerializationTestApi in the string array. Which then gets passed into the Class.forName() in the above stack. So it seems like the problem is the Client isn't encoding the request properly. Any idea's how I can figure how what the JS is doing? 7|0|27|http://127.0.0.1:17000/showcase/ com.example.gwt.showcase.Showcase.JUnit/| 5CF4819B1A2569FD2C1B62654253B339| com.example.gwt.showcase.client.SerializationTestApi|serialize| java.io.Serializable|com.example.messages.QueryRequest/1309523977| java.util.ArrayList/3821976829|[Ljava.lang.String;/2600011424| com.example.messages.QueryRequest$FacetFinderMode/1419225080| com.example.model.request.JoinFacetMode/2050282955| com.example.model.request.JoinRollupMode/1454680128| com.example.messages.QueryRequest$LemmaMode/1977780053| com.example.model.query.Term/272664779|com.example.model.query.Term $AnchorMode/3777322528|com.example.model.query.Term$SimilarityMode/ 2312654092|com.example.model.token.TokenList/2372341589| com.example.model.token.TokenList$OElement/2873797760| com.example.model.token.Token/3502218633|[C/2871596207| com.example.util.PropertyMap/3603188587|java.lang.String/2004016611| query|example|com.example.model.request.SortSpecification/3782503125| com.example.messages.QueryRequest$SpellCheckMode/613153596| com.example.messages.QueryRequest$StopwordsMode/1127197588| com.example.messages.QueryRequest$SynonymsMode/3597099861|1|2|3|4|1|5| 6|100|0|7|0|1|50|50|8|1|0|0|7|0|3|9|0|0|0|7|0|0|0|0|10|0|0|11|0|12|0|0| 0|0|0|13|14|0|0|15|0|0|16|1|0|17|1|0|0|18|A|0|7|0|0|19|10|97|116|116| 105|118|105|111|0|0|0|1|-14|20|0|1|21|22|21|23|0|0|0|0|7|0|0|0|A|24|0| 2|25|0|26|0|100|27|0|100| -- 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.
CellTable.getRowData
Hi Guys, I see that CellTable has a method setRowData(List? extends T). As a matter of fact it is a method of the AbstractHasData type. However, I am having trouble finding getRowData() method. What should I use instead ? Thanks Stefan -- 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.getRowData
CellTable#getVisibleItem(indexOnPage); The names are different because setRowData(startIndex) takes an absolute start index, whereas getVisibleItem(indexOnPage) takes an index relative to page start. Thanks, John LaBanca jlaba...@google.com On Mon, Apr 11, 2011 at 11:47 AM, Stefan sbara...@gmail.com wrote: Hi Guys, I see that CellTable has a method setRowData(List? extends T). As a matter of fact it is a method of the AbstractHasData type. However, I am having trouble finding getRowData() method. What should I use instead ? Thanks Stefan -- 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: howto determine development/hosted mode
In our current project, I simply use login-configauth-methodFORM/auth-method.../login-config so the servlet container manages it for us (I don't quite like how it's done –return to URL stored in session, so even a simple login page isn't stateless!– but it works well). Our goal for this project is to delegate everything re. authentication to the container (and we use Jetty, so it's really easy to plug things in if we need to tweak the behavior; for intance, we currently use the standard servlet form login, but I could plug a better one –to my taste– without touching the app, it'd all be transparent). In our previous project, where I implemented the in app login, I couldn't have used the web.xml config (specific environment). But it's no different actually (and I had to do it for another part of he app which doesn't use GWT): when you hit the app's URL and you're not authenticated, you're redirected to (or presented, without redirectionhttp://tools.ietf.org/html/draft-broyer-http-cookie-auth) the login page. This is where you take note of the requested URL. When the login form is submitted, it sends that URL in addition to the user's credentials (or store it in the session, like standard's servlet form login), and if they're valid, the servlet redirects the user back to the initially-requested 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.
onKeyDown getting incorrect keyCode
I've got a textbox that I only want positive floats in. So pretty much I just want to allow digits and a '.'. I have my class implement the KeyboardListener inteface and add the addkeyboardListener(this) to the textbox. I then implement onKeyDown, onKeyPress and onKeyUp with the parameters Widget sender, char keyCode, int modifiers. When I debug the code and break inside onKeyDown, after pressing the . in the number pad I get keyCode = n, then if i press the . in the main keyboard area I get keycode = 3/4. When I press the 1 in the number pad I get a, 2 = b, 3 = c etc... Can anyone help me figure this out. I am using gwt 2.1. -- 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.
Google Eclipse Plugin deletes gwt-servlet.jar when running?
I use Maven + Eclipse and I have a strange problem with the Google Eclipse Plugin deleting some dependencies from the WEB-INF/lib server whenever I do Run As Web Application. Some of the deleted jars are needed to run the app, in particular gwt-servlet.jar. As a result I get a run-time error message, at start-up, saying that IsSerializable is needed. If I manually copy gwt-servlet.jar to WEB-INF/lib it does not help. The only workaround I've found is to place gwt-servlet.jar in src/main/webapp/WEB-INF/lib, whose content is copied when I Run As Web Application. On the other hand, running mvn gwt:run works flawlessly and does copy gwt-servlet.jar to the WEB-INF/lib dir. Is this a known behavior and I'm doing something wrong? Is this a known bug of the GEP? If not, should I report 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.
When will 'Application Cache API' be ready?
Wondering when the 'Application Cache API' for GWT w/HTML5 will be ready? According to : http://code.google.com/p/gwt-mobile-webkit/ it's in progress Depending on a date, it may determine whether we would wait for it or update our latest GWT app with Gears to fill the time between. Any ideas when it can be expected? weeks? months? year? Thanks, David -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
Are you doing all this steps? http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html 2011/4/11 Philippe Beaudoin philippe.beaud...@gmail.com I use Maven + Eclipse and I have a strange problem with the Google Eclipse Plugin deleting some dependencies from the WEB-INF/lib server whenever I do Run As Web Application. Some of the deleted jars are needed to run the app, in particular gwt-servlet.jar. As a result I get a run-time error message, at start-up, saying that IsSerializable is needed. If I manually copy gwt-servlet.jar to WEB-INF/lib it does not help. The only workaround I've found is to place gwt-servlet.jar in src/main/webapp/WEB-INF/lib, whose content is copied when I Run As Web Application. On the other hand, running mvn gwt:run works flawlessly and does copy gwt-servlet.jar to the WEB-INF/lib dir. Is this a known behavior and I'm doing something wrong? Is this a known bug of the GEP? If not, should I report 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. -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
Yes, I am following all of these steps, with the exception of step number 7: Finally, and this is very important, the first time you launch your project using Run As | Web Application (or Debug), you will be prompted to select the war directly. Since the GPE never asks me for a war directory. Also note: it was working before, but it seems to have broken right after I updated to the latest version of the GPE. -- 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.
MyEclipse GWT code gen
Anyone used this? What is your experience with it? Is it worth it or does it cause more problems than it solves? How customizable is it? Thanks, Jeff -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
Is gwt-servlet.jar marked as provided? I wonder if they fixed the bug that provided dependencies were removed. As a test, try making gwt-servelt a compile time dependency. -- 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.
Setting extra information on provided Cells?
Far too often, I seem to have to create new Cells that do very similar functionality to built-in Cells. For example, I've had to create a SelectionCell that can alternately show a listbox as either enabled or disabled, or create a SelectionCell that has different options in the listbox depending on the row type. I've had to create an ImageCell that shows alt text, an EditTextCell that uses a textarea instead of an text box, and a CheckboxCell that displays a radio button instead of a checkbox. In each of these cases, I have to go find the GWT source code for the cell, copy and paste it into a new class in my project, and start making the tweaks necessary to do the desired result. Already this has required tweaks to my code since CheckboxCell has changed since 2.1.0 and so RadioCell has needed corresponding changes. This seems to break the OO design philosophy, but there aren't easy extension points in the above cells that make subclassing easy. Is there a better way to create these Cells without the ugly? Thanks, Derek -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
run mvn eclipse:clean eclipse:eclipse and refresh the project 2011/4/11 Philippe Beaudoin philippe.beaud...@gmail.com Yes, I am following all of these steps, with the exception of step number 7: Finally, and this is very important, the first time you launch your project using Run As | Web Application (or Debug), you will be prompted to select the war directly. Since the GPE never asks me for a war directory. Also note: it was working before, but it seems to have broken right after I updated to the latest version of the GPE. -- 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: CellTable.getRowData
Yes, getVisibleItems() worked perfectly. Thanks On Apr 11, 11:57 am, John LaBanca jlaba...@google.com wrote: CellTable#getVisibleItem(indexOnPage); The names are different because setRowData(startIndex) takes an absolute start index, whereas getVisibleItem(indexOnPage) takes an index relative to page start. Thanks, John LaBanca jlaba...@google.com On Mon, Apr 11, 2011 at 11:47 AM, Stefan sbara...@gmail.com wrote: Hi Guys, I see that CellTable has a method setRowData(List? extends T). As a matter of fact it is a method of the AbstractHasData type. However, I am having trouble finding getRowData() method. What should I use instead ? Thanks Stefan -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
@Juan: I did the mvn eclipse:clean eclipse:eclipse a bunch of times yet, doesn't help. @Jeff: It's not marked as provided... I've just tried making it scopecompile/scope explicitely. As expected, mvn install copies it to WEB-INF/lib, but it gets deleted as soon as I Run As Web Application. -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
If anybody wants to try, this happens with the samples in the gwt-platform project. The process needed to get them to compile and run in Eclipse is described here: http://code.google.com/p/gwt-platform/wiki/CompilingAndDebuggingGwtp -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
I don't use m2eclipse and work well 2011/4/11 Juan Pablo Gardella gardellajuanpa...@gmail.com Try delete the project of the workspace and import again. 2011/4/11 Philippe Beaudoin philippe.beaud...@gmail.com @Juan: I did the mvn eclipse:clean eclipse:eclipse a bunch of times yet, doesn't help. @Jeff: It's not marked as provided... I've just tried making it scopecompile/scope explicitely. As expected, mvn install copies it to WEB-INF/lib, but it gets deleted as soon as I Run As Web Application. -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
Thanks for the help Juan. Just for info, I did try all these cleanup operations before hitting the forum, and they all failed. I want to use m2eclipse because this is a complex multi-component project and it makes dealing with it much easier. Also, it had been working prior to my update to GPE 2.2.1.v201103311225. The wrong behavior is obvious: Run As Web Application deletes a jar it's not supposed to delete. I don't think any amount of clean-up and refreshing will solve that. -- 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: Google Eclipse Plugin deletes gwt-servlet.jar when running?
Try delete the project of the workspace and import again. 2011/4/11 Philippe Beaudoin philippe.beaud...@gmail.com @Juan: I did the mvn eclipse:clean eclipse:eclipse a bunch of times yet, doesn't help. @Jeff: It's not marked as provided... I've just tried making it scopecompile/scope explicitely. As expected, mvn install copies it to WEB-INF/lib, but it gets deleted as soon as I Run As Web Application. -- 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: How to show a HTML table
I would say FlexTable would be the easiest. FlexTable flexTable = new FlexTable(); flexTable.setWidget(0,0, Widget) and so on.. this will create an HTML Table for you where Widget can be anything you like, int, long, String, Image, etc.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable with only div's?
Well, I have just realized that CellList is implemented only with divs. So I can create Cells with tables inside (VerticalPanel and so.). Anyway, thankyou! -- 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 with only div's?
Yes, but if you use Vertical/HorizontalPanel you have html table tags and the idea was to not use that, that is; only use div tags to create a tag. On Mon, Apr 11, 2011 at 8:00 PM, Ramon Salla rsal...@gmail.com wrote: Well, I have just realized that CellList is implemented only with divs. So I can create Cells with tables inside (VerticalPanel and so.). Anyway, thankyou! -- 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.
Is there a way to generate i18n property from Constants?
I have a Constants Interface public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } I want to generate the ExampleConstants_en.properties file that contain addressLine2 = Address Line 2 Is there a way to generate the properties file or I have to create my own? Thanks, Soon -- 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: How to show a HTML table
ResultSet isn't a gwt compatible class, so no that won't work and probably never will. Take a look at http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable To get an idea of how to build a celltable. You also might want to start out here: http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html -- 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: How to show a HTML table
You would have to iterate through the ResultSet int rowCnt = 0; while(rs.next) { int myIntValue = rs.getInt(1); String myStringValue = rs.getString(2); // and so on... for each of the values you want in the table. // then you can add the values to the table. int colCnt = 0; flexTable(rowCnt, colCnt, new Label(myIntValue + )); colCnt = colCnt + 1; flexTable(rowCnt, colCnt, new Label(myStringValue)); // and so on... // at the end increment rowCnt to move down one row. rowCnt = rowCnt + 1; } then add flexTable to whatever widget you want it to show up in. Cheers, David On Apr 11, 3:04 pm, Ahrom brah...@gmail.com wrote: Thanks for your question. if i get: ResultSet rs = stmt.executeQuery( SELECT * FROM MyTable ); i can set: flexTable.setWidget(0,0, rs) ?? 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: Help with / Tutorial for Styling for GWT Beginners
Paul, If you look into Java Doc for CellTable, you should able to see the default css style for CellTable. @ImportedWithPrefix(gwt-CellTable) public interface Style extends CssResource { /** * The path to the default CSS styles used by this resource. */ String DEFAULT_CSS = com/google/gwt/user/cellview/client/ CellTable.css; The same apply to all the widget in GWT. To replace a button's text with image, you will have to write your Custom Class that extends button. On Apr 11, 3:46 pm, PM paul.maddal...@infor.com wrote: Hi everyone! I am new to GWT and am having a hard time finding any good tutorials focused especially on teaching styling with GWT. The few examples I've found provided by Google are rather paltry, and don't really explain much. Some things I'm trying to do would be: - Change the global font style - Change existing widgets' styling, such as the background color of a selected item in a CellTree - Replace a button's text with an image instead - Remove borders of text fields - the list goes on I've been searching and searching, and am not finding anything particularly helpful with styling, so any advice/direction would be greatly appreciated! Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: onKeyDown getting incorrect keyCode
See this thread: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/4d57e31e9a863c09 Maybe with getNativeEvent() method work. Regards. On 11 abr, 13:32, azuniga alessandro.zun...@gmail.com wrote: I've got a textbox that I only want positive floats in. So pretty much I just want to allow digits and a '.'. I have my class implement the KeyboardListener inteface and add the addkeyboardListener(this) to the textbox. I then implement onKeyDown, onKeyPress and onKeyUp with the parameters Widget sender, char keyCode, int modifiers. When I debug the code and break inside onKeyDown, after pressing the . in the number pad I get keyCode = n, then if i press the . in the main keyboard area I get keycode = 3/4. When I press the 1 in the number pad I get a, 2 = b, 3 = c etc... Can anyone help me figure this out. I am using gwt 2.1. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Deploying on Apache
Hi all, I'm just trying to deploy my application for the first time, I want to do it through Apache, there's a lot of stuff online about it, but some instructions are a bit confusing, can anyone point me in the right direction or give some advice? My application is using RPC and serverside I'm using Hibernate which is linked to a mySQL db. I preformed the GWT compile on my project, the in Apache I created a folder called project-name in the webapps folder then pasted the war output from my GWT compile into it. Then ran the server and did localhist:8080/project-name/war/entrypoint.html this brought me to my home page but the center of layout panel was missing. Regards, John. -- 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 developer plugin for ie8
the instructions say: Launch the local server in a browser by either 1) clicking Launch Default Browser or 2) clicking Copy to Clipboard (to copy its URL), then pasting into Firefox, Internet Explorer, Chrome, or Safari. Since this is your first time hitting the development mode server, it will prompt you to install the Google Web Toolkit Developer Plugin. Follow the instructions alas, when I try this ie8 simply says no can find url and provides no prompts for gwt or any other plugings. I tried finding the download address through ie, through google search, through this forum without success so my question is what it the url for the developer plugin for ie 8 thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploying on Apache
Are you mean Tomcat Apache? Because if you use GWT-RPC communication you need a Servlet Container. 2011/4/11 John Doran john.do...@hotmail.com Hi all, I'm just trying to deploy my application for the first time, I want to do it through Apache, there's a lot of stuff online about it, but some instructions are a bit confusing, can anyone point me in the right direction or give some advice? My application is using RPC and serverside I'm using Hibernate which is linked to a mySQL db. I preformed the GWT compile on my project, the in Apache I created a folder called project-name in the webapps folder then pasted the war output from my GWT compile into it. Then ran the server and did localhist:8080/project-name/war/entrypoint.html this brought me to my home page but the center of layout panel was missing. Regards, John. -- 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: Deploying on Apache
Yes, Tomcat Apache.That is a servlet container as far as I know. On Mon, Apr 11, 2011 at 9:48 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you mean Tomcat Apache? Because if you use GWT-RPC communication you need a Servlet Container. 2011/4/11 John Doran john.do...@hotmail.com Hi all, I'm just trying to deploy my application for the first time, I want to do it through Apache, there's a lot of stuff online about it, but some instructions are a bit confusing, can anyone point me in the right direction or give some advice? My application is using RPC and serverside I'm using Hibernate which is linked to a mySQL db. I preformed the GWT compile on my project, the in Apache I created a folder called project-name in the webapps folder then pasted the war output from my GWT compile into it. Then ran the server and did localhist:8080/project-name/war/entrypoint.html this brought me to my home page but the center of layout panel was missing. Regards, John. -- 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. -- 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.
DockLayoutPanel -- Get Width/Height of center panel
Hi. I need to make a canvas element within the center panel of a DockLayoutPanel. However, to make a canvas, I must know the width and height which it will occupy. How can I obtain the width and height of the center area of a DockLayoutPanel? -- 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: DockLayoutPanel -- Get Width/Height of center panel
Could you not set the size of north, south, east and west then get the size of the center based on that information. Seeing as they needed to be added to the deck before center? On Mon, Apr 11, 2011 at 11:29 PM, Matthew Hill matt2...@gmail.com wrote: Hi. I need to make a canvas element within the center panel of a DockLayoutPanel. However, to make a canvas, I must know the width and height which it will occupy. How can I obtain the width and height of the center area of a DockLayoutPanel? -- 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: Deploying on Apache
You simple paste war file in webapps. Don't create any folder 2011/4/11 John Doran john.do...@hotmail.com Yes, Tomcat Apache.That is a servlet container as far as I know. On Mon, Apr 11, 2011 at 9:48 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you mean Tomcat Apache? Because if you use GWT-RPC communication you need a Servlet Container. 2011/4/11 John Doran john.do...@hotmail.com Hi all, I'm just trying to deploy my application for the first time, I want to do it through Apache, there's a lot of stuff online about it, but some instructions are a bit confusing, can anyone point me in the right direction or give some advice? My application is using RPC and serverside I'm using Hibernate which is linked to a mySQL db. I preformed the GWT compile on my project, the in Apache I created a folder called project-name in the webapps folder then pasted the war output from my GWT compile into it. Then ran the server and did localhist:8080/project-name/war/entrypoint.html this brought me to my home page but the center of layout panel was missing. Regards, John. -- 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. -- 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.
UIField NullPointerException
Has anyone else encountered NullPointerExceptions when referencing uifield's which are declared in UiBinder files? In my viewimpl: @UiField SimplePanel canvasContainer; ... public MainViewImpl() { initWidget((Widget) uiBinder.createAndBindUi(this)); canvasContainer.add(..); } In my UiBinder: g:SimplePanel ui:field=canvasContainer /g:SimplePanel The variable canvasContainer is always null. Any ideas? -- 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: UIField NullPointerException
I've never had a NullPointerException. Why do you need to cast the result of uiBinder.createAndBindUi()? How is uiBinder declared? -- 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: Setting extra information on provided Cells?
Why don't you create custom cell like this: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#custom-cell -- 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: make it possible to just use devmode on a particular module while allowing the (issue1408802)
LGTM http://gwt-code-reviews.appspot.com/1408802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Addresses ClassNotFoundException problems when the data structures serialized in (issue1412801)
Reviewers: tobyr, jbrosenberg, Description: Addresses ClassNotFoundException problems when the data structures serialized in the unit cache log files no longer matches due to changes in GWT. Please review this at http://gwt-code-reviews.appspot.com/1412801/ Affected files: M dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java M dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds {moz,webkit}RequestAnimationFrame support to animations. (issue1355805)
http://gwt-code-reviews.appspot.com/1355805/diff/6003/user/src/com/google/gwt/user/client/ui/DeckPanel.java File user/src/com/google/gwt/user/client/ui/DeckPanel.java (right): http://gwt-code-reviews.appspot.com/1355805/diff/6003/user/src/com/google/gwt/user/client/ui/DeckPanel.java#newcode108 user/src/com/google/gwt/user/client/ui/DeckPanel.java:108: // Figure out if the deck panel has a fixed height I'm not sure I'm a good checker, but it smells funny to me that onStart is losing a check that it used to have without (that I saw) routing through the new code in newWidget, nor why newWidget, having decided to animate, doesn't touch onStart. I'm willing to believe there's a good reason for it, but I'd like to know what it is. ;-) http://gwt-code-reviews.appspot.com/1355805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Addresses ClassNotFoundException problems when the data structures serialized in (issue1412801)
The symptom of this problem is that after updating GWT, you get the following exceptions similar to the following: [WARN] Error reading cache file: /tmp/me/gwt-unitCache/gwt-unitCache-012F28614915 java.io.InvalidClassException: com.google.gwt.dev.javac.Dependencies; local class incompatible: stream classdesc serialVersionUID = 4461785342388877006, local class serialVersionUID = -308718918430258746 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:579) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1963) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1887) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at com.google.gwt.dev.javac.PersistentUnitCache.loadUnitMap(PersistentUnitCache.java:472) at com.google.gwt.dev.javac.PersistentUnitCache.access$000(PersistentUnitCache.java:91) at com.google.gwt.dev.javac.PersistentUnitCache$UnitCacheMapLoader.run(PersistentUnitCache.java:120) The data following that exception in the file is ignored, and the cache goes on to operate normally. You'll keep getting those errors until the next time the cache logs are consolidated (every 10 runs or so) This change handles the ClassNotFoundException differently and quietly removes the file. http://gwt-code-reviews.appspot.com/1412801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds {moz,webkit}RequestAnimationFrame support to animations. (issue1355805)
http://gwt-code-reviews.appspot.com/1355805/diff/6003/user/src/com/google/gwt/user/client/ui/DeckPanel.java File user/src/com/google/gwt/user/client/ui/DeckPanel.java (right): http://gwt-code-reviews.appspot.com/1355805/diff/6003/user/src/com/google/gwt/user/client/ui/DeckPanel.java#newcode108 user/src/com/google/gwt/user/client/ui/DeckPanel.java:108: // Figure out if the deck panel has a fixed height On 2011/04/11 15:02:02, fabbott wrote: I'm not sure I'm a good checker, but it smells funny to me that onStart is losing a check that it used to have without (that I saw) routing through the new code in newWidget, nor why newWidget, having decided to animate, doesn't touch onStart. I'm willing to believe there's a good reason for it, but I'd like to know what it is. ;-) I wrote this code some times back, but it looks like the goal was to compute fixedHeight *before* calling run() so we could pass the second argument: if the height is fixed, we're sure the page layout won't change, so in case the deck is out of view (hidden, or displayed outside the viewport's bounds) we actually don't need to run our animation code. Passing the deckElem to run() in this case tells the browser it can skip calling us back if the element is out of view (at its discretion; actually, I believe WebKit only skips such calls on background tabs). http://gwt-code-reviews.appspot.com/1355805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Addresses ClassNotFoundException problems when the data structures serialized in (issue1412801)
http://gwt-code-reviews.appspot.com/1412801/diff/1/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java File dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java (right): http://gwt-code-reviews.appspot.com/1412801/diff/1/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode493 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:493: cacheFile.delete(); Don't you need this same behavior for IOException? The original deserilization exception you were seeing was an InvalidClassException, which is a subclass of IOException. http://gwt-code-reviews.appspot.com/1412801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed pom.xml produced by WebAppCreator. Issue 4878 and Issue 6196. (issue1407804)
http://gwt-code-reviews.appspot.com/1407804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds {moz,webkit}RequestAnimationFrame support to animations. (issue1355805)
LGTM On Mon, Apr 11, 2011 at 11:44 AM, t.bro...@gmail.com wrote: http://gwt-code-reviews.appspot.com/1355805/diff/6003/user/src/com/google/gwt/user/client/ui/DeckPanel.java File user/src/com/google/gwt/user/client/ui/DeckPanel.java (right): http://gwt-code-reviews.appspot.com/1355805/diff/6003/user/src/com/google/gwt/user/client/ui/DeckPanel.java#newcode108 user/src/com/google/gwt/user/client/ui/DeckPanel.java:108: // Figure out if the deck panel has a fixed height On 2011/04/11 15:02:02, fabbott wrote: I'm not sure I'm a good checker, but it smells funny to me that onStart is losing a check that it used to have without (that I saw) routing through the new code in newWidget, nor why newWidget, having decided to animate, doesn't touch onStart. I'm willing to believe there's a good reason for it, but I'd like to know what it is. ;-) I wrote this code some times back, but it looks like the goal was to compute fixedHeight *before* calling run() so we could pass the second argument: if the height is fixed, we're sure the page layout won't change, so in case the deck is out of view (hidden, or displayed outside the viewport's bounds) we actually don't need to run our animation code. Passing the deckElem to run() in this case tells the browser it can skip calling us back if the element is out of view (at its discretion; actually, I believe WebKit only skips such calls on background tabs). http://gwt-code-reviews.appspot.com/1355805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9970 committed - Adds {moz,webkit}RequestAnimationFrame support to animations....
Revision: 9970 Author: jlaba...@google.com Date: Mon Apr 11 07:56:01 2011 Log: Adds {moz,webkit}RequestAnimationFrame support to animations. Refactor Animation with different implementations, adding mozRequestAnimationFrame and webkitRequestAnimationFrame support in addition to the timer-based implementation. ALso adds run() overloads taking an 'element' argument, that visually scopes the animation (so that browsers can, as an optimization, skip steps when the element is not visible to the user). Code Review: http://gwt-code-reviews.appspot.com/1355805/ Author: tbroyer Review by: jlabanca http://code.google.com/p/google-web-toolkit/source/detail?r=9970 Added: /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplWebkitAnimTiming.java Modified: /trunk/user/src/com/google/gwt/animation/Animation.gwt.xml /trunk/user/src/com/google/gwt/animation/client/Animation.java /trunk/user/src/com/google/gwt/layout/client/Layout.java /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.java /trunk/user/src/com/google/gwt/user/client/ui/DeckPanel.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java Mon Apr 11 07:56:01 2011 @@ -0,0 +1,45 @@ +/* + * 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.animation.client; + +import com.google.gwt.dom.client.Element; + +/** + * Base class for animation implementations. + */ +abstract class AnimationImpl { + + /** + * Cancel the animation. + */ + public abstract void cancel(Animation animation); + + /** + * Run the animation with an optional bounding element. + */ + public abstract void run(Animation animation, Element element); + + /** + * Update the {@link Animation}. + * + * @param animation the {@link Animation} + * @param curTime the current time + * @return true if the animation is complete, false if still running + */ + protected final boolean updateAnimation(Animation animation, double curTime) { +return animation.isRunning() animation.update(curTime); + } +} === --- /dev/null +++ /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java Mon Apr 11 07:56:01 2011 @@ -0,0 +1,56 @@ +/* + * 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.animation.client; + +import com.google.gwt.dom.client.Element; + +/** + * Implementation using codemozRequestAnimationFrame/code. + * + * @see a href=https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame; + * Documentation on the MDN/a + */ +class AnimationImplMozAnimTiming extends AnimationImpl { + + private int handle; + + @Override + public void cancel(Animation animation) { +handle++; + } + + @Override + public void run(Animation animation, Element element) { +handle++; +nativeRun(animation); + } + + private native void nativeRun(Animation animation) /*-{ +var self = this; +var handle = th...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle; +var callback = $entry(function(time) { + if (handle != se...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle) { +return; // cancelled + } + var complete = se...@com.google.gwt.animation.client.AnimationImpl::updateAnimation(Lcom/google/gwt/animation/client/Animation;D)(animation, time); + if (!complete) { +$wnd.mozRequestAnimationFrame(callback); + } +}); + +$wnd.mozRequestAnimationFrame(callback); + }-*/; +} === --- /dev/null +++
[gwt-contrib] Re: Adds {moz,webkit}RequestAnimationFrame support to animations. (issue1355805)
committed as r9970 Thanks for another patch! http://gwt-code-reviews.appspot.com/1355805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Reverting r9970 due to build break. (issue1408804)
Reviewers: fabbott, Description: Reverting r9970 due to build break. Please review this at http://gwt-code-reviews.appspot.com/1408804/ Affected files: M user/src/com/google/gwt/animation/Animation.gwt.xml M user/src/com/google/gwt/animation/client/Animation.java D user/src/com/google/gwt/animation/client/AnimationImpl.java D user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java D user/src/com/google/gwt/animation/client/AnimationImplTimer.java D user/src/com/google/gwt/animation/client/AnimationImplWebkitAnimTiming.java M user/src/com/google/gwt/layout/client/Layout.java M user/src/com/google/gwt/user/cellview/client/CellBrowser.java M user/src/com/google/gwt/user/client/ui/DeckPanel.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds {moz,webkit}RequestAnimationFrame support to animations. (issue1355805)
It's always a pleasure to work on GWT: the code is quite clean and easy to read! On a related note (to this patch), I was thinking about using CSS3 transitions for animations in widgets, when supported. The only issue is that there would only be an event fired at the end (ontransitionend). Is it really an issue to call child widget's onResize only once at the end of the animation, or should we fake the animation steps with a timer or requestAnimationFrame? (in which case maybe CSS transitions wouldn't be worth adding). -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9971 committed - Reverting r9970 due to build break....
Revision: 9971 Author: jlaba...@google.com Date: Mon Apr 11 09:09:49 2011 Log: Reverting r9970 due to build break. Review at http://gwt-code-reviews.appspot.com/1408804 Review by: fabb...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9971 Deleted: /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplWebkitAnimTiming.java Modified: /trunk/user/src/com/google/gwt/animation/Animation.gwt.xml /trunk/user/src/com/google/gwt/animation/client/Animation.java /trunk/user/src/com/google/gwt/layout/client/Layout.java /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.java /trunk/user/src/com/google/gwt/user/client/ui/DeckPanel.java === --- /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java Mon Apr 11 07:56:01 2011 +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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.animation.client; - -import com.google.gwt.dom.client.Element; - -/** - * Base class for animation implementations. - */ -abstract class AnimationImpl { - - /** - * Cancel the animation. - */ - public abstract void cancel(Animation animation); - - /** - * Run the animation with an optional bounding element. - */ - public abstract void run(Animation animation, Element element); - - /** - * Update the {@link Animation}. - * - * @param animation the {@link Animation} - * @param curTime the current time - * @return true if the animation is complete, false if still running - */ - protected final boolean updateAnimation(Animation animation, double curTime) { -return animation.isRunning() animation.update(curTime); - } -} === --- /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java Mon Apr 11 07:56:01 2011 +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.animation.client; - -import com.google.gwt.dom.client.Element; - -/** - * Implementation using codemozRequestAnimationFrame/code. - * - * @see a href=https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame; - * Documentation on the MDN/a - */ -class AnimationImplMozAnimTiming extends AnimationImpl { - - private int handle; - - @Override - public void cancel(Animation animation) { -handle++; - } - - @Override - public void run(Animation animation, Element element) { -handle++; -nativeRun(animation); - } - - private native void nativeRun(Animation animation) /*-{ -var self = this; -var handle = th...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle; -var callback = $entry(function(time) { - if (handle != se...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle) { -return; // cancelled - } - var complete = se...@com.google.gwt.animation.client.AnimationImpl::updateAnimation(Lcom/google/gwt/animation/client/Animation;D)(animation, time); - if (!complete) { -$wnd.mozRequestAnimationFrame(callback); - } -}); - -$wnd.mozRequestAnimationFrame(callback); - }-*/; -} === --- /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java Mon Apr 11 07:56:01 2011 +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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
[gwt-contrib] Re: Addresses ClassNotFoundException problems when the data structures serialized in (issue1412801)
http://gwt-code-reviews.appspot.com/1412801/diff/1/dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java File dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java (right): http://gwt-code-reviews.appspot.com/1412801/diff/1/dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java#newcode41 dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java:41: private final byte[] INVALID_CACHE_LOG = { // This seems kinda brittle? I wonder if there's a way to generate an appropriate stream programmatically. Maybe something involving a pair of class loaders, A and B, which are children of the system class loader, but provide one additional class, a CompilationUnit subtype that isn't loaded in the system class loader. You write the stream using A and read it back using B. In addition to testing a class that doesn't exist in B, you could test slightly different versions of the same class in A B and test for the incompatible class change. Not sure if it's worth all that trouble tho, just rambling here. http://gwt-code-reviews.appspot.com/1412801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9972 committed - make it possible to just use devmode on a particular module while allo...
Revision: 9972 Author: unn...@google.com Date: Mon Apr 11 11:56:17 2011 Log: make it possible to just use devmode on a particular module while allowing the others to run in prod mode Review at http://gwt-code-reviews.appspot.com/1408802 Review by: fabio...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9972 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/devmode.js /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js === --- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/devmode.js Thu Feb 24 06:41:44 2011 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/devmode.js Mon Apr 11 11:56:17 2011 @@ -252,7 +252,10 @@ var query = $wnd.location.search; var idx = query.indexOf(gwt.codesvr=); if (idx = 0) { -idx += 12; // gwt.codesvr=.length() == 12 +idx += 12; // gwt.codesvr=.length == 12 + } else { +idx = query.indexOf(gwt.codesvr.__MODULE_NAME__=); +idx += (13 + __MODULE_NAME__.length); // } if (idx = 0) { var amp = query.indexOf(, idx); === --- /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java Mon Mar 21 12:22:19 2011 +++ /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java Mon Apr 11 11:56:17 2011 @@ -339,6 +339,7 @@ outputFilename = getHostedFilenameFull(context); } +replaceAll(buffer, __MODULE_NAME__, context.getModuleName()); String script = generatePrimaryFragmentString(logger, context, result, buffer.toString(), 1, artifacts); === --- /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js Fri Mar 11 13:16:30 2011 +++ /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js Mon Apr 11 11:56:17 2011 @@ -34,7 +34,8 @@ function isHostedMode() { var query = $wnd.location.search; -return (query.indexOf('gwt.codesvr=') != -1); +return ((query.indexOf('gwt.codesvr.__MODULE_NAME__=') != -1) || +(query.indexOf('gwt.codesvr=') != -1)); } // Helper function to send statistics to the __gwtStatsEvent function if it -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed pom.xml produced by WebAppCreator. Issue 4878 and Issue 6196. (issue1407804)
http://gwt-code-reviews.appspot.com/1407804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed pom.xml produced by WebAppCreator. Issue 4878 and Issue 6196. (issue1407804)
http://gwt-code-reviews.appspot.com/1407804/diff/1/user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc File user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc (right): http://gwt-code-reviews.appspot.com/1407804/diff/1/user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc#newcode71 user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc:71: version2.2.0/version On 2011/04/08 22:08:27, drfibonacci wrote: 2.2.0-1 would pick up fix for copyWebapptrue/copyWebapp so it won't copy provided jars It seems 2.2.0-1 is not yet available. i could not get gwt-user into the generated war, either and copyWebApp seems to be only available at that version. Let's defer the use of copyWebApp for later. http://gwt-code-reviews.appspot.com/1407804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9973 committed - Fixed pom.xml produced by WebAppCreator. Issue 4878 and Issue 6196....
Revision: 9973 Author: rchan...@google.com Date: Mon Apr 11 13:05:14 2011 Log: Fixed pom.xml produced by WebAppCreator. Issue 4878 and Issue 6196. Review at http://gwt-code-reviews.appspot.com/1407804 Review by: drfibona...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9973 Modified: /trunk/user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc === --- /trunk/user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc Fri Apr 8 08:46:11 2011 +++ /trunk/user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc Mon Apr 11 13:05:14 2011 @@ -40,9 +40,22 @@ dependency groupIdjunit/groupId artifactIdjunit/artifactId - version4.4/version + version4.8.1/version scopetest/scope /dependency +dependency + groupIdjavax.validation/groupId + artifactIdvalidation-api/artifactId + version1.0.0.GA/version + scopeprovided/scope +/dependency +dependency + groupIdjavax.validation/groupId + artifactIdvalidation-api/artifactId + version1.0.0.GA/version + classifiersources/classifier + scopeprovided/scope +/dependency /dependencies build @@ -55,6 +68,24 @@ plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId + version2.2.0/version + dependencies + dependency +groupIdcom.google.gwt/groupId +artifactIdgwt-user/artifactId +version${gwtVersion}/version + /dependency + dependency +groupIdcom.google.gwt/groupId +artifactIdgwt-dev/artifactId +version${gwtVersion}/version + /dependency + dependency +groupIdcom.google.gwt/groupId +artifactIdgwt-servlet/artifactId +version${gwtVersion}/version + /dependency + /dependencies !-- JS is only needed in the package phase, this speeds up testing -- executions execution @@ -72,13 +103,14 @@ !-- Location of the develop-mode web application structure (gwt:run). -- hostedWebapptarget/www/hostedWebapp !-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -- - soyctrue/soyc + compileReporttrue/compileReport /configuration /plugin !-- Add source folders to test classpath in order to run gwt-tests as normal junit-tests -- plugin artifactIdmaven-surefire-plugin/artifactId + version2.5/version configuration additionalClasspathElements additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement @@ -100,6 +132,7 @@ !-- Copy static web files before executing gwt:run -- plugin artifactIdmaven-resources-plugin/artifactId +version2.4.2/version executions execution phasecompile/phase @@ -121,6 +154,7 @@ !-- Delete gwt generated stuff -- plugin artifactIdmaven-clean-plugin/artifactId + version2.3/version configuration filesets filesetdirectorysrc/main/webapp/@renameTo/directory/fileset @@ -131,7 +165,25 @@ /filesets /configuration /plugin - + + plugin + artifactIdmaven-eclipse-plugin/artifactId + version2.7/version !-- Note 2.8 does not work with AspectJ aspect path -- + configuration + downloadSourcestrue/downloadSources + downloadJavadocsfalse/downloadJavadocs + wtpversion2.0/wtpversion + additionalBuildcommands +buildCommand + namecom.google.gwt.eclipse.core.gwtProjectValidator/name +/buildCommand + /additionalBuildcommands + additionalProjectnatures + projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature + /additionalProjectnatures + /configuration + /plugin + /plugins /build /project -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Addresses ClassNotFoundException problems when the data structures serialized in (issue1412801)
I'm thinking about using ByteArrayOutputStream and serializing 2 special object with readObject() implemented to throw the exception I want to test. On Mon, Apr 11, 2011 at 5:30 PM, sco...@google.com wrote: http://gwt-code-reviews.appspot.com/1412801/diff/1/dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java File dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java (right): http://gwt-code-reviews.appspot.com/1412801/diff/1/dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java#newcode41 dev/core/test/com/google/gwt/dev/javac/PersistentUnitCacheTest.java:41: private final byte[] INVALID_CACHE_LOG = { // This seems kinda brittle? I wonder if there's a way to generate an appropriate stream programmatically. Maybe something involving a pair of class loaders, A and B, which are children of the system class loader, but provide one additional class, a CompilationUnit subtype that isn't loaded in the system class loader. You write the stream using A and read it back using B. In addition to testing a class that doesn't exist in B, you could test slightly different versions of the same class in A B and test for the incompatible class change. Not sure if it's worth all that trouble tho, just rambling here. http://gwt-code-reviews.appspot.com/1412801/ -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1380806)
On Sun, Apr 10, 2011 at 17:02, t.bro...@gmail.com wrote: On 2011/04/10 18:32:38, xtof wrote: I think this is pretty much ready, except for one thing I just thought of. Sorry, I should have thought of that earlier :/ In ClippedImageImpl, we're using a SafeUri in the context of a url() style expression (background: url({3})). However, the contract of SafeUri is currently not tight enough for this to be safe I think: SafeUri would allow e.g., parentheses, colons and dashes in un-escaped form in the URL. In a template where the URL appears in a url() css expression as above, a URL like, http://harmless.com/foo);background:url(javascript:evil()); would pass UriUtils#sanitizeUri (without getting URI-escaped or anything), and would result in script execution via CSS injection. I hadn't looked closely at the SafeStyles API and thought it would be covered there (and ClippedImageImpl would of course be updated to use SafeStyles). But note that, similarly, http://harmless.comonclick=evil() would pass sanitizeUri and could result in script execution via HTML injection (not through SafeHtml/SafeHtmlTemplates though, as the quotes would be escaped). Ok, I think you've convinced me :) I think what you're saying is essentially this: The SafeUri contract only promises that a URL will not result in script execution if dereferenced as-is (which in practice means that its scheme is on a whitelist of ones that don't cause script exec, and in particular isn't javascript:, etc). However, when a SafeUri is embedded in a specific context, it *still* needs to be appropriately escaped. Which is what happens for uri-valued attribute context in SafeHtmlTemplates, and I agree with you that we should treat URI-in-CSS context the same way, and deal with any necessary escaping (or sanitization) there. I do think that it might be worth to constrain SafeUri to only allow syntactically valid URIs, or at least only strings consisting of characters valid in URIs per the RFC. Unfortunately, GWT doesn't implement java.net.URI and the former might be hard to do efficiently in browser-side code; I can't think of any reason the latter isn't sufficient. If we're both in agreement on that, I think we should change the doc of the SafeUri contract to be a bit more specific about that. I.e., instead of 18 /** 19 * An object that implements this interface encapsulates a URI that is 20 * guaranteed to be safe to use (with respect to potential Cross-Site-Scripting 21 * vulnerabilities) in a URL context, for example in a URL-typed attribute in 22 * an HTML document. more something along the lines: /** An object that implements this interface encapsulates a lexically valid (with respect to the set of valid characters specified RFC 3986) URI that when dereferenced, will not result in browser-side execution of script that is not under program control. p Note that this type's contract does not constrain the set of characters that may appear in the URI beyond the requirements of RFC 3986. If the value of a SafeUri object is used in certain contexts of a HTML document, appropriate escaping must be applied. The CSS spec says whitespace, quotes (single and double) and parentheses can be escaped using a backslash: http://www.w3.org/TR/CSS2/syndata.html#uri I believe I've read somewhere that this doesn't work in IE, but I can't find the reference now... One problem I'd worried about is this: parentheses are legal in URIs per the RFC. At the same time, \xx escaping them in the CSS seems to not actually be sufficient; such escaping doesn't prevent the string from being interpreted as CSS syntax (what were they thinking???), see http://code.google.com/p/browsersec/wiki/Part1#CSS_character_encoding. I think we'll just have to %-escape parentheses and single quotes when using a SafeUri in a CSS url(). I'm not really aware of them meaning anything special in *http* URIs; even if RFC 3986 says that %-escaping parentheses won't result in an equivalent URI I don't know of any reason doing so would result in a different resource being addressed on a web server. So maybe we could special-case SafeUri in CSS contexts in the generator? I think we should just ban it (or at least warn), since we don't parse the CSS and can't really tell what context in the CSS the URI is used in. A safe style builder API would know, and would escape the URI correctly. (we already special-case it for it's .asString(), and special-case URL contexts for non-SafeUri values to sanitize them, so...) So I think we need to, - tighten the SafeUri contract so it explicitly specifies which character set can occur in a SafeUri - add a sanitizeAndEscapeUri method to UriUtils that both checks for an allowed scheme and URI/%-escapes characters not in the allowed charset (or maybe rejects URLs with certain funny characters in them). We can quite simply %-escape those chars that are special to CSS (see
[gwt-contrib] Re: Adding a new annotation SafeHtmlTemplates.SafeForCss to specify that a parameter is known to be ... (issue1384801)
LGTM! 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#newcode315 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:315: logger.log(TreeLogger.WARN, On 2011/04/07 15:45:57, jlabanca wrote: I added a comment explaining that we've already checked that the user did not try to use SafeStyles in a non-CSS context. The reason for the split checks is that each Safe type is only valid in one context, so it makes sense to check that separately. Otherwise, we would have to have a !SafeHtml/!SafeStyles check in every context where those classes aren't supported. Conversely, some contexts have or will have a Safe value that is appropriate for that context. Adding the warning in the switch statement allows us to do check if the user could have used a Safe class specific to the current context. If we move the warnings out of the switch statement, then we would have to check the current context to see if the user could have chosen a better Safe value, which would basically add a duplicate (subset) switch statement. I see... Makes sense and SGTM. http://gwt-code-reviews.appspot.com/1384801/diff/8025/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/8025/user/src/com/google/gwt/safecss/shared/SafeStyles.java#newcode75 user/src/com/google/gwt/safecss/shared/SafeStyles.java:75: * liwidth: 1em;/li Should these be {@code}? http://gwt-code-reviews.appspot.com/1384801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors