Create complex own styles
Hi, I have a webapp and this app should get different styles. Which is the best way to do this? At the moment we use the webapp.css in the war folder to overwrite the styles. But this isn't nice in my opinion. How does gwt do this with it default styles ? Is it possible to write something simular, so that I only inherit a new Style? Or must I use the ClientBundle and CSSResource ? Thanks in advance Dominic -- 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/d/optout.
Re: Datanucleus enhancement fails with Error: Could not find or load main class com.google.appengine.tools.enhancer.Enhance
Please, I've the same error. I try with Eclipse Juno and Kepler but is the same. El domingo, 9 de marzo de 2014 16:23:54 UTC-3, DeadEternally escribió: http://stackoverflow.com/questions/22281488/com-google-appengine-tools-enhancer-enhance-not-found-in-google-app-engine-proje# I installed the Google Plugin for Eclipse and created a new Google App Engine project just as described in https://developers.google.com/appengine/docs/java/tools/eclipse. I'm getting the error Error: Could not find or load main class com.google.appengine.tools.enhancer.Enhance. I'm using the latest Eclipse Kepler 4.3. I can't believe that google makes such non-working software.. -- 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/d/optout.
extending GWT with framework?
Hi, I would like to use some features that go beyond GWT's standard functionality, e. g. in-browser windows that can be moved and resized. There seem to be several extensions: Smart GWT, GWT-Ext, ... Which one would you recommend? What I am looking for is: - open source / (L)GPL - lightweight - popular (= many users and alive) Thanks Magnus -- 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/d/optout.
Re: extending GWT with framework?
Just because I know your chess app: Maybe your requirement for in-browser windows disappears if you think about adopting GWT Places so you can have different URLs in your app for different locations and people can open stuff in browser tabs instead of in-browser/tab windows. For example you can have one URL per chess game and a user can then open all chess games in browser tabs easily. Or all your menu bar entries could have an URL so you can open them in tabs if needed. At least for in-browser windows, you maybe can use GWTs AbsolutePanel and a small library like gwt-dnd (or HTML 5 drag and drop) for moving widgets around. -- 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/d/optout.
Re: extending GWT with framework?
You can take a look at GWTBootstrap3. It is a library that brings the Bootstrap framework (http://getbootstrap.com/) to GWT. Library Link: https://github.com/gwtbootstrap3/gwtbootstrap3 Demo Link: http://gwtbootstrap3.github.io/gwtbootstrap3-demo/ It will make your application fully responsive and look amazing! --Joshua -- 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/d/optout.
Super Dev Mode 2.6 : NoClassDefFoundError
Hello, As dev mode no longer works with firefox 27, I try to use Super Dev mode but Problem when I use command maven : gwt:run-codeserver NoClassDefFoundError ! Ideas ??? [INFO] Caused by: java.lang.NoClassDefFoundError: fr.sigal.solrclientsmart.client.GreetingServiceAsync [INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeByBinary(UnifyAst.java:1009) [INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1074) [INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1126) [INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.access$900(UnifyAst.java:124) [INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:365) [INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:241) [INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361) [INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273) [INFO] ... 33 more [INFO] [ERROR] at solrclientsmart.java(56): Engine.getGreetingService().getStartParam(new solrclientsmart$2(this, false)) [INFO] com.google.gwt.dev.jjs.ast.JMethodCall [INFO] [ERROR] at solrclientsmart.java(56): Engine.getGreetingService().getStartParam(new solrclientsmart$2(this, false)) [INFO] com.google.gwt.dev.jjs.ast.JExpressionStatement [INFO] [ERROR] at solrclientsmart.java(22): { [INFO] GWT.setUncaughtExceptionHandler(new solrclientsmart$1(this)); [INFO] Engine.getGreetingService().getStartParam(new solrclientsmart$2(this, false)); [INFO] } [INFO] com.google.gwt.dev.jjs.ast.JBlock [INFO] [ERROR] at solrclientsmart.java(22): { [INFO] GWT.setUncaughtExceptionHandler(new solrclientsmart$1(this)); [INFO] Engine.getGreetingService().getStartParam(new solrclientsmart$2(this, false)); [INFO] } [INFO] com.google.gwt.dev.jjs.ast.JMethodBody [INFO] [ERROR] at solrclientsmart.java(22): public void onModuleLoad(); [INFO] [INFO] com.google.gwt.dev.jjs.ast.JMethod [INFO] [ERROR] Compiler returned false [ERROR] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) - My pom.xml : ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; !-- POM file generated with GWT webAppCreator -- modelVersion4.0.0/modelVersion groupIdfr.sigal.web/groupId artifactIdsigalindexing/artifactId packagingwar/packaging version0.0.1-SNAPSHOT/version nameGWT Maven Archetype/name properties !-- Convenience property to set the GWT version -- gwtVersion2.6.0/gwtVersion !-- GWT needs at least java 1.5 -- webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.7/version scopetest/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version scopetest/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version classifiersources/classifier scopetest/scope /dependency dependency groupIdfr.sigal.web/groupId artifactIdsigal-tools-gwt/artifactId version0.0.1-SNAPSHOT/version /dependency dependency groupIdfr.sigal.web/groupId artifactIdsigal-desktop-smart/artifactId version1.0/version /dependency !-- dependency groupIdcom.smartgwt/groupId artifactIdsmartgwt/artifactId version4.0/version /dependency -- dependency groupIdorg.apache.solr/groupId artifactIdsolr-solrj/artifactId version4.6.0/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.6.4/version /dependency dependency groupIdorg.slf4j/groupId artifactIdjcl-over-slf4j/artifactId version1.6.4/version /dependency dependency groupIdorg.jsoup/groupId artifactIdjsoup/artifactId version0.2.2/version /dependency dependency groupIdorg.glassfish/groupId artifactIdjavax.ejb/artifactId version3.1/version scopeprovided/scope /dependency dependency groupIdjavax/groupId artifactIdjavaee-api/artifactId version6.0/version scopeprovided/scope /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4.7/version !-- version1.5.0-b01/version -- /dependency dependency groupIdfr.sigal.web/groupId artifactIdsigal-tools-jee/artifactId version17.1-SNAPSHOT/version /dependency dependency groupIdorg.apache.tika/groupId artifactIdtika-core/artifactId version1.4/version /dependency /dependencies build !-- Generate compiled stuff
Re: Super Dev Mode 2.6 : NoClassDefFoundError
On Monday, March 17, 2014 4:19:21 PM UTC+1, Philippe Pithon wrote: Hello, As dev mode no longer works with firefox 27, I try to use Super Dev mode but Problem when I use command maven : gwt:run-codeserver NoClassDefFoundError ! Ideas ??? [INFO] Caused by: java.lang.NoClassDefFoundError: fr.sigal.solrclientsmart.client.GreetingServiceAsync You might be running into a weird bug we have in gwt-maven-plugin 2.6.0 (fixed in master, will be in 2.6.1). Try using mvn process-classes gwt:run-codeserver. -- 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/d/optout.
Re: Cannot change CSS in dev mode
Maybe to late for you to answer this but maybe others looking for the answer. This helped me in Intellij 13. In the menu choose Run Edit Configuration Select Update resources on frame deactivation Good luck. Den fredagen den 4:e mars 2011 kl. 14:40:53 UTC+1 skrev Андрей Миногин: When running GWT app in dev mode static web resources such as css- files cannot be changed. To change a line in css I must stop server, change and run again. That's really inconvenient. Is there any workaround? 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/d/optout.
Browser compatibility
Hi there, I work for a large company and my manager wants me to find something similar to what GWT does when delivering optimized versions of websites to end users. If the visitor is using Safari/Mac then the server should deliver an optimized version of it, but if it uses IE11 on Win8, then a different version (potentially smaller and optimized to IE11) would be delivered. I know GWT can achieve that by cross-compiling Java to Javascript and that it's based on visual components, but maybe there is something out there (even paid) which would do similar things to existing Spring or more traditional (not component based) web development. I have talked to AKAMAI and F5, but their solutions (FEO) don't optimize Javascript nor CSS according to visitor's browser. And as we have millions of users, we need to make sure our website works on all platforms, otherwise we lose money. If such a thing exists, it should only use one source code (HTML, CSS and JS). We wouldn't want to have to write optimized version (html, css, js) for each different browser, this would be something an agent or precompiler should do for us, automatically. Why not using GWT then? Because our website is content based, and the photoshop experts send their work of art and we have to deliver pixel perfect websites, integrate it with facebook, G+ and others, more like Amazon.com than an ERP or CRM application. Please, is anyone aware of such library or tool? Cheers -- 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/d/optout.
Re: Browser compatibility
GWT can be used to write regular web site aswell. For a more traditional development hav a look at GwtQuery 2014-03-17 16:47 GMT+01:00 Jean Baro jfb...@gmail.com: Hi there, I work for a large company and my manager wants me to find something similar to what GWT does when delivering optimized versions of websites to end users. If the visitor is using Safari/Mac then the server should deliver an optimized version of it, but if it uses IE11 on Win8, then a different version (potentially smaller and optimized to IE11) would be delivered. I know GWT can achieve that by cross-compiling Java to Javascript and that it's based on visual components, but maybe there is something out there (even paid) which would do similar things to existing Spring or more traditional (not component based) web development. I have talked to AKAMAI and F5, but their solutions (FEO) don't optimize Javascript nor CSS according to visitor's browser. And as we have millions of users, we need to make sure our website works on all platforms, otherwise we lose money. If such a thing exists, it should only use one source code (HTML, CSS and JS). We wouldn't want to have to write optimized version (html, css, js) for each different browser, this would be something an agent or precompiler should do for us, automatically. Why not using GWT then? Because our website is content based, and the photoshop experts send their work of art and we have to deliver pixel perfect websites, integrate it with facebook, G+ and others, more like Amazon.com than an ERP or CRM application. Please, is anyone aware of such library or tool? Cheers -- 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/d/optout. -- 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/d/optout.
Re: Browser compatibility
On Monday, March 17, 2014 4:47:57 PM UTC+1, Jean Baro wrote: Hi there, I work for a large company and my manager wants me to find something similar to what GWT does when delivering optimized versions of websites to end users. If the visitor is using Safari/Mac then the server should deliver an optimized version of it, but if it uses IE11 on Win8, then a different version (potentially smaller and optimized to IE11) would be delivered. These days, browsers converge towards a common behavior, so the need for browser-specific code is decreasing in every browser release (and there's one every 6 weeks ;-) ). For GWT, we'll try to move to a single permutation in the future (that will take time though, we first have to remove support for old browsers, up to and including IE9). IE11 for example will use the same code as Firefox in a GWT app. What you're looking for has a name: premature optimization. I know GWT can achieve that by cross-compiling Java to Javascript and that it's based on visual components, but maybe there is something out there (even paid) which would do similar things to existing Spring or more traditional (not component based) web development. GWT does not mandate the use of widgets. Have a look at the http://gwtproject.org website, it uses GWT for progressive enhancement: https://gwt.googlesource.com/gwt-site-webapp/ I have talked to AKAMAI and F5, but their solutions (FEO) don't optimize Javascript nor CSS according to visitor's browser. And as we have millions of users, we need to make sure our website works on all platforms, otherwise we lose money. If such a thing exists, it should only use one source code (HTML, CSS and JS). We wouldn't want to have to write optimized version (html, css, js) for each different browser, this would be something an agent or precompiler should do for us, automatically. Why not using GWT then? Because our website is content based, and the photoshop experts send their work of art and we have to deliver pixel perfect websites, integrate it with facebook, G+ and others, more like Amazon.com than an ERP or CRM application. Please, is anyone aware of such library or tool? As I said above, you could still use GWT. If you prefer working in JS rather than Java, then have a look at the Closure Compiler and Closure Library. By setting the right flags, you can produce different outputs limited to a given range of browsers; so just repeat that for each one of your targets. -- 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/d/optout.
Re: Super Dev Mode 2.6 : NoClassDefFoundError
I tried your solution but same problem... Le lundi 17 mars 2014 16:33:09 UTC+1, Thomas Broyer a écrit : On Monday, March 17, 2014 4:19:21 PM UTC+1, Philippe Pithon wrote: Hello, As dev mode no longer works with firefox 27, I try to use Super Dev mode but Problem when I use command maven : gwt:run-codeserver NoClassDefFoundError ! Ideas ??? [INFO] Caused by: java.lang.NoClassDefFoundError: fr.sigal.solrclientsmart.client.GreetingServiceAsync You might be running into a weird bug we have in gwt-maven-plugin 2.6.0 (fixed in master, will be in 2.6.1). Try using mvn process-classes gwt:run-codeserver. -- 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/d/optout.
Re: Super Dev Mode 2.6 : NoClassDefFoundError
If kind of everything fails you could clone https://github.com/gwt-maven-plugin/gwt-maven-plugin to locally install and use version 2.6.0-1-SNAPSHOT of the plugin in order to get going. It really works quite smooth, though I had to skip tests because of a breaking API change in one of the contributing plugins. Give it a try. I did this myself in order to try out SDM. 2014-03-17 18:04 GMT+01:00 Philippe Pithon pithon.philippe@gmail.com: I tried your solution but same problem... Le lundi 17 mars 2014 16:33:09 UTC+1, Thomas Broyer a écrit : On Monday, March 17, 2014 4:19:21 PM UTC+1, Philippe Pithon wrote: Hello, As dev mode no longer works with firefox 27, I try to use Super Dev mode but Problem when I use command maven : gwt:run-codeserver NoClassDefFoundError ! Ideas ??? [INFO] Caused by: java.lang.NoClassDefFoundError: fr.sigal.solrclientsmart.client.GreetingServiceAsync You might be running into a weird bug we have in gwt-maven-plugin 2.6.0 (fixed in master, will be in 2.6.1). Try using mvn process-classes gwt:run-codeserver. -- 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/d/optout. -- 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/d/optout.
AutoBean unstable on server side
I think I've run across a known bug (https://code.google.com/p/google-web-toolkit/issues/detail?id=5926). I only wish I hadn't spent so long puzzling over it. I had been hand-rolling my server-side JSON, but as I would refactor interfaces, I found the JSON key strings on the server getting out-of-sync with my client side methods. After reading more on AutoBean, I figured I could create objects with the as() method, populate them, and then dump the payload back to my client. It looked slicker, and, if a method name was changed, Eclipse would do the work of updating stuff I might miss until I compiled and ran it. (And I'm using as() in my unit tests to avoid the time spent with a GWT.create() call.) For me this works fine with small objects, like a hand full of keys and maybe one small JSONArray. However when I attempted to create a much larger, more complex object--more keys, longers lists, and lists within lists, etc.--I'm seeing all sorts of bugs: A 13-member list with all members the same (the last value added), *many* fields missing in the JSON payload (upwards of hal!), and in one case, a setter method for a boolean that crashes with an IllegalArgumentException when called with a boolean! So far this on the server side (and Issue #5926 is specifically server). Since I dunno where the tipping point is, I'm going to pull *all* my server side AutoBean and, once again, hand-roll the JSON. Someone with access may want to annotate the AutoBean wikihttps://code.google.com/p/google-web-toolkit/wiki/AutoBeanwith this issue. Sucn a note may have saved me a lot of work. -- 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/d/optout.
How to capture all key events?
Using the DOM directly you'd add an event listener to the document (there are several ways to do this). But looking at the GWT API I don't see a way to do this. I've looked at Window and Document and neither seem to have anything about adding key handlers. In order do this you need to use something with a HasKeyPressHandler. But this only works on certain elements, and more importantly, it only works when the element is focused and I'd like to capture all key events instead. Is there a way to do this in GWT? -- 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/d/optout.
Export celltab to pdf
Hello, In my gwt application, i have a celltab which containes data relatifs to class devis. i create a button export that allow me to generate pdf file for a celletab selected.how should i do that ? i think i have to use itext api but i don't khnow how.Even that, should i do the export on client side or sever side ? please help -- 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/d/optout.
Re: How to capture all key events?
This might do what you need: http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/Event.html#addNativePreviewHandler(com.google.gwt.user.client.Event.NativePreviewHandler) On Monday, March 17, 2014 2:39:37 PM UTC-7, rjcarr wrote: Using the DOM directly you'd add an event listener to the document (there are several ways to do this). But looking at the GWT API I don't see a way to do this. I've looked at Window and Document and neither seem to have anything about adding key handlers. In order do this you need to use something with a HasKeyPressHandler. But this only works on certain elements, and more importantly, it only works when the element is focused and I'd like to capture all key events instead. Is there a way to do this in GWT? -- 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/d/optout.
Re: How to capture all key events?
Thanks, not exactly what I was looking for, but I can probably find a way to make this work in the way i'd like. Thanks! On Mon, Mar 17, 2014 at 4:10 PM, Jim Douglas jdou...@basis.com wrote: This might do what you need: http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/Event.html#addNativePreviewHandler(com.google.gwt.user.client.Event.NativePreviewHandler) On Monday, March 17, 2014 2:39:37 PM UTC-7, rjcarr wrote: Using the DOM directly you'd add an event listener to the document (there are several ways to do this). But looking at the GWT API I don't see a way to do this. I've looked at Window and Document and neither seem to have anything about adding key handlers. In order do this you need to use something with a HasKeyPressHandler. But this only works on certain elements, and more importantly, it only works when the element is focused and I'd like to capture all key events instead. Is there a way to do this in GWT? -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/2wBydkvZeCk/unsubscribe . To unsubscribe from this group and all its topics, 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/d/optout. -- 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/d/optout.
SuperDev Mode - is compile after change required?
Hi, I just started with SuperDev Mode, and so far it is good. I am just wandering, do I need to click on Compile button every time I make some change in code? I am using eclipse for my IDE and starting SuperDev mode via run configuration. Thanks, Milan -- 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/d/optout.
Re: SuperDev Mode - is compile after change required?
Yes you have. SDM does not use any browser plugin magic so updated JavaScript based on your updated Java code needs to be generated somehow. You can drag and drop the compile button into your bookmark bar so you don't have to click twice (Dev Mode On - Compile). -- 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/d/optout.
Re: Export celltab to pdf
You have to write servlet for export data. Do below steps : 1) get selected data from selection handler. 2) create rpc call which set selected data in http session of server. 3)on success, call submit form that call servlet. 4) write code to read data from session attribute and use itext tag for formatting data in servlet 5) finally generate pdf Thanks, Bhumika On Mar 18, 2014 4:27 AM, Amir kessentini kessentini.a...@gmail.com wrote: Hello, In my gwt application, i have a celltab which containes data relatifs to class devis. i create a button export that allow me to generate pdf file for a celletab selected.how should i do that ? i think i have to use itext api but i don't khnow how.Even that, should i do the export on client side or sever side ? please help -- 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/d/optout. -- 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/d/optout.
Re: [gwt-contrib] Re: Classloader issues for server-side code in DevMode with GWT 2.6
Hi Thomas, (or rather, it'll work too well, and won't detect that something is missing in WEB-INF/lib. I'm attempting to follow along, but classloader semantics are fun, so apologies if I'm wrong somewhere... So, to clarify, if I have a dependency, say foo.jar, that isn't GWT, and isn't Jetty, but my server-side code uses it, with your proposal, would it now have to be in (say) src/main/webapp/WEB-INF/lib? Or could it still come from the Eclipse classpath like it does today? My two cents is that foo.jar being on the Eclipse classpath is just fine/what I generally prefer anyway, even if it works too well, as it means I can skip the make a war or put all jars into WEB-INF/lib steps while just developing. That said, you are right that it could lead to false positives, but I would really hope that developers are not using it works on my machine in dev mode against my exploded war as their criteria for will work in production. Perhaps that is too optimistic. - Stephen -- 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/d/optout.
Re: [gwt-contrib] Re: Classloader issues for server-side code in DevMode with GWT 2.6
On Monday, March 17, 2014 4:50:47 PM UTC+1, Stephen Haberman wrote: Hi Thomas, (or rather, it'll work too well, and won't detect that something is missing in WEB-INF/lib. I'm attempting to follow along, but classloader semantics are fun, so apologies if I'm wrong somewhere... So, to clarify, if I have a dependency, say foo.jar, that isn't GWT, and isn't Jetty, but my server-side code uses it, with your proposal, would it now have to be in (say) src/main/webapp/WEB-INF/lib? Neither one (depending on your build tool though). Maven (or Gradle) are built on the same rule that src/ is for sources, and is readonly as far as the build tool is concerned. Your dependencies coming from Maven will ultimately go to target/${project.build.finalName}/WEB-INF/lib, and this (target/$project.build.finalName} is what you should use as your -war directory. See http://web.archive.org/web/20130619170526/https://developers.google.com/eclipse/docs/faq#gwt_with_maven (don't ask me why it has been removed from the GPE FAQ, I have no idea) http://stackoverflow.com/q/5719118/116472 is an example of what will happen if you don't follow that rule. So your foo.jar will be in target/${project.build.finalName}/WEb-INF/lib, put there by your build tool. AFAIK, the gwt-gradle-plugin does the right thing too (but doesn't integrate with the GPE; or rather, the GPE doesn't integrate with anything else than Maven). That's for managed dependencies. For manual dependencies, then yes, I'd argue you should put them in your WEB-INF/lib. Or could it still come from the Eclipse classpath like it does today? Jens proposal is to make it fail in this case. I don't have a strong opinion though; I'd be fine just using the system classloader as the parent of the webapp classloader (the end result would be the same as if you deployed all your code and dependencies to Jetty's lib/ or lib/ext/ or Tomcat's shared/ ); I wonder though what newbies would prefer (or rather, what would be best for them, before they can even forge an opinion, by the principle of least surprise). I wonder whether we should output warnings when loading things from the classpath rather than WEB-INF/lib; knowing how things work and knowing what I do, I'd be fine leaving without warnings, I think newbies would need/prefer warnings. My two cents is that foo.jar being on the Eclipse classpath is just fine/what I generally prefer anyway, even if it works too well, as it means I can skip the make a war or put all jars into WEB-INF/lib steps while just developing. That said, you are right that it could lead to false positives, but I would really hope that developers are not using it works on my machine in dev mode against my exploded war as their criteria for will work in production. Perhaps that is too optimistic. As I said, we're power users, we're used to build tools assembling our apps, how java webapps are organized with their WEB-INF/classese and WEB-INF/lib, etc. We can tolerate one behavior or the other, possibly even having a switch to choose the one we prefer for our environment. The problem has more to do with newbies, of the kind that download the GPE, create a sample app, copy/paste some code from StackOverflow, downloading the needed dependencies manually, and finally publishing their app to AppEngine; all of that without exiting Eclipse, without any build tool other than Eclipse and the GPE. Maybe it's a GPE issue after all (I never tried IntelliJ IDEA for webapps; I tend to prefer embedded servers these days, rather than wars deployed into servlet containers). -- 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/d/optout.
Re: [gwt-contrib] Re: Classloader issues for server-side code in DevMode with GWT 2.6
Maybe it's a GPE issue after all (I never tried IntelliJ IDEA for webapps; I tend to prefer embedded servers these days, rather than wars deployed into servlet containers). You have the same issue in IntelliJ. IntelliJ can create an example GWT project that will have src + war folder and gwt-user on class path. However inside that war folder there is no WEB-INF/lib folder generated. Because that folder does not exist by default it is maybe even more likely that a newbie directly adds a library to the project/module instead of creating WEB-INF/lib and manually put the lib folder on class path. However if you want to export that project to a war file within IntelliJ you would define a Java web application artifact and while doing so, IntelliJ creates red error messages (along with a single click fix button) which say which libraries are required by the project but are missing in the artifact. So you get the sense that your artifact will not work if you ignore and don't fix all these error messages. If you want to deploy to AppEngine from within IntelliJ you need to add the AppEngine facet and this will again need an artifact. -- J. -- 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/d/optout.