SuperDevMode with 2.6.0-rc3 and logLevel
Hello, I test the new GWT version 2.6.0-rc3, the dev mode and the compile works with my application, but the super dev mode not work (it work with the 2.5.1 version). I have this problème : workDir: C:\Users\sfeir\AppData\Local\Temp\gwt-codeserver-2871590299772449765.tmp binding: user.agent=safari binding: compiler.useSourceMaps=true binding: locale=en Compiling module cef.kephas.KephasSuperDevMode Validating units: Ignored 33 units with compilation errors in first pass. Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. [ERROR] Errors in 'jar:file:/C:/Users/sfeir/.m2/repository/com/google/guava/guava-gwt/15.0/guava-gwt-15.0.jar!/com/google/common/collect/super/com/google/common/collect/Lists.java' [ERROR] Line 595: No source code is available for type com.google.common.math.IntMath; did you forget to inherit a required module? Computing all possible rebind results for 'cef.kephas.client.resources.HTMLTemplate' Rebinding cef.kephas.client.resources.HTMLTemplate Invoking generator com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator Constructing interface cef.kephas.client.resources.HTMLTemplate Generating method body for communityPopUp() Template with variable in URL attribute context: The template code generator will sanitize the URL. Use SafeUri to specify arguments in a URL attribute context that should not be sanitized. Generating method body for eventPopUp() Template with variable in URL attribute context: The template code generator will sanitize the URL. Use SafeUri to specify arguments in a URL attribute context that should not be sanitized. Computing all possible rebind results for 'cef.kephas.client.view.cell.ImageContraintLoadingCell.Template' Rebinding cef.kephas.client.view.cell.ImageContraintLoadingCell.Template Invoking generator com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator Constructing interface cef.kephas.client.view.cell.ImageContraintLoadingCell.Template Generating method body for img() Template with variable in URL attribute context: The template code generator will sanitize the URL. Use SafeUri to specify arguments in a URL attribute context that should not be sanitized. Hibernate Validator 4.1.0.Final [ERROR] Compiler returned false com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:128) at com.google.gwt.dev.codeserver.ModuleState.init(ModuleState.java:58) at com.google.gwt.dev.codeserver.CodeServer.makeModules(CodeServer.java:120) at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:95) at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:71) at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:49) There are no errors messages, and I can't change the log Level like with Dev Mode or Compile, is there a way to set the Log Level for see the error message ? Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Loading CssResource from a String?
You can use StyleInjector directly or use a dynamic host page and let the server directly embed this customized CSS (or a default one if no customization has been done) into the host page (I assume you store customized CSS in a database anyways). -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: SuperDevMode with 2.6.0-rc3 and logLevel
[ERROR] Errors in 'jar:file:/C:/Users/sfeir/.m2/repository/com/google/guava/guava-gwt/15.0/guava-gwt-15.0.jar!/com/google/common/collect/super/com/google/common/collect/Lists.java' [ERROR] Line 595: No source code is available for type com.google.common.math.IntMath; did you forget to inherit a required module? I would call that an error message ;) Can you make sure you Guava setup is correct? On first sight Guava's Collect.gwt.xml file does inherit Guava's Math.gwt.xml file which in turn makes a super sourced version of IntMath visible to the GWT compiler. So technically it should work. Maybe you just have some sort of Maven class path issue. Generating method body for communityPopUp() Template with variable in URL attribute context: The template code generator will sanitize the URL. Use SafeUri to specify arguments in a URL attribute context that should not be sanitized. Generating method body for eventPopUp() Template with variable in URL attribute context: The template code generator will sanitize the URL. Use SafeUri to specify arguments in a URL attribute context that should not be sanitized. If you want to fix these kind of warnings you should use SafeUri instead of String as parameter type for any kind of urls in your SafeHtmlTemplates. E.g. something like @Template(span class=\{3}\{0}: a href=\{1}\{2}/a/span) SafeHtml messageWithLink(SafeHtml message, *String url*, String linkText, String style); should be @Template(span class=\{3}\{0}: a href=\{1}\{2}/a/span) SafeHtml messageWithLink(SafeHtml message,* SafeUri url*, String linkText, String style); -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: SingleSelectionModel with KeyProvider does not update selected object when data is refreshed
How does your KeyProvider look like ? Do you check on object equality or do you check equality of an id/key of your objects ? On Friday, December 6, 2013 3:35:46 PM UTC+1, stuckagain wrote: Hi, I noticed an issue in the SingleSelectionModel when used in combination with a KeyProvider and updating the cell table with new data. The idea is that I want to retain selection, and that seems to work. What does not work is when I use the getSelectedObject method I get an older version of the object instead of the refreshed version. Is that the way it is supposed to work ? Wouldn't it be smarter to recalculate selection when the data in the table is updated ? I currently implemented a workaround that uses the KeyProvider to find the item in the table that has the same key as the previous selection. David -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Add Widget to the a Panel at first Position?
If you want to add a Widget to a lets say FlowPanel you have to do the following: @UiFieldFlowPanel panel; Widget widget; // some widget panel.add(widget) This appends the widget to the panel, which means it comes a last position of the panel's child Widgets. I.e.: div div class=w1 / div class=w2 / div class=w3 / div class=widget //div *Is there any way to get a newly inserted widget a the first position, i.e., make a prepend, without removing all the other widgets first?* *Is there any way to get a newly inserted widget a a certain index within the parent?* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
How to get HTML source code from URL via servlet
Olá membros, Eu preciso obter o conteúdo HTML quando solicitar uma página nas requisições servlet. Meu objetivo é fazer uma solicitação para determinado site (www.site.com/index.html) e obter em uma STRING o código HTML (HTMLbody./body/HTML) Obrigado -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Diagnose GWT DMP Plugin crashes on Chrome
I have the same issue too, just a less than a minute of testing, the GWT DMP plugin (chrome) will crashed. On Friday, September 27, 2013 1:09:43 AM UTC+8, Rutger van der Eijk wrote: For what it's worth: I have ran in the same issue when I recently started to work on a medium sized laptop. I have never had (and have) this issue with the same and other projects running on a good desktop. Hence it seems not to be project but more machine dependent. I suspect memory, but don't know how to verify this. R On Thursday, 28 March 2013 17:57:29 UTC+1, Michael Prentice wrote: No luck. Just ran into this again. Restarting Chrome, again, fixed it. On Wednesday, March 27, 2013 2:28:50 PM UTC-4, Michael Prentice wrote: OK, I'll give that a shot with: *-XX:MaxPermSize=384m* Thanks a lot. On Wednesday, March 27, 2013 10:03:08 AM UTC-4, xsee wrote: Try setting your maxPermSize in the VM args section of your launch config (mine is at 384). This keeps my Chrome plugin running all day with no problems on a medium sized project. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Layout with nested SplitLayoutPanel
If its parent is already attached, you can just ask it how wide it is. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Layout with nested SplitLayoutPanel
Pleasr provide some code. You just have to make sure the parent and its parents are added before you ask. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Create ImageResource from URL derived from DB?
Is there a way to create an ImageResource from a URL? I have a scenario where I'd like to allow the user to give me a URL to an image that will then be used as the Icon of a certain button later on. The only way I know how to create an ImageResource is via a client bundle and setting @Source. Is there another way to do this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Create ImageResource from URL derived from DB?
On Saturday, December 7, 2013 6:18:06 PM UTC+1, Nolan Brassard wrote: Is there a way to create an ImageResource from a URL? I have a scenario where I'd like to allow the user to give me a URL to an image that will then be used as the Icon of a certain button later on. The only way I know how to create an ImageResource is via a client bundle and setting @Source. Is there another way to do this? You can also just implement the interface (or use com.google.gwt.resources.client.impl.ImageResourcePrototype, but we don't guarantee forward-compatibility with future versions of GWT) The main issue is that the code that uses ImageResource might make use of the image size, so you'd have to return accurate values for the URL. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Add Widget to the a Panel at first Position?
There should be something like panel.insertBefore(...) which could satisfy both your requests. On Dec 7, 2013 4:10 PM, confile michael.gorsk...@googlemail.com wrote: If you want to add a Widget to a lets say FlowPanel you have to do the following: @UiFieldFlowPanel panel; Widget widget; // some widget panel.add(widget) This appends the widget to the panel, which means it comes a last position of the panel's child Widgets. I.e.: div div class=w1 / div class=w2 / div class=w3 / div class=widget //div *Is there any way to get a newly inserted widget a the first position, i.e., make a prepend, without removing all the other widgets first?* *Is there any way to get a newly inserted widget a a certain index within the parent?* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: 2.6.0-rc3
On Saturday, December 7, 2013 12:52:12 AM UTC+1, juan_pablo_gardella wrote: Thanks Colin, it seems this parameter disable some performance improvements: GWT attempts to load pre-compiled GWT module archives (.gwtar files) to increase performance. Consequently, building GWT examples shipped with this release fails with the IBM implementations of the Java Developement Kit (both 1.6 and 1.7). To work around the issue, use the -Dgwt.usearchives=false parameter with gwt-maven-plugin to disable loading of the pre-compiled archives. Source: https://bugzilla.redhat.com/show_bug.cgi?id=919447 And this argument is not listed in java -cp gwt-dev.jar com.google.gwt.dev.HostedMode This only lists arguments, and gwt.userarchives is a system property (BTW, HostedMode ?!?!?) I think someone really should update https://code.google.com/p/google-web-toolkit/wiki/JavaSystemPropertiesAndGwt I'll try to do it if I find time (and remember about it) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: 2.6.0-rc3
Thanks for the link Thomas, but as you said was updated in 2010. HostedMode appears in http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html at the section Development Mode Options. 2013/12/7 Thomas Broyer t.bro...@gmail.com On Saturday, December 7, 2013 12:52:12 AM UTC+1, juan_pablo_gardella wrote: Thanks Colin, it seems this parameter disable some performance improvements: GWT attempts to load pre-compiled GWT module archives (.gwtar files) to increase performance. Consequently, building GWT examples shipped with this release fails with the IBM implementations of the Java Developement Kit (both 1.6 and 1.7). To work around the issue, use the -Dgwt.usearchives=false parameter with gwt-maven-plugin to disable loading of the pre-compiled archives. Source: https://bugzilla.redhat.com/show_bug.cgi?id=919447 And this argument is not listed in java -cp gwt-dev.jar com.google.gwt.dev.HostedMode This only lists arguments, and gwt.userarchives is a system property (BTW, HostedMode ?!?!?) I think someone really should update https://code.google.com/p/google-web-toolkit/wiki/JavaSystemPropertiesAndGwt I'll try to do it if I find time (and remember about it) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: 2.6.0-rc3
On Friday, December 6, 2013 8:03:57 AM UTC+1, Roberto Lublinerman wrote: It seems that we need to build the release with -sourceLevel 6 for it to work with Java 6. I haven't tested it (I'm releasing gwt-maven-plugin at the same time) so I'll wait for Leeroy Jenkins, but I gave it a try at https://gwt-review.googlesource.com/5650 (would have to be cherry-picked to release/2.6) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.