Stockwatcher tutorial + gwt ease
I've been getting along fine without frameworks until now and finally decided to pick one. I'm split between symfony and gwt. and would like to know how easy it would be for a realative beginner in the app game to pick up gwt. whats the learning curve. Also i'd like some help figuring out why i cant get the Stockwatcher( http://code.google.com/webtoolkit/tutorials/1.6/create.html ) tutorial to work after several hours of frustration. I'm running the google web toolkit with eclipse ganyemede and have both the jre and jdk installed. am i missing something? Here is the error message I get when I try to run it as a web app. I'm completely stuck and would really appreciate any suggestions. [ERROR] Failure while parsing XML org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.90) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:307) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: 155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java: 536) at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426) at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Thanks in advanced. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Call to load prototype.js from Google CDN causing errors
hi, My problem is that my application is hosted on a https enabled server and recenty all of a sudden the code has started to load up http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js, and which is why i am getting mixed content warning on IE. My problem is that i have not made any change whatsoever in the code to load this prototype.js from online repositories then how come its making a call to google servers? Any one have any heads up about this? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
JSNI issues
I am not a JS developer and use it pretty much by example, so it might be that I am missing something really basic below. I have come across problems using JSNI in the following 2 scenarios: 1. I use Google Visualization API successfully in JS as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JS file google.load('visualization', '1', {'packages':['piechart']}); // == future JSNI problems occur here var chart = new google.visualization.LineChart (document.getElementById('GoogleVisChart')); // other JS commands to draw the chart ** and then try to write a wrapper using GWT JSNI as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JAVA file class GChart { static { _init(); } private static native void _init() /*-{ // === ERROR at this function $wnd.google.load('visualization', '1', {'packages': ['piechart']}); }-*/; JavaScriptObject gvis; public GChart( String id ) { gvis = _chart( id ); } private native JavaScriptObject _chart( String id ) /*-{ return new $wnd.google.visualization.LineChart ($wnd.document.getElementById( id ) ); }-*/; // methods to draw the chart through native functions ** The GWT compiler gives the following error for the above code [ERROR] Unable to load module entry point class com.google.gwt.app.testGViz.client.TestGViz (see associated exception for details) java.lang.RuntimeException: Failed to invoke native method: @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments. at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java: 132) at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke (ModuleSpaceMoz.java:98) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:248) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:107) at com.google.gwt.app.testGViz.client.GChart._init(GChart.java) at com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7) at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad (TestGViz.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$100 (BrowserWidgetMoz.java:35) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz $ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:59) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java: 1428) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) ** Moving the statement in the native _init function to the constructor does not help either. To get it to work, I have to move it out to the HTML file HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript google.load('visualization', '1', {'packages':['piechart']}); /script ** This was also suggested in http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/583dc26de8595958/bcbb4d6bb7236f22?lnk=gstq=jsniutoken=qRnbnjUAAAB8wAYSTNbu8_hi0ZNe2Xc4tU3gpchqHpzsKQqE7zGIYkIWfTZ5-aftLfGBx4hvV6kGKZOOAsC6ELWUwMHP3Sz1 Although this works, I do not understand why I could no do the google.load through JSNI. In the meanwhile, this is not an issue as GWT now provides its own wrappers for the Google Visualization API. But, I would still like to understand the error. 2. I am trying this time to write a wrapper for another Visualization library, Protovis. An example JS use case is as follows: HTML file script type=text/javascript src=protovis.js/script JS file var vis = new pv.Panel().canvas(PVis); // == future JSNI problems occur at this point var line = vis.add(pv.Line); // add data and attributes to line vis.render(); ** I write a GWT wrapper as follows JAVA file class PChart { JavaScriptObject pvis; public PChart( String id ) { pvis = _chart( id ); } private native JavaScriptObject
Re: Setting DataSource (JNDI) in GWT 1.6 (hosted mode - Jetty)
You have to add the jetty-*.jar's in the launch configuration properties' classpath. The project classpath is not used for the internal jetty server. I made a description in my blog (in german): http://curtstech.blogspot.com/2009/07/gwt-16-hosted-mode-internen-jetty.html -Henning On 5 Jun., 18:59, Mark mar...@gmail.com wrote: Hi Chad, I followed your guide, but I get an error when starting up hosted mode: [WARN] Config error at New id=website class=org.mortbay.jetty.plus.naming.Resource Argjava:comp/env/jdbc/database/Arg Arg New class=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource Set name=Urljdbc:mysql://localhost:3306/mydbname/Set Set name=Usermyusername/SetSet name=Passwordmypassword/ Set/New /Arg /New I read around and it seems that jetty thinks that the jetty-plus and jetty-naming jars are not in my classpath, but I did add them to my project file - any idea what could be missing? Shouldn't we have an official example from GWT as well for this now that the switch has been made to Jetty? Seems like a common thing people would want to do, Thanks, Mark On May 7, 12:24 pm, Chad cha...@sbcglobal.net wrote: You can do this by configuring ajetty-web.xml file. I blogged what worked for us at: http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html On Mar 11, 11:16 pm, wiltonj wilt...@gmail.com wrote: Hi, How to setting DataSource in GWT 1.6 (Hosted mode -Jetty)? Hoping for some guidance. Thanks Regards, Wilton --~--~-~--~~~---~--~~ 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: Creating Stand Alone Composite??
Manolo, Thank you very much for the info! While I wasn't able to compile without an entry-point (the com/module1/Include.gwt.xml from you example was causing problems as it seems to want an entry-point to be able to compile) I was able to create a dummy entry point. That gave me the same result as your example, and I'm now able to do what I wanted. Thank you very much! On Jul 19, 1:16 am, Manuel Carrasco manuel.carrasc...@gmail.com wrote: If you have the composite, create a new .gwt.xml file in this module without any entry-point tag and include this new .gwt.xml file in the other module. For instance: - you have your composite in the name space 'com.module1.client' and the content of com/module1/Module1.gwt.xml is: module inherits name='com.google.gwt.user.User' / entry-point class=com.module1.client.Module1/ /module - you want to use your composite in com.application.client whose com/application/Application.gwt.xml is module inherits name='com.google.gwt.user.User' / entry-point class=com.module1.client.Module1/ /module - create a new file in module1: com/module1/Include.gwt.xml module inherits name='com.google.gwt.user.User' / /module - Modify your application's descriptor module inherits name='com.google.gwt.user.User' / inherits name='com/application/Application'/ entry-point class=com.module1.client.Module1/ /module You have to be sure that all the source classes are in your classpath. BTW: You can pack set of composites and widgets taking care that the module's descriptor has no any entry-point tag and the .jar file contains the java source files. Manolo Carrasco On Sun, Jul 19, 2009 at 4:40 AM, ToddP todd.prick...@gmail.com wrote: I'm trying to create a stand alone composite widget and am totally clueless as to how. I want to create a widget that will be able to be used in any of my multiple GWT modules. Every example on the web that I can find defines the composite in the same module that displays the composite. I need to see an example of two modules, one defining the composite and one that consumes the composite. If anyone has an example or can point to a web article showing how, I'd GREATLY appreciate it. TIA --~--~-~--~~~---~--~~ 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: why GWT hosted mode showed a blank page?
thanks. I clear the cache of IE,and try it againit run ok I thought that is a bug of hosted mode? 2009/7/18 Adam S servic.a...@gmail.com: I have similar problem. I use gwt with with smartGwt, eclipse (google plugin) and embeded server for hosted mode under windows. App isn't working under hosted mode but compiled in IE, Chrome and FF browers is working fine. That's really strange for me, because it worked fine, day earlier. Debuger show that compiler go entire code to .draw() method ( smartGwt method ) and i suspect something isn't working with injecting nocache.js into host html. But no errors are shown. Thats disturbing me for a while till now... --~--~-~--~~~---~--~~ 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: Creating Stand Alone Composite??
Thanks Bruno and Manolo! When I compiled (from the GWT plugin to Eclipse) I got an error saying my .xml file was missing the entry point element. I worked around this by simply creating a dummy entry-point and was able to move on. Thanks again! On Jul 19, 11:03 am, Nuno brun...@gmail.com wrote: If you create a new project with a module, dont add any entrypoint to this module.Then create all the composites you want in this module. after you may create a jar file of this project (to use anywhere) or you can just import this project into yours (click properties - java build path - projects and add your project - if you have the jar file click on libraries and add the jar.) Then just go to your gwt.xml file and add a line like: inherits name=path.to.your.gwt.xml.File/ the File is the name of the gwt.xml file. example: if the path to gwt.xml file is: com.test.toolkit.Toolkit.gwt.xml put: = com.test.toolkit.Toolkit This way, you can create many modules in the toolkit project, and group the composites by functionality. []s, Bruno BIlescky On Sat, Jul 18, 2009 at 11:40 PM, ToddP todd.prick...@gmail.com wrote: I'm trying to create a stand alone composite widget and am totally clueless as to how. I want to create a widget that will be able to be used in any of my multiple GWT modules. Every example on the web that I can find defines the composite in the same module that displays the composite. I need to see an example of two modules, one defining the composite and one that consumes the composite. If anyone has an example or can point to a web article showing how, I'd GREATLY appreciate it. TIA -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Using Rack applications inside Hosted mode
Wrote a blog article detailing how one can use any Rack application inside of GWT's Hosted mode servlet container. This allows you to develop your application without needing to deploy to your backend all the time. http://juliocapote.com/post/145035194/using-rack-applications-inside-gwt-hosted-mode --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
get Iframe and form from java
Dear I have set the iframe to the Panel using the Panal setHtml method as follows editPanel.setHtml( center + brbr + iframe name='+iFrameName+' id='+iFrameName+' scrolling='yes' + src= + urlVM + width='800' height='931' /iframe + brbr + /center ); and i need to get the form inside the iframe using java in another panel How to get that Pls reply me as soon as possible Thanks reguards Saneera --~--~-~--~~~---~--~~ 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: Stockwatcher tutorial + gwt ease
I recently learned GWT. And I got my StockWatcher app running at once. GWT is not difficult at all. It should be easy to pick up. The documentation and the mailing list are great too. Btw, a little google search for your error popped up a thread. Hope it helps you: https://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f75ed85162639b32?fwc=1 -neha On Sun, Jul 19, 2009 at 3:08 PM, Manny manster...@gmail.com wrote: I've been getting along fine without frameworks until now and finally decided to pick one. I'm split between symfony and gwt. and would like to know how easy it would be for a realative beginner in the app game to pick up gwt. whats the learning curve. Also i'd like some help figuring out why i cant get the Stockwatcher( http://code.google.com/webtoolkit/tutorials/1.6/create.html ) tutorial to work after several hours of frustration. I'm running the google web toolkit with eclipse ganyemede and have both the jre and jdk installed. am i missing something? Here is the error message I get when I try to run it as a web app. I'm completely stuck and would really appreciate any suggestions. [ERROR] Failure while parsing XML org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.90) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:307) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: 155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java: 536) at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426) at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Thanks in advanced. --~--~-~--~~~---~--~~ 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 Application +Memory Leakage
HI All, I am facing memory leakage problem in my application. I searched on Google but i found that memory leakage may be because of EXT JS because of some cyclic references in between JSNI and DOM objects and browser is not able to handle these DOM objects for garbage collection. I am using following technologies in my application : - GWT 1.6.4 GWT EXT Gilead When i explorer my code then i found some reason that may be cause of Memory Leakage as :- 1.) While i am clearing the widget or setting it's reference to null then i am not removing the listeners explicitly. But i am feeling, this memory leakage is not only because of this not removing listener explicitly and now i am not able to understand how can i remove this problem. So, please tell me if anybody have an idea? Thanks and regards, Sanj --~--~-~--~~~---~--~~ 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 module needs to be (re)compiled
Fixed. Summary here: http://code.google.com/p/gwt-maven2-starter-app/issues/detail?id=5can=1 On Jul 7, 4:58 pm, Sam Brodkin sambrod...@gmail.com wrote: I had the same problem. I took the error message's advice and ran it in hosted mode, clicked compile/Browse, then i took the /war directory (or with maven maybe it's in src/main/webapp for you) and copied it to the deploy dir of jboss (tomcat). I renamed it war.war and started the server (put an exploded war on the server. That seemed to do it. Now to figure out why the codehaus maven plugin isn't producing an artifact with GWTcompiledcode... On Jul 1, 8:48 am, Markus88 markus_ran...@web.de wrote: On 26 Jun., 10:38, strindberg jesper.holmb...@gmail.com wrote: I'm having some problems getting Gwt 1.6.4 to run on my Tomcat 5.5, using the codehouse maven-gwt-plugin 1.1. I can run my project fine in hosted mode (from Eclipse), but when I build a war and deploy it (using the maven plugin), and then go to the web page containing the call to my Gwt module, I get a dialog saying GWT module se.Interactive needs to be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. So obviously something goes wrong in the Maven build, but I can't see anything obvious. I have loooked in the war file and can see all the expected files there, including the Gwt files. I realize this might very well be caused my some strange interaction in the maven-gwt-plugin, but I thought I should ask here as well. And does anyone have any tips on how I could go about troubleshooting this? The above message doesn't really give me any chance to see what's going on. I'm fairly new to Gwt, so any debugging tips you might have would be welcome. I've got exactly the same Problem! Help Please... I'm using Smart-Gwt on a Bea Weblogic Server and Maven build It works fine with the hosted Mode, but when I start it with the explorer it says GWT module UserProjekt needs to be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
rashmi dixit wants to chat
--- rashmi dixit wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-ee39210bcd-4104d93eba-6202a5a10b123ddc You'll need to click this link to be able to chat with rashmi dixit. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with rashmi dixit, visit: http://mail.google.com/mail/a-ee39210bcd-4104d93eba-6202a5a10b123ddc Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). --~--~-~--~~~---~--~~ 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: Why ImageBundleGenerator does not optimize the generated icon set?
On 15 juil, 04:31, Kelvin kelvin...@gmail.com wrote: I create a SilkImageBundle and put all silk icons library to it. the silk icon library contains 1000 icons and just a few hundreds of them are being used by the application. And I supposed that GWT can optimize the icon set and contains only the icons that being used. However, the generated icon set is the full set of silk library. To answer your question (why is it behaving that way?): the generators run before any optimization of the code, so the ImageBundleGenerator cannot know which method (hence, image) is actually used and which isn't. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Automatic Testing
Hello! I have a question that you might be able to answer. We are developing a GWT application and would like some form of Automatic testing of the GWT application. Is there any good way to do this? Could someone please point me in the right direction? Regards Joakim Sjöberg Developer Artificial Solutions Scandinavia AB --~--~-~--~~~---~--~~ 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: Automatic Testing
Normally I create GWTTestCase tests and run they using maven. Them the maven task is run periodically using hudson in a linux server. You have to have in consideration these issues: 1.- GWT tests needs to be defined the DISPLAY, I use a headless xserver: Xvfb, but in hudson there is a plugin that makes use of Xvnc. 2.- I was unable to run GWT tests in 64bit machines. So In 64bit servers I use a 32bit java version. 2009/7/20 Joakim Sjöberg joakim.sjob...@artificial-solutions.com Hello! I have a question that you might be able to answer. We are developing a GWT application and would like some form of Automatic testing of the GWT application. Is there any good way to do this? Could someone please point me in the right direction? Regards *Joakim Sjöberg Developer* *Artificial Solutions Scandinavia AB* * * --~--~-~--~~~---~--~~ 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: Automatic Testing
If you're looking to write unit or integration tests for GWT client code, I've written an article about my experiences here: Google Web Toolkit: Writing Ajax Applications Test-First http://blog.danielwellman.com/2008/11/test-first-gwt-article-in-november-2008-better-software-magazine.html If you've finished your application and want to add simple end-to-end smoke tests, you might want to consider using WebDriver or Selenium. To add temporary DOM IDs which only appear for testing (which will make writing those WebDriver or Selenium tests easier), consider using the method on UIObject called ensureDebugId: http://tinyurl.com/mdwyky or http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/UIObject.html#ensureDebugId%28com.google.gwt.dom.client.Element,%20java.lang.String%29 Dan On Jul 20, 5:38 am, Joakim Sjöberg joakim.sjob...@artificial- solutions.com wrote: Hello! I have a question that you might be able to answer. We are developing a GWT application and would like some form of Automatic testing of the GWT application. Is there any good way to do this? Could someone please point me in the right direction? Regards Joakim Sjöberg Developer Artificial Solutions Scandinavia AB --~--~-~--~~~---~--~~ 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: Image Bundle not working in IE
The fact that it works when in Hosted mode in IE, but not when it's deployed is making me think it is a security thing. I'm just not sure the work around. I've tried various security settings, but can't get it to show up. THe path looks right to the clear cache, not sure waht else could be messing this up. Cause it looks like it's putting the correct image sizes (Things next to it are pushed over correctly). Very peculiar. I've even noticed that Tree +/- are missing as well as disclosure panel's arrows. So it's not just my image bundles, but GWT's are having a hard time. Very confusing. I'll keep playing with it, see if I can figure something out. On Jul 18, 11:25 am, Thomas Broyer t.bro...@gmail.com wrote: On 18 juil, 00:34, Sean slough...@gmail.com wrote: Sadly, even with clean war file, IE still is having problems. I wonder if it's some security level thing? I'm not sure. IE won't allow me to turn down my settings to try it. Wont let me go lower then Medium for non-intranet sites. I don't know why an ImageBundle would be considered non-secure, but at this point I'm just confused. It could be two things: - a bad path to the bundle (IE is known to have some bugs re. resolving relative paths, though it shouldn't affect ImageBundles; but maybe if you're playing with the paths when deploying your app) - ImageBundles use an ActiveX (filter: AlphaImageLoader), so it might really be a security thing. --~--~-~--~~~---~--~~ 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: GwtDE (GWT Desktop Environment) and PageBus 1.2.0
George, Tried your DE application and it looks promising! -Chandra On Jul 5, 3:04 am, georgopoulos.georg...@gmail.com georgopoulos.georg...@gmail.com wrote: Hi, GwtDE is a demo for building MDI and desktop like applications with GWT. Homepage:http://code.google.com/p/gwtde/ New is the integration with PageBus 1.2.0 for communication between applications loaded in IFRAMEs (same domain). The first screenshot (http://imagebin.org/54522) shows GwtDE to IFRAME (AddressBook) communication, while opening new IFRAMEs (windows). The second screenshot (http://imagebin.org/54523) shows IFRAME (AddressBook) to GwtDE communication, after a click on Share button. Demo:http://69.20.122.77:8880/gwtde/ Let me know what you think. Thanks, George. --~--~-~--~~~---~--~~ 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 + email
Do you have the jar for gmail in your path? On Jul 19, 7:52 am, Petein majestyel...@gmail.com wrote: Hi. I made an RPC for sending an email this is the Impl file: package faceRecognition.server; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import faceRecognition.client.EmailService; import faceRecognition.server.Email.SendMail.Gmail; @SuppressWarnings(serial) public class EmailServiceImpl extends RemoteServiceServlet implements EmailService { @Override public String send(String emailTo, String subject, String body) { String msg = ; msg = Gmail.send(this, emailTo, subject, body); return(msg); } } when i commented out the line msg = Gmail.send(this, emailTo, subject, body); everything is ok. the problem is in the method Gmail.send: package faceRecognition.server.Email.SendMail; import java.security.Security; import java.util.Properties; import javax.mail.*; import javax.mail.internet.*; public class Gmail { private static final String SMTP_HOST_NAME = smtp.gmail.com; private static final String SMTP_PORT = 465; private static final String SSL_FACTORY = javax.net.ssl.SSLSocketFactory; public static String send(String emailFromAddress, String sendTo, String subject, String body){ Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider ()); String[] emails = new String[1]; emails[0] = sendTo; try { sendSSLMessage(usern...@gmail.com, password, emails, subject, body, emailFromAddress); return(); }catch (Exception e) { e.printStackTrace(); return(e.getMessage()); } } private static void sendSSLMessage(final String username, final String password, String recipients[], String subject, String message, String from) throws MessagingException { boolean debug = true; Properties props = new Properties(); props.put(mail.smtp.host, SMTP_HOST_NAME); props.put(mail.smtp.auth, true); props.put(mail.debug, true); props.put(mail.smtp.port, SMTP_PORT); props.put(mail.smtp.socketFactory.port, SMTP_PORT); props.put(mail.smtp.socketFactory.class, SSL_FACTORY); props.put(mail.smtp.socketFactory.fallback, false); Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } }); session.setDebug(debug); Message msg = new MimeMessage(session); InternetAddress addressFrom = new InternetAddress(from); msg.setFrom(addressFrom); InternetAddress[] addressTo = new InternetAddress [recipients.length]; for (int i = 0; i recipients.length; i++) { addressTo[i] = new InternetAddress(recipients[i]); } msg.setRecipients(Message.RecipientType.TO, addressTo); // Setting the Subject and Content Type msg.setSubject(subject); msg.setContent(message, text/html); //Transport.send(msg); javax.mail.Transport.send(msg); //HERE I GET THE FOLLOWING ERROR } } The error which i get is: DEBUG: getProvider() returning javax.mail.Provider [TRANSPORT,gm,com.google.appengine.api.mail.stdimpl.GMTransport] com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'mail' or call 'Send()' was not found. at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:70) at com.google.appengine.api.mail.MailServiceImpl.doSend (MailServiceImpl.java:96) at com.google.appengine.api.mail.MailServiceImpl.send (MailServiceImpl.java:33) at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage (GMTransport.java:247) at javax.mail.Transport.send0(Transport.java:191) at javax.mail.Transport.send(Transport.java:120) at faceRecognition.server.Email.SendMail.Gmail.sendSSLMessage (Gmail.java:75) at faceRecognition.server.Email.SendMail.Gmail.send(Gmail.java:26) at faceRecognition.server.EmailServiceImpl.send(EmailServiceImpl.java: 17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
Export GWT app as WAR file - EASY tutorial for this?
Hi, I want to export my GWT app as a WAR file and deploy it on a tomcat server. I've read dozens of threads about this topic, and I understood nothing. I do not know anything about WAR files, ANT build scripts or tomcat server, I'm totally new to that stuff. I tried to figure it out by myself, but I couldn't get past the first few steps. When I right- click my GWT project in eclipse and select export/web/WAR file, it always says Module name is invalid when it asks for a web project name. What to do now? Can someone give me a really basic instruction for this, or a good link to a tutorial? I'm really confused by this, I need to know the very basics. Thanks a lot in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Cell width in DockPanel
Hello: I have the following code in a DockPanel: this.add(mainEastPanel, DockPanel.EAST); this.add(mainWestPanel, DockPanel.WEST); this.add(mainSouthPanel, DockPanel.SOUTH); this.add(mainNorthPanel, DockPanel.NORTH); this.add(mainCenterPanel, DockPanel.CENTER); this.setCellWidth(mainWestPanel, 100px); this.setCellWidth(mainEastPanel, 100px); this.setCellWidth(mainCenterPanel, 800px); this.setCellWidth(mainNorthPanel, 800px); this.setCellWidth(mainSouthPanel, 800px); This code changes the style attribute on the cells. But the cells still have 'width= height=' which is negating the style attribute: td width= height= align=left style=vertical-align: top; width: 800px; colspan=1table cellspacing=0 cellpadding=0tbodytr/ /tbody/table/td How do I get rid of the width and height attributes? 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: JSNI: window vs $wnd
No response cause my question is dumb or did I get lost in the shuffle because I posted on Sat? I'm really curious about this... thanks either way. Peace, Mike On Jul 18, 12:35 pm, mike mikebannis...@gmail.com wrote: The JSNI section of the dev guide uses the $wnd notation: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D... But then in the cross-site commication tutorial 'window' is used. Additionally I can't get the sample code to work using $wnd. See: http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html What's the trick here? Are there some scenarios where you use $wnd and other where you use window? How do you know when to use which? Thanks, Mike --~--~-~--~~~---~--~~ 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: Cell width in DockPanel
Never mind! On Jul 20, 8:07 am, badgerduke badgerd...@gmail.com wrote: Hello: I have the following code in aDockPanel: this.add(mainEastPanel,DockPanel.EAST); this.add(mainWestPanel,DockPanel.WEST); this.add(mainSouthPanel,DockPanel.SOUTH); this.add(mainNorthPanel,DockPanel.NORTH); this.add(mainCenterPanel,DockPanel.CENTER); this.setCellWidth(mainWestPanel, 100px); this.setCellWidth(mainEastPanel, 100px); this.setCellWidth(mainCenterPanel, 800px); this.setCellWidth(mainNorthPanel, 800px); this.setCellWidth(mainSouthPanel, 800px); This code changes the style attribute on the cells. But the cells still have 'width= height=' which is negating the style attribute: tdwidth= height= align=left style=vertical-align: top;width: 800px; colspan=1table cellspacing=0 cellpadding=0tbodytr/ /tbody/table/td How do I get rid of thewidthand height attributes? 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: Automatic Testing
We are testing our app with Selenium. I've written some wrappers from common components (only for GXT at the moment) and also common actions like select tree item x etc. I'm setting Id's on components of interest.The balance is to write locators (XPath) that are specific enough with out being fragile. The tests are running reliably, although they are quite slow so we've kept these integration and acceptance tests to a minimum. As unit tests are much faster, we separate all controller and view code so we can test with plain junit / EasyMock. Carl. On Jul 20, 1:19 am, Daniel Wellman etl...@gmail.com wrote: If you're looking to write unit or integration tests for GWT client code, I've written an article about my experiences here: Google Web Toolkit: Writing Ajax Applications Test-Firsthttp://blog.danielwellman.com/2008/11/test-first-gwt-article-in-novem... If you've finished your application and want to add simple end-to-end smoke tests, you might want to consider using WebDriver or Selenium. To add temporary DOM IDs which only appear for testing (which will make writing those WebDriver or Selenium tests easier), consider using the method on UIObject called ensureDebugId: http://tinyurl.com/mdwyky orhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... Dan On Jul 20, 5:38 am, Joakim Sjöberg joakim.sjob...@artificial- solutions.com wrote: Hello! I have a question that you might be able to answer. We are developing a GWT application and would like some form of Automatic testing of the GWT application. Is there any good way to do this? Could someone please point me in the right direction? Regards Joakim Sjöberg Developer Artificial Solutions Scandinavia AB --~--~-~--~~~---~--~~ 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: JSNI issues
Hi, It might be the case that in both cases your GWT code is loaded and executing before the browser has loaded your externally referenced JavaScript file. To remove that possiblity, you can place the script tag you have in the HTML into your module's .gwt.xml definition, i.e. module inherits name='com.google.gwt.user.User' / script type=text/javascript src=protovis.js /module With this sett up, the GWT boostrap code should ensure the library JavaScript is loaded before your GWT code executes. //Adam On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote: I am not a JS developer and use it pretty much by example, so it might be that I am missing something really basic below. I have come across problems using JSNI in the following 2 scenarios: 1. I use Google Visualization API successfully in JS as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JS file google.load('visualization', '1', {'packages':['piechart']}); // == future JSNI problems occur here var chart = new google.visualization.LineChart (document.getElementById('GoogleVisChart')); // other JS commands to draw the chart ** and then try to write a wrapper using GWT JSNI as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JAVA file class GChart { static { _init(); } private static native void _init() /*-{ // === ERROR at this function $wnd.google.load('visualization', '1', {'packages': ['piechart']}); }-*/; JavaScriptObject gvis; public GChart( String id ) { gvis = _chart( id ); } private native JavaScriptObject _chart( String id ) /*-{ return new $wnd.google.visualization.LineChart ($wnd.document.getElementById( id ) ); }-*/; // methods to draw the chart through native functions ** The GWT compiler gives the following error for the above code [ERROR] Unable to load module entry point class com.google.gwt.app.testGViz.client.TestGViz (see associated exception for details) java.lang.RuntimeException: Failed to invoke native method: @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments. at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java: 132) at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke (ModuleSpaceMoz.java:98) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:248) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:107) at com.google.gwt.app.testGViz.client.GChart._init(GChart.java) at com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7) at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad (TestGViz.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$100 (BrowserWidgetMoz.java:35) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz $ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:59) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java: 1428) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) ** Moving the statement in the native _init function to the constructor does not help either. To get it to work, I have to move it out to the HTML file HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript google.load('visualization', '1', {'packages':['piechart']}); /script ** This was also suggested inhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... Although this works, I do not understand why I could no do the google.load through JSNI. In the meanwhile, this is not an issue as GWT now provides its own wrappers for the Google Visualization API. But, I would still like to understand the error. 2. I am trying this time to write a wrapper for another Visualization library, Protovis. An example
Re: Export GWT app as WAR file - EASY tutorial for this?
Martin, It can depend on your version of GWT. If you are using the GWT-Eclipse Plugin (GEP), you can just click the GWT Compile button from the toolbar. After it compiles successfully, open your project folder (outside of Eclipse). You will see a war folder inside your project folder. Open that war folder. You will see a few files and folders. Select everything and create a zip file (this should be a right-click action). Name the zip file something.war and that's it. When you drop that war file into your Tomcat webapps folder, it will get automatically expanded into a folder named the same as the war file name (without the extension). If you are using an older version of GWT, then the manual steps I outlined a while back may help and can be found: http://milamade.com/code/gwt/createwar.htm HTH, Chad On Jul 20, 8:01 am, martinhansen martin.hanse...@googlemail.com wrote: Hi, I want to export my GWT app as a WAR file and deploy it on a tomcat server. I've read dozens of threads about this topic, and I understood nothing. I do not know anything about WAR files, ANT build scripts or tomcat server, I'm totally new to that stuff. I tried to figure it out by myself, but I couldn't get past the first few steps. When I right- click my GWT project in eclipse and select export/web/WAR file, it always says Module name is invalid when it asks for a web project name. What to do now? Can someone give me a really basic instruction for this, or a good link to a tutorial? I'm really confused by this, I need to know the very basics. Thanks a lot in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Export GWT app as WAR file - EASY tutorial for this?
Hello Chad, I'm using GWT 1.6.4 with the Google plugin for Eclipse. thank you very much, it worked fine. Great! Unfortunately, I can't get my application to run. My RMI call fails on the server. When I look into the tomcat server logs, it says: com.google.gwt.user.client.rpc.SerializationException: Type 'java.rmi.UnmarshalException' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. My server code tries to connect to a remote service. In hosted mode, it works fine. But not when my application is deployed. Why is an UnmarshalException being thrown? How can I debug the server-side code with tomcat? After some research, I found out that it's possible to debug tomcat java code, but apparently, it's so complicated that I'm not able to do it. Unfortunately, I haven't found an easy tutorial for this. Can someone give a little hint on how to do this? On 20 Jul., 16:56, Chad chad...@gmail.com wrote: Martin, It can depend on your version of GWT. If you are using the GWT-Eclipse Plugin (GEP), you can just click the GWT Compile button from the toolbar. After it compiles successfully, open your project folder (outside of Eclipse). You will see a war folder inside your project folder. Open that war folder. You will see a few files and folders. Select everything and create a zip file (this should be a right-click action). Name the zip file something.war and that's it. When you drop that war file into your Tomcat webapps folder, it will get automatically expanded into a folder named the same as the war file name (without the extension). If you are using an older version of GWT, then the manual steps I outlined a while back may help and can be found: http://milamade.com/code/gwt/createwar.htm HTH, Chad On Jul 20, 8:01 am, martinhansen martin.hanse...@googlemail.com wrote: Hi, I want to export my GWT app as a WAR file and deploy it on a tomcat server. I've read dozens of threads about this topic, and I understood nothing. I do not know anything about WAR files, ANT build scripts or tomcat server, I'm totally new to that stuff. I tried to figure it out by myself, but I couldn't get past the first few steps. When I right- click my GWT project in eclipse and select export/web/WAR file, it always says Module name is invalid when it asks for a web project name. What to do now? Can someone give me a really basic instruction for this, or a good link to a tutorial? I'm really confused by this, I need to know the very basics. Thanks a lot in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Dose GWT 1.7 support debug on java 6?
Hi, Downgrade to JDK 1.6.0_13. As Paul mentioned, there is a known issue with debugging when using JDK 1.6.0_14. Also, the issue does not have to do with the JDK that you use to compile GWT_TRUNK with - it has to do with the JDK that you're using when you're debugging your application. So, make sure that the JDK associated with your project in Eclipse is NOT JDK 1.6.0_14. Rajeev On Sat, Jul 18, 2009 at 3:23 AM, AndOrNot hwave...@gmail.com wrote: It seems it dosen't work in windows 2003 sp1, I recomiled GWT_TRUNK with 1.6.0_14, the UI debuging can still not work. On Jul 18, 5:02 am, tfreitas tfrei...@gmail.com wrote: Hi, I was using a version of java6 (I do not remember the version) and worked with the debugging eclipse Trunk / OOPHM in ubuntu 9.04 and firefox 3.0. After an auto-update, install java 1.6.0_14, the debugging not work (not breakpoint, nothing) I recompile my GWT_TRUNK, with the new java version 1.6.0_14 and again work debugging. I hope this helps, greetings On Jul 18, 2:42 pm, Rajeev Dayal rda...@google.com wrote: Hi, Are you talking about debugging your GWT Application in Eclipse when it's running in hosted mode? What is the problem that you're experiencing. We've heard reports of people running into problems with debugging when using JDK 1.6.0_14. What JDK are you using? Rajeev On Fri, Jul 17, 2009 at 11:59 AM, AndOrNot hwave...@gmail.com wrote: if support, how?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Export GWT app as WAR file - EASY tutorial for this?
OK, I have found out that I can invoke err.printStackTrace() on the server, which will log the error to logs/stdout. This is already quite helpful. --~--~-~--~~~---~--~~ 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: why GWT hosted mode showed a blank page?
What version of IE are you using? Are you still running into the problem? Also, try the suggestion mentioned above - clear IE's cache. On Fri, Jul 17, 2009 at 7:42 PM, Adam S servic.a...@gmail.com wrote: I have similar problem. I use gwt with with smartGwt, eclipse (google plugin) and embeded server for hosted mode under windows. App isn't working under hosted mode but compiled in IE, Chrome and FF browers is working fine. That's really strange for me, because it worked fine, day earlier. Debuger show that compiler go entire code to .draw() method ( smartGwt method ) and i suspect something isn't working with injecting nocache.js into host html. But no errors are shown. Thats disturbing me for a while till now... --~--~-~--~~~---~--~~ 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: Image Bundle not working in IE
It is odd that it works in hosted mode, but not in web mode - because the IE settings (security even) should be the same for IE6 hosted mode, and the normal IE6 browser. Actually, here is one thing you can test - try hitting your deployed app with the hosted browser. Launch hosted mode with the -noserver option, which will prevent GWT's default server from starting up. That way, we can determine if this is an issue with the hosted browser, or something wonky with your deployment. On Mon, Jul 20, 2009 at 11:59 AM, Sean slough...@gmail.com wrote: The fact that it works when in Hosted mode in IE, but not when it's deployed is making me think it is a security thing. I'm just not sure the work around. I've tried various security settings, but can't get it to show up. THe path looks right to the clear cache, not sure waht else could be messing this up. Cause it looks like it's putting the correct image sizes (Things next to it are pushed over correctly). Very peculiar. I've even noticed that Tree +/- are missing as well as disclosure panel's arrows. So it's not just my image bundles, but GWT's are having a hard time. Very confusing. I'll keep playing with it, see if I can figure something out. On Jul 18, 11:25 am, Thomas Broyer t.bro...@gmail.com wrote: On 18 juil, 00:34, Sean slough...@gmail.com wrote: Sadly, even with clean war file, IE still is having problems. I wonder if it's some security level thing? I'm not sure. IE won't allow me to turn down my settings to try it. Wont let me go lower then Medium for non-intranet sites. I don't know why an ImageBundle would be considered non-secure, but at this point I'm just confused. It could be two things: - a bad path to the bundle (IE is known to have some bugs re. resolving relative paths, though it shouldn't affect ImageBundles; but maybe if you're playing with the paths when deploying your app) - ImageBundles use an ActiveX (filter: AlphaImageLoader), so it might really be a security thing. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Add external java project to GWT project in Eclipse
Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes? --~--~-~--~~~---~--~~ 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: Export GWT app as WAR file - EASY tutorial for this?
I did not know that! I'll have to try that myself. Makes figuring out Server Side errors less guess work! On Jul 20, 11:33 am, martinhansen martin.hanse...@googlemail.com wrote: OK, I have found out that I can invoke err.printStackTrace() on the server, which will log the error to logs/stdout. This is already quite helpful. --~--~-~--~~~---~--~~ 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: Display Frame with content from RPC
Have you tried using the HTML widget? That should work. Never used the head marks in it, but if you put the contents of the BODY tags in it, that should work just fine. On Jul 18, 3:04 pm, Norman Maurer nor...@apache.org wrote: Hi all, I'm currently working on a gwt based webmail. I want to display the html part of an email within a panel. Because the html part contains a full html structure (head/body) I thought the best way todo this would be to use a frame. But how could I do this if I only get the content from my rpc call ? From my understanding I need a full url for using a Frame. Bye, Norman --~--~-~--~~~---~--~~ 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: Add external java project to GWT project in Eclipse
You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes? --~--~-~--~~~---~--~~ 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: Add external java project to GWT project in Eclipse
Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes? --~--~-~--~~~---~--~~ 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: JSNI: window vs $wnd
It's explained here: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface Right after the first example. window = host page $wnd = the nested iframe page where your scripts reside From the tutorial you cited, I'm not sure why it doesn't work when using $wnd. Maybe the nested page can't write to the host page? Cheers, Darth On Jul 20, 9:33 pm, mike mikebannis...@gmail.com wrote: No response cause my question is dumb or did I get lost in the shuffle because I posted on Sat? I'm really curious about this... thanks either way. Peace, Mike On Jul 18, 12:35 pm, mike mikebannis...@gmail.com wrote: The JSNI section of the dev guide uses the $wnd notation: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D... But then in the cross-site commication tutorial 'window' is used. Additionally I can't get the sample code to work using $wnd. See: http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html What's the trick here? Are there some scenarios where you use $wnd and other where you use window? How do you know when to use which? Thanks, Mike --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
What is the best way to enable save/apply button on TextBox edit
Hi, I have added: myTextbox.addChangeListener(new ChangeListener(){ public void onChange(Widget sender) { onEdit(); } }); and onEdit() I am enabling Save/Apply button. Problem: ChangeListener() get fired when myTextbox loses the focus. So when a person start typing on myTextbox, he is done with entering data but save/apply button is still not enabled as still focus is on myTextbox. If I goes and add KeyBoardListener and try to handle it on onKeyDown (), for which keyCode I should fire onEdit() which enables save/apply button. I mean it should not be enabled if person press up/down/left/ right arrow key or any function key or insert/delete key and many more. Is there any known solution to handle this problem? Thanks, Bakul. --~--~-~--~~~---~--~~ 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: why GWT hosted mode showed a blank page?
I'm using IE 6, and have cleared the cache. I've done lots of searchin' in the internet before i had written here. I also tried to launch it on another computer, but the result was the same. i have my code stored on SVN server, so if anyone wise, would like to look i'll share the address in private email. On Jul 20, 5:36 pm, Rajeev Dayal rda...@google.com wrote: What version of IE are you using? Are you still running into the problem? Also, try the suggestion mentioned above - clear IE's cache. On Fri, Jul 17, 2009 at 7:42 PM, Adam S servic.a...@gmail.com wrote: I have similar problem. I use gwt with with smartGwt, eclipse (google plugin) and embeded server for hosted mode under windows. App isn't working under hosted mode but compiled in IE, Chrome and FF browers is working fine. That's really strange for me, because it worked fine, day earlier. Debuger show that compiler go entire code to .draw() method ( smartGwt method ) and i suspect something isn't working with injecting nocache.js into host html. But no errors are shown. Thats disturbing me for a while till now... --~--~-~--~~~---~--~~ 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: What is the best way to enable save/apply button on TextBox edit
You can put on a keyboard listener, and before you enable the Save button, make sure there is text in the text box. textBox.getText ().length0 type of thing. On Jul 20, 12:26 pm, Bakul bakul.ku...@gmail.com wrote: Hi, I have added: myTextbox.addChangeListener(new ChangeListener(){ public void onChange(Widget sender) { onEdit(); } }); and onEdit() I am enabling Save/Apply button. Problem: ChangeListener() get fired when myTextbox loses the focus. So when a person start typing on myTextbox, he is done with entering data but save/apply button is still not enabled as still focus is on myTextbox. If I goes and add KeyBoardListener and try to handle it on onKeyDown (), for which keyCode I should fire onEdit() which enables save/apply button. I mean it should not be enabled if person press up/down/left/ right arrow key or any function key or insert/delete key and many more. Is there any known solution to handle this problem? Thanks, Bakul. --~--~-~--~~~---~--~~ 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: What is the best way to enable save/apply button on TextBox edit
Would probably look something like: final TextBox text = new TextBox(); final Button button = new Button(); text.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(KeyUpEvent event) { if (text.getText().length() != 0) { button.setEnabled(true); } else { button.setEnabled(false); } } }); --Dalla http://date-time.appspot.com/ On 20 Juli, 18:48, Sean slough...@gmail.com wrote: You can put on a keyboard listener, and before you enable the Save button, make sure there is text in the text box. textBox.getText ().length0 type of thing. On Jul 20, 12:26 pm, Bakul bakul.ku...@gmail.com wrote: Hi, I have added: myTextbox.addChangeListener(new ChangeListener(){ public void onChange(Widget sender) { onEdit(); } }); and onEdit() I am enabling Save/Apply button. Problem: ChangeListener() get fired when myTextbox loses the focus. So when a person start typing on myTextbox, he is done with entering data but save/apply button is still not enabled as still focus is on myTextbox. If I goes and add KeyBoardListener and try to handle it on onKeyDown (), for which keyCode I should fire onEdit() which enables save/apply button. I mean it should not be enabled if person press up/down/left/ right arrow key or any function key or insert/delete key and many more. Is there any known solution to handle this problem? Thanks, Bakul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Determining a specific cell in a FlexTable
I'm working on my first project using the FlexTable and am developing a time entry POC. Essentially users can click a button to add a new row to the entry screen, select a project for that row and then enter time for 7 days. I then total the 7 days for the line and then sum all of the lines for a grand total. Not rocket science. I'm using a few handlers to determine which cell and row the user is currently entering time for but it seems like a hack. Is there an easy way to determine which widget in the FlexTable (row x, column x) the user is currently interacting with? 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 -~--~~~~--~~--~--~---
Is GWT's compiler java-javascript or java bytecode - javascript?
Hello, I would like to know at which level gwtc works. Is it purely at the source level (.java) or more low-level (bytecode)? I'm a ruby developer, using jruby (which runs on JVM). jruby is able to compile ruby code to .class files. Also, I'm able to interact with other java libraries, so in theory, I should be able to use the GWT classes from ruby. I would like to use GWT, but I don't want to switch to java. If GWT's compiler would be able to process the .class files jruby creates for me (without having a .java source file) this would be very cool. Googling didn't turn up much for this subject so I'm affraid I'm out of luck. Thanks for any help Mathijs --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Eclipse plugin update
Eclipse Platform Version: 3.4.2 Build id: M20090211-1700 I' m getting an error trying to update thru the Google Update Site for Eclipse 3.4, I'm checking the Google App Engine Java SDK 1.2.2 and the Google Web Toolkit SDK 1.7.0: An error occurred while collecting items to be installed No repository found containing: com.caucho.hessian/osgi.bundle/3.1.3 No repository found containing: javax.activation/osgi.bundle/ 1.1.0.v200905021805 No repository found containing: javax.mail/osgi.bundle/ 1.4.0.v200905040518 No repository found containing: javax.persistence/osgi.bundle/ 1.99.0.v200906021518 No repository found containing: javax.transaction/osgi.bundle/ 1.1.1.v200906161300 No repository found containing: org.apache.oro/osgi.bundle/ 2.0.8.v200903061218 No repository found containing: org.apache.velocity/osgi.bundle/ 1.5.0.v200905192330 No repository found containing: org.eclipse.dltk.core/osgi.bundle/ 1.0.0.v20090617-1157 No repository found containing: org.eclipse.dltk.debug/osgi.bundle/ 1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.formatter/ osgi.bundle/1.0.0.v20090617-1404 No repository found containing: org.eclipse.dltk.launching/ osgi.bundle/1.0.0.v20090610-1638 No repository found containing: org.eclipse.dltk.ruby.core/ osgi.bundle/1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.ruby.formatter/ osgi.bundle/1.0.0.v20090617-1157 No repository found containing: org.eclipse.dltk.ruby.ui/osgi.bundle/ 1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.ui/osgi.bundle/ 1.0.0.v20090617-1521 No repository found containing: org.eclipse.equinox.concurrent/ osgi.bundle/1.0.0.v20090520-1800 No repository found containing: org.eclipse.persistence.antlr/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.asm/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.core/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.jpa/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.tptp.platform.agentcontroller/osgi.bundle/ 4.2.300.v200906041936 No repository found containing: org.eclipse.tptp.platform.iac.administrator/osgi.bundle/ 4.4.300.v200905160100 No repository found containing: org.jdom/osgi.bundle/ 1.0.0.v200806100616 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with gwt:debug
Hello, I have a small problem, I want to launch my application in debug mode with the mvn gwt:debug commande, but I have nothing. With the mvn gwt:run command, I get the window of the hosted mode. Is there a configuration to do? 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: JSNI issues
Adam, I added script src=protovis.js / to the .gwt.xml. No change! On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote: Hi, It might be the case that in both cases your GWT code is loaded and executing before the browser has loaded your externally referenced JavaScript file. To remove that possiblity, you can place the script tag you have in the HTML into your module's .gwt.xml definition, i.e. module inherits name='com.google.gwt.user.User' / script type=text/javascript src=protovis.js /module With this sett up, the GWT boostrap code should ensure the library JavaScript is loaded before your GWT code executes. //Adam On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote: I am not a JS developer and use it pretty much by example, so it might be that I am missing something really basic below. I have come across problems using JSNI in the following 2 scenarios: 1. I use Google Visualization API successfully in JS as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JS file google.load('visualization', '1', {'packages':['piechart']}); // == future JSNI problems occur here var chart = new google.visualization.LineChart (document.getElementById('GoogleVisChart')); // other JS commands to draw the chart ** and then try to write a wrapper using GWT JSNI as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JAVA file class GChart { static { _init(); } private static native void _init() /*-{ // === ERROR at this function $wnd.google.load('visualization', '1', {'packages': ['piechart']}); }-*/; JavaScriptObject gvis; public GChart( String id ) { gvis = _chart( id ); } private native JavaScriptObject _chart( String id ) /*-{ return new $wnd.google.visualization.LineChart ($wnd.document.getElementById( id ) ); }-*/; // methods to draw the chart through native functions ** The GWT compiler gives the following error for the above code [ERROR] Unable to load module entry point class com.google.gwt.app.testGViz.client.TestGViz (see associated exception for details) java.lang.RuntimeException: Failed to invoke native method: @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments. at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java: 132) at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke (ModuleSpaceMoz.java:98) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:248) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:107) at com.google.gwt.app.testGViz.client.GChart._init(GChart.java) at com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7) at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad (TestGViz.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$100 (BrowserWidgetMoz.java:35) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz $ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:59) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java: 1428) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) ** Moving the statement in the native _init function to the constructor does not help either. To get it to work, I have to move it out to the HTML file HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript google.load('visualization', '1', {'packages':['piechart']}); /script ** This was also suggested inhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... Although this works, I do not understand why I could no do the google.load through JSNI. In the meanwhile,
eclipse + gwt + getting started = Syntax error, annotations are only available if source level is 1.5
Good afternoon all. I am new to GWT and java developing itself. I have created a java application I wish to turn into an AJAX app via the magic of GWT. Versions: Eclipse SDK 3.4.2 gwt-windows-1.7.0 jdk1.6.0_14 Followed this: http://code.google.com/webtoolkit/gettingstarted.html and the non-eclipse part worked fine. Following: Creating an Application from Scratch (with Eclipse) and it fails with: Syntax error, annotations are only available if source level is 1.5 in the error log, I click proceed anyway and the Web Application Starter Project pops up. Click Send and I get: Server replies: An error occurred while attempting to contact the server. Please check your network connection and try again. and on the console in eclipse I get: The server is running at http://localhost:8080/ 20/07/2009 9:33:18 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: Nested in javax.servlet.ServletException: init: java.lang.Error: Unresolved compilation problem: Syntax error, annotations are only available if source level is 1.5 at test2.server.GreetingServiceImpl.init(GreetingServiceImpl.java: 9) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:124) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) 20/07/2009 9:33:18 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /test2/greet java.lang.Error: Unresolved compilation problem: Syntax error, annotations are only available if source level is 1.5 at test2.server.GreetingServiceImpl.init(GreetingServiceImpl.java: 9) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at
Re: Drag and Drop, how to differenciate a simple Click from Drag
Thank you very much =D I will try this right away. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
map, add marker and remove marker
Hi I'm new with GWT so please bear with me I'm using GWT EXT and openlayer map, i'm using mapPanel to display map and markers on it following example from here: http://abhijeetmaharana.com/blog/2008/04/07/gwt-ext-and-google-maps/ however, when i tried to remove the markers using mapPanel.removeAllMarkers() all markers got removed fine, except it doesn't purge the memory used, so in the end the browser (both ie and firefox) used up 1gb memory and then crashed I know this should be posted in GWT-EXT forum, but for some reason I never received activation email from them, so I have no choice please help 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: Drag and Drop, how to differenciate a simple Click from Drag
Thank you, I am happy now haha, i am just new with DD thanks again On Jul 17, 12:32 am, Paul Robinson ukcue...@gmail.com wrote: Call setBehaviorDragStartSensitivity(x) for some value x 0 HTH Paul Memo Sanchez wrote: Hello, I am building this widget that must have Drag and Drop ( PickupDragController) and also a ClickListener, but when I added the Drag controller ( with .makeDragable) my widget doesn't listen the ClickListener anymore, odd enought when i hold ctrl and I click to the widget it does what it is suppose to do (what I have in onClick method ), hmmm I also disabled the .setBehaviorMultipleSelection... does anyone know how I can differenciate a simple Click from Drag. Thank you very much. --~--~-~--~~~---~--~~ 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: Is GWT's compiler java-javascript or java bytecode - javascript?
It uses the source code, not the bytecode. It can't be made to work at the bytecode level for various reasons. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d19dd5769e993f63/3418f999d1536f57 Paul Mathijs wrote: Hello, I would like to know at which level gwtc works. Is it purely at the source level (.java) or more low-level (bytecode)? I'm a ruby developer, using jruby (which runs on JVM). jruby is able to compile ruby code to .class files. Also, I'm able to interact with other java libraries, so in theory, I should be able to use the GWT classes from ruby. I would like to use GWT, but I don't want to switch to java. If GWT's compiler would be able to process the .class files jruby creates for me (without having a .java source file) this would be very cool. Googling didn't turn up much for this subject so I'm affraid I'm out of luck. Thanks for any help Mathijs --~--~-~--~~~---~--~~ 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: map, add marker and remove marker
That sounds like it could be attributable to this Maps API bug: http://code.google.com/p/gmaps-api-issues/issues/detail?id=295 On Mon, Jul 20, 2009 at 3:11 AM, Irwan Hendraoverta...@gmail.com wrote: Hi I'm new with GWT so please bear with me I'm using GWT EXT and openlayer map, i'm using mapPanel to display map and markers on it following example from here: http://abhijeetmaharana.com/blog/2008/04/07/gwt-ext-and-google-maps/ however, when i tried to remove the markers using mapPanel.removeAllMarkers() all markers got removed fine, except it doesn't purge the memory used, so in the end the browser (both ie and firefox) used up 1gb memory and then crashed I know this should be posted in GWT-EXT forum, but for some reason I never received activation email from them, so I have no choice please help thanks -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ 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: JSNI issues
It could still be a similar thing; I'm not 100% clear what you are trying to do above, but it looks like your steps are: 1) Load an external JavaScript library, e.g. protovis.js 2) Run some other JavaScript which creates something in the DOM, e.g. the vis = new pv.Panel().canvas(PVis); .vis.render(); part 3) In GWT access the rendered PVis component. If that's correct, then by moving the protovis.js to the .gwt.xml part your ensuring that the library loads before your GWT, but it is still possible that part (2) is executing after your GWT code, and hence it is not available to your GWT code when it runs. You could wrap that code in it's own file and load through the script tag (though I'm not sure about ordering in the gwt.xl file). I'd also suggest you use some debugging tools (Firebug for example in Firefox) to look at what your code is doing, that should show you the scoping of pv etc. (though you might be better off writing a wrapper using JavaScript Overlay types (http://googlewebtoolkit.blogspot.com/2008/08/getting-to- really-know-gwt-part-2.html) that would let you merge GWT and the protovis library in a more natural style, than the approach you're taking just now) Good luck, //Adam On 20 Juli, 17:41, wsaleem wsal...@gmail.com wrote: Adam, I added script src=protovis.js / to the .gwt.xml. No change! On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote: Hi, It might be the case that in both cases your GWT code is loaded and executing before the browser has loaded your externally referenced JavaScript file. To remove that possiblity, you can place the script tag you have in the HTML into your module's .gwt.xml definition, i.e. module inherits name='com.google.gwt.user.User' / script type=text/javascript src=protovis.js /module With this sett up, the GWT boostrap code should ensure the library JavaScript is loaded before your GWT code executes. //Adam On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote: I am not a JS developer and use it pretty much by example, so it might be that I am missing something really basic below. I have come across problems using JSNI in the following 2 scenarios: 1. I use Google Visualization API successfully in JS as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JS file google.load('visualization', '1', {'packages':['piechart']}); // == future JSNI problems occur here var chart = new google.visualization.LineChart (document.getElementById('GoogleVisChart')); // other JS commands to draw the chart ** and then try to write a wrapper using GWT JSNI as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JAVA file class GChart { static { _init(); } private static native void _init() /*-{ // === ERROR at this function $wnd.google.load('visualization', '1', {'packages': ['piechart']}); }-*/; JavaScriptObject gvis; public GChart( String id ) { gvis = _chart( id ); } private native JavaScriptObject _chart( String id ) /*-{ return new $wnd.google.visualization.LineChart ($wnd.document.getElementById( id ) ); }-*/; // methods to draw the chart through native functions ** The GWT compiler gives the following error for the above code [ERROR] Unable to load module entry point class com.google.gwt.app.testGViz.client.TestGViz (see associated exception for details) java.lang.RuntimeException: Failed to invoke native method: @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments. at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java: 132) at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke (ModuleSpaceMoz.java:98) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:248) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:107) at com.google.gwt.app.testGViz.client.GChart._init(GChart.java) at com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7) at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad (TestGViz.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at
Drag and Drop, how to activate an action when dragging over a widget?
Good morning. I created an special scrollPanel, which scrolls when clicking into the right or left button. Does anyone knows how can I activate the onClick behavior of the left and right buttons when I am dragging a widget over them?. Thank you for your time. --~--~-~--~~~---~--~~ 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: Add external java project to GWT project in Eclipse
Hi Martin, You may try using the link source option, as suggested by the thread at http://groups.google.com/group/google-appengine-java/browse_thread/thread/1908b3bedf954b75/ca0370ae3ae5a394?lnk=raot. If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes? --~--~-~--~~~---~--~~ 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: Eclipse plugin update
Hmm, have you accidentally placed checkmarks in any other plugins besides Google Plugin for Eclipse? The Google Plugin for Eclipse doesn't depend on any of the plugins you mentioned. Could you try clicking the Available software tab, and the Manage sites button, and uncheck every update site but the Google update site? jason On Mon, Jul 20, 2009 at 10:54 AM, pipe lfp...@gmail.com wrote: Eclipse Platform Version: 3.4.2 Build id: M20090211-1700 I' m getting an error trying to update thru the Google Update Site for Eclipse 3.4, I'm checking the Google App Engine Java SDK 1.2.2 and the Google Web Toolkit SDK 1.7.0: An error occurred while collecting items to be installed No repository found containing: com.caucho.hessian/osgi.bundle/3.1.3 No repository found containing: javax.activation/osgi.bundle/ 1.1.0.v200905021805 No repository found containing: javax.mail/osgi.bundle/ 1.4.0.v200905040518 No repository found containing: javax.persistence/osgi.bundle/ 1.99.0.v200906021518 No repository found containing: javax.transaction/osgi.bundle/ 1.1.1.v200906161300 No repository found containing: org.apache.oro/osgi.bundle/ 2.0.8.v200903061218 No repository found containing: org.apache.velocity/osgi.bundle/ 1.5.0.v200905192330 No repository found containing: org.eclipse.dltk.core/osgi.bundle/ 1.0.0.v20090617-1157 No repository found containing: org.eclipse.dltk.debug/osgi.bundle/ 1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.formatter/ osgi.bundle/1.0.0.v20090617-1404 No repository found containing: org.eclipse.dltk.launching/ osgi.bundle/1.0.0.v20090610-1638 No repository found containing: org.eclipse.dltk.ruby.core/ osgi.bundle/1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.ruby.formatter/ osgi.bundle/1.0.0.v20090617-1157 No repository found containing: org.eclipse.dltk.ruby.ui/osgi.bundle/ 1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.ui/osgi.bundle/ 1.0.0.v20090617-1521 No repository found containing: org.eclipse.equinox.concurrent/ osgi.bundle/1.0.0.v20090520-1800 No repository found containing: org.eclipse.persistence.antlr/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.asm/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.core/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.jpa/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.tptp.platform.agentcontroller/osgi.bundle/ 4.2.300.v200906041936 No repository found containing: org.eclipse.tptp.platform.iac.administrator/osgi.bundle/ 4.4.300.v200905160100 No repository found containing: org.jdom/osgi.bundle/ 1.0.0.v200806100616 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Common parent project - How?
Hi Scenario: Core client and server code needs to be shared among several projects (referred to as child projects) My try was ro create the core project as a GWT project, and add it to the build path of the child projects as a dependency project. Under Jetty, everything works OK except I get this message: [WARN] Server class 'com.mycompany.core.client.domainObjects.User' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry '.../Core/war/WEB-INF/classes/' to the web app classpath for this session When deployed - to Tomcat - I get: ... javax.servlet.ServletException: Error instantiating servlet class com.mycompany.myProject.server.MyServiceImpl ... java.lang.NoClassDefFoundError: com/mycompany/core/client/domain/User ... java.lang.ClassNotFoundException: com.mycompany.core.client.domainObjects.User ... What should I do? Help please... --~--~-~--~~~---~--~~ 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 UI design best practices
http://code.google.com/events/io/sessions.html#gwt I'd check out these videos, I felt I learned a lot watching these talks. They def. gave me great ideas on how to structure programs and use event busses to keep things neat. That specific talk was: Google Web Toolkit Architecture: Best Practices For Architecting Your GWT App On Jul 20, 2:37 am, Ståle Undheim staa...@gmail.com wrote: I have worked with web for ages, and although I am not that good at web design, I can make passable pages in HTML. However, going to the GWT world, I feel a bit lost about how to setup my UI, and organize classes and such. I create panels and add components, but I really am not sure how to set things up to look good. One approach I am trying a bit now is to have panels, and have the elements as anonymous class extensions off the fields: public class SomePanel extends FlowPanel { private final TextBox search = new TextBox() {{ addStyleName(span-10); addKeyUpHandler(...); }}; { add(search); } } I am also considering now to just write things up in HTML, then convert it all to DOM.create, but that seems overly verbose. I really hope UiBinder becomes available soon, as that seems to be closer to what I would like to have. Anyone got any good advice for how I should organize classes and panels? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with Horizontal Panel
Hi, I am not able to see the Horizontal Panel this is my code public void onModuleLoad() { HorizontalPanel panel = new HorizontalPanel(); Label L1 = new Label(); Label L2 = new Label(); L1.setText(Hello); L2.setText(Hello 22); panel.add(L1); panel.add(L2); RootPanel root = RootPanel.get(); root.add(panel); } } When i change horizontal Panel to horizontal shift panel its works, but it does not works with horizontal panel why is 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: Problem with Horizontal Panel
there are no errors when i run it Hello and Hello22 comes sides next to each other, shouldnt they be separate by an horizontal spilit? On Jul 20, 2:54 pm, Rahul coolrahul18...@gmail.com wrote: Hi, I am not able to see the Horizontal Panel this is my code public void onModuleLoad() { HorizontalPanel panel = new HorizontalPanel(); Label L1 = new Label(); Label L2 = new Label(); L1.setText(Hello); L2.setText(Hello 22); panel.add(L1); panel.add(L2); RootPanel root = RootPanel.get(); root.add(panel); } } When i change horizontal Panel to horizontal shift panel its works, but it does not works with horizontal panel why is 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: Add external java project to GWT project in Eclipse
I looked at the linked source method and you have to have the linked source fully qualified. Thats nice if you always have your source in the same place. You could try using the linked variables but then thats also work. Do not see this as a real option for projects that will be worked on by many developers at the same time. If I am wrong please let me know. Thanks Donald W. Long (donald.w.l...@thelongsfamily.com) On Jul 20, 1:34 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Martin, You may try using the link source option, as suggested by the thread athttp://groups.google.com/group/google-appengine-java/browse_thread/th If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Add external java project to GWT project in Eclipse
Hello Jason, thanks for your interesting hints. I tried the Google App Engine first, but to no avail. I tried to convert my project to use the Google App Engine, but then I got some errors referring to missing XML files. The second approach sounds also interesting, but I need a little hint there. Where exactly do I have to set the output folder to? Let's say, I have two Projects: GwtApp --src com.company.gwtapp --GwtApp.java DataProject --src com.company.data --Employee.java And I want Employee.java to be available in my Gwt App, what do I have to do? In Eclipse, Configure build path on DataProject, then source, then change default output folder? If so, to what value should I change it to? On 20 Jul., 20:34, Jason Parekh jasonpar...@gmail.com wrote: Hi Martin, You may try using the link source option, as suggested by the thread athttp://groups.google.com/group/google-appengine-java/browse_thread/th If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes? --~--~-~--~~~---~--~~ 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: Add external java project to GWT project in Eclipse
I tried to change the default output folder of DataProject, but I didn't manage successfully. Eclipse says: Path '/GwtApp/src' must denote location inside project 'DataProject'. Am I heading the wrong way there? On 20 Jul., 22:16, martinhansen martin.hanse...@googlemail.com wrote: Hello Jason, thanks for your interesting hints. I tried the Google App Engine first, but to no avail. I tried to convert my project to use the Google App Engine, but then I got some errors referring to missing XML files. The second approach sounds also interesting, but I need a little hint there. Where exactly do I have to set the output folder to? Let's say, I have two Projects: GwtApp --src com.company.gwtapp --GwtApp.java DataProject --src com.company.data --Employee.java And I want Employee.java to be available in my Gwt App, what do I have to do? In Eclipse, Configure build path on DataProject, then source, then change default output folder? If so, to what value should I change it to? On 20 Jul., 20:34, Jason Parekh jasonpar...@gmail.com wrote: Hi Martin, You may try using the link source option, as suggested by the thread athttp://groups.google.com/group/google-appengine-java/browse_thread/th If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes? --~--~-~--~~~---~--~~ 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: What is the best way to enable save/apply button on TextBox edit
You just need to write your code to keep track of the state. If data is in the text box and then it goes to delete then its changed and enable the buttons. Its all in tracking the state of the contents. On Jul 20, 2:29 pm, Bakul bakul.ku...@gmail.com wrote: I appreciate your quick replies. Suggested solution looks promising. However, my confusion is: What will happen if user select the content, that is already there by mouse double click and press delete. As in this case, on load buttons are disabled, now user has selected it through mouse and pressed delete button, so onKeyUp length is '0', hence it will not enable the buttons even though there is a change in value. I know thats its a rare case, but I am writing a framework related to it for a large scale project. On Jul 20, 1:25 pm, Dalla dalla_man...@hotmail.com wrote: Would probably look something like: final TextBox text = new TextBox(); final Button button = new Button(); text.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(KeyUpEvent event) { if (text.getText().length() != 0) { button.setEnabled(true); } else { button.setEnabled(false); } } }); --Dallahttp://date-time.appspot.com/ On 20 Juli, 18:48, Sean slough...@gmail.com wrote: You can put on a keyboard listener, and before you enable the Save button, make sure there is text in the text box. textBox.getText ().length0 type of thing. On Jul 20, 12:26 pm, Bakul bakul.ku...@gmail.com wrote: Hi, I have added: myTextbox.addChangeListener(new ChangeListener(){ public void onChange(Widget sender) { onEdit(); } }); and onEdit() I am enablingSave/Applybutton. Problem: ChangeListener() get fired when myTextbox loses the focus. So when a person start typing on myTextbox, he is done with entering data but save/applybutton is still not enabled as still focus is on myTextbox. If I goes and add KeyBoardListener and try to handle it on onKeyDown (), for which keyCode I should fire onEdit() which enablessave/apply button. I mean it should not be enabled if person press up/down/left/ right arrow key or any function key or insert/delete key and many more. Is there any known solution to handle this problem? Thanks, Bakul.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: JSNI: window vs $wnd
Darth, ...ahh, great thanks. I got to $wnd to work for code in the cross-site communication tutorial. I think the problem was that I was using document and $wnd rather than $doc and $wnd. I haven't completely worked out in my head why the former wouldn't work but it seems sensible that you would need to make sure it's all either happening on the host page or all in the iframe. Any guess why the tutorial uses window/document rather than $wnd/ $doc ? Thanks again, Mike On Jul 20, 12:20 pm, Darth dummym...@gmail.com wrote: It's explained here:http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D... Right after the first example. window = host page $wnd = the nested iframe page where your scripts reside From the tutorial you cited, I'm not sure why it doesn't work when using $wnd. Maybe the nested page can't write to the host page? Cheers, Darth On Jul 20, 9:33 pm, mike mikebannis...@gmail.com wrote: No response cause my question is dumb or did I get lost in the shuffle because I posted on Sat? I'm really curious about this... thanks either way. Peace, Mike On Jul 18, 12:35 pm, mike mikebannis...@gmail.com wrote: The JSNI section of the dev guide uses the $wnd notation: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D... But then in the cross-site commication tutorial 'window' is used. Additionally I can't get the sample code to work using $wnd. See: http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html What's the trick here? Are there some scenarios where you use $wnd and other where you use window? How do you know when to use which? Thanks, Mike --~--~-~--~~~---~--~~ 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: Add external java project to GWT project in Eclipse
Hello Donald, I already tried the Google App Engine approach, but it didn't work for me. And GAE adds a lot of stuff I don't need to my project. I really don't want to mess around with it, since I managed to kill my GWT app's configuration several times and I had to create a new project. Meanwhile, I tried the output folder approach. I tried to change the default output folder of DataProject, but I didn't manage successfully. Eclipse says: Path '/GwtApp/src' must denote location inside project 'DataProject'. Am I heading the wrong way there? On 20 Jul., 22:21, Donald W. Long donald.w.l...@gmail.com wrote: I looked at the linked source method and you have to have the linked source fully qualified. Thats nice if you always have your source in the same place. You could try using the linked variables but then thats also work. Do not see this as a real option for projects that will be worked on by many developers at the same time. If I am wrong please let me know. Thanks Donald W. Long (donald.w.l...@thelongsfamily.com) On Jul 20, 1:34 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Martin, You may try using the link source option, as suggested by the thread athttp://groups.google.com/group/google-appengine-java/browse_thread/th If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Add external java project to GWT project in Eclipse
Now I tried the link source function without Google App Engine. At first, it seems to work, and the project is added to my main project. The only problem is: The package declarations produce errors. Eclipse shows an error message: The declared package com.company.data does not match the expected package src.com.company.data What to do? On 20 Jul., 22:29, martinhansen martin.hanse...@googlemail.com wrote: Hello Donald, I already tried the Google App Engine approach, but it didn't work for me. And GAE adds a lot of stuff I don't need to my project. I really don't want to mess around with it, since I managed to kill my GWT app's configuration several times and I had to create a new project. Meanwhile, I tried the output folder approach. I tried to change the default output folder of DataProject, but I didn't manage successfully. Eclipse says: Path '/GwtApp/src' must denote location inside project 'DataProject'. Am I heading the wrong way there? On 20 Jul., 22:21, Donald W. Long donald.w.l...@gmail.com wrote: I looked at the linked source method and you have to have the linked source fully qualified. Thats nice if you always have your source in the same place. You could try using the linked variables but then thats also work. Do not see this as a real option for projects that will be worked on by many developers at the same time. If I am wrong please let me know. Thanks Donald W. Long (donald.w.l...@thelongsfamily.com) On Jul 20, 1:34 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Martin, You may try using the link source option, as suggested by the thread athttp://groups.google.com/group/google-appengine-java/browse_thread/th If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: JSNI issues
2) is the pure JS scenario, which I trying to port to GWT using JSNI. I fail, though, as the very first command vis = new $wnd.pv.Panel().canvas(PVis); fails with the following JavaScript exception $wnd.pv has no properties I will see if the overlay types help. Thanks for the pointer! On Jul 20, 7:48 pm, Adam T adam.t...@gmail.com wrote: It could still be a similar thing; I'm not 100% clear what you are trying to do above, but it looks like your steps are: 1) Load an external JavaScript library, e.g. protovis.js 2) Run some other JavaScript which creates something in the DOM, e.g. the vis = new pv.Panel().canvas(PVis); .vis.render(); part 3) In GWT access the rendered PVis component. If that's correct, then by moving the protovis.js to the .gwt.xml part your ensuring that the library loads before your GWT, but it is still possible that part (2) is executing after your GWT code, and hence it is not available to your GWT code when it runs. You could wrap that code in it's own file and load through the script tag (though I'm not sure about ordering in the gwt.xl file). I'd also suggest you use some debugging tools (Firebug for example in Firefox) to look at what your code is doing, that should show you the scoping of pv etc. (though you might be better off writing a wrapper using JavaScript Overlay types (http://googlewebtoolkit.blogspot.com/2008/08/getting-to- really-know-gwt-part-2.html) that would let you merge GWT and the protovis library in a more natural style, than the approach you're taking just now) Good luck, //Adam On 20 Juli, 17:41, wsaleem wsal...@gmail.com wrote: Adam, I added script src=protovis.js / to the .gwt.xml. No change! On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote: Hi, It might be the case that in both cases your GWT code is loaded and executing before the browser has loaded your externally referenced JavaScript file. To remove that possiblity, you can place the script tag you have in the HTML into your module's .gwt.xml definition, i.e. module inherits name='com.google.gwt.user.User' / script type=text/javascript src=protovis.js /module With this sett up, the GWT boostrap code should ensure the library JavaScript is loaded before your GWT code executes. //Adam On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote: I am not a JS developer and use it pretty much by example, so it might be that I am missing something really basic below. I have come across problems using JSNI in the following 2 scenarios: 1. I use Google Visualization API successfully in JS as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JS file google.load('visualization', '1', {'packages':['piechart']}); // == future JSNI problems occur here var chart = new google.visualization.LineChart (document.getElementById('GoogleVisChart')); // other JS commands to draw the chart ** and then try to write a wrapper using GWT JSNI as follows: HTML file script type=text/javascript src=http://www.google.com/jsapi;/ script JAVA file class GChart { static { _init(); } private static native void _init() /*-{ // === ERROR at this function $wnd.google.load('visualization', '1', {'packages': ['piechart']}); }-*/; JavaScriptObject gvis; public GChart( String id ) { gvis = _chart( id ); } private native JavaScriptObject _chart( String id ) /*-{ return new $wnd.google.visualization.LineChart ($wnd.document.getElementById( id ) ); }-*/; // methods to draw the chart through native functions ** The GWT compiler gives the following error for the above code [ERROR] Unable to load module entry point class com.google.gwt.app.testGViz.client.TestGViz (see associated exception for details) java.lang.RuntimeException: Failed to invoke native method: @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments. at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java: 132) at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke (ModuleSpaceMoz.java:98) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:248) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:107) at com.google.gwt.app.testGViz.client.GChart._init(GChart.java) at com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7) at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad (TestGViz.java:21)
Re: Add external java project to GWT project in Eclipse
Hi Martin, For the Linked folder location, ensure you have the trailing src included. jason On Mon, Jul 20, 2009 at 4:35 PM, martinhansen martin.hanse...@googlemail.com wrote: Now I tried the link source function without Google App Engine. At first, it seems to work, and the project is added to my main project. The only problem is: The package declarations produce errors. Eclipse shows an error message: The declared package com.company.data does not match the expected package src.com.company.data What to do? On 20 Jul., 22:29, martinhansen martin.hanse...@googlemail.com wrote: Hello Donald, I already tried the Google App Engine approach, but it didn't work for me. And GAE adds a lot of stuff I don't need to my project. I really don't want to mess around with it, since I managed to kill my GWT app's configuration several times and I had to create a new project. Meanwhile, I tried the output folder approach. I tried to change the default output folder of DataProject, but I didn't manage successfully. Eclipse says: Path '/GwtApp/src' must denote location inside project 'DataProject'. Am I heading the wrong way there? On 20 Jul., 22:21, Donald W. Long donald.w.l...@gmail.com wrote: I looked at the linked source method and you have to have the linked source fully qualified. Thats nice if you always have your source in the same place. You could try using the linked variables but then thats also work. Do not see this as a real option for projects that will be worked on by many developers at the same time. If I am wrong please let me know. Thanks Donald W. Long (donald.w.l...@thelongsfamily.com) On Jul 20, 1:34 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Martin, You may try using the link source option, as suggested by the thread athttp://groups.google.com/group/google-appengine-java/browse_thread/th.. .. If that doesn't work, you could set the output directory of your dependencies to be the GWT output folder. jason On Mon, Jul 20, 2009 at 12:14 PM, martinhansen martin.hanse...@googlemail.com wrote: Hello Sean, thank you very much. I've thought of that solution too, but it is not appropriate for my GWT project. I have to add 4 external projects to my GWT project, and all of these 4 projects are subject to change every day. It would be too much work to export them to a jar file every day. Is there some way to automatically add the external project sources to the GWT output folder? On 20 Jul., 18:03, Sean slough...@gmail.com wrote: You can export the non-GWT java files into a jar and drop those in the WEB-INF/lib folder. That's what I do. On Jul 20, 11:44 am, martinhansen martin.hanse...@googlemail.com wrote: Hello, my GWT server-side code needs an external java project. I have added the project under Configure build path / Projects. It works fine in hosted mode. But when I deploy my application on a server, I get lots of ClassNotFoundExceptions. Obviously, GWT cannot find the external java code. When I look at the war\WEB-INF\classes folder, I see that the external java classes have not been included. How can I get GWT to include the external classes?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Common parent project - How?
Hey, I believe the easiest way to accomplish this is instead of using the project dependencies, use the linked source feature. For each of your child projects, go to Properties Java Build Path Source Link Source, and set the location to your core project's src directory (and the name to whatever you like). jason On Mon, Jul 20, 2009 at 2:42 PM, Wualla wua...@walla.co.il wrote: Hi Scenario: Core client and server code needs to be shared among several projects (referred to as child projects) My try was ro create the core project as a GWT project, and add it to the build path of the child projects as a dependency project. Under Jetty, everything works OK except I get this message: [WARN] Server class 'com.mycompany.core.client.domainObjects.User' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry '.../Core/war/WEB-INF/classes/' to the web app classpath for this session When deployed - to Tomcat - I get: ... javax.servlet.ServletException: Error instantiating servlet class com.mycompany.myProject.server.MyServiceImpl ... java.lang.NoClassDefFoundError: com/mycompany/core/client/domain/User ... java.lang.ClassNotFoundException: com.mycompany.core.client.domainObjects.User ... What should I do? Help please... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with changing the font-size for Tabpanel
Hi, I have a small web application. I would like to change the fontsize of the tabpanel but I could not. At least so it seems. I could change boldness. I have tried to modify the css. I had tried .gwt-TabPanel { font-size: 8pt; } .exp -- name of the div { font-size: 8pt; } What is the solution ,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 -~--~~~~--~~--~--~---
GWT Toolkit Problem
Hi all.. i hope you can help me. I am new to GWT. I am using RAD 7.5. I have ran through the StockWatcher tutorial and succesfully got the app working and even got the Client Server communication using 2 seperate machines using RPC using a Proxy. I also managed to import the created project into a Dynamic Web Project created by RAD. This also would run on WebSphere Test Env and Hosted mode. However, i have now come across an issue where the app wont recognise the Service class specifed in the web.xml as a servlet. . I have even gone back to basics and created a new GWT application from scratch and followed through the StockWatcher tutorial again but i keep getting the same error which i have posted below. I have ran the updates for the GWT. I believe the version i am on is 1.7. Thanks in advance for your help. 20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed stockPriceServiceImpl Throwable occurred: javax.servlet.UnavailableException: Servlet class com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not a javax.servlet.Servlet at org.mortbay.jetty.servlet.ServletHolder.checkServletType (ServletHolder.java:377) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 234) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:612) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:147) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:211) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start (AppEngineLauncher.java:86) at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) 20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger warn WARNING: Failed startup of context com.google.apphosting.utils.jetty.devappenginewebappcont...@4e9d4e9d {/,C:\Files\IBM\RAD\GoogleWebToolkit\StockWatcher\war} Throwable occurred: javax.servlet.UnavailableException: Servlet class com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not a javax.servlet.Servlet at org.mortbay.jetty.servlet.ServletHolder.checkServletType (ServletHolder.java:377) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 234) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:612) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:147) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:211) at
Re: Eclipse plugin update
Thanks, It worked removing all sites but the Google update site On Jul 20, 1:37 pm, Jason Parekh jasonpar...@gmail.com wrote: Hmm, have you accidentally placed checkmarks in any other plugins besides Google Plugin for Eclipse? The Google Plugin for Eclipse doesn't depend on any of the plugins you mentioned. Could you try clicking the Available software tab, and the Manage sites button, and uncheck every update site but the Google update site? jason On Mon, Jul 20, 2009 at 10:54 AM, pipe lfp...@gmail.com wrote: Eclipse Platform Version: 3.4.2 Build id: M20090211-1700 I' m getting an error trying to update thru the Google Update Site for Eclipse 3.4, I'm checking the Google App Engine Java SDK 1.2.2 and the Google Web Toolkit SDK 1.7.0: An error occurred while collecting items to be installed No repository found containing: com.caucho.hessian/osgi.bundle/3.1.3 No repository found containing: javax.activation/osgi.bundle/ 1.1.0.v200905021805 No repository found containing: javax.mail/osgi.bundle/ 1.4.0.v200905040518 No repository found containing: javax.persistence/osgi.bundle/ 1.99.0.v200906021518 No repository found containing: javax.transaction/osgi.bundle/ 1.1.1.v200906161300 No repository found containing: org.apache.oro/osgi.bundle/ 2.0.8.v200903061218 No repository found containing: org.apache.velocity/osgi.bundle/ 1.5.0.v200905192330 No repository found containing: org.eclipse.dltk.core/osgi.bundle/ 1.0.0.v20090617-1157 No repository found containing: org.eclipse.dltk.debug/osgi.bundle/ 1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.formatter/ osgi.bundle/1.0.0.v20090617-1404 No repository found containing: org.eclipse.dltk.launching/ osgi.bundle/1.0.0.v20090610-1638 No repository found containing: org.eclipse.dltk.ruby.core/ osgi.bundle/1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.ruby.formatter/ osgi.bundle/1.0.0.v20090617-1157 No repository found containing: org.eclipse.dltk.ruby.ui/osgi.bundle/ 1.0.0.v20090613-1432 No repository found containing: org.eclipse.dltk.ui/osgi.bundle/ 1.0.0.v20090617-1521 No repository found containing: org.eclipse.equinox.concurrent/ osgi.bundle/1.0.0.v20090520-1800 No repository found containing: org.eclipse.persistence.antlr/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.asm/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.core/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.persistence.jpa/ osgi.bundle/1.1.2.v20090612-r4475 No repository found containing: org.eclipse.tptp.platform.agentcontroller/osgi.bundle/ 4.2.300.v200906041936 No repository found containing: org.eclipse.tptp.platform.iac.administrator/osgi.bundle/ 4.4.300.v200905160100 No repository found containing: org.jdom/osgi.bundle/ 1.0.0.v200806100616 --~--~-~--~~~---~--~~ 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: JSNI: window vs $wnd
On 20 juil, 22:26, mike mikebannis...@gmail.com wrote: Darth, ...ahh, great thanks. I got to $wnd to work for code in the cross-site communication tutorial. I think the problem was that I was using document and $wnd rather than $doc and $wnd. I haven't completely worked out in my head why the former wouldn't work but it seems sensible that you would need to make sure it's all either happening on the host page or all in the iframe. You add your script node to 'document' (which lives in 'window') but you define the callback function in $wnd. When the script loads, it calls a function called callbackID (where ID is a counter); in JavaScript, this is equivalent to calling window.callbackID (because 'window', and window.window, and window.window.window, and etc. is the global object); but as I said before, the function doesn't exist, as it has been actually defined in $wnd. Incidentally, if you add-linker name=xs / in your gwt.xml, it'll work, because in this case $wnd == window and $doc == document. Any guess why the tutorial uses window/document rather than $wnd/ $doc ? That way, it doesn't pollute the window name space (only the $wnd name space, which is only ever used by your GWT compiled code), as it uses window[something] = ... constructs (incidentally, if you add- linker name=xs /, it *will* pollute the window namespace). --~--~-~--~~~---~--~~ 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 UI design best practices
On 20 juil, 08:37, Ståle Undheim staa...@gmail.com wrote: I have worked with web for ages, and although I am not that good at web design, I can make passable pages in HTML. However, going to the GWT world, I feel a bit lost about how to setup my UI, and organize classes and such. I create panels and add components, but I really am not sure how to set things up to look good. One approach I am trying a bit now is to have panels, and have the elements as anonymous class extensions off the fields: public class SomePanel extends FlowPanel { private final TextBox search = new TextBox() {{ addStyleName(span-10); addKeyUpHandler(...); }}; { add(search); } } This creates a lot of classes, which will have to be compiled into JS. The GWT optimizes the best it can but it won't make miracles, so those classes will add some overhead. I am also considering now to just write things up in HTML, then convert it all to DOM.create, but that seems overly verbose. Use HTMLPanels instead. I really hope UiBinder becomes available soon, as that seems to be closer to what I would like to have. Anyone got any good advice for how I should organize classes and panels? I'd recommend the Measure in Milliseconds: Performance Tips for Google Web Toolkit talk from Google I/O, in addition to the Best Practices for Architecting Your GWT App one. http://code.google.com/events/io/sessions/MeasureMillisecondsPerformanceTipsWebToolkit.html There's a trade-off to find between code beauty and performance. --~--~-~--~~~---~--~~ 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 + email
this code works fine when i have a java app. I do have the mail.jar in my path. Any ideas? On Jul 20, 3:27 pm, Donald W. Long donald.w.l...@gmail.com wrote: Do you have the jar for gmail in your path? On Jul 19, 7:52 am, Petein majestyel...@gmail.com wrote: Hi. I made an RPC for sending an email this is the Impl file: package faceRecognition.server; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import faceRecognition.client.EmailService; import faceRecognition.server.Email.SendMail.Gmail; @SuppressWarnings(serial) public class EmailServiceImpl extends RemoteServiceServlet implements EmailService { @Override public String send(String emailTo, String subject, String body) { String msg = ; msg = Gmail.send(this, emailTo, subject, body); return(msg); } } when i commented out the line msg = Gmail.send(this, emailTo, subject, body); everything is ok. the problem is in the method Gmail.send: package faceRecognition.server.Email.SendMail; import java.security.Security; import java.util.Properties; import javax.mail.*; import javax.mail.internet.*; public class Gmail { private static final String SMTP_HOST_NAME = smtp.gmail.com; private static final String SMTP_PORT = 465; private static final String SSL_FACTORY = javax.net.ssl.SSLSocketFactory; public static String send(String emailFromAddress, String sendTo, String subject, String body){ Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider ()); String[] emails = new String[1]; emails[0] = sendTo; try { sendSSLMessage(usern...@gmail.com, password, emails, subject, body, emailFromAddress); return(); }catch (Exception e) { e.printStackTrace(); return(e.getMessage()); } } private static void sendSSLMessage(final String username, final String password, String recipients[], String subject, String message, String from) throws MessagingException { boolean debug = true; Properties props = new Properties(); props.put(mail.smtp.host, SMTP_HOST_NAME); props.put(mail.smtp.auth, true); props.put(mail.debug, true); props.put(mail.smtp.port, SMTP_PORT); props.put(mail.smtp.socketFactory.port, SMTP_PORT); props.put(mail.smtp.socketFactory.class, SSL_FACTORY); props.put(mail.smtp.socketFactory.fallback, false); Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } }); session.setDebug(debug); Message msg = new MimeMessage(session); InternetAddress addressFrom = new InternetAddress(from); msg.setFrom(addressFrom); InternetAddress[] addressTo = new InternetAddress [recipients.length]; for (int i = 0; i recipients.length; i++) { addressTo[i] = new InternetAddress(recipients[i]); } msg.setRecipients(Message.RecipientType.TO, addressTo); // Setting the Subject and Content Type msg.setSubject(subject); msg.setContent(message, text/html); //Transport.send(msg); javax.mail.Transport.send(msg); //HERE I GET THE FOLLOWING ERROR } } The error which i get is: DEBUG: getProvider() returning javax.mail.Provider [TRANSPORT,gm,com.google.appengine.api.mail.stdimpl.GMTransport] com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'mail' or call 'Send()' was not found. at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:70) at com.google.appengine.api.mail.MailServiceImpl.doSend (MailServiceImpl.java:96) at com.google.appengine.api.mail.MailServiceImpl.send (MailServiceImpl.java:33) at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage (GMTransport.java:247) at javax.mail.Transport.send0(Transport.java:191) at javax.mail.Transport.send(Transport.java:120) at faceRecognition.server.Email.SendMail.Gmail.sendSSLMessage (Gmail.java:75) at faceRecognition.server.Email.SendMail.Gmail.send(Gmail.java:26) at faceRecognition.server.EmailServiceImpl.send(EmailServiceImpl.java: 17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke
Re: Hooking a GWT event onto an element in an external iframe
Hi Mat, Thanks for your reply. That was really helpful. Tin On Jul 20, 2:11 pm, Mat Gessel mat.ges...@gmail.com wrote: HiTin, There is a potential for memory leaks via event listeners due to cyclical references between DOM and JS. To avoid this, GWT manages the event listeners via the Widget lifecycle. When the widget is attached to the DOM (i.e. it or it's ancestor is attached to a RootPanel) the widget's event listener is initialized. When the widget is detached (or the page is unloaded) the event listener is cleaned up. You can see the code in Widget.onAttach() and Widget.onDetach(). I'd say it is erroneous to use Widget outside of the normal Widget containment hierarchy. Instead, we can set an event listener directly: DOM.setEventListener(buttonElement, new EventListener() { // you will only get the events you sink void onBrowserEvent(Event event) { // references in this method can result in a memory leak Window.alert(GWT-hacky-clicked!); } }); // connect the foreign element to the GWT event dispatcher DOM.sinkEvents(buttonElement, Event.ONCLICK); Also consider adding a Window CloseHandler to prevent the memory leak. Window.addCloseHandler(new CloseHandlerWindow() { public void onClose(CloseEventWindow event) { DOM.setEventListener(buttonElement, null); } }); You can also look at HandlerManager and DomEvent.fireNativeEvent() to see how to translate Event into a ClickEvent, but IMO that is overkill. -= Mat On Thu, Jul 16, 2009 at 4:27 PM,tintin.pavli...@gmail.com wrote: I am writing a GWT app that involves interacting with an external document in an iframe. As a proof of concept, I am trying to attach a click handler to a button. The following works in javascript var iframe = document.getElementById(rawJSIFrame); var doc = iframe.contentDocument; var body = doc.body; var button = doc.getElementsByTagName(input).namedItem(submit); button.onclick = function() { alert(Clicked!); }; Trying to do the equivalent in GWT, I did the following: public void addClickHandlerToSubmitButton(String buttonElementName, ClickHandler clickHandler) { IFrameElement iframe = IFrameElement.as(frame.getElement()); Document frameDocument = getIFrameDocument(iframe); if (frameDocument != null) { Element buttonElement = finder(frameDocument).tag(input).name (buttonElementName).findOne(); ElementWrapper wrapper = new ElementWrapper(buttonElement); HandlerRegistration handlerRegistration = wrapper.addClickHandler(clickHandler); } } private native Document getIFrameDocument(IFrameElement iframe)/*-{ return iframe.contentDocument; }-*/; The following is the ElementWrapper class: public class ElementWrapper extends Widget implements HasClickHandlers { public ElementWrapper(Element theElement) { setElement(theElement); } public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } } The code to find the button works fine but the actual click event handler is not getting invoked. Has anybody had a similar issue before, and how did you resolve it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
Thomas, That's pretty cool. Ook leuk om iets in 't Nederlands te zien. Have you listed your game in the App Gallery yet? http://gwtgallery.appspot.com/ Thanks for the suggestion for a global function to stop playing sounds. That seems pretty useful. Would you mind proposing it here? http://code.google.com/p/gwt-voices/issues/list Thanks Fred On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote: Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... - Main project page -http://code.google.com/p/gwt-dnd/ - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page -http://code.google.com/p/gwt-log/ - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-log/downloads/list - Building from trunk - http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse *gwt-voices-1.6.0.jar* - Cross platform browser sound support Recent change to allow streaming MP3 sounds to be replayed after sound.stop() has been called. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/Voi... - Main
Re: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
Thomas, I've also listed your project here: http://code.google.com/p/gwt-voices/ http://code.google.com/p/gwt-dnd/ Fred On Mon, Jul 20, 2009 at 4:14 PM, Fred Sauer fre...@google.com wrote: Thomas, That's pretty cool. Ook leuk om iets in 't Nederlands te zien. Have you listed your game in the App Gallery yet? http://gwtgallery.appspot.com/ Thanks for the suggestion for a global function to stop playing sounds. That seems pretty useful. Would you mind proposing it here? http://code.google.com/p/gwt-voices/issues/list Thanks Fred On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote: Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... - Main project page -http://code.google.com/p/gwt-dnd/ - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page -http://code.google.com/p/gwt-log/ - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-log/downloads/list - Building from trunk - http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse *gwt-voices-1.6.0.jar* - Cross platform browser sound support Recent change to allow streaming MP3 sounds to
which panel should i use
Hi, i want to create an horizontal split with an list of Labels on left side and an tab index on the right side. I would like to know which panel should be best for it , horizontal spilt panel or dock panel? or any other? how to add more widgets on one side of horizontal spilt panel. i was trying the setLeft option but it only allows the last one to display 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: Composite - disabling click events
Check out GWT implementation of CustomButton. It seems that the goal can be achieved by overwrite onBrowserEvent (Event event) method without using the method proposed above. FYI -Ben On Jun 23, 4:07 am, romant roman.te...@gmail.com wrote: Ok, I used just basic approach, if anyone is interested in enabling/ disabling click events on your own composite here it is: public class MyButton extends Composite implements HasClickHandlers, ClickHandler { private final HashSetClickHandler clickHandlers; private boolean enabled; public MyButton() { clickHandlers = new HashSet(); addDomHandler(this, ClickEvent.getType()); ... initWidget(your_complex_widget); } public HandlerRegistration addClickHandler(ClickHandlerhandler) { clickHandlers.add(handler); // don't care about the return value, nobody should need it // if necessary return some convenient class extending HandlerRegistration // or create some special method for removing the clickhandlerfrom the clickHandlers list return null; } public void onClick(ClickEventevent) { if (enabled) { for (ClickHandlerhandler: clickHandlers) { handler.onClick(event); } } } public void setEnabled(boolean enabled) { this.enabled = enabled; } } Any suggestions for improvements are welcome. --~--~-~--~~~---~--~~ 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: Ubuntu 9.04: com.google.gwt.core.client.JavaScriptException: (SyntaxError): syntax error
Bug found. I am using PrintWriter out = resp.getWriter() to generate the JSON data and return to the client code. I found that the JSON data received by client code consists of extra tag pre[{blak, blak, blak},]/pre. So, i removed using the following replace function then the bug is fixed. json = json.replace(pre, ); json = json.replace(/pre, ); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
setHTML is not working in Mozilla and Chrome
Hi all, i faced a problem with the following code, == output += brbrtable; Iterator itr = hm.keySet().iterator(); NumberFormat changeFormat = NumberFormat.getFormat(#,##0.00); while(itr.hasNext()){ String key = (String) itr.next(); String value = hm.get(key); double size = hi.get(key); size = size / totalSize * 100; String sizeTemp = changeFormat.format(size); output += trtdspan class='+key+'+value+/tdtd:/ tdtd+sizeTemp+%/td/tr; } output +=/table; h.setHTML(output); output=; return h; === Initially, i am testing in hosted mode, everything is working properly, but when i switched to Mozilla and Chrome, the browser is not responded, but IE is working properly. The return value h will be added into a VerticalPanel, homePanel.add(h). I am not sure whether it is a correct way to display in a panel. So perhaps someone can give me some guideline. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: setHTML is not working in Mozilla and Chrome
Hi Simon, The overall idea looks correct. Is this copied from the original code? The span tag is left open; that may be the cause of you troubles. -= Mat On Mon, Jul 20, 2009 at 7:54 PM, Simonchoonchin...@gmail.com wrote: Hi all, i faced a problem with the following code, == output += brbrtable; Iterator itr = hm.keySet().iterator(); NumberFormat changeFormat = NumberFormat.getFormat(#,##0.00); while(itr.hasNext()){ String key = (String) itr.next(); String value = hm.get(key); double size = hi.get(key); size = size / totalSize * 100; String sizeTemp = changeFormat.format(size); output += trtdspan class='+key+'+value+/tdtd:/ tdtd+sizeTemp+%/td/tr; } output +=/table; h.setHTML(output); output=; return h; === Initially, i am testing in hosted mode, everything is working properly, but when i switched to Mozilla and Chrome, the browser is not responded, but IE is working properly. The return value h will be added into a VerticalPanel, homePanel.add(h). I am not sure whether it is a correct way to display in a panel. So perhaps someone can give me some guideline. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Emulate JS stack traces (phase 1)
Ping. http://gwt-code-reviews.appspot.com/47816 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RR : Fix a SingleJsoImpl web-mode calculation bug
Reviewers: Lex, scottb, Message: Review requested. Description: JTypeOracle.computeSingleJsoImplData() was using an incorrect test to determine if an interface is a tag interface. It was looking at the number of methods declared on the interface type without looking at the interface's supertypes. Please review this at http://gwt-code-reviews.appspot.com/51805 Affected files: M dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java A user/test/com/google/gwt/dev/jjs/test/singlejso/DiamondImpl.java A user/test/com/google/gwt/dev/jjs/test/singlejso/IDiamond1.java A user/test/com/google/gwt/dev/jjs/test/singlejso/IDiamond2A.java A user/test/com/google/gwt/dev/jjs/test/singlejso/IDiamond2B.java M user/test/com/google/gwt/dev/jjs/test/singlejso/TypeHierarchyTest.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Fix a SingleJsoImpl web-mode calculation bug
LGTM, only comment is that for tiny test types that small, it would probably be better to just make them static inners of the test class. http://gwt-code-reviews.appspot.com/51805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Proposal for improving JDO/JPA RPC support
Hi all - I've been working on a patch to improve support for RPC of persistence-enhanced objects that would replace the one I recently submitted as trunk revision 5672. I'd like to give those of you who are interested in the interaction between RPC and persistence a chance to help me validate the design before moving forward. The idea is to be able to deal with different persistence mechanisms in a way that does not depend too much on the details of their implementations. We assume that the persistence mechanism provides a way for instances to be detached from the object store, serialized, deserialized, and reattached in a well-defined way. Our strategy leverages this capability as follows: 1) User code on the server detaches the object and places it into a state such that serialization is valid 2) GWT detects whether any instance fields are present on the object that were not known to client code 3) GWT performs hybrid serialization: a) GWT uses its regular RPC mechanism for the client-visible fields b) GWT uses Java serialization for any additional server-only instance fields c) GWT encodes the results of step (b) as a String d) GWT prepends the encoded String to the regular RPC data and transmits to the client 4) Client code treats the object in the normal way and does not interact with the data from step (3b) 5) When the object is sent back to the server, the normal RPC mechanism is altered as follows a) the encoded server data is decoded and deserialized into the new object instance b) the client data is populated using setXXX() method invocations rather than by directly setting field values All this is done only for classes that can be send bidirectionally, and which are determined to be (potentially) enhanced. The potential for enhancement is signaled in one of three ways: o The user adds the fully-qualified class name to a 'gwt.enhancedClasses' configuration property o The class is determined to have the JDO @PersistenceCapable annotation with detachable=true o The class is determined to have the JPA @Entity annotation If a class is determined to be potentially enhanced, the list of fields known to the client is added to the '.gwt.rpc' file that contains the RPC whitelist. This list is used by step 2 of the RPC process which compares the set of client- and server-visible fields. Step (5b) is necessary to accommodate mechanisms like that of JDO, where the setter methods are enhanced to provide object state tracking (dirty bits). If we were to set the fields directly, the object detached state would not be updated properly. My hope is that this mechanism would be general enough to support a variety of persistence mechanisms without the need to add a lot of special-case code. I'm looking forward to any comments that you have as to whether this will work with your favorite persistence API, or any other thoughts that you have. Thanks, Dan --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Proposal for improving JDO/JPA RPC support
5) When the object is sent back to the server, the normal RPC mechanism is altered as follows a) the encoded server data is decoded and deserialized into the new object instance b) the client data is populated using setXXX() method invocations rather than by directly setting field values Is this introducing a requirement that all serializable fields have setters? Or will direct field access be used where a setter can't be found? On Mon, Jul 20, 2009 at 2:06 PM, Daniel Rice (דניאל רייס)r...@google.com wrote: Hi all - I've been working on a patch to improve support for RPC of persistence-enhanced objects that would replace the one I recently submitted as trunk revision 5672. I'd like to give those of you who are interested in the interaction between RPC and persistence a chance to help me validate the design before moving forward. The idea is to be able to deal with different persistence mechanisms in a way that does not depend too much on the details of their implementations. We assume that the persistence mechanism provides a way for instances to be detached from the object store, serialized, deserialized, and reattached in a well-defined way. Our strategy leverages this capability as follows: 1) User code on the server detaches the object and places it into a state such that serialization is valid 2) GWT detects whether any instance fields are present on the object that were not known to client code 3) GWT performs hybrid serialization: a) GWT uses its regular RPC mechanism for the client-visible fields b) GWT uses Java serialization for any additional server-only instance fields c) GWT encodes the results of step (b) as a String d) GWT prepends the encoded String to the regular RPC data and transmits to the client 4) Client code treats the object in the normal way and does not interact with the data from step (3b) 5) When the object is sent back to the server, the normal RPC mechanism is altered as follows a) the encoded server data is decoded and deserialized into the new object instance b) the client data is populated using setXXX() method invocations rather than by directly setting field values All this is done only for classes that can be send bidirectionally, and which are determined to be (potentially) enhanced. The potential for enhancement is signaled in one of three ways: o The user adds the fully-qualified class name to a 'gwt.enhancedClasses' configuration property o The class is determined to have the JDO @PersistenceCapable annotation with detachable=true o The class is determined to have the JPA @Entity annotation If a class is determined to be potentially enhanced, the list of fields known to the client is added to the '.gwt.rpc' file that contains the RPC whitelist. This list is used by step 2 of the RPC process which compares the set of client- and server-visible fields. Step (5b) is necessary to accommodate mechanisms like that of JDO, where the setter methods are enhanced to provide object state tracking (dirty bits). If we were to set the fields directly, the object detached state would not be updated properly. My hope is that this mechanism would be general enough to support a variety of persistence mechanisms without the need to add a lot of special-case code. I'm looking forward to any comments that you have as to whether this will work with your favorite persistence API, or any other thoughts that you have. Thanks, Dan --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Proposal for improving JDO/JPA RPC support
The latter. The first time the class is encountered, GWT would search for setters (field 'T theField' would cause a search for a setter 'void setTheField(T arg)') and create a map from field names to setters. If there's no setter for a given field, the field would be set directly. Dan On Mon, Jul 20, 2009 at 2:18 PM, Isaac Truett itru...@gmail.com wrote: 5) When the object is sent back to the server, the normal RPC mechanism is altered as follows a) the encoded server data is decoded and deserialized into the new object instance b) the client data is populated using setXXX() method invocations rather than by directly setting field values Is this introducing a requirement that all serializable fields have setters? Or will direct field access be used where a setter can't be found? On Mon, Jul 20, 2009 at 2:06 PM, Daniel Rice (דניאל רייס)r...@google.com wrote: Hi all - I've been working on a patch to improve support for RPC of persistence-enhanced objects that would replace the one I recently submitted as trunk revision 5672. I'd like to give those of you who are interested in the interaction between RPC and persistence a chance to help me validate the design before moving forward. The idea is to be able to deal with different persistence mechanisms in a way that does not depend too much on the details of their implementations. We assume that the persistence mechanism provides a way for instances to be detached from the object store, serialized, deserialized, and reattached in a well-defined way. Our strategy leverages this capability as follows: 1) User code on the server detaches the object and places it into a state such that serialization is valid 2) GWT detects whether any instance fields are present on the object that were not known to client code 3) GWT performs hybrid serialization: a) GWT uses its regular RPC mechanism for the client-visible fields b) GWT uses Java serialization for any additional server-only instance fields c) GWT encodes the results of step (b) as a String d) GWT prepends the encoded String to the regular RPC data and transmits to the client 4) Client code treats the object in the normal way and does not interact with the data from step (3b) 5) When the object is sent back to the server, the normal RPC mechanism is altered as follows a) the encoded server data is decoded and deserialized into the new object instance b) the client data is populated using setXXX() method invocations rather than by directly setting field values All this is done only for classes that can be send bidirectionally, and which are determined to be (potentially) enhanced. The potential for enhancement is signaled in one of three ways: o The user adds the fully-qualified class name to a 'gwt.enhancedClasses' configuration property o The class is determined to have the JDO @PersistenceCapable annotation with detachable=true o The class is determined to have the JPA @Entity annotation If a class is determined to be potentially enhanced, the list of fields known to the client is added to the '.gwt.rpc' file that contains the RPC whitelist. This list is used by step 2 of the RPC process which compares the set of client- and server-visible fields. Step (5b) is necessary to accommodate mechanisms like that of JDO, where the setter methods are enhanced to provide object state tracking (dirty bits). If we were to set the fields directly, the object detached state would not be updated properly. My hope is that this mechanism would be general enough to support a variety of persistence mechanisms without the need to add a lot of special-case code. I'm looking forward to any comments that you have as to whether this will work with your favorite persistence API, or any other thoughts that you have. Thanks, Dan --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: test fixes for issue 47802, assertions in all (esp. web mode) tests
On 2009/07/15 17:16:37, jat wrote: LGTM. I only reviewed the two requested files -- let me know if I should review anything else. http://gwt-code-reviews.appspot.com/47817/diff/1/9 File user/test/com/google/gwt/dev/jjs/test/CoverageTest.java (right): http://gwt-code-reviews.appspot.com/47817/diff/1/9#newcode199 Line 199: assertTrue(0.01 Math.abs(1.2f - val)); I find ordering it this way to be less clear -- I would prefer Math.abs() EPSILON (and defining EPSILON appropriately) as it seems to clearly indicate what is being done. Done. http://gwt-code-reviews.appspot.com/47817 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Add emma code coverage output to GWT build files
Reviewers: fabbott, Description: Description: === This patch adds emma code coverage statistics to the output of an ant test. In order to add emma stats, use the following command (copied from emma's user guide): ant emma test Where 'emma' sets a property that enabled emma. Optionally, you can add 'emma.merge' to merge the results: ant emma test emma.merge emma.merge needs to be its own target because we currently haltonerror when a junit test fails. If emma.merge were the last step of 'test', it would not run on a test failure. However, it does run as its own command line. Testing: I ran the tests a couple of times with emma on and off and verified that the results are as expected. Please review this at http://gwt-code-reviews.appspot.com/51807 Affected files: build-tools/ant-gwt/build.xml build.xml common.ant.xml dev/core/build.xml tools/api-checker/build.xml user/build.xml --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Fix a SingleJsoImpl web-mode calculation bug
Thanks. The extra test types were incorporated into singlejso.TypeHierarchyTest. Committed at r5756. http://gwt-code-reviews.appspot.com/51805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Emulate JS stack traces (phase 1)
On Mon, Jul 20, 2009 at 9:20 AM, b...@google.com wrote: http://gwt-code-reviews.appspot.com/47816 I'll review it. Man, what a great talking point this is going to be. Because GWT has a compiler, we get to do fine-grained rewrites like this one. Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Once more: HTMLPanel with custom root, now IE-proof
Reviewers: jgw, Description: Hey Joel, remember this? I had to roll it back because it didn't work on IE as it was before--IE is finicky about just where and how you write to innerHTML. Can you re-review this robustificated version? Please review this at http://gwt-code-reviews.appspot.com/51808 Affected files: user/src/com/google/gwt/user/client/ui/HTMLPanel.java user/test/com/google/gwt/user/client/ui/HTMLPanelTest.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] the old Event Listeners will be removed in GWT 2.0?
The old Event Listeners will be removed in GWT 2.0? My vote is yes. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---