GWT Mail sample using Spring Dreamsource ORM
I modified the GWT mail sample distributed with GWT. The mail sample can retrieve emails from HSQLDB and update contacts in the database. I use the following features - Spring IOC and Spring AOP transaction, Dreamsource ORM. You can lauch a href=http://www.leeonsoft.com/mail/ Mail.htmlthis application/a. The source code is available from http://dreamsource-orm.googlecode.com/files/mail_1.0.0_04202009.jar. You need Dreamsource ORM source code that is also available from http://dreamsource-orm.googlecode.com/files/dreamsource2_0_1_04202009_GWT_src.jar. Dreamsource ORM is making big difference in developing GWT application. Any feedback is welcome. Jim Xie --~--~-~--~~~---~--~~ 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: Announcing GWT 1.6...and quite a bit more
Thanks for your replies guys, I just reported the bug, here's the link http://code.google.com/p/google-web-toolkit/issues/detail?id=3583 On Apr 21, 1:17 am, Sumit Chandel sumitchan...@google.com wrote: Hi Salvador, Also, if you do discover a veritable bug, or a valid feature request related to GWT functionality (for example, the request for better Maven integration for the Google Plug-in for Eclipse), feel free to report it on the GWT Issue Tracker. We've added new labels to categorize and track plug-in issues there. Issue Tracker:http://code.google.com/p/google-web-toolkit/issues/list Cheers, -Sumit Chandel On Sun, Apr 19, 2009 at 7:15 AM, Salvador Diaz diaz.salva...@gmail.comwrote: Where should we report bugs found in the Eclipse plugin ? Thanks in advance, Salvador On Apr 10, 8:44 am, Ramas ram...@gmail.com wrote: why exclusive support for Eclipse ? For the past few years Netbeans became a lot better, than it used to, and there's large developer community, too. Can you provide out-of-box support for Netbeans in the future ? On Apr 8, 6:57 am, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Unable to find/load module error for GWT 1.6.4
Hi could you please help in resolving the following error..i think its an issue with the class path, i have my src folder already in the class path.i am running GWT 1.6.4, Eclipse 3.4 [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I appreciate any help on this... Thanks. Meklit --~--~-~--~~~---~--~~ 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: A native GWT chart library?
Hi I currently use the GWTCanvas, for creating pies. It works very well. The code I can just copy paste from swing/awt code examples because the GWTCanvas api is very much like the normal jdk canvas. And you can your self attach mouse listeners etc on the pie so it becomes interactive, with the rest of the page. So for pies it is well suited. However I have not cracked the nutt with respect to drawing text in the canvas, last time I checked the versiondid not support drawString(...) method, so that was a no go. /Flemming ps: if you want I can attach the code. On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer t.bro...@gmail.com wrote: On 20 avr, 23:54, plcoirier plcoir...@gmail.com wrote: Hi, I'm looking for a native GWT chart library. I would like to be able to draw all different kinds of chart (line chart, bart chart, area chart, pie chart...). I also would like a client solution. I unfortunately can't use Google Visualization bc it's for an intranet website and users may not have access to google servers. Flash solutions aren't an option either :( I saw gchart but I need pie charts that are completely filled. Any other ideas of library? Huh! no flash?! Which browser(s) are you targetting? If you only plan on supporting relatively modern browsers and/or IE, then you could use SVG or canvas (for the formers) and VML for the latter (I guess silverlight or java applets aren't an option either?). There are a few GWT projects for charting based on canvas but they don't seem maintained... (for example http://code.google.com/p/glotr/ ) You can eventually use the GWTCanvas widget from the GWT Incubator and do the plotting/charting by yourself: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas Unfortunately, Chronoscope doesn't meet your criterias as it doesn't do pies (it's oriented towards time-based data...), otherwise, it's a very well-thought-out project from one of the best GWT user/ contributor out there! http://timepedia.org/chronoscope/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
JsParserException: invalid label
Hi there! Can anyone help me with the error mentioned above? I try to make an interface to JavaScript so I can call a function. My Java code looks like that: public void onModuleLoad() { setShowTrigger(this); } public native void setShowTrigger(Index x)/*-{ $wnd.showIndex = function () { website.client.Index::runApp()(); }; }-*/; public void runApp() { Window.alert(I am a GWT function); } As soon as I add the method setShowTrigger it crashes with the following error. Do I have to include a special library? Or is there another way to call a GWT function from the HTML part? [ERROR] file:/C:/gwt_work/Website/src/website/client/Index.java(36, 28): invalid label com.google.gwt.dev.js.JsParserException: invalid label at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88) at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459) at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError (TokenStream.java:1553) at com.google.gwt.dev.js.rhino.Parser.reportError(Parser.java:72) at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java: 783) at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360) at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java: 156) at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257) at com.google.gwt.dev.js.rhino.Parser.primaryExpr(Parser.java:1224) at com.google.gwt.dev.js.rhino.Parser.memberExpr(Parser.java:1163) at com.google.gwt.dev.js.rhino.Parser.unaryExpr(Parser.java:1079) at com.google.gwt.dev.js.rhino.Parser.mulExpr(Parser.java:1031) at com.google.gwt.dev.js.rhino.Parser.addExpr(Parser.java:1015) at com.google.gwt.dev.js.rhino.Parser.shiftExpr(Parser.java:1003) at com.google.gwt.dev.js.rhino.Parser.relExpr(Parser.java:987) at com.google.gwt.dev.js.rhino.Parser.eqExpr(Parser.java:976) at com.google.gwt.dev.js.rhino.Parser.bitAndExpr(Parser.java:966) at com.google.gwt.dev.js.rhino.Parser.bitXorExpr(Parser.java:956) at com.google.gwt.dev.js.rhino.Parser.bitOrExpr(Parser.java:946) at com.google.gwt.dev.js.rhino.Parser.andExpr(Parser.java:935) at com.google.gwt.dev.js.rhino.Parser.orExpr(Parser.java:924) at com.google.gwt.dev.js.rhino.Parser.condExpr(Parser.java:908) at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:890) at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:896) at com.google.gwt.dev.js.rhino.Parser.expr(Parser.java:880) at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java: 775) at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360) at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java: 156) at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257) at com.google.gwt.dev.js.rhino.Parser.parse(Parser.java:116) at com.google.gwt.dev.js.JsParser.parse(JsParser.java:112) at com.google.gwt.dev.javac.JsniCollector.parseAsAnonymousFunction (JsniCollector.java:271) at com.google.gwt.dev.javac.JsniCollector.access$000 (JsniCollector.java:45) at com.google.gwt.dev.javac.JsniCollector$JsniMethodImpl.function (JsniCollector.java:82) at com.google.gwt.dev.util.Jsni.getJavaScriptForHostedMode(Jsni.java: 115) at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniFor (CompilingClassLoader.java:662) at com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes (CompilingClassLoader.java:637) at com.google.gwt.dev.shell.CompilingClassLoader.findClass (CompilingClassLoader.java:588) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName (ModuleSpace.java:516) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:299) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 (BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
Re: Making a call to more than one server
Hi AnaLena, Also off the back of Dan's article posted above I wrote a similar tutorial on my blog about how to go about JSONP http://eggsylife.blogspot.com/2008/10/gwt-and-cross-site-jsonp-in-j2ee.html Both turorials do however make an assumption that you understand the JSON syntax. http://json.org has a bit more of a discussion about JSON itself. Eggsy On Apr 21, 12:38 am, Sumit Chandel sumitchan...@google.com wrote: Hi AnaLena, As mentioned in the SOP article, you won't be able to make calls to a server on another domain because of the browser security policies in place. However, there are techniques that allow to workaround this limitation and create mashups that use services in a cross-domain fashion to put that data together in your application. There is a great article written on the subject by Dan Morrill on the GWT articles page, you can read up on techniques you can use there (for example, JSONP). Using GWT for JSON Mashups:http://code.google.com/webtoolkit/articles/using_gwt_for_json_mashups... Hope that helps, -Sumit Chandel On Sun, Apr 19, 2009 at 11:03 PM, Salvador Diaz diaz.salva...@gmail.comwrote: Unfortunately, you're limited by the same origin policy: https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript There are techniques to bypass it though but if you have a server backend, your best bet is to make the calls to the other server there. Cheers, Salvador On Apr 20, 7:53 am, AnaLena tofu...@gmail.com wrote: Sorry for the newbie question. After a lot of searching I finally got sent in the right direction. I assume RequestBuilder is what I want? http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... --~--~-~--~~~---~--~~ 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 GWT application
Network connection problems encountered during search. Unable to access http://dl.google.com/eclipse/plugin/3.3;. Error parsing site stream. [Premature end of file.] Premature end of file. Error parsing site stream. [Premature end of file.] Premature end of file. I know this is not the exact stack trace but this is what it shows in eclipse when i click on details button. thanks for your info, http://dl.google.com/eclipse/plugin/3.3/site.xml works! Is there any downloadable jar file? so that i can directly unzip inside eclipse plugins folder...(other than cypal). On Apr 20, 10:47 am, rdayal rda...@google.com wrote: In your first post, when attempting to install the plugin, you mentioned that it throws a network exception. Can you copy and paste the stack trace? Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly in the browser will not work, because this is not a browsable directory. If you want to see if the site works via a browser, try hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml On Apr 20, 7:02 am, newtoGWT ganesh@gmail.com wrote: yes you are right Darkflame!! Its due to firewall... i am unable to connect to server.. i downloaded fromhttp://code.google.com/p/cypal-studio/downloads/list but the downside of cypal-studio is, it doesn't support GWT6 :(. it shows whilecreatingGWTModule.- 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: Need to display a disabled checkbox without changing the appearance
Suren schrieb: But I want to just disable the editing and keep the checkbox apperance as same as enabled. how can I achieve that? Without knowing how that looks in reality, you might define a click- listener on that checkbox that reset the old value if somebody tries to change it. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Need to display a disabled checkbox without changing the appearance
Hi Lothar, Thanks for the reply. Without knowing how that looks in reality, we can see the difference in apperance of Checkbox when its enabled (true) and enabled(false) right?? I need enabled(true) apperance when I say enabled (false). I know I am bit cinfusing But let me try out what you've suggested first Thanks again On Apr 21, 4:59 pm, Lothar Kimmeringer j...@kimmeringer.de wrote: Suren schrieb: But I want to just disable the editing and keep the checkbox apperance as same as enabled. how can I achieve that? Without knowing how that looks in reality, you might define a click- listener on that checkbox that reset the old value if somebody tries to change it. Regards, Lothar --~--~-~--~~~---~--~~ 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 on FreeBSD
Switching to -client mode fix the build process. Hosted mode still not working --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Need to display a disabled checkbox without changing the appearance
Hi All, I have a Grid, in which I am placing a Checkbox, under some conditions, I want to make a checkbox readOnly. If I setEnabled (false), the appearance is getting changed. But I want to just disable the editing and keep the checkbox apperance as same as enabled. how can I achieve that? Any help would be appreicated?? Thanks Suren --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Need to display a disabled checkbox without changing the appearance
Suren schrieb: Without knowing how that looks in reality, we can see the difference in apperance of Checkbox when its enabled (true) and enabled(false) right?? Yes, my sentence above I meant in that way, that I don't know how the user experience will be if you try out what I suggest. An enabled checkbox that reset that value after clicking might look very ugly because you will actually be able to change the value (i.e. the checkbox will be empty or set) but it will jump back to the previous value. So this might be very ugly. As well you should check if the listener got called if you set the value by focusing the checkbox using your keyboard and pressing the space-key. I need enabled(true) apperance when I say enabled (false). I know I am bit cinfusing I knew what you meant ;-) Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How much slower is PRETTY mode?
Hey Rob, Whatever it was that I said that upset you so much, I apologize. I think you really need to move on. Best regards, -- Arthur Kalmenson On Mon, Apr 20, 2009 at 12:42 PM, Rob Smith scubacarri...@gmail.com wrote: Why is it that most of Arthurs posts either have incorrect information or one of : I haven't tried it but I think.. I don't know the exact numbers but.. I heard that xxx is good / bad but I haven't tried it.. I think.. Just search the forums. Half-knowledge more dangerous than ignorance. Just a word of caution to new users on this forum. On Apr 19, 10:53 pm, Arthur Kalmenson arthur.k...@gmail.com wrote: I just listened to the talk - didn't hear him say anything regarding performance of long name vs short names. Oops, guess it wasn't that one, although that presentation did rock :P. I watched it a year ago, so my memory is rather vague there. Even with older browsers, I don't see it being super significant - 1-2% at most if it's even measurable. The execution of the javascript code by the interpreter should far outweigh the cost of tokenizing the input even if you have a 100 character name. The cost of doing a 100 byte memcpy should be insignificant compared to all the other stuff the interpreter must do. However, I could be wrong - I haven't tested this in any way, so hard numbers from real-world examples would probably be best. That's true, but any performance gain is good. Anyway, the main disadvantage of going with PRETTY is that your application ends up being larger so the initial start up is slower. -- Arthur Kalmenson On Sun, Apr 19, 2009 at 4:46 AM, Vitali Lovich vlov...@gmail.com wrote: I just listened to the talk - didn't hear him say anything regarding performance of long name vs short names. The execution difference for smaller names shouldn't exist for the new generation of browsers using JIT for javascript (i.e. FF3.5, Safair 4, Chrome). Even with older browsers, I don't see it being super significant - 1-2% at most if it's even measurable. The execution of the javascript code by the interpreter should far outweigh the cost of tokenizing the input even if you have a 100 character name. The cost of doing a 100 byte memcpy should be insignificant compared to all the other stuff the interpreter must do. However, I could be wrong - I haven't tested this in any way, so hard numbers from real-world examples would probably be best. On Sun, Apr 19, 2009 at 12:25 AM, Arthur Kalmenson arthur.k...@gmail.com wrote: I don't know the exact numbers. But if I remember correctly, during Bruce's presentation, Faster-than-Possible Code: Deferred Binding with GWT (http://sites.google.com/site/io/faster-than-possible-code-deferred-bi...) at Google I/O 2008, he mentioned something about smaller function and variable names executing faster then longer names. Also, as Vitali said, you're code is going to be rather bloated. We were accidentally running one of our apps in PRETTY and found the before compression size was 3 MB and after compression was 400kb. When we changed to OBF, the before compression size was 500kb and compressed was somewhere around 120kb. What's the reason that you want to run it as PRETTY? If you want to make the functions callable from regular JS, you should take a look at Ray Cromwell's excellent GWT Exporter project: http://code.google.com/p/gwt-exporter/ -- Arthur Kalmenson On Sat, Apr 18, 2009 at 1:46 AM, Vitali Lovich vlov...@gmail.com wrote: I believe that it should be the same performance in terms of execution. You're download times will probably suffer - I wouldn't be surprised if the code bloats by 2-3x if not more. On Fri, Apr 17, 2009 at 11:40 PM, Dobes dob...@gmail.com wrote: I'm considering deploying a version in PRETTY mode since it may solve a Safari 4 issue I'm having and it would also allow me to interpret the stack traces produced by Firefox a lot better. However, I'm wondering what experiences people have had with the performance of PRETTY more - how is it? Thanks in advance, Dobes --~--~-~--~~~---~--~~ 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 logout feature
If you're using Spring, you might want to take a look at Spring Security. It handles session management and role based security for you. You can then couple that with a check against the server side if the user's session is still valid. You can either do this with a Timer (if you want to time them out right away) or build it into your page/screen changing system. We do the latter using a history management filter whereby history changes go through a number of filters before arriving at the correct handler. If the user check filter catches the user isn't logged in, we show them the login screen. -- Arthur Kalmenson On Mon, Apr 20, 2009 at 9:06 AM, Mark cattaba...@gmail.com wrote: Well appreciated comrades The intention was never to drive you to write code but to give me a peek for i am raw in this field I have gotten that and i appreciate Thank you again. On Apr 20, 11:44 am, Vitali Lovich vlov...@gmail.com wrote: Not to mention that I already described how you I did exactly what you asked. However, you are expected to at least try write your own code since people do tend to have their own things to work on. On Mon, Apr 20, 2009 at 4:28 AM, Salvador Diaz diaz.salva...@gmail.comwrote: How do i create it on the server? Google it ;) More seriously, you can't just ask all of your questions in a forum and expect that people will write the code for you, you have to show you're doing some efforts, so I'll help you and give you some interesting reading: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...()http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/H...()http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/H... http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/H...()http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/H... That should be enough to let you implement the automatic logout feature Cheers, Salvador On Apr 20, 10:13 am, Mark cattaba...@gmail.com wrote: I like the second option because i love being fancy :=) How do i create it on the server? Thank you - enlightening On Apr 20, 10:03 am, Salvador Diaz diaz.salva...@gmail.com wrote: You should set the session timeout in your servlet container to whatever you want it to be. When the session expires, any RPC in a logged in client will fail, so that should be enough. If you want to be fancy, create a serializable timeout exception, and then when you catch it client-side, logout the user and show him the login prompt Cheers, Salvador On Apr 20, 7:38 am, Mark cattaba...@gmail.com wrote: Hi All; I earlier requested help in regard tothe above subject but i have waited in vain. I am new to GWT and I am working on a data critical application where security is imperative. I want to implement an automatic logout feature if the application does not receive activity for n - minutes Help out Mark --~--~-~--~~~---~--~~ 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: Unable to find/load module error for GWT 1.6.4
Could you post more details ? (Your whole project structure along with the location of personalwebsite.gwt.xml and the options passed to hosted mode should be enough ) Alternatively, you could put your hosted mode in DEBUG log level and read the logs to try to pinpoint what's wrong with your classpath Hope it helps, Salvador On Apr 21, 9:41 am, mabebe meklitabayab...@gmail.com wrote: Hi could you please help in resolving the following error..i think its an issue with the class path, i have my src folder already in the class path.i am running GWT 1.6.4, Eclipse 3.4 [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I appreciate any help on this... Thanks. Meklit --~--~-~--~~~---~--~~ 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 Session
Hey Professor Vagner, Why not using google project hosting or http://pastebin.com to post your code examples and simply link to them in your posts ? It's nearly impossible to read code in a font face that's not monospaced (not to mention indentation and syntax highlighting). I'm sure your code snippets would be much more appreciated that way. At least I wouldn't have an instantaneous gut reaction to dismiss them because of the utter torture of reading them without any syntax highlighting and correct indentation. Thanks for contributing to the community, Salvador On Apr 21, 7:26 am, Vitali Lovich vlov...@gmail.com wrote: SessionId is not part of GWT. It's some class he wrote. Can't help you with that. All I was saying is that the RPC calls he does are GWT 1.5 style - 1.6 has a much cleaner way of doing it. On Tue, Apr 21, 2009 at 12:22 AM, Arun arun.r...@gmail.com wrote: Hi Vitali, can yolu please explain in detail what u have mentioned over here. What should i need to do in order to run the above example? How i will get the SessionId class? thanks, Arun. On Apr 18, 11:46 am, Vitali Lovich vlov...@gmail.com wrote: That's also outdated as the RPC is using the old syntax instead of the much shorter one that uses annotations. On Sat, Apr 18, 2009 at 2:24 AM, Arun arun.r...@gmail.com wrote: hello Vagner, This is very good example.. When I started implementing the same, it is asking me for SessionId. could you tell me from where you are refering this one. It would be helpful to me if you put it over here. Also, is it possible to reference/create a user define data/object on client side? Thanks in advance. Arun. On Feb 27, 12:02 pm, Vagner Araujo araujo...@gmail.com wrote: Hello Friends, I was making a simple code ofSessionfor my students. Well, I decided post that code here, because maybe it can serve as a basis for someone. //Main Class package com.javaneses.spring.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Cookies; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; import com.javaneses.spring.client.rpc.service.LoginService; import com.javaneses.spring.client.rpc.service.LoginServiceAsync; import com.javaneses.spring.client.rpc.service.SessionService; import com.javaneses.spring.client.rpc.service.SessionServiceAsync; /** * Entry point classes define codeonModuleLoad()/code. */ public class Main implements EntryPoint, ClickListener{ /** * This is the entry point method. */ private final SessionId sessionId = new SessionId(); private final DialogBox dialogBox = new DialogBox(); private final Label userLabel = new Label(User); private final Label passwdLabel = new Label(Password); private final TextBox userField = new TextBox(); private final PasswordTextBox passwdField = new PasswordTextBox(); private final Button login = new Button(Login); private final Label welcome = new Label(Welcome); private final User user = new User(); { FlexTable flexTable = new FlexTable(); flexTable.setWidget(0, 0, userLabel); flexTable.setWidget(0, 1, userField); flexTable.setWidget(1, 0, passwdLabel); flexTable.setWidget(1, 1, passwdField); FlowPanel panel = new FlowPanel(); panel.setWidth(100); panel.add(login); flexTable.setWidget(2, 1, panel); dialogBox.setSize(350, 150); dialogBox.add(flexTable); login.addClickListener(this); sessionId.setSessionId(Cookies.getCookie(session)); }//end init block public void onModuleLoad() { validateSession(); }//end onModuleLoad private void validateSession(){ SessionServiceAsync myServiceAsync = (SessionServiceAsync)GWT.create (SessionService.class); ServiceDefTarget serviceDefTarget =
Re: CSS style rules of DecoratorPanel
Read this issue report to understand what's going on there: http://code.google.com/p/google-web-toolkit/issues/detail?id=3237 For the difference between selectors, google for ie css hacks Cheers, Salvador On Apr 21, 4:43 am, hezjing hezj...@gmail.com wrote: I'm still studying DecoratorPanel :-) Here is the default CSS of GWT (copied from gwt-user.jar, com/google/gwt/user/theme/standard/public/gwt/standard/standard.css) .gwt-DecoratorPanel .topLeft { background: url(images/corner.png) no-repeat 0px 0px; -background: url(images/corner_ie6.png) no-repeat 0px 0px; } My best guess from the filename (corner_ie6.png), is that the second will be used by IE. I opened corner.png and corner_ie6.png, but both images look the same to me. What is the reason to have the background and -background selector? On Sun, Apr 19, 2009 at 4:36 PM, Salvador Diaz diaz.salva...@gmail.comwrote: I think tht the best way to visualize exactly where the CSS rules are applied is to inspect your generated code with Firebug. In fact it'll help you with so many other things that you'll probably adopt it in no time as one of your day to day tools cheers, Salvador On Apr 18, 6:03 pm, hezjing hezj...@gmail.com wrote: Hi I'm still trying with DecoratorPanel, and I'm not sure what are the *Inner CSS style rules means. For example, .what is the different between .bottomLeft and bottomLeftInner? And the different between bottomCenter and bottomCenterInner? .gwt-DecoratorPanel .bottomLeft { the bottom left cell } .gwt-DecoratorPanel .bottomLeftInner { the inner element of the cell } .gwt-DecoratorPanel .bottomCenter { the bottom center cell } .gwt-DecoratorPanel .bottomCenterInner { the inner element of the cell } Hmmm ... I probably need a diagram to visualize exactly where does the CSS style rules applied to the DecoratorPanel :-) -- Hez -- Hez --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to use newer version of Jetty for Hosted Mode server?
use -noserver or -server ? Google Web Toolkit 1.6.4 HostedMode [-noserver] [-port port-number | auto] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-style style] [-ea] [-server servletContainerLauncher] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers count] module[s] where -noserver Prevents the embedded web server from running -port Specifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -gen The directory into which generated files will be written for review -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF) -eaDebugging: causes the compiled output to check assert statements. -serverSpecifies a different embedded web server to run (must implement ServletContainerLauncher) -startupUrlAutomatically launches the specified URL -war The war directory to write output files into (defaults to war) -extra The directory into which extra, non-deployed files will be written -workDir The compiler work directory (must be writeable; defaults to a system temp dir) -localWorkers Specifies the number of local workers to use when compiling permutations and module[s] Specifies the name(s) of the module(s) to host Cheers, Salvador On Apr 21, 3:37 am, TimOnGmail timbes...@gmail.com wrote: Hi Leon... Are you saying there *is* an option somewhere (in which case, where?), or it would be a good idea if there were one? - Tim On Apr 20, 6:01 pm, Leon Li lilei.l...@gmail.com wrote: There should be an option there On 4月21日, 上午6时29分, TimOnGmail timbes...@gmail.com wrote: I want to add, I'm doing all of this in the Eclipse GWT plugin. - Tim On Apr 20, 3:28 pm, TimOnGmail timbes...@gmail.com wrote: Hi there... I suspect I'm hitting some errors using the embedded Jetty 5 server in Hosted Mode. Does anyone know of an easy way to tell GWT 1.6 Use THIS Jetty jar as your server, and not the default one? - Tim- 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: I installed the GEP and now...
Hey Ian, Thanks for the information. Responses inline: On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury ianbamb...@gmail.com wrote: Hi Rajeev, Thanks for the response. When you tried to install it again, did you install it in a clean version of Eclipse, or was it the version that you were using with all the failed installation attempts? It may be the case that you need to uninstall the plugin, and then try to reinstall it. Preferably, if possible, start with a clean install of Eclipse and a clean workspace, and try and install again (but follow the instructions in the FAQ entry mentioned above - they will greatly speed up the install process). It was a clean, new Eclipse installation. I was only trying to install the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed, nothing moving except the progress indicator (no actual progress, just animation). Cancel didn't do anything (except disable the cancel button) and after some time - in the region of 30 minutes - I went back and nothing had changed. There was no option but to kill it in task manager. This is definitely odd. It must have been some network problem, but I'm not sure which side it occurred on. One thing I do know is that Eclipse does not fail gracefully in such situations. Do you remember exactly what text was in the dialog at the time? Was it saying something like computing requirements and dependencies, or was it saying downloading, or maybe installing? The second attempt of the current series, it installed in 30 seconds or so. I'm not sure exactly, I was watching TV, but it wasn't long at all. Now if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK. Does Installed Software also show the plugin as installed? Available Software should really not have any of the components as installable, if they've already been installed (unless you have the Include items that have already been installed checkbox checked). The IDE doesn't have the two icons I had when it finally installed last time, ordinary menu options are also not there (in File|New, or right-clicking a project - nothing new) Try going to Window - Reset Perspective (or, on the Mac, Eclipse - Reset Perspective). Does that help? Also, do you see any errors reported in the error log? Go to Window - Show View - Error Log (or, on the Mac, Eclipse - Show View - Error Log) to display the error log view. I'm sorry that you had to go through all of this. Bad things can happen when components are not properly installed, as you experienced. This should not be the normal experience at all. Is your project/Eclipse back in a working state? If not, let me know and I'll help you to get it back to normal. Yes, despite unchecking the project as a GWT one in the GEP options, and after the uninstall apparently working OK, there were still GEP changes in there stopping the project working. Having sorted that out, as I said, context assist didn't know about GWT classes. That is now fixed, too. I tried the -clean option (thanks Isaac) but unfortunately it didn't make any difference. That was after restarting Eclipse, then rebooting the machine. I'm not particularly worried about getting it working. As I said, I was only re-installing it in order to answer the questions I was asked before. Thanks for going through all of this in order to give us some useful information. We appreciate it. Cheers, Ian --~--~-~--~~~---~--~~ 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 in downloading Google Plugin for Eclipse
On Apr 20, 4:23 pm, Rajeev Dayal rda...@google.com wrote: Unfortunately, the process to manually download and install the plugin is somewhat tedious. I figured it would, but given that the only other readily available option is to not install the plugin, I'm content to perform an exercise in tedium. Thanks, D --~--~-~--~~~---~--~~ 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: Unable to find/load module error for GWT 1.6.4
Salvador, I am getting the error when i run my app in hosted mode but if i use standalone hot tomcat deployment (add server and debug within eclipse) it can find the module...i should also state everything compiles fine with Google Compile.. my project structure is as follows personalwebsite/src/org/personalsite/personalwebsite/ Personalwebsite.gwt.xml personalwebsite/src/org/personalsite/personalwebsite/ Personalwebsite.java personalwebsite/war/index.html i tried both http://localhost:8080/personalwebsite and http://localhost:8080/personalwebsite/index.html...and got the same error as above... here is my Personalwebsite.gwt.xml module content module rename-to='personalwebsite' !-- Inherit the core Web Toolkit stuff.-- inherits name=com.google.gwt.core.Core/ inherits name='com.google.gwt.user.User'/ inherits name='com.google.gwt.user.theme.standard.Standard'/ entry-point class='org.personalsite.personalwebsite.client.Personalwebsite'/ source path=client / /module Thanks... On Apr 21, 9:13 am, Salvador Diaz diaz.salva...@gmail.com wrote: Could you post more details ? (Your whole project structure along with the location of personalwebsite.gwt.xml and the options passed to hosted mode should be enough ) Alternatively, you could put your hosted mode in DEBUG log level and read the logs to try to pinpoint what's wrong with your classpath Hope it helps, Salvador On Apr 21, 9:41 am, mabebe meklitabayab...@gmail.com wrote: Hi could you please help in resolving the following error..i think its an issue with the class path, i have my src folder already in the class path.i am running GWT 1.6.4, Eclipse 3.4 [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I appreciate any help on this... Thanks. Meklit --~--~-~--~~~---~--~~ 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: Unable to find/load module error for GWT 1.6.4
You should be able to make your configuration work provided you launch the hosted mode with the right parameters. Please read the documentation concerning the hosted mode: http://code.google.com/webtoolkit/doc/1.6/DevGuideCompilingAndDebugging.html Then put your hosted mode in DEBUG log level and play around with the parameters you're passing to it. Google Web Toolkit 1.6.4 HostedMode [-noserver] [-port port-number | auto] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-style style] [-ea] [-server servletContainerLauncher] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers count] module[s] where -noserver Prevents the embedded web server from running -port Specifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -gen The directory into which generated files will be written for review -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF) -eaDebugging: causes the compiled output to check assert statements. -serverSpecifies a different embedded web server to run (must implement ServletContainerLauncher) -startupUrlAutomatically launches the specified URL -war The war directory to write output files into (defaults to war) -extra The directory into which extra, non-deployed files will be written -workDir The compiler work directory (must be writeable; defaults to a system temp dir) -localWorkers Specifies the number of local workers to use when compiling permutations and module[s] Specifies the name(s) of the module(s) to host Good luck, Salvador On Apr 21, 4:14 pm, mabebe meklitabayab...@gmail.com wrote: Salvador, I am getting the error when i run my app in hosted mode but if i use standalone hot tomcat deployment (add server and debug within eclipse) it can find the module...i should also state everything compiles fine with Google Compile.. my project structure is as follows personalwebsite/src/org/personalsite/personalwebsite/ Personalwebsite.gwt.xml personalwebsite/src/org/personalsite/personalwebsite/ Personalwebsite.java personalwebsite/war/index.html i tried bothhttp://localhost:8080/personalwebsiteandhttp://localhost:8080/personalwebsite/index.html...andgot the same error as above... here is my Personalwebsite.gwt.xml module content module rename-to='personalwebsite' !-- Inherit the core Web Toolkit stuff. -- inherits name=com.google.gwt.core.Core/ inherits name='com.google.gwt.user.User'/ inherits name='com.google.gwt.user.theme.standard.Standard'/ entry-point class='org.personalsite.personalwebsite.client.Personalwebsite'/ source path=client / /module Thanks... On Apr 21, 9:13 am, Salvador Diaz diaz.salva...@gmail.com wrote: Could you post more details ? (Your whole project structure along with the location of personalwebsite.gwt.xml and the options passed to hosted mode should be enough ) Alternatively, you could put your hosted mode in DEBUG log level and read the logs to try to pinpoint what's wrong with your classpath Hope it helps, Salvador On Apr 21, 9:41 am, mabebe meklitabayab...@gmail.com wrote: Hi could you please help in resolving the following error..i think its an issue with the class path, i have my src folder already in the class path.i am running GWT 1.6.4, Eclipse 3.4 [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I appreciate any help on this... Thanks. Meklit --~--~-~--~~~---~--~~ 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: JsParserException: invalid label
Hey ! Please don't post multiple times your questions (http:// groups.google.com/group/Google-Web-Toolkit/msg/0675da9d966c77d7), be patient and maybe somebody will reply ;) So about your popup thing, why use JSNI when you can just do public void onModuleLoad() { Window.alert(This is a GWT function) } Maybe you're simplifying your code to show us what you're trying to accomplish, but if you really just want an alert, don't go the JSNI way. Salvador On Apr 21, 10:02 am, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! Can anyone help me with the error mentioned above? I try to make an interface to JavaScript so I can call a function. My Java code looks like that: public void onModuleLoad() { setShowTrigger(this); } public native void setShowTrigger(Index x)/*-{ $wnd.showIndex = function () { website.client.Index::runApp()(); }; }-*/; public void runApp() { Window.alert(I am a GWT function); } As soon as I add the method setShowTrigger it crashes with the following error. Do I have to include a special library? Or is there another way to call a GWT function from the HTML part? [ERROR] file:/C:/gwt_work/Website/src/website/client/Index.java(36, 28): invalid label com.google.gwt.dev.js.JsParserException: invalid label at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88) at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459) at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError (TokenStream.java:1553) at com.google.gwt.dev.js.rhino.Parser.reportError(Parser.java:72) at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java: 783) at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360) at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java: 156) at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257) at com.google.gwt.dev.js.rhino.Parser.primaryExpr(Parser.java:1224) at com.google.gwt.dev.js.rhino.Parser.memberExpr(Parser.java:1163) at com.google.gwt.dev.js.rhino.Parser.unaryExpr(Parser.java:1079) at com.google.gwt.dev.js.rhino.Parser.mulExpr(Parser.java:1031) at com.google.gwt.dev.js.rhino.Parser.addExpr(Parser.java:1015) at com.google.gwt.dev.js.rhino.Parser.shiftExpr(Parser.java:1003) at com.google.gwt.dev.js.rhino.Parser.relExpr(Parser.java:987) at com.google.gwt.dev.js.rhino.Parser.eqExpr(Parser.java:976) at com.google.gwt.dev.js.rhino.Parser.bitAndExpr(Parser.java:966) at com.google.gwt.dev.js.rhino.Parser.bitXorExpr(Parser.java:956) at com.google.gwt.dev.js.rhino.Parser.bitOrExpr(Parser.java:946) at com.google.gwt.dev.js.rhino.Parser.andExpr(Parser.java:935) at com.google.gwt.dev.js.rhino.Parser.orExpr(Parser.java:924) at com.google.gwt.dev.js.rhino.Parser.condExpr(Parser.java:908) at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:890) at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:896) at com.google.gwt.dev.js.rhino.Parser.expr(Parser.java:880) at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java: 775) at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360) at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java: 156) at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257) at com.google.gwt.dev.js.rhino.Parser.parse(Parser.java:116) at com.google.gwt.dev.js.JsParser.parse(JsParser.java:112) at com.google.gwt.dev.javac.JsniCollector.parseAsAnonymousFunction (JsniCollector.java:271) at com.google.gwt.dev.javac.JsniCollector.access$000 (JsniCollector.java:45) at com.google.gwt.dev.javac.JsniCollector$JsniMethodImpl.function (JsniCollector.java:82) at com.google.gwt.dev.util.Jsni.getJavaScriptForHostedMode(Jsni.java: 115) at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniFor (CompilingClassLoader.java:662) at com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes (CompilingClassLoader.java:637) at com.google.gwt.dev.shell.CompilingClassLoader.findClass (CompilingClassLoader.java:588) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName (ModuleSpace.java:516) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:299) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 (BrowserWidgetIE6.java:37)
Function is not working
Hi there! Unfortunately my popup function is not working and I think that I found the reason. Please have a look at the JS code, could it be that com.google.gwt.client.Index::createPopup()(); is wrong? How can I find out what the real path is of my class called Index? Can anybody help? It works without any error messages but the GWT function is never executed. My Java code: package website.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; /** * Entry point classes define codeonModuleLoad()/code. */ public class Index implements EntryPoint { // EntryPoint! public void onModuleLoad() { // Für JavaScript Interface setShowTrigger(this); } public native void setShowTrigger(Index x) /*-{ $wnd.runApp = function () { x...@com.google.gwt.client.index::createPopup()(); }; }-*/; public void createPopup(int i) { Window.alert(I'm a GWT function); } } My HTML code: input type=button onclick=runApp() text=click me value=Test me/ Thanks in advance for helping me!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
EAR + Web Application Project instead of Dynamic Web Project
Hy, i try GWT 1.6, but, because my new project is Web Application Project (created by Google Eclipse Plugin) instead of Dynamic Web Project, my EAR not contain the .war (there is only include the .jar) How to publish an EAR including a Web Application Project (Google) ? --~--~-~--~~~---~--~~ 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: Function is not working
Hi, Your java function should receive an int as parameter ... Nope ? On Tue, Apr 21, 2009 at 4:32 PM, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! Unfortunately my popup function is not working and I think that I found the reason. Please have a look at the JS code, could it be that com.google.gwt.client.Index::createPopup()(); is wrong? How can I find out what the real path is of my class called Index? Can anybody help? It works without any error messages but the GWT function is never executed. My Java code: package website.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; /** * Entry point classes define codeonModuleLoad()/code. */ public class Index implements EntryPoint { // EntryPoint! public void onModuleLoad() { // Für JavaScript Interface setShowTrigger(this); } public native void setShowTrigger(Index x) /*-{ $wnd.runApp = function () { x...@com.google.gwt.client.index::createPopup()(); }; }-*/; public void createPopup(int i) { Window.alert(I'm a GWT function); } } My HTML code: input type=button onclick=runApp() text=click me value=Test me/ Thanks in advance for helping me!!! -- “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” Sir Charles Anthony Richard Hoare --~--~-~--~~~---~--~~ 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 on FreeBSD
I don't have a FreeBSD box handy, but this seems like it'd be workable. Good call about replacing the SWT binaries with your native ones. Would it help, do you think, to compile GWT from source? If you get this working, it would be cool to hear how you did it! On Tue, Apr 21, 2009 at 7:47 AM, Rabbit antonin.bo...@gmail.com wrote: Switching to -client mode fix the build process. Hosted mode still not working -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ 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: Module without EntryPoint - How to compile?
Hey Ben, Glad that all is well now. On Mon, Apr 20, 2009 at 6:16 PM, Ben FS ben.su...@gmail.com wrote: To exclude non-entry point modules from being included during a Hosted Mode launch or a GWT Compilation, right-click on your project, and select Google Web Toolkit Settings. From there, you can remove the common module from the list of entry point modules. This should fix the problems that you're experiencing in Hosted mode. This has indeed fixed the main problem. The popup error no longer appears and the page opens correctly in the external browser. However, the hosted mode log still shows the error regarding the module without EntryPoint. So, no problem for me, but somewhere something is still throwing an error. Can you follow the instructions here to view the set of Available Modules in the launch configuration that you're executing: http://code.google.com/eclipse/docs/running_and_debugging.html Do you see the non-entry point module in the list? If so, can you hit Restore Defaults, run the launch configuration, and see if that fixes your problem? To perform a compile from the IDE, follow the instructions here: http://code.google.com/eclipse/docs/gwt_compile.html I also tried this, and it worked as well for me. Thank you for your suggestions, you've been a great help. Ben. Rajeev On Apr 20, 4:16 am, Salvador Diaz diaz.salva...@gmail.com wrote: 1. In the Hosted mode log: [INFO] Compilingmoduleorg.macdadi.core.Core [ERROR]Modulehas no entry points defined It looks like you're trying to launch themodulewithoutentrypoint instead of themodulewith entry point, you can't do that. Check the parameters you're passing to the hosted mode and make sure the last one is the name of themodulewith an entry point. 2. A popup in Firefox (or IE): GWTmodule'macdadiks' needs to be (re) compiled, please run acompileor use theCompile/Browse button in hosted mode If you failed tocompileyour application, you won't be able to deploy it (use it in a standard browser/outside the hosted mode) I'm using the Eclipse Googe Plugin, and I don't know how to force a compilation of all the modules from the IDE directly ... (in IntelliJ, which I used with GWT 1.4.62 in the past, I know how to do this). You only need tocompilethemodulewith an entry point, if it inherits other modules and the source code for them is available in the classpath, the GWT compiler will find them and include them in the compilation. Hope it helps, Salvador- 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: Function is not working
Yes, you're right, thank you. Unfortunately this didn't solve the problem. I got an error now: Unresolvable native reference to type 'com.google.gwt.client.Index' Do you know how to reference my own class? Do I have to include the name of the package? On 21 Apr., 16:52, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, Your java function should receive an int as parameter ... Nope ? On Tue, Apr 21, 2009 at 4:32 PM, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! Unfortunately my popup function is not working and I think that I found the reason. Please have a look at the JS code, could it be that com.google.gwt.client.Index::createPopup()(); is wrong? How can I find out what the real path is of my class called Index? Can anybody help? It works without any error messages but the GWT function is never executed. My Java code: package website.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; /** * Entry point classes define codeonModuleLoad()/code. */ public class Index implements EntryPoint { // EntryPoint! public void onModuleLoad() { // Für JavaScript Interface setShowTrigger(this); } public native void setShowTrigger(Index x) /*-{ $wnd.runApp = function () { x...@com.google.gwt.client.index::createPopup()(); }; }-*/; public void createPopup(int i) { Window.alert(I'm a GWT function); } } My HTML code: input type=button onclick=runApp() text=click me value=Test me/ Thanks in advance for helping me!!! -- “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” Sir Charles Anthony Richard Hoare --~--~-~--~~~---~--~~ 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 GWT application
If you can't get Eclipse's install mechanism working, here's how you can install the plugin manually in Eclipse 3.3: Download the following file and place it in a temporary directory: http://dl.google.com/eclipse/plugin/3.3/site.xml Now, download the following into a directory called *features*, underneath your temporary directory: http://dl.google.com/eclipse/plugin/3.3/features/com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.0.v200904062254.jar http://dl.google.com/eclipse/plugin/3.3/features/com.google.gdt.eclipse.suite.e33.feature_1.0.0.v200904062254.jar http://dl.google.com/eclipse/plugin/3.3/features/com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254.jar Finally, download the following into a directory called *plugins*, underneath your temporary directory: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appengine.eclipse.core_1.0.0.v200904062254.jar http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appengine.eclipse.sdkbundle_1.2.0.v200904062254.jar http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclipse.core_1.0.0.v200904062254.jar http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclipse.suite_1.0.0.v200904062254.jar http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.core_1.0.0.v200904062254.jar If on linux: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062254.jar If on mac: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.macosx_1.6.4.v200904062254.jar If on windows: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062254.jar Now, go into Eclipse, and set up a local update site, and point it to the temporary directory that you created. You should be able to install the plugin from this local update site. In the future, we'll make this whole process easier by providing a zip of the plugin. On Tue, Apr 21, 2009 at 5:51 AM, newtoGWT ganesh@gmail.com wrote: Network connection problems encountered during search. Unable to access http://dl.google.com/eclipse/plugin/3.3;. Error parsing site stream. [Premature end of file.] Premature end of file. Error parsing site stream. [Premature end of file.] Premature end of file. I know this is not the exact stack trace but this is what it shows in eclipse when i click on details button. thanks for your info, http://dl.google.com/eclipse/plugin/3.3/site.xml works! Is there any downloadable jar file? so that i can directly unzip inside eclipse plugins folder...(other than cypal). On Apr 20, 10:47 am, rdayal rda...@google.com wrote: In your first post, when attempting to install the plugin, you mentioned that it throws a network exception. Can you copy and paste the stack trace? Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly in the browser will not work, because this is not a browsable directory. If you want to see if the site works via a browser, try hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml On Apr 20, 7:02 am, newtoGWT ganesh@gmail.com wrote: yes you are right Darkflame!! Its due to firewall... i am unable to connect to server.. i downloaded fromhttp://code.google.com/p/cypal-studio/downloads/list but the downside of cypal-studio is, it doesn't support GWT6 :(. it shows whilecreatingGWTModule.- 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: Problem in downloading Google Plugin for Eclipse
Actually, I made a mistake in the install instructions: Alternatively, you can just rename the temporary directory to eclipse, remove the site.xml file, and copy this directory under your Eclipseinstall's *dropins* directory. This is not correct. If you want to install via this mechanism, you first need to go into the features directory under the temporary directory that you created, and unjar all of the jar files in there. Then you can go ahead an install via the dropins mechanism. Note that this only needs to be done if installing via the dropins mechanism - if you're installing using the local update site technique, then you shouldn't unjar the feature jars. On Tue, Apr 21, 2009 at 9:49 AM, Sledged david.sle...@yahoo.com wrote: On Apr 20, 4:23 pm, Rajeev Dayal rda...@google.com wrote: Unfortunately, the process to manually download and install the plugin is somewhat tedious. I figured it would, but given that the only other readily available option is to not install the plugin, I'm content to perform an exercise in tedium. Thanks, D --~--~-~--~~~---~--~~ 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 am I seeing: GWTCompiler is deprecated and will be removed in a future release?
The beauty of the new Compiler and HostedMode classes is that they are pretty verbose if you mess up the options (use no longer existent options). Which means, you can simply switch to the new class, and read the displayed documentation in the error message :-) -jason On Apr 17, 2009, at 1:16 PM, Vitali Lovich wrote: (the options don't have a 1:1 mapping, so you should read up the documentation on how to migrate from 1.5 to 1.6) --~--~-~--~~~---~--~~ 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: Function is not working
replace: com.google.gwt.client.Index::createPopup()() by website.client.Index::createPopup(I)(i); Which seem to be your client package ... On Tue, Apr 21, 2009 at 5:10 PM, Chuck kurtz.lu...@cyber-art.ch wrote: Yes, you're right, thank you. Unfortunately this didn't solve the problem. I got an error now: Unresolvable native reference to type 'com.google.gwt.client.Index' Do you know how to reference my own class? Do I have to include the name of the package? On 21 Apr., 16:52, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, Your java function should receive an int as parameter ... Nope ? On Tue, Apr 21, 2009 at 4:32 PM, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! Unfortunately my popup function is not working and I think that I found the reason. Please have a look at the JS code, could it be that com.google.gwt.client.Index::createPopup()(); is wrong? How can I find out what the real path is of my class called Index? Can anybody help? It works without any error messages but the GWT function is never executed. My Java code: package website.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; /** * Entry point classes define codeonModuleLoad()/code. */ public class Index implements EntryPoint { // EntryPoint! public void onModuleLoad() { // Für JavaScript Interface setShowTrigger(this); } public native void setShowTrigger(Index x) /*-{ $wnd.runApp = function () { x...@com.google.gwt.client.index::createPopup()(); }; }-*/; public void createPopup(int i) { Window.alert(I'm a GWT function); } } My HTML code: input type=button onclick=runApp() text=click me value=Test me/ Thanks in advance for helping me!!! -- “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” Sir Charles Anthony Richard Hoare -- “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” Sir Charles Anthony Richard Hoare --~--~-~--~~~---~--~~ 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: Function is not working
Wohoo, it's working now!!! Thank you so much! [SOLVED] On 21 Apr., 17:21, olivier nouguier olivier.nougu...@gmail.com wrote: replace: com.google.gwt.client.Index::createPopup()() by website.client.Index::createPopup(I)(i); Which seem to be your client package ... On Tue, Apr 21, 2009 at 5:10 PM, Chuck kurtz.lu...@cyber-art.ch wrote: Yes, you're right, thank you. Unfortunately this didn't solve the problem. I got an error now: Unresolvable native reference to type 'com.google.gwt.client.Index' Do you know how to reference my own class? Do I have to include the name of the package? On 21 Apr., 16:52, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, Your java function should receive an int as parameter ... Nope ? On Tue, Apr 21, 2009 at 4:32 PM, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! Unfortunately my popup function is not working and I think that I found the reason. Please have a look at the JS code, could it be that com.google.gwt.client.Index::createPopup()(); is wrong? How can I find out what the real path is of my class called Index? Can anybody help? It works without any error messages but the GWT function is never executed. My Java code: package website.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; /** * Entry point classes define codeonModuleLoad()/code. */ public class Index implements EntryPoint { // EntryPoint! public void onModuleLoad() { // Für JavaScript Interface setShowTrigger(this); } public native void setShowTrigger(Index x) /*-{ $wnd.runApp = function () { x...@com.google.gwt.client.index::createPopup()(); }; }-*/; public void createPopup(int i) { Window.alert(I'm a GWT function); } } My HTML code: input type=button onclick=runApp() text=click me value=Test me/ Thanks in advance for helping me!!! -- “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” Sir Charles Anthony Richard Hoare -- “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” Sir Charles Anthony Richard Hoare --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to use newer version of Jetty for Hosted Mode server?
Hey Tim, In order to make this work, you can either implement a ServletContainerLauncher of your own, and use the -server option with the HostedMode entry point, as Salvador suggest. More info on ServletContainerLaunchers can be found here: http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/dev/core/src/com/google/gwt/core/ext/ServletContainer.java However, the easiest thing to do is probably to start with GWT's existing launcher for Jetty and modify it to suit your needs. This is the launcher that GWT is using to start up Jetty: http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java You'll have to modify your launch classpath to put your version of Jetty higher up on the classpath than the GWT SDK. You'll also have to put your version of JettyLauncher higher on the classpath as well. Rajeev 2009/4/21 Salvador Diaz diaz.salva...@gmail.com use -noserver or -server ? Google Web Toolkit 1.6.4 HostedMode [-noserver] [-port port-number | auto] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-style style] [-ea] [-server servletContainerLauncher] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers count] module[s] where -noserver Prevents the embedded web server from running -port Specifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -gen The directory into which generated files will be written for review -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF) -eaDebugging: causes the compiled output to check assert statements. -serverSpecifies a different embedded web server to run (must implement ServletContainerLauncher) -startupUrlAutomatically launches the specified URL -war The war directory to write output files into (defaults to war) -extra The directory into which extra, non-deployed files will be written -workDir The compiler work directory (must be writeable; defaults to a system temp dir) -localWorkers Specifies the number of local workers to use when compiling permutations and module[s] Specifies the name(s) of the module(s) to host Cheers, Salvador On Apr 21, 3:37 am, TimOnGmail timbes...@gmail.com wrote: Hi Leon... Are you saying there *is* an option somewhere (in which case, where?), or it would be a good idea if there were one? - Tim On Apr 20, 6:01 pm, Leon Li lilei.l...@gmail.com wrote: There should be an option there On 4月21日, 上午6时29分, TimOnGmail timbes...@gmail.com wrote: I want to add, I'm doing all of this in the Eclipse GWT plugin. - Tim On Apr 20, 3:28 pm, TimOnGmail timbes...@gmail.com wrote: Hi there... I suspect I'm hitting some errors using the embedded Jetty 5 server in Hosted Mode. Does anyone know of an easy way to tell GWT 1.6 Use THIS Jetty jar as your server, and not the default one? - Tim- 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: Having a Problem with GWT XMLparser
On 04/20/2009 06:02 PM, codeboo...@gmail.com wrote: Hello everyone when I give my gwt to parse the following XML file , I get an error: ?xml version=1.0 encoding=UTF-8 ? result a href=http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video- MP3-8-gb-Grade- A_W0QQitemZ170323321285QQcategoryZ73839QQcmdZViewItemAPPLE iPod 8gb Blue Nano 4th Gen Video MP3 8 gb Grade A/a br / a href=http://cgi.ebay.com/APPLE-IPOD-NANO-8GB-PINK-4th-Gen-VIDEO-8- GB-MP3-Grade- A_W0QQitemZ170323318228QQcategoryZ73839QQcmdZViewItemAPPLE IPOD NANO 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A/a br / a href=http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video- MP3-8-gb-Grade- A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItemAPPLE iPod 8gb Blue Nano 4th Gen Video MP3 8 gb Grade A/a br / /result What happens when you remove the break tags? --~--~-~--~~~---~--~~ 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: Having a Problem with GWT XMLparser
I have noticed that pretty xml causes fits, but Document doc = XMLParser.parse(xml); XMLParser.removeWhitespace(doc); seems to clear it up. However since removeWhitespace() is mostly a JS implementation, it is slower (in most cases) than simply doing that on the server if that is where your xml is coming from. -jason On Apr 21, 2009, at 9:38 AM, Jeff Chimene wrote: On 04/20/2009 06:02 PM, codeboo...@gmail.com wrote: Hello everyone when I give my gwt to parse the following XML file , I get an error: ?xml version=1.0 encoding=UTF-8 ? result a href=http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video- MP3-8-gb-Grade- A_W0QQitemZ170323321285QQcategoryZ73839QQcmdZViewItemAPPLE iPod 8gb Blue Nano 4th Gen Video MP3 8 gb Grade A/a br / a href=http://cgi.ebay.com/APPLE-IPOD-NANO-8GB-PINK-4th-Gen-VIDEO-8- GB-MP3-Grade- A_W0QQitemZ170323318228QQcategoryZ73839QQcmdZViewItemAPPLE IPOD NANO 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A/a br / a href=http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video- MP3-8-gb-Grade- A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItemAPPLE iPod 8gb Blue Nano 4th Gen Video MP3 8 gb Grade A/a br / /result What happens when you remove the break tags? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
TextBox.setName() and Java Http Servlet request.parameter(arg)
Hello everyone I'm writing about this problem i have found, when i try to send to a plain Java servlet a file using FileUpload and some others parameters stored in some textboxes. I set the form to Multipart encoding, 'cause i have to upload a file (and it works fine), i set the method to POST, but in the java servlet when i try to retrieve the data it shows me always a null pointer, even if i try to change to GET, or by using urlencoded, the request.getparameter(nameofmyformfield) is always null. I tried also using others method like getattribute or getattributenames and i always get null pointer. The other way i try to get the data is by using the ListFileItem in which the java servlet stores the uploaded file, but it has only one element (the file itself) and nothing else. To test the servlet class and the gwt itself, i also tried to make a gwt program that send with a post/get in urlencoded, but the methods above always return a null value. Any help will be appreciated. - Nickelnext --~--~-~--~~~---~--~~ 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: I installed the GEP and now...
Hey Ian, Just thought I'd mention that I tried something to repro your problem. Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some of the symptoms that we've seen is that the plugin icons/menu contributions will not show up. However, we've only seen this when we've been using Eclipse's dev environment to debug the plugin. I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM cannot cause this sort of problem with the plugin out in the field. Rajeev On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal rda...@google.com wrote: Hey Ian, Thanks for the information. Responses inline: On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury ianbamb...@gmail.com wrote: Hi Rajeev, Thanks for the response. When you tried to install it again, did you install it in a clean version of Eclipse, or was it the version that you were using with all the failed installation attempts? It may be the case that you need to uninstall the plugin, and then try to reinstall it. Preferably, if possible, start with a clean install of Eclipse and a clean workspace, and try and install again (but follow the instructions in the FAQ entry mentioned above - they will greatly speed up the install process). It was a clean, new Eclipse installation. I was only trying to install the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed, nothing moving except the progress indicator (no actual progress, just animation). Cancel didn't do anything (except disable the cancel button) and after some time - in the region of 30 minutes - I went back and nothing had changed. There was no option but to kill it in task manager. This is definitely odd. It must have been some network problem, but I'm not sure which side it occurred on. One thing I do know is that Eclipse does not fail gracefully in such situations. Do you remember exactly what text was in the dialog at the time? Was it saying something like computing requirements and dependencies, or was it saying downloading, or maybe installing? The second attempt of the current series, it installed in 30 seconds or so. I'm not sure exactly, I was watching TV, but it wasn't long at all. Now if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK. Does Installed Software also show the plugin as installed? Available Software should really not have any of the components as installable, if they've already been installed (unless you have the Include items that have already been installed checkbox checked). The IDE doesn't have the two icons I had when it finally installed last time, ordinary menu options are also not there (in File|New, or right-clicking a project - nothing new) Try going to Window - Reset Perspective (or, on the Mac, Eclipse - Reset Perspective). Does that help? Also, do you see any errors reported in the error log? Go to Window - Show View - Error Log (or, on the Mac, Eclipse - Show View - Error Log) to display the error log view. I'm sorry that you had to go through all of this. Bad things can happen when components are not properly installed, as you experienced. This should not be the normal experience at all. Is your project/Eclipse back in a working state? If not, let me know and I'll help you to get it back to normal. Yes, despite unchecking the project as a GWT one in the GEP options, and after the uninstall apparently working OK, there were still GEP changes in there stopping the project working. Having sorted that out, as I said, context assist didn't know about GWT classes. That is now fixed, too. I tried the -clean option (thanks Isaac) but unfortunately it didn't make any difference. That was after restarting Eclipse, then rebooting the machine. I'm not particularly worried about getting it working. As I said, I was only re-installing it in order to answer the questions I was asked before. Thanks for going through all of this in order to give us some useful information. We appreciate it. Cheers, Ian --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How make few pages with GWT ?
Hi alls, I am trying to use GWT for generation few pages. F.e. I have first page with GWT script on it, where I choice name of second one: AAA After that, I Am going to this next, AAA.jsp. Nice it works fine. But I need to put again GWT generated script on this AAA.jsp and I am able find how to do it. If page is static - all is OK. Else script is not preforming/ What is wrong here, is any example how to do it? thanks a lot! AAA.jsp like it: html head meta name='gwt:moduleSymbols' content='org.Stocks.Symbol' titleSymbol/title /head body script language=javascript src=org.Stocks.Symbol/ org.Stocks.Symbol.nocache.js/script /body /html and main page html head meta name='gwt:module' content='org.Stocks.Main' titleMain/title /head body script language=javascript src=org.Stocks.Main/ org.Stocks.Main.nocache.js/script /body /html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
FormPanel sumbit timeout
is there a way to change the FromPanel submit timeout? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
List of Usable Java Packages?
Hi there! I'm sure this is a pretty naive question, but is there a list somewhere of what java objects I can ( or cannot ) use? I tried creating a connection to an oracle instance in the onModuleLoad function, in hopes of using the resultset to populate basic datasets for gwt, but apparently i was wrong. I stumbled upon some of the google-gears gwt source code, and they are using various classes that instantiate custom JavascriptObject(*) classes, which leads me to believe I'm totally lost. I just want to use my java data structures :( Besides that, very pleased! Regards, Jonathan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Facebook XFBML in GWT Hosted Mode?
Hi Friends, I am trying to develop Facebook Connect application with GWT. I tried to have XFBML like fb:name /fb:name in a HTML control. Works perfect in a browser but does not render anything at all in Hosted Mode. Does anyone face the same problem when trying to develop GWT with FBML. If so, any workarounds? Thanks! Shinchi --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Insert Element into DOM and receive click events?
I'd like to dynamically insert a Widget into/next to a single TreeItem, whenever a TreeItem is selected, but event handlers on the Widget never fire when I do this. My approach so far: I dynamically manipulate the DOM of a single TreeItem, when a selection event occurs. First I insert a DIV sibling, and then I insert the Widget into that placeholder. Something like this: Button b = new Button(Click me, new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(I was clicked!); } }); Element itemDiv = treeItem.getElement(); // the TreeItem's underlying element Element spanEdit = DOM.createSpan();// a container, perhaps this is not necessary DOM.appendChild(itemDiv, spanEdit); DOM.appendChild(spanEdit, b.getElement()); The button appears in the TreeItem when the TreeItem is selected, but I am not able to generate any click events when I try to click on the button with the mouse. I've also tried replacing the Button with direct HTML, as follows: HTML h = new HTML(a href='javascript:alert();'Click me for alert/ a); Once inserted into the TreeItem, on mouseover the browser status bar shows the link target, but clicking on it does not generate a popup. My sense is that I need to do something else when I insert an Element into the DOM, to ensure that it participates in the event handling correctly. Yes? What else do I need to do? Perhaps the Tree's SelectionHandler is interfering - a mousedown on anything within a tree's node triggers a selection event and no other events are processed? Note: This used to work for me, using GWT 1.4.62, but even then only when the inserted Widget was a Button (for all other Widget's that I tried, the click event never reached the declared handler). Note: I would prefer to do all this without manipulating the DOM, but there is a bug in TreeItem, since early version of GWT, that prohibits me from dynamically removing and later replacing the TreeItem's content. http://code.google.com/p/google-web-toolkit/issues/detail?id=2297 Thanks for any help you can provide! --~--~-~--~~~---~--~~ 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 Session
Hi Friends, http://snipt.net/javagner Vagner Araujo --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hooking Spring 2.5.6 and GWT 1.6 - getServletContext returns N
Hi, I am trying to use a GWT service with Spring. I am using DispatcherServlet from Spring, GWTHandler and my service is defined as a bean in a mywebapp-servlet.xml file. I have also beans intialized at startup with ContextLoadListener. My service works fine except if I try to call getServletContext from it. In that case I have a NullPointerException. As a consequence I can not make reference o my other beans from my service. java.lang.NullPointerException: null at com.google.gwt.user.server.rpc.RPCServletUtils.writeResponseForUnexpectedFailure (RPCServletUtils.java:248) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doUnexpectedFailure (RemoteServiceServlet.java:285) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:99) at com.mycompany.admin.admintool.server.GWTController.handleRequest (GWTController.java:35) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle Details of my web.xml servlet servlet-namemywebapp/servlet-name servlet-classorg.springframework.web.servlet.DispatcherServlet/ servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namemywebapp/servlet-name url-pattern/geofamilyadmingwt/mywebapp.rpc/url-pattern /servlet-mapping I have some other beans that are initialized with ContextLoaderListener : listener listener- classorg.springframework.web.context.ContextLoaderListener/listener- class /listener context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/main-context.xml /WEB-INF/dao-context.xml /WEB- INF/business-context.xml /WEB-INF/drivers-context.xml /WEB-INF/map- context.xml/param-value /context-param Code of my GWTController : public class GWTController extends RemoteServiceServlet implements Controller { // Instance fields private RemoteService remoteService; private Class remoteServiceClass; private ServletContext servletContext; // Public methods /** * Call GWT's RemoteService doPost() method and return null. * * @param request The current HTTP request * @param response The current HTTP response * @return A ModelAndView to render, or null if handled directly * @throws Exception In case of errors */ public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { super.doPost(request, response); return null; // response handled by GWT RPC over XmlHttpRequest } /** * Process the RPC request encoded into the payload string and return a * string that encodes either the method return or an exception thrown by * it. * @param payload The RPC payload */ public String processCall(String payload) throws SerializationException { try { RPCRequest rpcRequest = RPC.decodeRequest(payload, this.remoteServiceClass); // delegate work to the spring injected service return RPC.invokeAndEncodeResponse(this.remoteService, rpcRequest .getMethod(), rpcRequest.getParameters()); } catch (IncompatibleRemoteServiceException e) { getServletContext() .log( An IncompatibleRemoteServiceException was thrown while processing this call., e); return RPC.encodeResponseForFailure(null, e); } } @Override public ServletContext getServletContext() { return servletContext; } public void setServletContext(ServletContext servletContext) { this.servletContext = servletContext; } /** * Setter for Spring injection of the GWT RemoteService object. * * @param RemoteService *The GWT RemoteService implementation that will be delegated to *by the {...@code GWTController}. */ public void setRemoteService(RemoteService remoteService) { this.remoteService = remoteService; this.remoteServiceClass = this.remoteService.getClass(); } } Code of my service implementation: @SuppressWarnings(serial) public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private transient ApplicationContext ac; private ClientBusiness clientBusiness; public String greetServer(String clientLogin) { String result = Hello; boolean res; String serverInfo = this.getServletContext().getServerInfo(); -- throws the NullPointerException return result; } I tried to override getServletContext method with the code below but no success. @Override public ServletContext getServletContext() { return getThreadLocalRequest().getSession().getServletContext (); } How can I solve this problem ? Thanks, C. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit
Re: I installed the GEP and now...
Hi Rajeev, I've got: Eclipse Version: 3.4.0 - Build id: I20080617-2000 java.runtime.version=1.6.0_13-b03 As I said, if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK, but if there is another way to check, just let me know - Help | About | Plug-in details doesn't show it. It locked up during computing requirements and dependencies The only errors to do with Google showing in the log are from failed compiles back when I tried to use the GEP the first time. I've reset the perspective - nothing happened except that I had to put it back how I like it :-) (only takes a moment) I'm quite happy to play about if it's any use, but apart from repeatedly uninstalling and re-installing, I'm not too sure what to do next. Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, Just thought I'd mention that I tried something to repro your problem. Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some of the symptoms that we've seen is that the plugin icons/menu contributions will not show up. However, we've only seen this when we've been using Eclipse's dev environment to debug the plugin. I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM cannot cause this sort of problem with the plugin out in the field. Rajeev On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal rda...@google.com wrote: Hey Ian, Thanks for the information. Responses inline: On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury ianbamb...@gmail.comwrote: Hi Rajeev, Thanks for the response. When you tried to install it again, did you install it in a clean version of Eclipse, or was it the version that you were using with all the failed installation attempts? It may be the case that you need to uninstall the plugin, and then try to reinstall it. Preferably, if possible, start with a clean install of Eclipse and a clean workspace, and try and install again (but follow the instructions in the FAQ entry mentioned above - they will greatly speed up the install process). It was a clean, new Eclipse installation. I was only trying to install the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed, nothing moving except the progress indicator (no actual progress, just animation). Cancel didn't do anything (except disable the cancel button) and after some time - in the region of 30 minutes - I went back and nothing had changed. There was no option but to kill it in task manager. This is definitely odd. It must have been some network problem, but I'm not sure which side it occurred on. One thing I do know is that Eclipse does not fail gracefully in such situations. Do you remember exactly what text was in the dialog at the time? Was it saying something like computing requirements and dependencies, or was it saying downloading, or maybe installing? The second attempt of the current series, it installed in 30 seconds or so. I'm not sure exactly, I was watching TV, but it wasn't long at all. Now if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK. Does Installed Software also show the plugin as installed? Available Software should really not have any of the components as installable, if they've already been installed (unless you have the Include items that have already been installed checkbox checked). The IDE doesn't have the two icons I had when it finally installed last time, ordinary menu options are also not there (in File|New, or right-clicking a project - nothing new) Try going to Window - Reset Perspective (or, on the Mac, Eclipse - Reset Perspective). Does that help? Also, do you see any errors reported in the error log? Go to Window - Show View - Error Log (or, on the Mac, Eclipse - Show View - Error Log) to display the error log view. I'm sorry that you had to go through all of this. Bad things can happen when components are not properly installed, as you experienced. This should not be the normal experience at all. Is your project/Eclipse back in a working state? If not, let me know and I'll help you to get it back to normal. Yes, despite unchecking the project as a GWT one in the GEP options, and after the uninstall apparently working OK, there were still GEP changes in there stopping the project working. Having sorted that out, as I said, context assist didn't know about GWT classes. That is now fixed, too. I tried the -clean option (thanks Isaac) but unfortunately it didn't make any difference. That was after restarting Eclipse, then rebooting the
Tomcat CometProcessor Setup Problems
I have a servlet which uses the CometProcessor interface. When I run this app normally, connections to the servlet come back with the response 405 Method Not Allowed (HTTP method POST is not supported by this URL). I am told that this is due to the connector being used not supporting CometProcessor I/O: Connector port=8000 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Therefore I added this other connector: Connector connectionTimeout=2 port=8081 protocol=org.apache.coyote.http11.Http11NioProtocol maxThreads=1 acceptorThreadCount=2 redirectPort=8443 socket.directBuffer=false / However, I cannot reach any pages on port 8081, all connections are being refused. There doesn't seem to be any errors in the logs anywhere but I did spot this one: 21-Apr-2009 18:11:03 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Program Files (x86)\Apache Software Foundation \Tomcat 6.0\webapps\CometServerMessenger\WEB-INF\lib\gwt-user.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Any ideas? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Need to display a disabled checkbox without changing the appearance
Checkboxes change their appearance for a reason. What are you doing that is so important that you don't mind confusing/pissing off your users? Ian http://examples.roughian.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 -~--~~~~--~~--~--~---
Re: I installed the GEP and now...
Update... I just uninstalled the GWT SDK, and then the plug-in and applied the changes. Both disappeared from the Installed Software tab. I restarted Eclipse. Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab, but if I select it, the Uninstall button remains disabled. I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the Available Software tab, but if I select it, the Install button remains disabled. I'm a bit stuck for options here. Ian http://examples.roughian.com 2009/4/21 Ian Bambury ianbamb...@gmail.com Hi Rajeev, I've got: Eclipse Version: 3.4.0 - Build id: I20080617-2000 java.runtime.version=1.6.0_13-b03 As I said, if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK, but if there is another way to check, just let me know - Help | About | Plug-in details doesn't show it. It locked up during computing requirements and dependencies The only errors to do with Google showing in the log are from failed compiles back when I tried to use the GEP the first time. I've reset the perspective - nothing happened except that I had to put it back how I like it :-) (only takes a moment) I'm quite happy to play about if it's any use, but apart from repeatedly uninstalling and re-installing, I'm not too sure what to do next. Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, Just thought I'd mention that I tried something to repro your problem. Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some of the symptoms that we've seen is that the plugin icons/menu contributions will not show up. However, we've only seen this when we've been using Eclipse's dev environment to debug the plugin. I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM cannot cause this sort of problem with the plugin out in the field. Rajeev On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal rda...@google.com wrote: Hey Ian, Thanks for the information. Responses inline: On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury ianbamb...@gmail.comwrote: Hi Rajeev, Thanks for the response. When you tried to install it again, did you install it in a clean version of Eclipse, or was it the version that you were using with all the failed installation attempts? It may be the case that you need to uninstall the plugin, and then try to reinstall it. Preferably, if possible, start with a clean install of Eclipse and a clean workspace, and try and install again (but follow the instructions in the FAQ entry mentioned above - they will greatly speed up the install process). It was a clean, new Eclipse installation. I was only trying to install the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed, nothing moving except the progress indicator (no actual progress, just animation). Cancel didn't do anything (except disable the cancel button) and after some time - in the region of 30 minutes - I went back and nothing had changed. There was no option but to kill it in task manager. This is definitely odd. It must have been some network problem, but I'm not sure which side it occurred on. One thing I do know is that Eclipse does not fail gracefully in such situations. Do you remember exactly what text was in the dialog at the time? Was it saying something like computing requirements and dependencies, or was it saying downloading, or maybe installing? The second attempt of the current series, it installed in 30 seconds or so. I'm not sure exactly, I was watching TV, but it wasn't long at all. Now if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK. Does Installed Software also show the plugin as installed? Available Software should really not have any of the components as installable, if they've already been installed (unless you have the Include items that have already been installed checkbox checked). The IDE doesn't have the two icons I had when it finally installed last time, ordinary menu options are also not there (in File|New, or right-clicking a project - nothing new) Try going to Window - Reset Perspective (or, on the Mac, Eclipse - Reset Perspective). Does that help? Also, do you see any errors reported in the error log? Go to Window - Show View - Error Log (or, on the Mac, Eclipse - Show View - Error Log) to display the error log view. I'm sorry that you had to go through all of this. Bad things can happen when components are not properly installed, as you experienced. This should not be the
Re: List of Usable Java Packages?
GWT only implements a subset of Java: http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/RefJreEmulation You should also think of it as client side web code (after all it gets compiled to JavaScript) as such you wouldn't normally be able to connect to a database directly - you'd go through the server which connects. Hope that helps. //Adam On 21 Apr, 15:34, Jonathan Kushner jonkush...@gmail.com wrote: Hi there! I'm sure this is a pretty naive question, but is there a list somewhere of what java objects I can ( or cannot ) use? I tried creating a connection to an oracle instance in the onModuleLoad function, in hopes of using the resultset to populate basic datasets for gwt, but apparently i was wrong. I stumbled upon some of the google-gears gwt source code, and they are using various classes that instantiate custom JavascriptObject(*) classes, which leads me to believe I'm totally lost. I just want to use my java data structures :( Besides that, very pleased! Regards, Jonathan --~--~-~--~~~---~--~~ 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: I installed the GEP and now...
Hey Ian, If you're ok with reinstalling Eclipse, this is what I'd suggest: 1) Blow away your old version of Eclipse, and install a completely clean version of Eclipse 2) Start it up with a completely new workspace 3) Try to install the plugin as before, *BUT make sure you follow the instructions in this FAQ entry before hitting the install button: http://code.google.com/eclipse/docs/faq.html#longinstall* That should get you going, and completely past the hangs that happen in Eclipse 3.4 in the Computing Requirements and Dependencies step of the install process. If you're not ok with reinstalling Eclipse, let me know, and we can try and work through removing all the old, corrupted artifacts of the failed plugin installs so that you can install the plugin from scratch. Rajeev On Tue, Apr 21, 2009 at 1:43 PM, Ian Bambury ianbamb...@gmail.com wrote: Update... I just uninstalled the GWT SDK, and then the plug-in and applied the changes. Both disappeared from the Installed Software tab. I restarted Eclipse. Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab, but if I select it, the Uninstall button remains disabled. I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the Available Software tab, but if I select it, the Install button remains disabled. I'm a bit stuck for options here. Ian http://examples.roughian.com 2009/4/21 Ian Bambury ianbamb...@gmail.com Hi Rajeev, I've got: Eclipse Version: 3.4.0 - Build id: I20080617-2000 java.runtime.version=1.6.0_13-b03 As I said, if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK, but if there is another way to check, just let me know - Help | About | Plug-in details doesn't show it. It locked up during computing requirements and dependencies The only errors to do with Google showing in the log are from failed compiles back when I tried to use the GEP the first time. I've reset the perspective - nothing happened except that I had to put it back how I like it :-) (only takes a moment) I'm quite happy to play about if it's any use, but apart from repeatedly uninstalling and re-installing, I'm not too sure what to do next. Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, Just thought I'd mention that I tried something to repro your problem. Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some of the symptoms that we've seen is that the plugin icons/menu contributions will not show up. However, we've only seen this when we've been using Eclipse's dev environment to debug the plugin. I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM cannot cause this sort of problem with the plugin out in the field. Rajeev On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal rda...@google.com wrote: Hey Ian, Thanks for the information. Responses inline: On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury ianbamb...@gmail.comwrote: Hi Rajeev, Thanks for the response. When you tried to install it again, did you install it in a clean version of Eclipse, or was it the version that you were using with all the failed installation attempts? It may be the case that you need to uninstall the plugin, and then try to reinstall it. Preferably, if possible, start with a clean install of Eclipse and a clean workspace, and try and install again (but follow the instructions in the FAQ entry mentioned above - they will greatly speed up the install process). It was a clean, new Eclipse installation. I was only trying to install the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed, nothing moving except the progress indicator (no actual progress, just animation). Cancel didn't do anything (except disable the cancel button) and after some time - in the region of 30 minutes - I went back and nothing had changed. There was no option but to kill it in task manager. This is definitely odd. It must have been some network problem, but I'm not sure which side it occurred on. One thing I do know is that Eclipse does not fail gracefully in such situations. Do you remember exactly what text was in the dialog at the time? Was it saying something like computing requirements and dependencies, or was it saying downloading, or maybe installing? The second attempt of the current series, it installed in 30 seconds or so. I'm not sure exactly, I was watching TV, but it wasn't long at all. Now if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK. Does
Strange window popup with Anchor widget in 1.6.4
With 1.6.4 on linux in Hosted mode, if I have something like: Anchor anchor = new Anchor(some text); anchor.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //do something } }); I get a new blank browser window popup and and several warnings in the hosted mode console like: [WARN] Confirmation was required to visit untrusted URL: 'jar:resource:///chrome/toolkit.jar!/content/global/console.xul Any ideas what's going on? The click handler seems to still get fired. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
serialization to history - bad idea?
Do you think is it a bad idea to use SerializationStreamWriter and SerializationStreamReader to write an object's state to the history? It seems like it would be a more convenient way to go than for me to try to write my own methods for doing this. I guess it could be a problem if I blow past the URL length limit but I suppose that is a possibility with my own serialization schemes too. Thanks in advance for your advice -Keith --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
HtmlUnit 2.5, a headless java browser, released
A new release of the Open Source java GUI-Less browser is available, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed. The most common use of HtmlUnit is test automation of web pages (even with complex JavaScript libraries, like Google Web Toolkit and jQuery), but sometimes it can be used for web scraping, or downloading website content. The main enhancements of this release: - Improved JavaScript support, particularly full support for MooTools, adding to already supported Google Web Toolkit 1.5/1.6, jQuery, Mochikit and Sarissa - Repackaged Rhino classes to allow the use of HtmlUnit and a regular Rhino version in the same project - Support all HTML elements - Experimental WebClient.waitForBackgroundJavaScript() and WebClient.waitForBackgroundJavaScriptStartingBefore() for simple, fast and deterministic AJAX testing - Reworked handling of background JavaScript tasks using Java 5 executors - And as usual, various bug fixes You can find more information in the official website (http:// htmlunit.sourceforge.net/), the development team is looking forward to getting your feedback. --~--~-~--~~~---~--~~ 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 server side access to web service from another server
Hi, I'm creating a GWT (1.6) app from scratch and I have done the current thing: User Web Browser (1) GWT client-side | (gwt rpc) V GWT server-side (2) | (JAX ws rpc) V another server (3) everything's done : - the gwt rpc between (1) and (2) - the web service on (3) is done with JAX-WS wsgen - the client web service on (2) is done with JAX-WS wsimport so everything's ok BUT : the client web service class located on (2) uses the JAX-WS annotation @WebServiceRef to populate the 'service' static var and the value is 'null'. The workaround : to comment @WebServiceRef and uncomment (a) - see code below : manually instantiate the generated artifact (by wsimport). This is OK. but why is it not using the annotation @WebServiceRef with GWT? here is the class : __ package fr.server.ws_client; import javax.xml.ws.WebServiceRef; import fr.server.ws_client.gen.Info; import fr.server.ws_client.gen.InfoService; public class InfoClient { @WebServiceRef(wsdlLocation=http://localhost:9091/Info?wsdl;) static InfoService service; public static String getServerVersion() { String server_version; try { server_version = InfoClient / getServerVersion : try; InfoClient client = new InfoClient(); server_version = client.doGetServerVersion(); } catch (Exception e) { server_version = InfoClient / getServerVersion : catch; e.printStackTrace(); } return server_version; } public String doGetServerVersion() { try { //(a) InfoService service = new InfoService(); Info port = service.getInfoPort(); return port.getServerVersion(); } catch (Exception e) { e.printStackTrace(); return InfoClient / doGetServerVersion : catch; } } } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
popup on an GWT HTML field
Hi folks! Only one question left and my project should be completed! :-) I'd like to print out HTML text (content). But only a few words should have a special function (popup on click). How would you do that? Unfortunately I couldn't find any tutorials. I managed to print HTML code and inplement my popup function with JS (onclick =). But the content is dynamic so I should find another way with GWT. My way of creating the HTML code: new HTML(bHello world!/b); -- So if you click on world, a new popup should open (class already exists and is working) Do you have any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
OnMouseOver and OnMouseOut on FlexTable
Good day. I've undestood how to get cell which was clicked by user (using new Handler pattern). But I can' get how does other handlers work (early I've used sink events and onBrowserEvent). My task is to hightlight row of FlexTable when the mouse pointer is on it and put away hightlight when mouse goes away from FlexTable row. Can you help me to ndestand the mechanics of handlers in this case? 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: How make few pages with GWT ?
If page is static - all is OK. Else script is not preforming/ What is wrong here, is any example how to do it? thanks a lot! Google wrote excellent documentation for GWT. This: http://code.google.com/webtoolkit/gettingstarted.html is a great place to start as it describes how to build a sample application. Tony -- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.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 -~--~~~~--~~--~--~---
GWT 1.6.4 - Intellij 8.1 - Hosted mode via application start.
Hi all. I'm using Intelli-j 8.1 to build my GWT 1.6.4 application. I realize that Intell-j's GWT plugin isn't suited for 1.6.4 just yet. Avoiding the plugin I'm attemping to run in Hosted mode by running the app as a normal Java application. Main class: com.google.gwt.dev.HostedMode VM params: -Xmx500M program params: -startupUrl /enroll/default.html com.vincent.gwtapps.webApplicationForm.WebEnroll working dir: C:\work\jv_websales\WebApplicationForm\current_branch\out \exploded\ When I deploy the application with my own ant scripts the application loads fine under it's own tomcat instance. The only difference I see between my ant war and the exploded intelli- j war directory is that the hex js files aren't there, for example (644251F628D38C39522797805967F32D.cache.html). The directory only has the 2 files, clear.cache.gif, hosted.html, and webenroll.nocache.js. Does hosted mode need those files, or are they generated by the GWT hosted mode browser? If they need it, I suppose I could run an ant task to generate them, prior to running the application. This is the stacktrace I get when loading the application: [ERROR] Failure to load module 'webenroll' java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding; at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass (JsniChecker.java:231) at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs (JsniChecker.java:142) at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit (JsniChecker.java:65) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse (MethodDeclaration.java:247) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse (TypeDeclaration.java:1222) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse (CompilationUnitDeclaration.java:518) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340) at com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits (CompilationUnitInvalidator.java:159) at com.google.gwt.dev.javac.CompilationState.compile (CompilationState.java:198) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:178) at com.google.gwt.dev.javac.CompilationState.init (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325) at com.google.gwt.dev.SwtHostedModeBase $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java: 66) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:73) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:161) Thanks for any help. Jason --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
single row in PagingScrollTable does not have proper height in IE7
I'm using the PagingScrollTable from GWT Incubator version 1.5- Dec_28. When I have only a single row in the table, the table height shrinks such that the row is no longer visible. If I add more rows, everything is properly sized.It seems as if maybe the height of the horizontal scrollbar is not being taken into account, or some other off by one error is happening. My current workaround is to add a stylename with an explicit height: 30px to the row using RowFormatter. This is kind of a hack, as the height of my rows varies with the data contained. Any pointers welcome, thanks. PS: it renders fine in Safari Firefox --~--~-~--~~~---~--~~ 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: I installed the GEP and now...
If I get a spare time-slot I'll give it a go again, but as I said a couple of emails ago, I did that 2 days ago to remove the GEP after I needed to get rid of it. Therefore, the latest install *was* clean (apart from a few preferences I'd changed and importing my formatting settings. Windows was only re-installed from scratch about 4 weeks ago. You can't be suggesting that everyone ought to re-install Eclipse from scratch and than immediately install the GEP before they even leave the welcome screen it they want to be sure, can you And I know you keep giving me the longinstall link, but I have only ever been trying to install the plugin and GWT 1.6.4 SDK. Even it that weren't the case, surely progress would have increased by at least 1 percent when left for 8 or 9 hours overnight? But if I get a break where I don't need to use Eclipse for a while, I'll re-install it and try from scratch again. Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, If you're ok with reinstalling Eclipse, this is what I'd suggest: 1) Blow away your old version of Eclipse, and install a completely clean version of Eclipse 2) Start it up with a completely new workspace 3) Try to install the plugin as before, *BUT make sure you follow the instructions in this FAQ entry before hitting the install button: http://code.google.com/eclipse/docs/faq.html#longinstall* That should get you going, and completely past the hangs that happen in Eclipse 3.4 in the Computing Requirements and Dependencies step of the install process. If you're not ok with reinstalling Eclipse, let me know, and we can try and work through removing all the old, corrupted artifacts of the failed plugin installs so that you can install the plugin from scratch. Rajeev On Tue, Apr 21, 2009 at 1:43 PM, Ian Bambury ianbamb...@gmail.com wrote: Update... I just uninstalled the GWT SDK, and then the plug-in and applied the changes. Both disappeared from the Installed Software tab. I restarted Eclipse. Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab, but if I select it, the Uninstall button remains disabled. I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the Available Software tab, but if I select it, the Install button remains disabled. I'm a bit stuck for options here. Ian http://examples.roughian.com 2009/4/21 Ian Bambury ianbamb...@gmail.com Hi Rajeev, I've got: Eclipse Version: 3.4.0 - Build id: I20080617-2000 java.runtime.version=1.6.0_13-b03 As I said, if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK, but if there is another way to check, just let me know - Help | About | Plug-in details doesn't show it. It locked up during computing requirements and dependencies The only errors to do with Google showing in the log are from failed compiles back when I tried to use the GEP the first time. I've reset the perspective - nothing happened except that I had to put it back how I like it :-) (only takes a moment) I'm quite happy to play about if it's any use, but apart from repeatedly uninstalling and re-installing, I'm not too sure what to do next. Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, Just thought I'd mention that I tried something to repro your problem. Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some of the symptoms that we've seen is that the plugin icons/menu contributions will not show up. However, we've only seen this when we've been using Eclipse's dev environment to debug the plugin. I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM cannot cause this sort of problem with the plugin out in the field. Rajeev On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal rda...@google.comwrote: Hey Ian, Thanks for the information. Responses inline: On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury ianbamb...@gmail.comwrote: Hi Rajeev, Thanks for the response. When you tried to install it again, did you install it in a clean version of Eclipse, or was it the version that you were using with all the failed installation attempts? It may be the case that you need to uninstall the plugin, and then try to reinstall it. Preferably, if possible, start with a clean install of Eclipse and a clean workspace, and try and install again (but follow the instructions in the FAQ entry mentioned above - they will greatly speed up the install process). It was a clean, new Eclipse installation. I was only trying to install the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed, nothing moving except the
Re: GWT 1.6.4 - Intellij 8.1 - Hosted mode via application start.
I am using intellij 8.1 with no problem using GWT. Just open up the documents and follow the instructions. It has changed slightly from the directions in the flash demo on their web site. When I clicked ... New...there was no option for GWT if you follow the instructions from the flash demo but if you follow the instructions in the documentation, it works with the 1.6.4 plugin. Dave Again, follow the instructions in the manual On Tue, Apr 21, 2009 at 4:15 PM, Jason jtvinc...@gmail.com wrote: Hi all. I'm using Intelli-j 8.1 to build my GWT 1.6.4 application. I realize that Intell-j's GWT plugin isn't suited for 1.6.4 just yet. Avoiding the plugin I'm attemping to run in Hosted mode by running the app as a normal Java application. Main class: com.google.gwt.dev.HostedMode VM params: -Xmx500M program params: -startupUrl /enroll/default.html com.vincent.gwtapps.webApplicationForm.WebEnroll working dir: C:\work\jv_websales\WebApplicationForm\current_branch\out \exploded\ When I deploy the application with my own ant scripts the application loads fine under it's own tomcat instance. The only difference I see between my ant war and the exploded intelli- j war directory is that the hex js files aren't there, for example (644251F628D38C39522797805967F32D.cache.html). The directory only has the 2 files, clear.cache.gif, hosted.html, and webenroll.nocache.js. Does hosted mode need those files, or are they generated by the GWT hosted mode browser? If they need it, I suppose I could run an ant task to generate them, prior to running the application. This is the stacktrace I get when loading the application: [ERROR] Failure to load module 'webenroll' java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding; at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass (JsniChecker.java:231) at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs (JsniChecker.java:142) at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit (JsniChecker.java:65) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse (MethodDeclaration.java:247) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse (TypeDeclaration.java:1222) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse (CompilationUnitDeclaration.java:518) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340) at com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits (CompilationUnitInvalidator.java:159) at com.google.gwt.dev.javac.CompilationState.compile (CompilationState.java:198) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:178) at com.google.gwt.dev.javac.CompilationState.init (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325) at com.google.gwt.dev.SwtHostedModeBase $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java: 66) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:73) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:161) Thanks for any help. Jason --~--~-~--~~~---~--~~ 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: I installed the GEP and now...
Hey Ian, On Tue, Apr 21, 2009 at 5:17 PM, Ian Bambury ianbamb...@gmail.com wrote: If I get a spare time-slot I'll give it a go again, but as I said a couple of emails ago, I did that 2 days ago to remove the GEP after I needed to get rid of it. Therefore, the latest install *was* clean (apart from a few preferences I'd changed and importing my formatting settings. Windows was only re-installed from scratch about 4 weeks ago. You can't be suggesting that everyone ought to re-install Eclipse from scratch and than immediately install the GEP before they even leave the welcome screen it they want to be sure, can you No, not at all. A clean install of Eclipse isn't required to install GEP; I was just worried that you were installing on top of a broken GEP installation. But, as you pointed out (and I apparently missed), the latest install was clean. There are no concerns with preferences/formatting settings, etc. My main concern was remaining artifacts from a partial GEP install. And I know you keep giving me the longinstall link, but I have only ever been trying to install the plugin and GWT 1.6.4 SDK. Even it that weren't the case, surely progress would have increased by at least 1 percent when left for 8 or 9 hours overnight? Even if you're just installing the plugin without the SDK - the instructions in that link still apply. Whenever you install ANY new plugin on Eclipse 3.4, the behavior described in that FAQ entry will occur. The code for computing the requirements/dependencies for a plugin in Eclipse 3.4 is riddled with problems. It is also brittle in the sense that it can get hung up/stuck while attempting to connect to other update sites in an effort to resolve dependencies. I think that's what happened in your case - it basically got stuck - that's why progress did not increase. But if I get a break where I don't need to use Eclipse for a while, I'll re-install it and try from scratch again. Thanks. If you keep running to problems, see the info mentioned here on how to do a manual install of the plugin: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f127367d8a578013/dbbd67c1e79b03e3 Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, If you're ok with reinstalling Eclipse, this is what I'd suggest: 1) Blow away your old version of Eclipse, and install a completely clean version of Eclipse 2) Start it up with a completely new workspace 3) Try to install the plugin as before, *BUT make sure you follow the instructions in this FAQ entry before hitting the install button: http://code.google.com/eclipse/docs/faq.html#longinstall* That should get you going, and completely past the hangs that happen in Eclipse 3.4 in the Computing Requirements and Dependencies step of the install process. If you're not ok with reinstalling Eclipse, let me know, and we can try and work through removing all the old, corrupted artifacts of the failed plugin installs so that you can install the plugin from scratch. Rajeev On Tue, Apr 21, 2009 at 1:43 PM, Ian Bambury ianbamb...@gmail.comwrote: Update... I just uninstalled the GWT SDK, and then the plug-in and applied the changes. Both disappeared from the Installed Software tab. I restarted Eclipse. Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab, but if I select it, the Uninstall button remains disabled. I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the Available Software tab, but if I select it, the Install button remains disabled. I'm a bit stuck for options here. Ian http://examples.roughian.com 2009/4/21 Ian Bambury ianbamb...@gmail.com Hi Rajeev, I've got: Eclipse Version: 3.4.0 - Build id: I20080617-2000 java.runtime.version=1.6.0_13-b03 As I said, if I go to Software Updates, Installed Software shows the GEP and GWT SDK as installed. Available Software shows the plugin (but no install option is available) and the AppEngine SDK, but if there is another way to check, just let me know - Help | About | Plug-in details doesn't show it. It locked up during computing requirements and dependencies The only errors to do with Google showing in the log are from failed compiles back when I tried to use the GEP the first time. I've reset the perspective - nothing happened except that I had to put it back how I like it :-) (only takes a moment) I'm quite happy to play about if it's any use, but apart from repeatedly uninstalling and re-installing, I'm not too sure what to do next. Ian http://examples.roughian.com 2009/4/21 Rajeev Dayal rda...@google.com Hey Ian, Just thought I'd mention that I tried something to repro your problem. Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some of the symptoms that we've seen is that the plugin icons/menu contributions will not show up. However, we've only seen this when we've been using
Re: GWT 1.6.4 - Intellij 8.1 - Hosted mode via application start.
I started from scratch and got the simple application running. Baby steps... I guess. I was originally attempting to run an existing project. The stack trace I ran into is still a mystery. On Apr 21, 2:20 pm, Dave M captainj...@gmail.com wrote: I am using intellij 8.1 with no problem using GWT. Just open up the documents and follow the instructions. It has changed slightly from the directions in the flash demo on their web site. When I clicked ... New...there was no option for GWT if you follow the instructions from the flash demo but if you follow the instructions in the documentation, it works with the 1.6.4 plugin. Dave Again, follow the instructions in the manual On Tue, Apr 21, 2009 at 4:15 PM, Jason jtvinc...@gmail.com wrote: Hi all. I'm using Intelli-j 8.1 to build my GWT 1.6.4 application. I realize that Intell-j's GWT plugin isn't suited for 1.6.4 just yet. Avoiding the plugin I'm attemping to run in Hosted mode by running the app as a normal Java application. Main class: com.google.gwt.dev.HostedMode VM params: -Xmx500M program params: -startupUrl /enroll/default.html com.vincent.gwtapps.webApplicationForm.WebEnroll working dir: C:\work\jv_websales\WebApplicationForm\current_branch\out \exploded\ When I deploy the application with my own ant scripts the application loads fine under it's own tomcat instance. The only difference I see between my ant war and the exploded intelli- j war directory is that the hex js files aren't there, for example (644251F628D38C39522797805967F32D.cache.html). The directory only has the 2 files, clear.cache.gif, hosted.html, and webenroll.nocache.js. Does hosted mode need those files, or are they generated by the GWT hosted mode browser? If they need it, I suppose I could run an ant task to generate them, prior to running the application. This is the stacktrace I get when loading the application: [ERROR] Failure to load module 'webenroll' java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding; at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass (JsniChecker.java:231) at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs (JsniChecker.java:142) at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit (JsniChecker.java:65) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse (MethodDeclaration.java:247) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse (TypeDeclaration.java:1222) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse (CompilationUnitDeclaration.java:518) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340) at com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits (CompilationUnitInvalidator.java:159) at com.google.gwt.dev.javac.CompilationState.compile (CompilationState.java:198) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:178) at com.google.gwt.dev.javac.CompilationState.init (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325) at com.google.gwt.dev.SwtHostedModeBase $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java: 66) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:73) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:161) Thanks for any help. Jason --~--~-~--~~~---~--~~ 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: Facebook XFBML in GWT Hosted Mode?
I'm pretty sure this works for me without a problem. protected Widget makeLoginButton() { String s = fb:login-button onlogin=\facebookConnectLogin()\/ fb:login-button; HTML h = new HTML(s); DeferredCommand.addCommand(new Command() { public void execute() { parseDomTree(); } }); return h; } protected static native void parseDomTree() /*-{ $wnd.FB.XFBML.Host.parseDomTree(); }-*/; /dave On Apr 21, 8:45 am, shunjie shin...@gmail.com wrote: Hi Friends, I am trying to develop Facebook Connect application with GWT. I tried to have XFBML like fb:name /fb:name in a HTML control. Works perfect in a browser but does not render anything at all in Hosted Mode. Does anyone face the same problem when trying to develop GWT with FBML. If so, any workarounds? Thanks! Shinchi --~--~-~--~~~---~--~~ 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: RPC void method
AsyncCallbackVoid On Tue, Apr 21, 2009 at 7:03 PM, carrizo c4rr...@gmail.com wrote: Hello all, pre-apologize for my english. I've a question about an AsyncCallback object passed to a gwt rpc method with 'void' return type. If i have a rpc method where the remote service interface, server-side and client-side implementation looks like this: public interface ApplicationService extends RemoteService{ public void method(int number); } public class ApplicationServiceImpl extends RemoteServiceServlet implements ApplicationService { public void method(int number){ //Do something } } public interface ApplicationServiceAsync { public void method(int number, AsyncCallback callback); } I don't need this callback because it will return anything. So can I call this method passing 'null' like callback argument? I'm confused about this and i would like to see your feedback. --~--~-~--~~~---~--~~ 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: RPC void method
The people who apologize about their English tend to have the best English! :) We understood you perfectly, no need to worry. On Apr 21, 7:03 pm, carrizo c4rr...@gmail.com wrote: Hello all, pre-apologize for my english. I've a question about an AsyncCallback object passed to a gwt rpc method with 'void' return type. If i have a rpc method where the remote service interface, server-side and client-side implementation looks like this: public interface ApplicationService extends RemoteService{ public void method(int number); } public class ApplicationServiceImpl extends RemoteServiceServlet implements ApplicationService { public void method(int number){ //Do something } } public interface ApplicationServiceAsync { public void method(int number, AsyncCallback callback); } I don't need this callback because it will return anything. So can I call this method passing 'null' like callback argument? I'm confused about this and i would like to see your feedback. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Minor documentation error
Found a small documentation error, not sure how to report it. Would someone be good enough to pass this on via the proper channels? http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html First example in Events and Handlers section has the wrong signature for onClick(). Should be ClickEvent event instead of Widget sender. 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: A native GWT chart library?
Thanks all for your help. You're welcome! Ben, I looked at the links you gave me, a lot of interesting things but no client-site library that fits my need. For what it's worth, I too would really like a client-side library - mainly so that I can do lots of quick, small updates without much latency. The quality just wasn't adequate for the client-side libraries that I tried, so I switched back to a server-side library. In my case, so far there has been no noticeable increase in latency: you may wish to reconsider your need for a client-side solution, and at least try it with an easy server-side solution (aka Google Chart API or Eastwood) and see what your results are. Maybe you've already tried this, or have other good reasons for a client-side solution. So I think I'm gonna end up doing a wrapper for dojo chart. Sounds like a great project, and one that would be useful to many (including me). If you make progress on this, would you consider establishing a Google Code project? Best of luck, Ben. On Apr 21, 9:47 am, Flemming Boller flemming.bol...@gmail.com wrote: Hi I currently use the GWTCanvas, for creating pies. It works very well. The code I can just copy paste from swing/awt code examples because the GWTCanvas api is very much like the normal jdk canvas. And you can your self attach mouse listeners etc on the pie so it becomes interactive, with the rest of the page. So for pies it is well suited. However I have not cracked the nutt with respect to drawing text in the canvas, last time I checked the versiondid not support drawString(...) method, so that was a no go. /Flemming ps: if you want I can attach the code. On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer t.bro...@gmail.com wrote: On 20 avr, 23:54, plcoirier plcoir...@gmail.com wrote: Hi, I'm looking for a native GWT chart library. I would like to be able to draw all different kinds of chart (line chart, bart chart, area chart, pie chart...). I also would like a client solution. I unfortunately can't use Google Visualization bc it's for an intranet website and users may not have access to google servers. Flash solutions aren't an option either :( I saw gchart but I need pie charts that are completely filled. Any other ideas of library? Huh! no flash?! Which browser(s) are you targetting? If you only plan on supporting relatively modern browsers and/or IE, then you could use SVG or canvas (for the formers) and VML for the latter (I guess silverlight or java applets aren't an option either?). There are a few GWT projects for charting based on canvas but they don't seem maintained... (for examplehttp://code.google.com/p/glotr/ ) You can eventually use the GWTCanvas widget from the GWT Incubator and do the plotting/charting by yourself: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas Unfortunately, Chronoscope doesn't meet your criterias as it doesn't do pies (it's oriented towards time-based data...), otherwise, it's a very well-thought-out project from one of the best GWT user/ contributor out there! http://timepedia.org/chronoscope/-Hide quoted text - - Show quoted text -- 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 -~--~~~~--~~--~--~---
Can you display a movie (video) with GWT?
A simple question: can you display video in a GWT application? 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 -~--~~~~--~~--~--~---
Playing audio files in GWT
I wanted to be able to play sound files in a GWT application. Googling around, I found gwt-voices at http://code.google.com/p/gwt-voices/ but I'd like to know if this is the best way to go, or if am I missing something? How do you play audio in GWT? 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: Playing audio files in GWT
I'm going to provide the same response for this and your similar question about video (http://groups.google.com/group/Google-Web- Toolkit/browse_frm/thread/9276cb86ebc94ffa?hl=en), as the two questions are related. You can embed audio and video in GWT applications, but, in general, GWT needs to invoke a player (QuickTime, Flash) in order to play media. There are various ways to do this, depending on your needs. For instance, if you can assume the presence of QuickTime, you can embed a player like this: http://support.apple.com/kb/TA26485?viewlocale=en_US My company actually did this for a recent project until we discovered that QuickTime does not work properly on Windows 64, at which point we switched to Flash (and the JW FLV player, http://www.longtailvideo.com/players/jw-flv-player/) which we embed with the swfobject javascript library (http:// code.google.com/p/swfobject/) that also comes packaged with JW FLV. We invoke this through GWT with JSNI. There seem to be a number of open source wrappers around the various players too, if you want to go that route. I only can comment on gwt- voices, which works well, but which we could not use as we needed pause and seek support. Janet -- Janet Leland Designing Patterns, LLC http://www.designingpatterns.com On Apr 21, 11:49 pm, fker...@gmail.com fker...@gmail.com wrote: I wanted to be able to play sound files in a GWT application. Googling around, I found gwt-voices athttp://code.google.com/p/gwt-voices/but I'd like to know if this is the best way to go, or if am I missing something? How do you play audio in GWT? 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: Can you display a movie (video) with GWT?
I'm going to provide the same response for this and your similar question about audio (http://groups.google.com/group/Google-Web- Toolkit/browse_frm/thread/c739f638ca7679f5?hl=en), as the two questions are related. You can embed audio and video in GWT applications, but, in general, GWT needs to invoke a player (QuickTime, Flash) in order to play media. There are various ways to do this, depending on your needs. For instance, if you can assume the presence of QuickTime, you can embed a player like this: http://support.apple.com/kb/TA26485?viewlocale=en_US My company actually did this for a recent project until we discovered that QuickTime does not work properly on Windows 64, at which point we switched to Flash (and the JW FLV player, http://www.longtailvideo.com/players/jw-flv-player/) which we embed with the swfobject javascript library (http:// code.google.com/p/swfobject/) that also comes packaged with JW FLV. We invoke this through GWT with JSNI. There seem to be a number of open source wrappers around the various players too, if you want to go that route. I only can comment on gwt- voices, which works well, but which we could not use as we needed pause and seek support. Janet -- Janet Leland Designing Patterns, LLC http://www.designingpatterns.com On Apr 21, 11:47 pm, fker...@gmail.com fker...@gmail.com wrote: A simple question: can you display video in a GWT application? 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: embedded flash not displaying is IE7 on secured url but works fine when viewed with unsecured url
After experiencing it with Flash first hand, I can confirm that the ssl + ie issue also applies to Flash. This blog post: http://robsondesign.com/blog/index.php/2008/08/30/ie-ssl-xml-https-swf-doa/ has a good description of the problem. ie8 also has this issue (feature, according to Microsoft). Tony -- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.com On Mar 12, 2:36 am, Tony Strauss tony.stra...@designingpatterns.com wrote: This just is a wild shot in the dark (I have very limited experience with Flash) but could it be a problem with the cache control headers in the response returned by the server? I've had a number of issues with IE (even IE7) + HTTPS that have resulted from this. See:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... for a discussion of this issue for the GWT ImageBundle. See this:http://drupal.org/node/163298 for a discussion of the issue in a different context. Also this for downloading MSOffice files:http://support.microsoft.com/kb/316431 Basically, IE cannot download files successfully over HTTPS if caching is completely suppressed. Any of: Pragma: No-cache Cache-Control: no-cache in the response header will cause IE problems over HTTPS. Tony On Mar 11, 1:07 pm, loveleen@gmail.com loveleen@gmail.com wrote: Hi, Im using an embedded flash on a popup, the flash works fine if viewed on firefox or with unsecured url but doesnt show when viewed with secured url. Is it a general problem with IE? --~--~-~--~~~---~--~~ 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: HandlerManager throws NPE if last handler is removed twice
http://gwt-code-reviews.appspot.com/25801/diff/1/3 File user/src/com/google/gwt/event/shared/HandlerManager.java (right): http://gwt-code-reviews.appspot.com/25801/diff/1/3#newcode101 Line 101: } Could be a little simpler--you don't really need an else case: boolean result = false; if (l != null) { result = l.remove(handler); ... } assert result... http://gwt-code-reviews.appspot.com/25801/diff/1/2 File user/test/com/google/gwt/event/shared/HandlerManagerTest.java (right): http://gwt-code-reviews.appspot.com/25801/diff/1/2#newcode276 Line 276: } Should also have the non-isScript test that would have blown up with the old code: else { reg.removeHandler(); /* pass, we didn't hit an NPE */ } http://gwt-code-reviews.appspot.com/25801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] subtree logging for problems
Here's the promised follow-on to my earlier, fixing the subtype logging to be a subtree logger. I'm still bothered by the multiple entries for E extends java.lang.Object, but I'm not sure which is the better way to fix it... I think I would like to change JType constructors and/or .equals, to generalize to e.g. id1 extends java.lang.Object or id1 extends Mapid2 extends KeyType, id3 implements ValType, but I'm not sure how such a change might impact other uses of JType and children elsewhere... I would like to think it was beneficial. The other, more localized approach would be to change the TIC map key from JClassType to String, and to do the identifier-abstraction as types were stringified in STOB, only. Thoughts? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- sublogger.trunk@r5257.patch Description: Binary data
[gwt-contrib] HandlerManager throws NPE if last handler is removed twice
Reviewers: rjrjr, Description: See http://gwt-code-reviews.appspot.com/25801/show Please review this at http://gwt-code-reviews.appspot.com/25803 Affected files: user/src/com/google/gwt/event/shared/HandlerManager.java user/test/com/google/gwt/event/shared/HandlerManagerTest.java Index: user/src/com/google/gwt/event/shared/HandlerManager.java === --- user/src/com/google/gwt/event/shared/HandlerManager.java(revision 5265) +++ user/src/com/google/gwt/event/shared/HandlerManager.java(working copy) @@ -32,7 +32,7 @@ * Interface for queued add/remove operations. */ private interface AddOrRemoveCommand { -public void execute(); +void execute(); } /** @@ -90,8 +90,8 @@ private H void removeHandler(GwtEvent.TypeH eventKey, H handler) { ArrayListH l = get(eventKey); - boolean result = l.remove(handler); - if (l.size() == 0) { + boolean result = (l == null) ? false : l.remove(handler); + if (result l.size() == 0) { map.remove(eventKey); } assert result : Tried to remove unknown handler: + handler + from Index: user/test/com/google/gwt/event/shared/HandlerManagerTest.java === --- user/test/com/google/gwt/event/shared/HandlerManagerTest.java (revision 5265) +++ user/test/com/google/gwt/event/shared/HandlerManagerTest.java (working copy) @@ -260,6 +260,25 @@ assertFired(mouse1, adaptor1, mouse3); } + public void testRemoveUnhandledType() { +final HandlerManager manager = new HandlerManager(bogus source); +HandlerRegistration reg = manager.addHandler(MouseDownEvent.getType(), +mouse1); +reg.removeHandler(); + +if (!GWT.isScript()) { + try { +reg.removeHandler(); +fail(Should have thrown assertion error); + } catch (AssertionError e) { +/* pass */ + } +} else { + reg.removeHandler(); + /* pass, we didn't hit an NPE */ +} + } + public void testReverseOrder() { // Add some handlers to a manager final HandlerManager manager = new HandlerManager(source1, true); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: HandlerManager throws NPE if last handler is removed twice
See http://gwt-code-reviews.appspot.com/25803 for updated patch. On 2009/04/21 16:49:12, rjrjr wrote: http://gwt-code-reviews.appspot.com/25801/diff/1/3 File user/src/com/google/gwt/event/shared/HandlerManager.java (right): http://gwt-code-reviews.appspot.com/25801/diff/1/3#newcode101 Line 101: } Could be a little simpler--you don't really need an else case: boolean result = false; if (l != null) { result = l.remove(handler); ... } assert result... http://gwt-code-reviews.appspot.com/25801/diff/1/2 File user/test/com/google/gwt/event/shared/HandlerManagerTest.java (right): http://gwt-code-reviews.appspot.com/25801/diff/1/2#newcode276 Line 276: } Should also have the non-isScript test that would have blown up with the old code: else { reg.removeHandler(); /* pass, we didn't hit an NPE */ } http://gwt-code-reviews.appspot.com/25801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5266 - Fixed a bug in HandlerManager where removing the last handler of a given EventType twice ...
Author: jlaba...@google.com Date: Tue Apr 21 10:27:39 2009 New Revision: 5266 Modified: trunk/user/src/com/google/gwt/event/shared/HandlerManager.java trunk/user/test/com/google/gwt/event/shared/HandlerManagerTest.java Log: Fixed a bug in HandlerManager where removing the last handler of a given EventType twice would result in an NPE because we assume that the list of event handlers is not null. Now, this results in an AssertionError. Patch by: jlabanca Review by: rjrjr Modified: trunk/user/src/com/google/gwt/event/shared/HandlerManager.java == --- trunk/user/src/com/google/gwt/event/shared/HandlerManager.java (original) +++ trunk/user/src/com/google/gwt/event/shared/HandlerManager.java Tue Apr 21 10:27:39 2009 @@ -32,7 +32,7 @@ * Interface for queued add/remove operations. */ private interface AddOrRemoveCommand { -public void execute(); +void execute(); } /** @@ -90,8 +90,8 @@ private H void removeHandler(GwtEvent.TypeH eventKey, H handler) { ArrayListH l = get(eventKey); - boolean result = l.remove(handler); - if (l.size() == 0) { + boolean result = (l == null) ? false : l.remove(handler); + if (result l.size() == 0) { map.remove(eventKey); } assert result : Tried to remove unknown handler: + handler + from Modified: trunk/user/test/com/google/gwt/event/shared/HandlerManagerTest.java == --- trunk/user/test/com/google/gwt/event/shared/HandlerManagerTest.java (original) +++ trunk/user/test/com/google/gwt/event/shared/HandlerManagerTest.java Tue Apr 21 10:27:39 2009 @@ -260,6 +260,25 @@ assertFired(mouse1, adaptor1, mouse3); } + public void testRemoveUnhandledType() { +final HandlerManager manager = new HandlerManager(bogus source); +HandlerRegistration reg = manager.addHandler(MouseDownEvent.getType(), +mouse1); +reg.removeHandler(); + +if (!GWT.isScript()) { + try { +reg.removeHandler(); +fail(Should have thrown assertion error); + } catch (AssertionError e) { +/* pass */ + } +} else { + reg.removeHandler(); + /* pass, we didn't hit an NPE */ +} + } + public void testReverseOrder() { // Add some handlers to a manager final HandlerManager manager = new HandlerManager(source1, true); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Java source transformation
On Tue, Apr 21, 2009 at 12:38 PM, nicolas de loof nicolas.del...@gmail.comwrote: The only critism I'd have is the requirement to use GWT.create() to get code from a generator. This is a requirement when the generated code doesn't extend the source type (for example for Async interfaces) but not when the genrator is used to add some capabilities (ie acts as a decorator), for example to add PropertyChangeListener to a model bean. Perhaps if you could distill down a more concrete example, it could get the wheels turning. Enhancements to GWT.create() certainly aren't off the table. Ray Cromwell has made some pretty useful-sounding suggestions in the past. We just have to find large-group consensus on what makes the most sense, striking a balance between power, clarity, and of course, optimizability. Here's a quick back-of-envelope pattern that could possibly work: class PersonBean { void setName(String name): String getName(); } interface MethodCallLogger { } class MyEntryPoint { class PersonBeanWithMethodCallLogger extends PersonBean implements MethodCallLogger { // empty, but a subclass gets generated } public void onModuleLoad() { // Have a generate-with rule for MethodCallLoggerGenerator, triggered by assignability to MethodCallLogger PersonBean pb = GWT.create(PersonBeanWithMethodCallLogger.class); pb.setName(Nicolas); } } // Generated... class PersonBeanWithMethodCallLoggerImpl extends PersonBeanWithMethodCallLogger { void setName(String name) { someLogger.log(setName(' + name + ') called); super.setName(name); } ... } As formulated above, this pattern doesn't compose well. But it might be that we can forge a pattern like this into something everyone likes eventually. -- Bruce This makes unit testing more difficult as code that uses GWT.create cannot run in classic jUnit. It would be great to have the compiler use generator-extended classes even when created using the standard new keyword. Thanks a lot for the explanation. Nicolas 2009/4/21 Bruce Johnson br...@google.com A sort of philosophical meta-point that may or may not be of interest... When we started GWT, we were worried about managing the complexity of compile-time code generation, so we tried to find the simplest, most easy-to-debug approach we could think of. GWT's model of never changing existing code[1], but only adding new Java source during the compile, is really a design choice, not a technical limitation. The benefit of the current design is that you can add -gen to hosted mode and map the corresponding folder into your source path, and then easily step through all your code, both handwritten and generated, in the debugger. This avoids tricky or confusing situations wherein the source code you see appears to be doing something different than the bytecode that's running. It seems good to avoid that kind of dichotomy, on the principle that straightforward-though-verbose is generally better than fancy-but-confusing. [1] Overlay types were the first time we ever even did bytecode rewriting, and that support is implemented at a very deep level. Also, JSOs are intended to be among only a very few magic things in GWT (basically, JSNI, GWT.create(), GWT.runAsync(), and JSOs). We went to a lot of effort to ensure that JSOs worked according to a fixed set of rules that are not hard to comply with, even if people don't fully understand why the implementation requires it. On Mon, Apr 20, 2009 at 11:11 AM, Thomas Broyer t.bro...@gmail.comwrote: On 20 avr, 08:43, nicolas de loof nicolas.del...@gmail.com wrote: I wonder if there is any way to also pre-process Java sources, for example this would enable support for Aspect Oriented Programming or maybe some DataBinding framework. Depends what you mean by pre-process... Generally, generators analyze the class they're called for (for example, looking for specific annotations on methods or on the class itself) and according to this generate a Java class extending the one they've been called for. (is this understandable? is this at least no-so-bad english?) In many case the generator will create from MyClassX some MyClassXImpl or equivalent that extends the original one, bu not REPLACE it as Java source. This is what I mean by pre-process. For example, to implement a AOP framework I'd like to instrument all calls to some method. For this reason I'd like a generator / pre-processor to check the source files and detect the matching pointcuts to add some adived code. Many other example can apply, including annotation processing for declarative coding (ex : @Property annotation to automagically introduce the required PropertyChangeListeners) You would generate a subclass that delegates to super.method() after/ before the aspect(s) code. I never tried it myself, but I'n not sure a generator can REPLACE the original Java Source. AFAICT, it
[gwt-contrib] Re: Java source transformation
A simple example : databinding Lets consider I want to bind some Label text to some model Bean value. Gwt Label widget text can be accessed as a javaBean property, so this sound a typical java.beans.binding use-case This requires my model bean to support PropertyChangeListeners. As I'm lazy I'd like a generator to create an enhanced model class with such support for the value property. I can get this to work today if my model Bean is created using GWT.create(), but this makes my code GWT-dependant and not testable in standalone junit. If the generator enhanced class is used even when I use new Model() or get a Model bean from RPC, my code can be easily unit tested. Cheers, Nicolas 2009/4/21 Bruce Johnson br...@google.com On Tue, Apr 21, 2009 at 12:38 PM, nicolas de loof nicolas.del...@gmail.com wrote: The only critism I'd have is the requirement to use GWT.create() to get code from a generator. This is a requirement when the generated code doesn't extend the source type (for example for Async interfaces) but not when the genrator is used to add some capabilities (ie acts as a decorator), for example to add PropertyChangeListener to a model bean. Perhaps if you could distill down a more concrete example, it could get the wheels turning. Enhancements to GWT.create() certainly aren't off the table. Ray Cromwell has made some pretty useful-sounding suggestions in the past. We just have to find large-group consensus on what makes the most sense, striking a balance between power, clarity, and of course, optimizability. Here's a quick back-of-envelope pattern that could possibly work: class PersonBean { void setName(String name): String getName(); } interface MethodCallLogger { } class MyEntryPoint { class PersonBeanWithMethodCallLogger extends PersonBean implements MethodCallLogger { // empty, but a subclass gets generated } public void onModuleLoad() { // Have a generate-with rule for MethodCallLoggerGenerator, triggered by assignability to MethodCallLogger PersonBean pb = GWT.create(PersonBeanWithMethodCallLogger.class); pb.setName(Nicolas); } } // Generated... class PersonBeanWithMethodCallLoggerImpl extends PersonBeanWithMethodCallLogger { void setName(String name) { someLogger.log(setName(' + name + ') called); super.setName(name); } ... } As formulated above, this pattern doesn't compose well. But it might be that we can forge a pattern like this into something everyone likes eventually. -- Bruce This makes unit testing more difficult as code that uses GWT.create cannot run in classic jUnit. It would be great to have the compiler use generator-extended classes even when created using the standard new keyword. Thanks a lot for the explanation. Nicolas 2009/4/21 Bruce Johnson br...@google.com A sort of philosophical meta-point that may or may not be of interest... When we started GWT, we were worried about managing the complexity of compile-time code generation, so we tried to find the simplest, most easy-to-debug approach we could think of. GWT's model of never changing existing code[1], but only adding new Java source during the compile, is really a design choice, not a technical limitation. The benefit of the current design is that you can add -gen to hosted mode and map the corresponding folder into your source path, and then easily step through all your code, both handwritten and generated, in the debugger. This avoids tricky or confusing situations wherein the source code you see appears to be doing something different than the bytecode that's running. It seems good to avoid that kind of dichotomy, on the principle that straightforward-though-verbose is generally better than fancy-but-confusing. [1] Overlay types were the first time we ever even did bytecode rewriting, and that support is implemented at a very deep level. Also, JSOs are intended to be among only a very few magic things in GWT (basically, JSNI, GWT.create(), GWT.runAsync(), and JSOs). We went to a lot of effort to ensure that JSOs worked according to a fixed set of rules that are not hard to comply with, even if people don't fully understand why the implementation requires it. On Mon, Apr 20, 2009 at 11:11 AM, Thomas Broyer t.bro...@gmail.comwrote: On 20 avr, 08:43, nicolas de loof nicolas.del...@gmail.com wrote: I wonder if there is any way to also pre-process Java sources, for example this would enable support for Aspect Oriented Programming or maybe some DataBinding framework. Depends what you mean by pre-process... Generally, generators analyze the class they're called for (for example, looking for specific annotations on methods or on the class itself) and according to this generate a Java class extending the one they've been called for. (is this understandable? is this at least no-so-bad english?) In many case the generator will create from
[gwt-contrib] [google-web-toolkit commit] r5267 - When AsyncFragmentLoader checks for the success of an XHR download,
Author: sp...@google.com Date: Tue Apr 21 11:13:46 2009 New Revision: 5267 Modified: trunk/user/src/com/google/gwt/core/client/AsyncFragmentLoader.java Log: When AsyncFragmentLoader checks for the success of an XHR download, it now requires that xhr.responseText is non-null and non-empty. Otherwise, the download is considered a failure regardless of the status code. Review by: bobv Modified: trunk/user/src/com/google/gwt/core/client/AsyncFragmentLoader.java == --- trunk/user/src/com/google/gwt/core/client/AsyncFragmentLoader.java (original) +++ trunk/user/src/com/google/gwt/core/client/AsyncFragmentLoader.java Tue Apr 21 11:13:46 2009 @@ -171,9 +171,10 @@ /** * Some UA's like Safari will have a 0 status code when loading from file: - * URLs. + * URLs. Additionally, the 0 status code is used sometimes if the server + * does not respond, e.g. if there is a connection refused. */ - private static final int HTTP_STATUS_LOCAL = 0; + private static final int HTTP_STATUS_NON_HTTP = 0; private static final int HTTP_STATUS_OK = 200; @@ -371,8 +372,9 @@ public void onReadyStateChange(XMLHttpRequest xhr) { if (xhr.getReadyState() == XMLHttpRequest.DONE) { xhr.clearOnReadyStateChange(); -if (xhr.getStatus() == HTTP_STATUS_OK -|| xhr.getStatus() == HTTP_STATUS_LOCAL) { +if ((xhr.getStatus() == HTTP_STATUS_OK || xhr.getStatus() == HTTP_STATUS_NON_HTTP) + xhr.getResponseText() != null + xhr.getResponseText().length() != 0) { try { installCode(xhr.getResponseText()); } catch (RuntimeException e) { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Java source transformation
I really think Guice-style dependency injection is the way to go to solve this problem, rather than trying to emulate Java Proxies/Classloader in the compiler. If you use Guice/Gin, then in Gin you can inject GWT.create-d versions, and in JUnit-mode, you can use regular Guice injection. The code use is 99% between GWT and non-GWT versions test versions, with the exception of the Guice-config/Injector creation. Because of the way Gin works transitively, you only need a single GWT.create() and this is isolated to your startup code while in your JUnit version, you kick off a Guice-injected class instead. -Ray On Tue, Apr 21, 2009 at 11:28 AM, nicolas de loof nicolas.del...@gmail.com wrote: A simple example : databinding Lets consider I want to bind some Label text to some model Bean value. Gwt Label widget text can be accessed as a javaBean property, so this sound a typical java.beans.binding use-case This requires my model bean to support PropertyChangeListeners. As I'm lazy I'd like a generator to create an enhanced model class with such support for the value property. I can get this to work today if my model Bean is created using GWT.create(), but this makes my code GWT-dependant and not testable in standalone junit. If the generator enhanced class is used even when I use new Model() or get a Model bean from RPC, my code can be easily unit tested. Cheers, Nicolas 2009/4/21 Bruce Johnson br...@google.com On Tue, Apr 21, 2009 at 12:38 PM, nicolas de loof nicolas.del...@gmail.com wrote: The only critism I'd have is the requirement to use GWT.create() to get code from a generator. This is a requirement when the generated code doesn't extend the source type (for example for Async interfaces) but not when the genrator is used to add some capabilities (ie acts as a decorator), for example to add PropertyChangeListener to a model bean. Perhaps if you could distill down a more concrete example, it could get the wheels turning. Enhancements to GWT.create() certainly aren't off the table. Ray Cromwell has made some pretty useful-sounding suggestions in the past. We just have to find large-group consensus on what makes the most sense, striking a balance between power, clarity, and of course, optimizability. Here's a quick back-of-envelope pattern that could possibly work: class PersonBean { void setName(String name): String getName(); } interface MethodCallLogger { } class MyEntryPoint { class PersonBeanWithMethodCallLogger extends PersonBean implements MethodCallLogger { // empty, but a subclass gets generated } public void onModuleLoad() { // Have a generate-with rule for MethodCallLoggerGenerator, triggered by assignability to MethodCallLogger PersonBean pb = GWT.create(PersonBeanWithMethodCallLogger.class); pb.setName(Nicolas); } } // Generated... class PersonBeanWithMethodCallLoggerImpl extends PersonBeanWithMethodCallLogger { void setName(String name) { someLogger.log(setName(' + name + ') called); super.setName(name); } ... } As formulated above, this pattern doesn't compose well. But it might be that we can forge a pattern like this into something everyone likes eventually. -- Bruce This makes unit testing more difficult as code that uses GWT.create cannot run in classic jUnit. It would be great to have the compiler use generator-extended classes even when created using the standard new keyword. Thanks a lot for the explanation. Nicolas 2009/4/21 Bruce Johnson br...@google.com A sort of philosophical meta-point that may or may not be of interest... When we started GWT, we were worried about managing the complexity of compile-time code generation, so we tried to find the simplest, most easy-to-debug approach we could think of. GWT's model of never changing existing code[1], but only adding new Java source during the compile, is really a design choice, not a technical limitation. The benefit of the current design is that you can add -gen to hosted mode and map the corresponding folder into your source path, and then easily step through all your code, both handwritten and generated, in the debugger. This avoids tricky or confusing situations wherein the source code you see appears to be doing something different than the bytecode that's running. It seems good to avoid that kind of dichotomy, on the principle that straightforward-though-verbose is generally better than fancy-but-confusing. [1] Overlay types were the first time we ever even did bytecode rewriting, and that support is implemented at a very deep level. Also, JSOs are intended to be among only a very few magic things in GWT (basically, JSNI, GWT.create(), GWT.runAsync(), and JSOs). We went to a lot of effort to ensure that JSOs worked according to a fixed set of rules that are not hard to comply with, even if people don't fully understand why the implementation requires it. On Mon, Apr
[gwt-contrib] Re: Java source transformation
Sounds a good solution.How would this solve the use case data returned by RPC call ? 2009/4/21 Ray Cromwell cromwell...@gmail.com I really think Guice-style dependency injection is the way to go to solve this problem, rather than trying to emulate Java Proxies/Classloader in the compiler. If you use Guice/Gin, then in Gin you can inject GWT.create-d versions, and in JUnit-mode, you can use regular Guice injection. The code use is 99% between GWT and non-GWT versions test versions, with the exception of the Guice-config/Injector creation. Because of the way Gin works transitively, you only need a single GWT.create() and this is isolated to your startup code while in your JUnit version, you kick off a Guice-injected class instead. -Ray On Tue, Apr 21, 2009 at 11:28 AM, nicolas de loof nicolas.del...@gmail.com wrote: A simple example : databinding Lets consider I want to bind some Label text to some model Bean value. Gwt Label widget text can be accessed as a javaBean property, so this sound a typical java.beans.binding use-case This requires my model bean to support PropertyChangeListeners. As I'm lazy I'd like a generator to create an enhanced model class with such support for the value property. I can get this to work today if my model Bean is created using GWT.create(), but this makes my code GWT-dependant and not testable in standalone junit. If the generator enhanced class is used even when I use new Model() or get a Model bean from RPC, my code can be easily unit tested. Cheers, Nicolas 2009/4/21 Bruce Johnson br...@google.com On Tue, Apr 21, 2009 at 12:38 PM, nicolas de loof nicolas.del...@gmail.com wrote: The only critism I'd have is the requirement to use GWT.create() to get code from a generator. This is a requirement when the generated code doesn't extend the source type (for example for Async interfaces) but not when the genrator is used to add some capabilities (ie acts as a decorator), for example to add PropertyChangeListener to a model bean. Perhaps if you could distill down a more concrete example, it could get the wheels turning. Enhancements to GWT.create() certainly aren't off the table. Ray Cromwell has made some pretty useful-sounding suggestions in the past. We just have to find large-group consensus on what makes the most sense, striking a balance between power, clarity, and of course, optimizability. Here's a quick back-of-envelope pattern that could possibly work: class PersonBean { void setName(String name): String getName(); } interface MethodCallLogger { } class MyEntryPoint { class PersonBeanWithMethodCallLogger extends PersonBean implements MethodCallLogger { // empty, but a subclass gets generated } public void onModuleLoad() { // Have a generate-with rule for MethodCallLoggerGenerator, triggered by assignability to MethodCallLogger PersonBean pb = GWT.create(PersonBeanWithMethodCallLogger.class); pb.setName(Nicolas); } } // Generated... class PersonBeanWithMethodCallLoggerImpl extends PersonBeanWithMethodCallLogger { void setName(String name) { someLogger.log(setName(' + name + ') called); super.setName(name); } ... } As formulated above, this pattern doesn't compose well. But it might be that we can forge a pattern like this into something everyone likes eventually. -- Bruce This makes unit testing more difficult as code that uses GWT.create cannot run in classic jUnit. It would be great to have the compiler use generator-extended classes even when created using the standard new keyword. Thanks a lot for the explanation. Nicolas 2009/4/21 Bruce Johnson br...@google.com A sort of philosophical meta-point that may or may not be of interest... When we started GWT, we were worried about managing the complexity of compile-time code generation, so we tried to find the simplest, most easy-to-debug approach we could think of. GWT's model of never changing existing code[1], but only adding new Java source during the compile, is really a design choice, not a technical limitation. The benefit of the current design is that you can add -gen to hosted mode and map the corresponding folder into your source path, and then easily step through all your code, both handwritten and generated, in the debugger. This avoids tricky or confusing situations wherein the source code you see appears to be doing something different than the bytecode that's running. It seems good to avoid that kind of dichotomy, on the principle that straightforward-though-verbose is generally better than fancy-but-confusing. [1] Overlay types were the first time we ever even did bytecode rewriting, and that support is implemented at a very deep level. Also, JSOs are intended to be among only a very few magic things in GWT (basically,
[gwt-contrib] Re: Java source transformation
Interesting question. Gin auto-creates RPC interfaces as well, for example, if you have: public interface MyFoo extends Ginjector { MyServiceAsync getService(); } then Gin implicitly looks for MyService.class and invokes GWT.create(MyService.class) when calling getService(). Since Gin is handling the creation, I'm not sure if it handles RPC methods with classes have have @Inject annotations, but you could probably setup a separate binding. The de-serialization logic in RPC is not likely to allow Gin interception, since it apparently uses default constructors to create classes, and what you want it to do is delegate the construction to some injectable mechanism (e.g. to substitute your own subclasses) It doesn't sound impossible to make this work, and is probably easier to get right than trying to make new Foo() interceptable by the compiler. I would join the Gin groups and ask the guys there about it. -Ray On Tue, Apr 21, 2009 at 11:49 AM, nicolas de loof nicolas.del...@gmail.com wrote: Sounds a good solution. How would this solve the use case data returned by RPC call ? 2009/4/21 Ray Cromwell cromwell...@gmail.com I really think Guice-style dependency injection is the way to go to solve this problem, rather than trying to emulate Java Proxies/Classloader in the compiler. If you use Guice/Gin, then in Gin you can inject GWT.create-d versions, and in JUnit-mode, you can use regular Guice injection. The code use is 99% between GWT and non-GWT versions test versions, with the exception of the Guice-config/Injector creation. Because of the way Gin works transitively, you only need a single GWT.create() and this is isolated to your startup code while in your JUnit version, you kick off a Guice-injected class instead. -Ray On Tue, Apr 21, 2009 at 11:28 AM, nicolas de loof nicolas.del...@gmail.com wrote: A simple example : databinding Lets consider I want to bind some Label text to some model Bean value. Gwt Label widget text can be accessed as a javaBean property, so this sound a typical java.beans.binding use-case This requires my model bean to support PropertyChangeListeners. As I'm lazy I'd like a generator to create an enhanced model class with such support for the value property. I can get this to work today if my model Bean is created using GWT.create(), but this makes my code GWT-dependant and not testable in standalone junit. If the generator enhanced class is used even when I use new Model() or get a Model bean from RPC, my code can be easily unit tested. Cheers, Nicolas 2009/4/21 Bruce Johnson br...@google.com On Tue, Apr 21, 2009 at 12:38 PM, nicolas de loof nicolas.del...@gmail.com wrote: The only critism I'd have is the requirement to use GWT.create() to get code from a generator. This is a requirement when the generated code doesn't extend the source type (for example for Async interfaces) but not when the genrator is used to add some capabilities (ie acts as a decorator), for example to add PropertyChangeListener to a model bean. Perhaps if you could distill down a more concrete example, it could get the wheels turning. Enhancements to GWT.create() certainly aren't off the table. Ray Cromwell has made some pretty useful-sounding suggestions in the past. We just have to find large-group consensus on what makes the most sense, striking a balance between power, clarity, and of course, optimizability. Here's a quick back-of-envelope pattern that could possibly work: class PersonBean { void setName(String name): String getName(); } interface MethodCallLogger { } class MyEntryPoint { class PersonBeanWithMethodCallLogger extends PersonBean implements MethodCallLogger { // empty, but a subclass gets generated } public void onModuleLoad() { // Have a generate-with rule for MethodCallLoggerGenerator, triggered by assignability to MethodCallLogger PersonBean pb = GWT.create(PersonBeanWithMethodCallLogger.class); pb.setName(Nicolas); } } // Generated... class PersonBeanWithMethodCallLoggerImpl extends PersonBeanWithMethodCallLogger { void setName(String name) { someLogger.log(setName(' + name + ') called); super.setName(name); } ... } As formulated above, this pattern doesn't compose well. But it might be that we can forge a pattern like this into something everyone likes eventually. -- Bruce This makes unit testing more difficult as code that uses GWT.create cannot run in classic jUnit. It would be great to have the compiler use generator-extended classes even when created using the standard new keyword. Thanks a lot for the explanation. Nicolas 2009/4/21 Bruce Johnson br...@google.com A sort of philosophical meta-point that may or may not be of interest... When we started GWT, we were worried about managing the complexity of
[gwt-contrib] Re: cross site RPC through iframes
It wouldn't be hard to do it using this: http://timepedia.blogspot.com/2008/07/cross-domain-formpanel-submissions-in.html http://development.lombardi.com/?p=611 -Ray 2009/4/21 Piotr Jaroszyński p.jaroszyn...@gmail.com: Hello, I have seen discussion and implementation of XS RPC via script tag injection [1], but has there been one done via iframes? It seems superior as it can work around the url length limit w/o sessions (just sending the messages to the other iframe in smaller packets). Do you see any showstoppers? Any hints on how to implement it in GWT? [1] - http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/94c18c4ec158070c -- Best Regards, Piotr Jaroszyński --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: subtree logging for problems
LGTM. There's a typo in ProblemReport: accessir. -Lex On 4/21/09, Freeland Abbott fabb...@google.com wrote: Here's the promised follow-on to my earlier, fixing the subtype logging to be a subtree logger. I'm still bothered by the multiple entries for E extends java.lang.Object, but I'm not sure which is the better way to fix it... I think I would like to change JType constructors and/or .equals, to generalize to e.g. id1 extends java.lang.Object or id1 extends Mapid2 extends KeyType, id3 implements ValType, but I'm not sure how such a change might impact other uses of JType and children elsewhere... I would like to think it was beneficial. The other, more localized approach would be to change the TIC map key from JClassType to String, and to do the identifier-abstraction as types were stringified in STOB, only. Thoughts? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Java source transformation
On Tue, Apr 21, 2009 at 7:11 PM, Arthur Kalmenson arthur.k...@gmail.com wrote: Hmm, but don't you normally send some kind of Model or domain object over the wire and not something that would need to be injected with dependencies by Gin? I think what he's saying is that he might have an RPC method like this: public interface MyService extends RemoteService { MyBean getBean(); } Now, MyBean does not implement interface X, but a generator/AOP interceptor could make a subclass of MyBean that has interface X implement. IIRC, GWT RPC just invokes the default constructor, so there's no way to intercept this and substitute a replacement. I think the other thing he might want to do is intercept client-side UI classes and make them call addPropertyChangeListener() on a model object based on certain invocations. -Ray And Bruce, that's an interesting example. I was thinking how one would implement AOP in GWT, perhaps it's not as hard as I originally thought. Is there a way to extend this example to dynamically create proxies for any class that'll be advised by some aspect? Also, Nicolas, AFAIK, the GWT team (bobv) is working on a data binding (and validation?) framework. I'm hoping something will hit the incubator soon so we can all jump on board and help out. It'd definitely have saved us thousands of lines of glue code ;). P.S. Sorry about not writing up that how-to for GWTMockUtilities, Bruce. I'll try to do it some time this week. Best regards, -- Arthur Kalmenson On Tue, Apr 21, 2009 at 2:58 PM, Ray Cromwell cromwell...@gmail.com wrote: Interesting question. Gin auto-creates RPC interfaces as well, for example, if you have: public interface MyFoo extends Ginjector { MyServiceAsync getService(); } then Gin implicitly looks for MyService.class and invokes GWT.create(MyService.class) when calling getService(). Since Gin is handling the creation, I'm not sure if it handles RPC methods with classes have have @Inject annotations, but you could probably setup a separate binding. The de-serialization logic in RPC is not likely to allow Gin interception, since it apparently uses default constructors to create classes, and what you want it to do is delegate the construction to some injectable mechanism (e.g. to substitute your own subclasses) It doesn't sound impossible to make this work, and is probably easier to get right than trying to make new Foo() interceptable by the compiler. I would join the Gin groups and ask the guys there about it. -Ray On Tue, Apr 21, 2009 at 11:49 AM, nicolas de loof nicolas.del...@gmail.com wrote: Sounds a good solution. How would this solve the use case data returned by RPC call ? 2009/4/21 Ray Cromwell cromwell...@gmail.com I really think Guice-style dependency injection is the way to go to solve this problem, rather than trying to emulate Java Proxies/Classloader in the compiler. If you use Guice/Gin, then in Gin you can inject GWT.create-d versions, and in JUnit-mode, you can use regular Guice injection. The code use is 99% between GWT and non-GWT versions test versions, with the exception of the Guice-config/Injector creation. Because of the way Gin works transitively, you only need a single GWT.create() and this is isolated to your startup code while in your JUnit version, you kick off a Guice-injected class instead. -Ray On Tue, Apr 21, 2009 at 11:28 AM, nicolas de loof nicolas.del...@gmail.com wrote: A simple example : databinding Lets consider I want to bind some Label text to some model Bean value. Gwt Label widget text can be accessed as a javaBean property, so this sound a typical java.beans.binding use-case This requires my model bean to support PropertyChangeListeners. As I'm lazy I'd like a generator to create an enhanced model class with such support for the value property. I can get this to work today if my model Bean is created using GWT.create(), but this makes my code GWT-dependant and not testable in standalone junit. If the generator enhanced class is used even when I use new Model() or get a Model bean from RPC, my code can be easily unit tested. Cheers, Nicolas 2009/4/21 Bruce Johnson br...@google.com On Tue, Apr 21, 2009 at 12:38 PM, nicolas de loof nicolas.del...@gmail.com wrote: The only critism I'd have is the requirement to use GWT.create() to get code from a generator. This is a requirement when the generated code doesn't extend the source type (for example for Async interfaces) but not when the genrator is used to add some capabilities (ie acts as a decorator), for example to add PropertyChangeListener to a model bean. Perhaps if you could distill down a more concrete example, it could get the wheels turning. Enhancements to GWT.create() certainly aren't off the table. Ray Cromwell has made some pretty useful-sounding suggestions in the past. We just have to find large-group consensus on what