[gwt-contrib] Re: Fix typo (issue1497807)
reply-all from to (using new address re...@gwt-code-reviews-hr.appspotmail.com) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix typo (issue1497807)
reply-all from to (using old address re...@gwt-code-reviews.appspotmail.com) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Directory detection in nocache.js
I'll add some context: ForPlay has an optional AppCacheLinker, which extends the DirectInstallLinker. ForPlay's SVN repository has a pair of svn:externals links, so it can track changes in GWT trunk linker changes, since the latest DirectInstallLinker fixes have not yet been released into a GWT SDK. If your ForPlay project does not need the AppCacheLinker your .gwt.xml file need to contain a linker override, i.e. something like this: add-linker name=appcachelinker/ On Thu, Jun 16, 2011 at 11:15 AM, unnurg unn...@google.com wrote: Hi Russel - tryMarkerScript was removed from the new xsiframe linker. It's still present in the old, default linkers, but the new xsiframe linker needs to support Late Loading by default, which crashes when you do a document.write() and so we decided to remove this detection. Apologies that the comments didn't make it into the review thread, it was a rather lengthy discussion that we ended up having offline with various members of the team. I believe that you saw the break recently, because ForPlay was recently switched from the old linker to one of the new xsiframe based ones (I believe it uses the direct_install one, or the xsiframe one). I believe that switch was made because the new linker also supports CrossSite by default, and ForPlay needed this functionality. Note that if you don't do anything fancy, the other mechanisms should catch the right path, so in *most* cases, tryMarkerScript is not needed. However, if you've renamed something and none of the other functions are triggering, then the easiest thing is to simply set a base or meta tag that will make sure that computeScriptBase works. I've also added Fred to the thread, since I don't know that much about ForPlay, and he's the one that switched ForPlay to the new linker, so he may have additional info and/or corrections. - Unnur On Jun 16, 8:55 am, Russell seventysev...@gmail.com wrote: I think this might be a GWT issue. I've tracked it as far as the removal of tryMarkerScript() from computeScriptBase.js r10045: http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/c... If I add that function back in, everything works fine. I'm not sure why the other methods ofdirectorydetectionaren't working, but I assume there was a reason this function was present in the original code. The code review on r10045 raises some questions that haven't been answered; I guess I don't understand the Google review process. Thanks. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-contrib] Re: New projects should always have a DTD specified in their template .gwt.xml module file (issue1407803)
John, Mind having a look at this one? On Thu, Jun 16, 2011 at 2:22 PM, fre...@google.com wrote: http://gwt-code-reviews.**appspot.com/1407803/http://gwt-code-reviews.appspot.com/1407803/ -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Announce: gwt-dnd 3.1.1 released -- drag and drop for your apps
There's a new version of gwt-dnd ready for downloadhttp://code.google.com/p/gwt-dnd/wiki/GettingStarted. I'd love to get your feedback on this release, so I can remove the * ReleaseCandidate* tag and replace it with a shiny new *Featured* tag. The release notes http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes are short and sweet: -- What's new in gwt-dnd-3.1.1.jar (requires GWT 2.3.0 or newer) - New in this release - Add explicit support for ie9 user.agent property value, to get rid of those annoying warnings about GWT having to use a fallback value. - Also removed obsolete gecko user.agent property. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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.
Announce: gwt-voices 2.1.0 released -- sound for your apps
There's a new version of gwt-voices ready for downloadhttp://code.google.com/p/gwt-voices/wiki/GettingStarted. I'd love to get your feedback on this release, so I can remove the * ReleaseCandidate* tag and replace it with a shiny new *Featured* tag. Why would you want to use GWT http://code.google.com/p/forplay/ to play sounds you ask? Well, you might need sound effects when slinging birds through the air http://chrome.angrybirds.com/. It's been a while, so the release noteshttp://code.google.com/p/gwt-voices/wiki/ReleaseNoteshave a bit more to say than usual: -- What's new in gwt-voices-2.1.0.jar - Bug fixes - Prevent NullPointerException in non-HTML5 browsers - Catch and ignore setCurrentTime(0) exceptions on IE9 - Fixed volume/balance/panning during Flash playback - Prevent data: URIs from trying to use Flash, which doesn't like them - Restore MIDI playback. Thanks ornello! - Workaround Chrome's inability to play the same audio twice: issues 71323 http://code.google.com/p/chromium/issues/detail?id=71323 and 75725 http://code.google.com/p/chromium/issues/detail?id=75725 - Restore support for Flash MP3 playback in IE (was broken in gwt-voices 2.0.0) - New in this release - Add ability to loop sounds via Sound#setLooping(boolean) - Sound#play() now returns a boolean to indicate whether gwt-voices believes it was able to play the sound; it returns false when the sound system is unavailable or has run out of available channels - Flash plugin triggers also with audio/mpeg; codecs=MP3, not just audio/mpeg - For the time being, prefer Flash over HTML5 audio for audio/mpeg and audio/mpeg; codecs=MP3 MIME Types, due to poor HTML5 audio reliability - Require at least Flash 9 (previously 8) to trigger Flash playback - Added ie9 user.agent property support for GWT 2.3 to avoid those pesky warnings - Added HTML5 favicon to demo site - HTML5 playback provides PlaybackCompleteEvents (requires GWT 2.4 and later) - You can set an optional URL parameter gwt-voices to either html5 or flash, to indicate a runtime preference for MP3 files, which is overridden by SoundController#setPreferredSoundType() - New (deprecated) SoundController?http://code.google.com/p/gwt-voices/w/edit/SoundController#getPreferredSoundType(), which may be removed without warning in a future release - Other changes in this release - Using AS3 with mxmlc instead of AS2 with mtasc compiler - For compatibility testing, demo shows both HTML5 and Flash for audio/mpeg MIME types - Now require Java 1.6 Enjoy -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: [gwt-contrib] Re: Use glass panel isntead of alert() when displaying dev mode connection failures, (issue1449802)
No worries. Not having to click that popup will be payment enough :) To be honest, I don't understand why it took me so long to realize that this is was behavior that could in fact be changed. On Tue, May 17, 2011 at 12:39 PM, Isaac Truett itru...@gmail.com wrote: Fred, I can't tell you how obnoxious this has been for me. When this change makes it into a release, I will owe you a beer or comparable gratuity. Thank you. On Tue, May 17, 2011 at 3:09 PM, fre...@google.com wrote: http://gwt-code-reviews.appspot.com/1449802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Gwt Developers--Oversight With HTML 5 audio
Hi James, There is indeed still more work to do and many more HTML 5 media (audio/video) events to implement. This is certainly on our/my list of TO DOs. Do keep bugging us if you don't see progress on this in the next couple of weeks. Thanks Fred On Thu, May 5, 2011 at 4:46 PM, stymie jamesty...@gmail.com wrote: There seems to be no CompleteListener implemented with the HTML 5 audio that came along in 2.2. Are you going to implement this in an upcoming release.Seems like a pretty big oversight to 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. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: GWT 2.3.0 rebinding warnings
nokostar, This message is a warning and can (for the time being) be safely ignored. The message is due to the new user.agent property ie9 which was introduced (http://code.google.com/webtoolkit/release-notes.html). The message is telling you that the GWT compiler went ahead and assumed you the ie8 version will suffice. You may see similar messages from any other third party libraries you use, or even from your own applications. Hope that helps Fred On Wed, May 4, 2011 at 1:03 PM, nokostar courage.n...@gmail.com wrote: I am upgrading to GWT 2.3 and compiling the modules produces a warning with one of the dependencies. Does anyone know the potential side effect of this and/or potential work around? Scanning for additional dependencies: jar:gwt-log-3.1.2.jar!/com/ allen_sauer/gwt/log/client/util/DOMUtil.java Computing all possible rebind results for 'com.allen_sauer.gwt.log.client.util.impl.DOMUtilImpl' Rebinding com.allen_sauer.gwt.log.client.util.impl.DOMUtilImpl Could not find an exact match rule. Using 'closest' rule replace-with class='com.allen_sauer.gwt.log.client.util.impl.DOMUtilImplIE6'/ based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into /build/www/testmodule Link succeeded Compilation succeeded -- 120.036s -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-contrib] Re: Fixing firefox permission error message when assesing nodeType of a restricted html element (suc... (issue1369804)
LGTM -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Re-enable XML parse test, which was previously failing in one Safari configuration in Production... (issue1229801)
The test completes successfully on Safari 5.0.2 on OSX in web mode, although it fails in HTMLUnit. I've marked the test @DoNotRunWith({Platform.HtmlUnitUnknown}) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Replace most user/developer visible references to hosted/web mode with Development/Production Mode (issue1221801)
I left some of the hosted mode references, particularly around the internal bits of GWT, which most developers will never look at. There's still some stuff there which legitimately, I think, references hosted mode, so I stayed clear of those changes (for now). Happy to add any you think we should change as well, or do a follow up patch with that stuff. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Replace most user/developer visible references to hosted/web mode with Development/Production Mode (issue1221801)
Sorry. You're right. Apparently I missed some instances in files I did modify. That was not intentional. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix style.setOpacity() in IE8 (issue1077801)
Thanks for the feedback guys. I'll take another look at this, and do some more thorough testing, probably after my trip (Nov 6-17th) though. On Thu, Nov 4, 2010 at 7:53 AM, jlaba...@google.com wrote: http://gwt-code-reviews.appspot.com/1077801/diff/3001/4002 File user/src/com/google/gwt/dom/client/DOMImplIE8.java (right): http://gwt-code-reviews.appspot.com/1077801/diff/3001/4002#newcode77 user/src/com/google/gwt/dom/client/DOMImplIE8.java:77: cssSetOpacityPirorToIe9(style, value); UserAgent should choose DOMImplIE6 in quirks/7 mode, in which case it would correctly use the alpha filter. The UserAgent should choose DOMImplIE8 in 8 mode and isIE8 should return true, in which case we still correctly use alpha filter. Finally, the UserAgent should choose DOMImplIE8 in 8 mode and isIE8 should return false, so we use opacity. @Fred - Please do verify that this works on IE8/9 in compatibility/regular mode. http://gwt-code-reviews.appspot.com/1077801/diff/3001/4003 File user/src/com/google/gwt/dom/client/Style.java (right): http://gwt-code-reviews.appspot.com/1077801/diff/3001/4003#newcode1373 user/src/com/google/gwt/dom/client/Style.java:1373: * 1.0 (opaque). Note, in IE6/7, the element must also 'have layout' in order I think this method should set zoom:1 in IE so the user doesn't have to worry about it. Users aren't likely to read the JavaDoc, and we don't even provide an API for setting zoom:1, which makes it easy for users to miss this quirk. The likelihood of a user setting zoom to something other than 1 on an element AND setting its opacity through this method seems fleetingly small and unlikely to cause conflicts. Thats especially true if the user is setting zoom in CSS, because they would likely just set the opacity there too and avoid this method. http://gwt-code-reviews.appspot.com/1077801/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: gwt-log-3.0.4 available for download
Yes, absolutely On Wed, Nov 3, 2010 at 9:07 AM, gcstang gcst...@gmail.com wrote: Will gwt-log still work in 2.1 ? On Nov 2, 11:59 pm, Fred Sauer fre...@google.com wrote: The code in GWT 2.1 was inspired by gwt-log, but the two APIs and implementations are different. The most practical difference is this: - GWT implements java.util.logging - gwt-log uses a log4j inspired static API On Tue, Oct 19, 2010 at 11:48 PM, Harald Pehl harald.p...@googlemail.comwrote: Is this version part of GWT 2.1, as described in http://code.google.com/intl/de-DE/webtoolkit/doc/trunk/DevGuideLoggin. .. ? - Harald On Oct 19, 10:50 pm, Fred Sauer fre...@google.com wrote: Hi, There's a new version of gwt-log for your to try out. Downloads: http://code.google.com/p/gwt-log/downloads/list Compatibility information and Getting Started guide: http://code.google.com/p/gwt-log/wiki/GettingStarted Enjoy-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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-log-3.0.4 available for download
The code in GWT 2.1 was inspired by gwt-log, but the two APIs and implementations are different. The most practical difference is this: - GWT implements java.util.logging - gwt-log uses a log4j inspired static API On Tue, Oct 19, 2010 at 11:48 PM, Harald Pehl harald.p...@googlemail.comwrote: Is this version part of GWT 2.1, as described in http://code.google.com/intl/de-DE/webtoolkit/doc/trunk/DevGuideLogging.html ? - Harald On Oct 19, 10:50 pm, Fred Sauer fre...@google.com wrote: Hi, There's a new version of gwt-log for your to try out. Downloads: http://code.google.com/p/gwt-log/downloads/list Compatibility information and Getting Started guide: http://code.google.com/p/gwt-log/wiki/GettingStarted Enjoy-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Sporadic ClassCastException
Have you tried setting an uncaught exception handler? You can use gwt-log (http://code.google.com/p/gwt-log/) to do this: public void onModuleLoad() { Log.setUncaughtExceptionHandler(); DeferredCommand.addCommand(new Command() { public void execute() { onModuleLoad2(); } }); } private void onModuleLoad2() { // Your client code goes here } Or, you can use this rudimentary approach: public void onModuleLoad() { // set uncaught exception handler GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() { public void onUncaughtException(Throwable throwable) { String text = Uncaught exception: ; while (throwable != null) { StackTraceElement[] stackTraceElements = throwable.getStackTrace(); text += throwable.toString() + \n; for (int i = 0; i stackTraceElements.length; i++) { text += at + stackTraceElements[i] + \n; } throwable = throwable.getCause(); if (throwable != null) { text += Caused by: ; } } DialogBox dialogBox = new DialogBox(true, false); DOM.setStyleAttribute(dialogBox.getElement(), backgroundColor, #ABCDEF); System.err.print(text); text = text.replaceAll( , nbsp;); dialogBox.setHTML(pre + text + /pre); dialogBox.center(); } }); // use a deferred command so that the handler catches onModuleLoad2() exceptions DeferredCommand.addCommand(new Command() { public void execute() { onModuleLoad2(); } }); } private void onModuleLoad2() { // . } Fred On Mon, Oct 25, 2010 at 2:14 AM, Carl c...@rahmstrom.com wrote: Hi, I sporadically receive the exception shown below or simular. This is in development mode. I'm not sure about production mode. Is there a way to catch all exceptions in GWT? I don't see any of my lines in the exception and wonder what I can do to avoid this in the future. I use GWT 2.0.4, OS X 10.6.4 and Safari 5.0.2. java.lang.ClassCastException: null at java.lang.Class.cast(Class.java:2990) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:166) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:680) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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-contrib] Re: Add support for touch events for supported mobile webkit platforms. (issue867801)
Jim, Thanks for creating the issue. We do absolutely need to make the GWT widgets, which rely on dragging via onmousemove, work correctly when touch events are available. Fred On Tue, Oct 26, 2010 at 2:46 PM, Jim Douglas jdou...@basis.com wrote: FWIW, I noted some touch-related issues here: http://code.google.com/p/google-web-toolkit/issues/detail?id=5148 SplitLayoutPanel is one problem child; another is the ability to drag dialog windows, because it also assumes the existence of mousemove. On Oct 26, 8:10 am, Fred Sauer fre...@google.com wrote: Philip, Do you think this could go in as is, as a first step? And then later add multi-touch, which I agree needs to ultimately be there? Or, do you think that the patch as it stands would put us in a corner that we don't want to be in? On Tue, Oct 26, 2010 at 5:54 AM, p...@google.com wrote: On 2010/09/14 00:49:29, fredsa wrote: I don't think this supports multi-touch events (i.e., the touches array), which I think needs to be in this. http://gwt-code-reviews.appspot.com/867801/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Add support for touch events for supported mobile webkit platforms. (issue867801)
On Wed, Oct 27, 2010 at 1:47 PM, Ray Cromwell cromwell...@gmail.com wrote: Also, onGesture* events seem to be missing. These are very useful for handling multitouch without actually having to do bookkeeping logic as to when multiple touch points started and ended. I was going to add those next, but I'll go ahead and make them a part of this change. -Ray On Wed, Oct 27, 2010 at 7:51 AM, j...@google.com wrote: http://gwt-code-reviews.appspot.com/867801/diff/1/17 File user/src/com/google/gwt/event/dom/client/TouchLocationEvent.java (right): http://gwt-code-reviews.appspot.com/867801/diff/1/17#newcode31 user/src/com/google/gwt/event/dom/client/TouchLocationEvent.java:31: implements LocationEvent { I think the API that is added now should support multitouch, even if the initial implementation only provides a single point. I believe the current API actually would let you receive multiple touch events, although the some of the native event properties like 'touches' and 'identifier' and noticably missing. I'll go ahead and get those in as well. http://gwt-code-reviews.appspot.com/867801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add support for touch events for supported mobile webkit platforms. (issue867801)
Philip, Do you think this could go in as is, as a first step? And then later add multi-touch, which I agree needs to ultimately be there? Or, do you think that the patch as it stands would put us in a corner that we don't want to be in? On Tue, Oct 26, 2010 at 5:54 AM, p...@google.com wrote: On 2010/09/14 00:49:29, fredsa wrote: I don't think this supports multi-touch events (i.e., the touches array), which I think needs to be in this. http://gwt-code-reviews.appspot.com/867801/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
gwt-log-3.0.4 available for download
Hi, There's a new version of gwt-log for your to try out. Downloads: http://code.google.com/p/gwt-log/downloads/list Compatibility information and Getting Started guide: http://code.google.com/p/gwt-log/wiki/GettingStarted Enjoy-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Fix deobfuscation of throwables with a cause (issue987801)
LGTM -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix the DevMode Swing UI to avoid clipping buttons when the URL (issue952802)
LGTM -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: GWT Development shell no longer cuts off the Launch Default Browser and Copy to Clipboard (issue758801)
Happy to. After I get back from GDD Tokyo, I should be able to do this. That won't be until the week of Oct 4th though. On Wed, Sep 15, 2010 at 7:23 PM, knor...@google.com wrote: Possible to throw a screenshot comparison up on http://imgur.com/? On 2010/09/15 19:16:00, jat wrote: On Wed, Sep 15, 2010 at 3:10 PM, mailto:con...@google.com wrote: fred, i'd love to see this go in. LGTM. My objection to it as written revolves around wasting vertical space when the URL fits fine. -- John A. Tamplin Software Engineer (GWT), Google http://gwt-code-reviews.appspot.com/758801/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add the option to use JSON rather than GWT RPC in remote logging (issue830802)
LGTM -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update HistoryTest to ensure that non-safari browsers also: (issue855801)
Commited as http://code.google.com/p/google-web-toolkit/source/detail?r=8749 Filed HtmlUnit bug https://sourceforge.net/tracker/?func=detailaid=3063896group_id=47038atid=448266 On Thu, Sep 9, 2010 at 5:37 PM, sco...@google.com wrote: Still LGTM. May want to file a bug against HtmlUnit. http://gwt-code-reviews.appspot.com/855801/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
HTML5 audio support added to gwt-voices-2.0.0.jar
GWT developers, Want to add sound effects to your GWT apps? The gwt-voices project http://code.google.com/p/gwt-voices/ has long provided a simple API for adding sound to your GWT apps, which can be useful for business applications and gameshttp://allen-sauer.com/com.allen_sauer.gwt.game.hornetblast.HornetBlast/HornetBlast.htmlalike. To date, gwt-voices provided audio support via the browser's native capabilities (remember the BGSOUND tag and its friends?) and, if installed, Adobe Flash (for MP3 files). This latest version of gwt-voices adds automatic support for HTML5 audio for modern browsers. Of course, the old native audio and Flash fallback functionality is still in place in case your users need it. To get started, add the gwt-voices jarhttp://code.google.com/p/gwt-voices/downloads/listto your project's classpath and inherit the gwt-voices module: inherits name=com.allen_sauer.gwt.voices.gwt-voices / Then simply play() your sound: SoundController sc = new SoundController(); Sound sound = sc.createSound(Sound.MIME_TYPE_AUDIO_OGG_VORBIS, mysoundfile.ogg); // put the file in the 'war' directory sound.play(); The main project site, which includes a live demohttp://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/VoicesDemo.html, is here: http://code.g oogle.com/p/gwt-voices/http://code.google.com/p/gwt-voices/ Interested in seeing which MIME Types are supported by the various HTML5 capable browsers? Look no further than this crowd sourced data (your own user agent will be highlighted in yellow): http://gwt-voices.appspot.com/ Full set of Release Notes: http://code.google.com/p/gwt-voices/wiki/ReleaseNotes A more complete Getting Started guide: http://code.google.com/p/gwt-voices/wiki/GettingStarted Feedback is always welcome. Enjoy-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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] HTML5 audio support added to gwt-voices-2.0.0.jar
GWT developers, Want to add sound effects to your GWT apps? The gwt-voices project http://code.google.com/p/gwt-voices/ has long provided a simple API for adding sound to your GWT apps, which can be useful for business applications and gameshttp://allen-sauer.com/com.allen_sauer.gwt.game.hornetblast.HornetBlast/HornetBlast.htmlalike. To date, gwt-voices provided audio support via the browser's native capabilities (remember the BGSOUND tag and its friends?) and, if installed, Adobe Flash (for MP3 files). This latest version of gwt-voices adds automatic support for HTML5 audio for modern browsers. Of course, the old native audio and Flash fallback functionality is still in place in case your users need it. To get started, add the gwt-voices jarhttp://code.google.com/p/gwt-voices/downloads/listto your project's classpath and inherit the gwt-voices module: inherits name=com.allen_sauer.gwt.voices.gwt-voices / Then simply play() your sound: SoundController sc = new SoundController(); Sound sound = sc.createSound(Sound.MIME_TYPE_AUDIO_OGG_VORBIS, mysoundfile.ogg); // put the file in the 'war' directory sound.play(); The main project site, which includes a live demohttp://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/VoicesDemo.html, is here: http://code.g oogle.com/p/gwt-voices/http://code.google.com/p/gwt-voices/ Interested in seeing which MIME Types are supported by the various HTML5 capable browsers? Look no further than this crowd sourced data (your own user agent will be highlighted in yellow): http://gwt-voices.appspot.com/ Full set of Release Notes: http://code.google.com/p/gwt-voices/wiki/ReleaseNotes A more complete Getting Started guide: http://code.google.com/p/gwt-voices/wiki/GettingStarted Feedback is always welcome. Enjoy-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Using GWT for a large UI project
Thanks, Marius On Mon, Aug 30, 2010 at 12:32 PM, marius.andreiana marius.andrei...@gmail.com wrote: Hello group, A few weeks ago I started a shared document which analyses using GWT for a large UI project, which has also reviewed by this group (thanks for your feedback!). After learning more, the analysis has been updated to include the following sections: Using GWT for a large UI project Goals Web applications paradigm alternatives Google Web Toolkit (GWT) Engineering Cross-functional team collaboration More info on GWT Recommendation Appendix: Evaluating GWT 3rd party libraries Appendix: Cool web apps on GWT Appendix: Useful articles If you'd like to have a look at it, please see https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWBCOKTPm1wDCzSQgvUhl=en Feel free to share your feedback and experiences on larger projects either on this group or in private. If you have developed GWT front- ends on .NET back-ends, your feedback is specially appreciated :) Thanks, Marius -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Continuation of r8542 to actually properly enables double click for (issue774801)
Excellent point, Thomas. I'll undo the double click capabilities from Hyperlink since it's already available to Anchor via FocusWidget. On Tue, Aug 17, 2010 at 11:20 AM, t.bro...@gmail.com wrote: LGTM, though I'm puzzled by Hyperlink implementing HasDoubleClickHandlers, given that addClickHandler is deprecated on that class. http://gwt-code-reviews.appspot.com/774801/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Create a red dev mode glass panel when hosted mode fails to load your module, similar to the gra... (issue730802)
On Wed, Aug 4, 2010 at 2:42 PM, sco...@google.com wrote: LGTM, except I kind of preferred the red. :) Patches welcome :-) http://gwt-code-reviews.appspot.com/730802/diff/11001/12003 File dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java (right): http://gwt-code-reviews.appspot.com/730802/diff/11001/12003#newcode387 dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java:387: onModuleLoad() threw an unexpected exception, I wouldn't necessarily call this unexpected.. it's the user's exception so maybe it's unexpected, maybe it's not. http://gwt-code-reviews.appspot.com/730802/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Put in a new fix for DevMode logging that uses bytecode rewriting rather than swapping out (issue725801)
LGTM -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change RequestFactory based requests: (issue674804)
How's this? http://gwt-code-reviews.appspot.com/674804 On Mon, Aug 2, 2010 at 5:46 PM, fre...@google.com wrote: http://gwt-code-reviews.appspot.com/674804/show -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update sample to use the latest features (issue672801)
LGTM On Wed, Jun 30, 2010 at 4:45 PM, unn...@google.com wrote: Reviewers: fredsa, Description: Update sample to use the latest features Please review this at http://gwt-code-reviews.appspot.com/672801/show Affected files: M samples/logexample/src/com/google/gwt/sample/logexample/client/CustomLogArea.java M samples/logexample/src/com/google/gwt/sample/logexample/client/HandlerController.java M samples/logexample/src/com/google/gwt/sample/logexample/client/HandlerController.ui.xml M samples/logexample/src/com/google/gwt/sample/logexample/client/LogExample.java M samples/logexample/src/com/google/gwt/sample/logexample/client/LoggerController.java M samples/logexample/src/com/google/gwt/sample/logexample/client/OneLoggerController.java M samples/logexample/src/com/google/gwt/sample/logexample/client/OneLoggerController.ui.xml M samples/logexample/src/com/google/gwt/sample/logexample/client/ServerLoggingArea.java M samples/logexample/src/com/google/gwt/sample/logexample/client/ServerLoggingArea.ui.xml D samples/logexample/src/com/google/gwt/sample/logexample/server/LoggingServiceImpl.java D samples/logexample/src/com/google/gwt/sample/logexample/shared/LoggingService.java D samples/logexample/src/com/google/gwt/sample/logexample/shared/LoggingServiceAsync.java D samples/logexample/src/com/google/gwt/sample/logexample/shared/SharedLoggingLibrary.java -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: GWT Incubator Status Update and Schedule
a closer look at the form validation API in GWT 2.2.. Separate Project: - *SoundResource* SoundResource is a promising API for including sound in an application, but it makes sense to wait for HTML 5 features to become widely adopted before including it. We would like to move SoundResource into the gwt-voices project:http://code.google.com/p/gwt-voices/. - *Graphics* The graphics library provides a single, platform independent API that works on top of Canvas and VML. The library is not ready for GWT trunk, but this project is worth pursuing. - *HtmlDecorators* We will continue to work on this project to arbitrarily add decorations to widgets. As always, please feel free to reply with comments or suggestions. Thanks, John LaBanca on behalf of the GWT team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- I wish this were a Wave -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Fred Sauer Developer Advocate Google Inc.1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] gwt-dnd, gwt-log, gwt-voices updated for GWT 2.0
Four suggestions for your to-do list now that GWT 2.0 is out 1. Switch your projects to *GWT 2.0* - Faster, leaner AND more functionality. 2. Make sure you're using the *Google Plugin for Eclipse* - Can you say productivity? 3. Download and profile your apps with *Speed Tracer* - No more guessing; focus on fixing 4. Upgrade your *gwt-dnd / gwt-log / gwt-voices* projects to their respective GWT 2.0 versions http://code.google.com/p/gwt-log/ http://code.google.com/p/gwt-dnd/ http://code.google.com/p/gwt-voices/ Go GWT. Go. -- Fred Sauer Developer Advocate Google Inc.1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: GWT and DragListener
Listeners in the latest version have been migrated to Handlers to be consistent with the corresponding changes in GWT On Thu, Oct 22, 2009 at 8:10 PM, SUHASINI PRASAD sonyp...@gmail.com wrote: HI, I have that part added to my project, still it is not recognizing the DragListener. What i am trying to do is to create a pop-up menu the moment widget is dropped. i am already extending one class so i cannot extend click listener. Is there a way i can do that. are there any examples. Thank you so much for help. On Thu, Oct 22, 2009 at 2:51 PM, Adam T adam.t...@gmail.com wrote: Hi Sony, It's not part of GWT out of the box, you need to add it. See the project page, which has instructions and a getting started guide, here: http://code.google.com/p/gwt-dnd/ //Adam On 22 Okt, 15:31, sony sonyp...@gmail.com wrote: Hello, Is DragListener part of GWT? because when i type in com.google.gwt.user.client.dnd.DragListener it is not recognizing. i saw this in an example. Is there anything i need to add to make it work? any help would be appreciated. Thank you. -- Fred Sauer Developer Advocate Google Inc.1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-contrib] Re: Adding ClientBundle to trunk
Bob, Have you thought about implementing *External*DataSource? It looks like Flash doesn't like 'data:' URLs for creating Sound() objects. In gwt-voices I'd like to be able to use DataResource#getUrl() to get a strongly cacheable URL for my MP3 sound files. Thanks Fred On Wed, Mar 25, 2009 at 7:31 PM, BobV b...@google.com wrote: After 16+ months of on-and-off development, ClientBundle (nee ImmutableResourceBundle) is moving to GWT trunk. $ find user/src/com/google/gwt/resources/ user/test/com/google/gwt/resources/ -name *.java | xargs wc | grep total 9871 34391 317990 total The com.google.gwt.resources.Resources module is not included from User by default, so this commit should be a no-op for those tracking GWT and incubator trunk. Note also that some non-trivial API changes have occurred, includes renames and removal of methods marked as deprecated. The initial add at r5083 includes the following resource types: - CssResource - DataResource - ExternalTextResource - GwtCreateResource - ImageResource - TextResource TODO in priority order: - Move StyleInjector as a separate commit. - Which package is most appropriate? - Deprecate incubator versions and provide transition documentation. - A very rough guide to changes is here http://code.google.com/p/google-web-toolkit/wiki/ClientBundle - Deprecate ImageBundle with replacement. - Begin switching gwt.user and sample apps to ClientBundle -- Bob Vawter Google Web Toolkit Team -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Set cache headers properly in embedded Jetty for hosted mode
[+Miguel] On that note: what about adding some nice defaults to appengine-web.xml as discussed here: http://code.google.com/p/google-web-toolkit/issues/detail?id=3592 This would be for project with both App Engine and GWT support. Fred On Mon, Sep 21, 2009 at 3:20 PM, rj...@google.com wrote: If Bob and Kelly haven't objected to this by, say, lunch time tomorrow, can we get it submitted? This issue continues to bite people, and it would be nice to see it fixed before MS1 freezes RSN. http://gwt-code-reviews.appspot.com/56807 -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Set cache headers properly in embedded Jetty for hosted mode
Absolutely. Separate subject. Separate issue (in fact it's issue 3592). I just wanted to call it out here since there seem to be 'interested parties' on this thread. On Mon, Sep 21, 2009 at 5:30 PM, Ray Ryan rj...@google.com wrote: Can we move that conversation to another patch? On Mon, Sep 21, 2009 at 5:25 PM, Fred Sauer fre...@gmail.com wrote: [+Miguel] On that note: what about adding some nice defaults to appengine-web.xml as discussed here: http://code.google.com/p/google-web-toolkit/issues/detail?id=3592 This would be for project with both App Engine and GWT support. Fred On Mon, Sep 21, 2009 at 3:20 PM, rj...@google.com wrote: If Bob and Kelly haven't objected to this by, say, lunch time tomorrow, can we get it submitted? This issue continues to bite people, and it would be nice to see it fixed before MS1 freezes RSN. http://gwt-code-reviews.appspot.com/56807 -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
Re: Your GWT based open source project(s)
Thank you for the many replies. I'm impressed by the number of responses. I'd also love you hear which open source project actually motivated you to share your code. Thanks again Fred On Thu, Sep 3, 2009 at 4:40 PM, Fred Sauer fre...@google.com wrote: From time to time I hear from people who have created GWT related open source projects. If that includes you, here's my 1 question, 10 second survey: * Q. Were you encouraged to open source your project because of the benefits* * you gained from another open source project (GWT, or any other project)?* (Private replies are fine too). Thanks-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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 -~--~~~~--~~--~--~---
Your GWT based open source project(s)
From time to time I hear from people who have created GWT related open source projects. If that includes you, here's my 1 question, 10 second survey: * Q. Were you encouraged to open source your project because of the benefits* * you gained from another open source project (GWT, or any other project)?* (Private replies are fine too). Thanks-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: How to override module stylesheet definitions
As a heads up, if you build gwt-dnd from trunk (which requires using GWT 2.0 features form trunk) the stylesheet in injected via StyleInjector which avoids the extra HTTP round trip for gwt-dnd.css incurred by the stylesheet src=.../ configuration you mention below. Hope that helps. Fred On Mon, Aug 17, 2009 at 10:39 PM, Alex Epshteyn alexander.epsht...@gmail.com wrote: Surprisingly was unable to find any prior discussions about this... I'm optimizing my app's load time by merging all my stylesheets into a single CSS file (then minifying it with YUI compressor), to reduce the number of HTTP requests. I'd like to also concatenate all the stylesheets from third party libraries I'm using into this single CSS file, but don't see a way to undefine the stylesheet module XML elements in these third party modules. For example, I'm using Fred Sauer's gwt-dnd library, whose module XML contains stylesheet src=gwt-dnd.css/ This line instructs the browser to request gwt-dnd.css when this module is loaded, but I don't want this to happen. Any ideas? -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-contrib] Re: DTO compiler optimization
Nathan, To some extent you can make this happen by wrapping your method implementations with GWT.isScript() or GWT.isClient() calls as appropriate. Another approach is to use super-src so that you in fact have two implementations of your class, one for the client, one for the server. I realize neither quite hits the sweet spot you're looking for, but may help you in a pragmatic sense. Fred On Mon, Aug 10, 2009 at 10:10 AM, Nathan Wells nwwe...@gmail.com wrote: I have hesitated to bring this up, since I'm relatively new to GWT, and I would hate to waste anyone's time with explaining what is hopefully common knowledge to me. Specifically, I thinking about the DTO problem. I think the general opinion about DTOs is that they are a necessary evil when working with GWT. And let me say, they are a very minor blemish on a life-saving framework. But, It seems to me that the problem has a more elegant solution. I would propose that all we need to do is increase the granularity of GWT compiler control. For clarification, I would like to be able to tell the compiler at the class member level (either through annotations or *.gwt.xml) what should be client-side and what should be server-side. As an example, compiling the following class wouldn't be a problem: class Foo implements Serializable { @ServerOnly static long serialVersionUID = 325490285; //default, of course compiles to java byte-code and js. String bar; @ServerOnly void setBar(String bar) { //a method which might reference un-emulated JRE classes } String getBar() { return bar; } } I hope that makes sense... that way, our the same class could be used on server and client side. Hurray for OO! Again, I'm sure there are some unforeseen consequences of this design, not the least of which is the possibility that it would require basically rebuilding the GWT compiler. I'm just hoping that this discussion might answer other n00b questions in the future :) -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: How to enable web mode debugging in GWT
gwt-log will print those stack traces for you. To get the most out of it you'll want to use GWT trunk and gwt-log trunk. To get started: http://code.google.com/p/gwt-log/wiki/GettingStarted In particular, make sure you: inherits name=com.google.gwt.core.EmulateJsStack/ set-configuration-property name=compiler.emulatedStack.recordLineNumbers value=true/ set-configuration-property name=compiler.emulatedStack.recordFileNames value=true/ And use the deferred command pattern to capture initialization exceptions: public void onModuleLoad() { Log.setUncaughtExceptionHandler(); DeferredCommand.addCommand(new Command() { public void execute() { onModuleLoad2(); } }); } private void onModuleLoad2() { // Your client code goes here } HTH Fred On Mon, Aug 10, 2009 at 1:36 AM, Joy goswami@gmail.com wrote: Hi All, I can see hosted mode debug message in eclipse console. When I compile and run mt application in IE I get some javascipt error messages. But I am uanble to debug because I am not getting the culprit java file which might have caused the error. So I want to know how to enable web mode debugging, so that i can see the java stack trace in eclipse console, while running the application in IE. Thanks in advance. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Invalid version number 2.0 passed to external.gwtOnLoad()
When switching GWT versions on my project I get this error (when I'm lucky): *[ERROR] Invalid version number 2.0 passed to external.gwtOnLoad(), expected 1.6; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app* However, if I'm switching within a given version of GWT (say because I'm working off of trunk and updating or rolling back) I may in fact have incorrect contents in hosted.html but a correct version. This means the above error message is never thrown, but hosted mode is unexplainably broken. Should this be an issue? It would be great if GWT checked the contents of hosted.html and replaced the file if needed. Thoughts? -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
On Tue, Aug 11, 2009 at 5:14 PM, John Tamplin j...@google.com wrote: On Tue, Aug 11, 2009 at 7:50 PM, Fred Sauer fre...@google.com wrote: When switching GWT versions on my project I get this error (when I'm lucky): *[ERROR] Invalid version number 2.0 passed to external.gwtOnLoad(), expected 1.6; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app* However, if I'm switching within a given version of GWT (say because I'm working off of trunk and updating or rolling back) I may in fact have incorrect contents in hosted.html but a correct version. This means the above error message is never thrown, but hosted mode is unexplainably broken. Should this be an issue? It would be great if GWT checked the contents of hosted.html and replaced the file if needed. I'm not sure I understand the issue. If you have different versions of hosted.html and GWT, things are likely to not work and that is why that check was added in 1.6. I don't see how you could have the incorrect contents of hosted.html but the correct version, unless you update/rollback parts of GWT separately, in which case you are already likely to break things if you don't know what you are doing. Yep, that's exactly the scenario :). Knowing that you have to watch out for this stuff is one thing. Being bit by it every now and again and going down a rabbit hole, is (mildly) annoying. Not a huge deal as this affect contributors only, but could be a good sanity check to save time down the road. Thanks Fred In the -noserver case, GWT never sees the hosted.html your web server serves, and the version number is passed to the plugin from hosted.html (or gwt.external in legacy hosted mode) -- it could conceivably do an XHR for hosted.html and send the entire contents (or a hash) rather than just the version number, but that seems overkill as I don't see a reasonable way the version number contained in the hosted.html file will get out of sync with the rest of the hosted.html file. -- John A. Tamplin Software Engineer (GWT), Google -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
On Tue, Aug 11, 2009 at 5:47 PM, John Tamplin j...@google.com wrote: On Tue, Aug 11, 2009 at 8:22 PM, Fred Sauer fre...@google.com wrote: I'm not sure I understand the issue. If you have different versions of hosted.html and GWT, things are likely to not work and that is why that check was added in 1.6. I don't see how you could have the incorrect contents of hosted.html but the correct version, unless you update/rollback parts of GWT separately, in which case you are already likely to break things if you don't know what you are doing. Yep, that's exactly the scenario :). Knowing that you have to watch out for this stuff is one thing. Being bit by it every now and again and going down a rabbit hole, is (mildly) annoying. Not a huge deal as this affect contributors only, but could be a good sanity check to save time down the road. There are so many ways you can screw things up by mixing different versions of parts of GWT, I don't see how this is any different. For example, if you rollback an old TypeOracleMediator but don't roll back related TypeOracle changes, things are going to break horribly. I think trying to add code inside GWT to detect such situations is counterproductive and unlikely to be effective anyway. You had me at There are so many ways you can screw things up Thanks Fred I would hope that anyone knows building a version of GWT that is not at a consistent revision across the board means they better know exactly what they are doing or they will get weird breakages. -- John A. Tamplin Software Engineer (GWT), Google -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
Re: GWT RPC
Pavel, You still will need to copy the result set into a new collection, e.g. an ArrayList. Fred On Mon, Aug 10, 2009 at 6:54 AM, Pavel Byles pavelby...@gmail.com wrote: Fred,I have tried transferring a JDO enhanced class from server to client, to no avail. The error I get is the same as before: org.datanucleus.store.appengine.query.*StreamingQueryResult* cannot be cast On Wed, Aug 5, 2009 at 3:43 PM, Fred Sauer fre...@google.com wrote: Let me know how it goes with the latest plugin and GWT 1.7.0. Just to be clear, JDO enhanced classes still won't pass round trip, even if they are in detached state. For that you still need to transfer some sort of DTO between client and server. However, if you just want to take a JDO class and transfer it one way, you can sort of get that to work. Fred On Wed, Aug 5, 2009 at 12:26 PM, Pavel Byles pavelby...@gmail.comwrote: Ok, this is great news. I will try this w/o your workaround and hope for the best. On Wed, Aug 5, 2009 at 12:21 PM, Fred Sauer fre...@google.com wrote: Pavel, Some of the annoyances have been cleaned up. The latest plugin takes care of some of that. The biggest thing left is how to deal with detachable 'bytecode enhanced' classes so that they can be sent round trip server-client-server. This has been discussed at length on the GWT user + contributor forums. I think some good work is happening in this area to make life easier. Fred On Wed, Aug 5, 2009 at 8:54 AM, Pavel Byles pavelby...@gmail.comwrote: Has there been any further word on the GWT bug that requires the following workaround: http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html? Has this been fixed in 1.7? -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: GWT RPC
Instead of casting the results: results = (ListCountry) query.execute(); you'll need to copy the results into the array. Note that you never actually use this array: ListCountry results = new ArrayListCountry(); To see what I mean try this: final ListCountry results = new ArrayListCountry(); HTH Fred On Mon, Aug 10, 2009 at 12:33 PM, Pavel Byles pavelby...@gmail.com wrote: Hi Fred. I do do that.Here's a code sample: ListCountry results = new ArrayListCountry(); try { Query query = pm.newQuery(Country.class); query.setOrdering(name asc); results = (ListCountry) query.execute(); } catch (... ...) { } return results; On Mon, Aug 10, 2009 at 1:06 PM, Fred Sauer fre...@google.com wrote: Pavel, You still will need to copy the result set into a new collection, e.g. an ArrayList. Fred On Mon, Aug 10, 2009 at 6:54 AM, Pavel Byles pavelby...@gmail.comwrote: Fred,I have tried transferring a JDO enhanced class from server to client, to no avail. The error I get is the same as before: org.datanucleus.store.appengine.query.*StreamingQueryResult* cannot be cast On Wed, Aug 5, 2009 at 3:43 PM, Fred Sauer fre...@google.com wrote: Let me know how it goes with the latest plugin and GWT 1.7.0. Just to be clear, JDO enhanced classes still won't pass round trip, even if they are in detached state. For that you still need to transfer some sort of DTO between client and server. However, if you just want to take a JDO class and transfer it one way, you can sort of get that to work. Fred On Wed, Aug 5, 2009 at 12:26 PM, Pavel Byles pavelby...@gmail.comwrote: Ok, this is great news. I will try this w/o your workaround and hope for the best. On Wed, Aug 5, 2009 at 12:21 PM, Fred Sauer fre...@google.com wrote: Pavel, Some of the annoyances have been cleaned up. The latest plugin takes care of some of that. The biggest thing left is how to deal with detachable 'bytecode enhanced' classes so that they can be sent round trip server-client-server. This has been discussed at length on the GWT user + contributor forums. I think some good work is happening in this area to make life easier. Fred On Wed, Aug 5, 2009 at 8:54 AM, Pavel Byles pavelby...@gmail.comwrote: Has there been any further word on the GWT bug that requires the following workaround: http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html? Has this been fixed in 1.7? -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-contrib] Re: NOTICE - removing all @deprecated code for GWT 2.0
I've always been meaning to use it myself, so I just tried it and here's what appears to be the most useful thing you can do as an API or GWT developer: 1. Refactor your library using Eclipse 2. Review your history at any time with Refactor - History 3. Package your refactorings - I did this via File - Export - Jar file (and then check the box 'Export refactorings for checked projects'), which produced a META-INF/REFACTORINGS.XML in the jar - I bet you could instead more simply use Refactor - Create Script 4. Ship a jar with the new APIs and include the refactoring history in META-INF/REFACTORINGS.XML Your users then simply: 1. Open their project while they still have your old jar in their classpath 2. They select Refactor - Migrate JAR file - specify the location of the new jar file which contains the META-INF/REFACTORINGS.XML - specify the old jar already in their project classpath - Click, Next, then Next again - review the refactorings they want to apply - Click Finish The rest is magic. Pretty cool. It wouldn't handle listener-handler migrations, but simple method name changes would be trivial. I tried it with an 'encapsulate field' refactoring. Works beautifully. You might even be able to trigger the user.Element - dom.Element migration in user code. Most excellent would be integration with the Eclipse Plugin whereby an update from GWT 1.7 - 2.0 causes the Refactor-Migrate JAR file wizard to be invoked for you. Fred 2009/8/3 Joel Webber j...@google.com I haven't actually tried any of this stuff. I'll definitely have a look when I hunker down to do this refactoring. Of course, if anyone wants to look into it before I get to it, that would be even cooler... :) On Mon, Aug 3, 2009 at 12:13 PM, Fred Sauer fre...@google.com wrote: I wonder how much work we could make Eclipse do for us. Under the 'Refactor' menu there are a few useful optional to record / playback refactorings: Migrate JAR File Migrates a JAR File on the build path of a project in your workspace to a newer version, possibly using refactoring information stored in the new JAR File to avoid breaking changes. Available: JAR Files on build path Create Script Creates a script of the refactorings that have been applied in the workspace. Refactoring scripts can either be saved to a file or copied to the clipboard. See *Apply Script*. Available: Always Apply Script Applies a refactoring script to projects in your workspace. Refactoring scripts can either be loaded from a file or from the clipboard. See *Create Script*. Available: Always History Browses the workspace refactoring history and offers the option to delete refactorings from the refactoring history. Available: Always What if you recorded all the refactorings you wanted to make and then let developers simply replay them on their own projects? In fact, the Eclipse plugin could potentially prompt to auto upgrade projects to the new API. Fred On Mon, Aug 3, 2009 at 7:10 AM, Joel Webber j...@google.com wrote: I'd be a lot more comfortable if our own code didn't have reams of deprecation warnings. The good news is that it's actually pretty easy to do -- it's damned near rote, though not quite enough to automate. I did it for a few large classes in 1.5 (though I didn't commit the changes), just to make sure I didn't miss anything too important. On Mon, Aug 3, 2009 at 10:06 AM, John Tamplin j...@google.com wrote: On Mon, Aug 3, 2009 at 8:30 AM, Joel Webber j...@google.com wrote: I've been wanting to do this since we first introduced the dom package in 1.5. The plan is to remove all extant references to user.Element and friends, as well as the DOM.* static methods, at which point they can be deprecated. I'd like to do this as part of 2.0, so that we can go ahead and get them deprecated, but it remains to be seen if there's enough time in the schedule. Do we have to remove internal references to it before marking it deprecated? Obviously, those would have to be cleaned up before we actually remove it, but it doesn't seem necessary to require it earlier. -- John A. Tamplin Software Engineer (GWT), Google -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc.1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
Re: GWT RPC
Pavel, Some of the annoyances have been cleaned up. The latest plugin takes care of some of that. The biggest thing left is how to deal with detachable 'bytecode enhanced' classes so that they can be sent round trip server-client-server. This has been discussed at length on the GWT user + contributor forums. I think some good work is happening in this area to make life easier. Fred On Wed, Aug 5, 2009 at 8:54 AM, Pavel Byles pavelby...@gmail.com wrote: Has there been any further word on the GWT bug that requires the following workaround: http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html? Has this been fixed in 1.7? -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: GWT RPC
Let me know how it goes with the latest plugin and GWT 1.7.0. Just to be clear, JDO enhanced classes still won't pass round trip, even if they are in detached state. For that you still need to transfer some sort of DTO between client and server. However, if you just want to take a JDO class and transfer it one way, you can sort of get that to work. Fred On Wed, Aug 5, 2009 at 12:26 PM, Pavel Byles pavelby...@gmail.com wrote: Ok, this is great news. I will try this w/o your workaround and hope for the best. On Wed, Aug 5, 2009 at 12:21 PM, Fred Sauer fre...@google.com wrote: Pavel, Some of the annoyances have been cleaned up. The latest plugin takes care of some of that. The biggest thing left is how to deal with detachable 'bytecode enhanced' classes so that they can be sent round trip server-client-server. This has been discussed at length on the GWT user + contributor forums. I think some good work is happening in this area to make life easier. Fred On Wed, Aug 5, 2009 at 8:54 AM, Pavel Byles pavelby...@gmail.com wrote: Has there been any further word on the GWT bug that requires the following workaround: http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html? Has this been fixed in 1.7? -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- -Pav -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-contrib] Re: NOTICE - removing all @deprecated code for GWT 2.0
I wonder how much work we could make Eclipse do for us. Under the 'Refactor' menu there are a few useful optional to record / playback refactorings: Migrate JAR File Migrates a JAR File on the build path of a project in your workspace to a newer version, possibly using refactoring information stored in the new JAR File to avoid breaking changes. Available: JAR Files on build path Create Script Creates a script of the refactorings that have been applied in the workspace. Refactoring scripts can either be saved to a file or copied to the clipboard. See *Apply Script*. Available: Always Apply Script Applies a refactoring script to projects in your workspace. Refactoring scripts can either be loaded from a file or from the clipboard. See *Create Script*. Available: Always History Browses the workspace refactoring history and offers the option to delete refactorings from the refactoring history. Available: Always What if you recorded all the refactorings you wanted to make and then let developers simply replay them on their own projects? In fact, the Eclipse plugin could potentially prompt to auto upgrade projects to the new API. Fred On Mon, Aug 3, 2009 at 7:10 AM, Joel Webber j...@google.com wrote: I'd be a lot more comfortable if our own code didn't have reams of deprecation warnings. The good news is that it's actually pretty easy to do -- it's damned near rote, though not quite enough to automate. I did it for a few large classes in 1.5 (though I didn't commit the changes), just to make sure I didn't miss anything too important. On Mon, Aug 3, 2009 at 10:06 AM, John Tamplin j...@google.com wrote: On Mon, Aug 3, 2009 at 8:30 AM, Joel Webber j...@google.com wrote: I've been wanting to do this since we first introduced the dom package in 1.5. The plan is to remove all extant references to user.Element and friends, as well as the DOM.* static methods, at which point they can be deprecated. I'd like to do this as part of 2.0, so that we can go ahead and get them deprecated, but it remains to be seen if there's enough time in the schedule. Do we have to remove internal references to it before marking it deprecated? Obviously, those would have to be cleaned up before we actually remove it, but it doesn't seem necessary to require it earlier. -- John A. Tamplin Software Engineer (GWT), Google -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Web mode stack traces - propose stackElement.getFileName() return 'JavaScript' instead of 'Unknown'
On Fri, Jul 31, 2009 at 5:53 PM, Bruce Johnson br...@google.com wrote: Isn't that already there, if you wire up the symbol maps correctly? I was thinking of doing it client side (i.e. without the server side symbol maps). The `-style DETAILED` provides all the necessary information, although with minor transformations. Making the transformations uniquely reversible would solve this. On Fri, Jul 31, 2009 at 5:38 PM, Fred Sauer fre...@google.com wrote: Perhaps one of bobs tricks will involve taking the `-style DETAILED` information which looks like this: at Unknown.com_allen_1sauer_gwt_log_demo_client_InteractiveDemoPanel$5_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V(InteractiveDemoPanel.java:135) and magically reverse transform it into: at com.allen_sauer.gwt.log.demo.client.InteractiveDemoPanel$5.onClick(InteractiveDemoPanel.java:135) That would make something like this: at Unknown.com_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_$fillInStackTrace__Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_2Ljava_lang_Throwable_2V(JsArrayString.java:42) at Unknown.java_lang_NullPointerException_$NullPointerException__Ljava_lang_NullPointerException_2Ljava_lang_NullPointerException_2(StackTraceCreator.java:280) at Unknown.com_allen_1sauer_gwt_log_demo_client_InteractiveDemoPanel$5_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V(InteractiveDemoPanel.java:135) at Unknown.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt_event_shared_EventHandler_2V(com.google.gwt.dev.jjs.impl.GenerateJavaAST:0) at Unknown.com_google_gwt_event_shared_HandlerManager$HandlerRegistry_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager$HandlerRegistry_2Lcom_google_gwt_event_shared_GwtEvent_2ZV(HandlerManager.java:65) at Unknown.com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V(HandlerManager.java:178) at Unknown.com_google_gwt_user_client_ui_Widget_$fireEvent__Lcom_google_gwt_user_client_ui_Widget_2Lcom_google_gwt_event_shared_GwtEvent_2V(Widget.java:52) at Unknown.com_google_gwt_event_dom_client_DomEvent_fireNativeEvent__Lcom_google_gwt_dom_client_NativeEvent_2Lcom_google_gwt_event_shared_HasHandlers_2Lcom_google_gwt_dom_client_Element_2V(DomEvent.java:116) at Unknown.com_google_gwt_user_client_ui_Widget_onBrowserEvent__Lcom_google_gwt_user_client_Event_2V(Widget.java:90) at Unknown.com_google_gwt_user_client_DOM_dispatchEventAndCatch__Lcom_google_gwt_user_client_Event_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventListener_2Lcom_google_gwt_core_client_GWT$UncaughtExceptionHandler_2V(DOM.java:1322) at Unknown.com_google_gwt_user_client_DOM_dispatchEvent__Lcom_google_gwt_user_client_Event_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventListener_2V(DOM.java:1266) at Unknown.anonymous(DOMImplStandard.java:180) look a lot more like this: at com.allen_sauer.gwt.log.demo.client.InteractiveDemoPanel$5.onClick(InteractiveDemoPanel.java:135) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:90) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1322) at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1305) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1266) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) 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) at org.eclipse.swt.widgets.Display.readAndDispatch
[gwt-contrib] NOTICE - removing all @deprecated code for GWT 2.0
To all GWT contributors- As you may know, there many exciting thingshttp://code.google.com/webtoolkit/makinggwtbetter.html#roadmap we're working on for GWT 2.0. With all the new features coming your way we thought GWT 2.0 would be a good opportunity to clean house and remove previously deprecated methods and classes. In many cases an equivalent replacement is suggested in the Javadoc and updating your projects should hopefully not be too onerous. While different sections of the API have been deprecated in different releases we wanted to make things as straightforward as possible for the upcoming release. As such, our plan for GWT 2.0 is to remove everything that was marked as deprecated in previous releases. We did not introduce any new deprecations in GWT 1.7 so you can find the complete list of items we plan to remove in this GWT 1.6 document: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/deprecated-list.html If you have any serious concerns about the above deprecation list, please reply back to indicate how you will be affected. In particular I'm interested in any use cases in the GWT 1.6/1.7 API which you feel would not be covered in GWT 2.0 once the @deprecated methods and classes have been removed. Please note that Java compilers are required to warn youhttp://java.sun.com/j2se/1.5.0/docs/guide/javadoc/deprecation/deprecation.html#how when your code uses @deprecated methods or classes. Although there are warning suppression mechanisms such as the @SuppressWarnings annotation and your IDE's or build environment's settings. So, in general, chances are you are probably not using any deprecated GWT APIs without knowing about it. Thanks-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Web mode stack traces - propose stackElement.getFileName() return 'JavaScript' instead of 'Unknown'
Web mode stack traces are steadily improving. You can even get line numbers (by inheriting com.google.gwt.core.EmulateJsStack). Without the extra instrumentation you web mode stack traces might look something like this: at Unknown.$NullPointerException() at Unknown.onClick_6() at Unknown.dispatch() at Unknown.$fireEvent() at Unknown.$fireEvent_0() at Unknown.$fireEvent_1() at Unknown.fireNativeEvent() at Unknown.onBrowserEvent() at Unknown.dispatchEventImpl() at Unknown.dispatchEventAndCatch() at Unknown.anonymous() I was thinking it might make slightly more sense if we replaced 'Unknown' with 'JavaScript', e.g. at JavaScript.$NullPointerException() at JavaScript.onClick_6() at JavaScript.dispatch() at JavaScript.$fireEvent() at JavaScript.$fireEvent_0() at JavaScript.$fireEvent_1() at JavaScript.fireNativeEvent() at JavaScript.onBrowserEvent() at JavaScript.dispatchEventImpl() at JavaScript.dispatchEventAndCatch() at JavaScript.anonymous() Anyone have strong opinions wither way? -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Web mode stack traces - propose stackElement.getFileName() return 'JavaScript' instead of 'Unknown'
Indeed, Out of the box (-style OBF) you get: at Unknown.lG(Unknown Source:0) at Unknown.Ccb(Unknown Source:0) at Unknown.kD(Unknown Source:0) at Unknown.nK(Unknown Source:0) at Unknown.vO(Unknown Source:0) at Unknown.cP(Unknown Source:0) at Unknown.f_(Unknown Source:0) at Unknown.zK(Unknown Source:0) at Unknown.p_(Unknown Source:0) at Unknown.a1(Unknown Source:0) at Unknown.c1(Unknown Source:0) at Unknown.anonymous(Unknown Source:0) If you add in the enhanced web more stack traces (and pay the JavaScript/runtime overhead): inherits name=com.google.gwt.core.EmulateJsStack/ set-configuration-property name=compiler.emulatedStack.recordLineNumbers value=true/ set-configuration-property name=compiler.emulatedStack.recordFileNames value=true/ You get the following, which notably can be pasted into Eclipse's Stack Trace Console view so that the filename:lineNumber pairs become clickable hyperlinks: at Unknown.E4(JsArrayString.java:42) at Unknown.pBb(StackTraceCreator.java:280) at Unknown.D1(InteractiveDemoPanel.java:135) at Unknown.a9(com.google.gwt.dev.jjs.impl.GenerateJavaAST:0) at Unknown.ibb(HandlerManager.java:65) at Unknown.vbb(HandlerManager.java:178) at Unknown.yxb(Widget.java:52) at Unknown.m9(DomEvent.java:116) at Unknown.cyb(Widget.java:90) at Unknown.tnb(DOM.java:1322) at Unknown.vnb(DOM.java:1266) at Unknown.anonymous(DOMImplStandard.java:180) On Fri, Jul 31, 2009 at 4:16 PM, Ray Cromwell cromwell...@gmail.com wrote: The way you see this in Java bytecode that has been obfuscated and stripped of line number information is, IIRC at z.onClick_6(Unknown) typically you see these on commercial Java software that has thrown an exception. -Ray On Fri, Jul 31, 2009 at 3:48 PM, Bruce Johnson br...@google.com wrote: I prefer Unknown because it's an indication you are looking at suboptimal stack trace output. JavaScript makes it sound like we actually intend for you to be looking at that output, when in fact, you really want to use symbol maps to reverse lookup the Java idents. On Fri, Jul 31, 2009 at 2:42 PM, Fred Sauer fre...@google.com wrote: Web mode stack traces are steadily improving. You can even get line numbers (by inheriting com.google.gwt.core.EmulateJsStack). Without the extra instrumentation you web mode stack traces might look something like this: at Unknown.$NullPointerException() at Unknown.onClick_6() at Unknown.dispatch() at Unknown.$fireEvent() at Unknown.$fireEvent_0() at Unknown.$fireEvent_1() at Unknown.fireNativeEvent() at Unknown.onBrowserEvent() at Unknown.dispatchEventImpl() at Unknown.dispatchEventAndCatch() at Unknown.anonymous() I was thinking it might make slightly more sense if we replaced 'Unknown' with 'JavaScript', e.g. at JavaScript.$NullPointerException() at JavaScript.onClick_6() at JavaScript.dispatch() at JavaScript.$fireEvent() at JavaScript.$fireEvent_0() at JavaScript.$fireEvent_1() at JavaScript.fireNativeEvent() at JavaScript.onBrowserEvent() at JavaScript.dispatchEventImpl() at JavaScript.dispatchEventAndCatch() at JavaScript.anonymous() Anyone have strong opinions wither way? -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Web mode stack traces - propose stackElement.getFileName() return 'JavaScript' instead of 'Unknown'
I can't wait! On Fri, Jul 31, 2009 at 4:58 PM, Bruce Johnson br...@google.com wrote: 4 cheers for Bob! w00t, w00t, w00t and w00t. Also, note that this is phase 1 in a larger plan. For Bob's next feat of magic, he's going to provide better control over permutations, allowing you to, say, include the (expensive) stack traces below for only a small percentage of users -- as well as all sorts of other cool, unrelated things that involve carving up your permutation space more powerfully On Fri, Jul 31, 2009 at 4:36 PM, Ray Cromwell cromwell...@gmail.comwrote: On Fri, Jul 31, 2009 at 4:33 PM, Fred Sauer fre...@google.com wrote: You get the following, which notably can be pasted into Eclipse's Stack Trace Console view so that the filename:lineNumber pairs become clickable hyperlinks: That's just awesome beyond belief. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Web mode stack traces - propose stackElement.getFileName() return 'JavaScript' instead of 'Unknown'
Perhaps one of bobs tricks will involve taking the `-style DETAILED` information which looks like this:at Unknown.com_allen_1sauer_gwt_log_demo_client_InteractiveDemoPanel$5_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V(InteractiveDemoPanel.java:135) and magically reverse transform it into: at com.allen_sauer.gwt.log.demo.client.InteractiveDemoPanel$5.onClick(InteractiveDemoPanel.java:135) That would make something like this: at Unknown.com_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_$fillInStackTrace__Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_2Ljava_lang_Throwable_2V(JsArrayString.java:42) at Unknown.java_lang_NullPointerException_$NullPointerException__Ljava_lang_NullPointerException_2Ljava_lang_NullPointerException_2(StackTraceCreator.java:280) at Unknown.com_allen_1sauer_gwt_log_demo_client_InteractiveDemoPanel$5_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V(InteractiveDemoPanel.java:135) at Unknown.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt_event_shared_EventHandler_2V(com.google.gwt.dev.jjs.impl.GenerateJavaAST:0) at Unknown.com_google_gwt_event_shared_HandlerManager$HandlerRegistry_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager$HandlerRegistry_2Lcom_google_gwt_event_shared_GwtEvent_2ZV(HandlerManager.java:65) at Unknown.com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V(HandlerManager.java:178) at Unknown.com_google_gwt_user_client_ui_Widget_$fireEvent__Lcom_google_gwt_user_client_ui_Widget_2Lcom_google_gwt_event_shared_GwtEvent_2V(Widget.java:52) at Unknown.com_google_gwt_event_dom_client_DomEvent_fireNativeEvent__Lcom_google_gwt_dom_client_NativeEvent_2Lcom_google_gwt_event_shared_HasHandlers_2Lcom_google_gwt_dom_client_Element_2V(DomEvent.java:116) at Unknown.com_google_gwt_user_client_ui_Widget_onBrowserEvent__Lcom_google_gwt_user_client_Event_2V(Widget.java:90) at Unknown.com_google_gwt_user_client_DOM_dispatchEventAndCatch__Lcom_google_gwt_user_client_Event_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventListener_2Lcom_google_gwt_core_client_GWT$UncaughtExceptionHandler_2V(DOM.java:1322) at Unknown.com_google_gwt_user_client_DOM_dispatchEvent__Lcom_google_gwt_user_client_Event_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventListener_2V(DOM.java:1266) at Unknown.anonymous(DOMImplStandard.java:180) look a lot more like this: at com.allen_sauer.gwt.log.demo.client.InteractiveDemoPanel$5.onClick(InteractiveDemoPanel.java:135) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:90) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1322) at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1305) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1266) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) 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) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:297) at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:565) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:411) at com.google.gwt.dev.HostedMode.main(HostedMode.java:243) On Fri, Jul 31, 2009 at 5:00 PM, Fred Sauer fre...@google.com wrote: I can't wait! On Fri, Jul 31, 2009 at 4:58 PM, Bruce Johnson br...@google.com wrote: 4 cheers for Bob! w00t, w00t, w00t and w00t. Also
Re: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
I'm fluent in Dutch actually. I have family in the Netherlands and spent about 13 years there. Kun jij ook Nederlands spreken? Groeten Fred On Tue, Jul 21, 2009 at 6:19 AM, David david.no...@gmail.com wrote: Fred, Do you speak Dutch or is it Google translate doing its job ? David On Tue, Jul 21, 2009 at 1:14 AM, Fred Sauerfre...@google.com wrote: Thomas, That's pretty cool. Ook leuk om iets in 't Nederlands te zien. Have you listed your game in the App Gallery yet? http://gwtgallery.appspot.com/ Thanks for the suggestion for a global function to stop playing sounds. That seems pretty useful. Would you mind proposing it here? http://code.google.com/p/gwt-voices/issues/list Thanks Fred On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote: Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... - Main project page -http://code.google.com/p/gwt-dnd/ - Release notes - http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page -http://code.google.com/p/gwt-log/ - Release notes - http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted
Re: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
I could take a peek if you send me the link. A screenshot might work as well. Fred On Tue, Jul 21, 2009 at 6:51 AM, twdarkflame darkfl...@gmail.com wrote: No, I can read -a little- but I dont speak it at all. Not yet anyway, I'll have to learn seeing as I'm living in the Netherlands, but I havnt been able to make time yet. Of course, that means I cant actually play test most of the game myself very well, but then, Ive made the engine so there's a pretty good separation between content and code. btw, any chance you could help a little with some problems Ive been having with the drag and drop system? On the inventory Ive noticed sometimes some items go over other items and Id like to avoid that. (I'm assuming DnD deals with this partly itself, as most of the time the items do avoid eachother, just occasionaly this fails). I tried implementing my own check for item under on release but had various problems. If you want I can privately send over a different link to the game engine so you can see the problem on more recent code. (the one on the beta test has the icons popping up afteer dragging, which I've already fixed). If you got no time, dont worry about it :) -Thomas On Jul 21, 3:19 pm, David david.no...@gmail.com wrote: Fred, Do you speak Dutch or is it Google translate doing its job ? David On Tue, Jul 21, 2009 at 1:14 AM, Fred Sauerfre...@google.com wrote: Thomas, That's pretty cool. Ook leuk om iets in 't Nederlands te zien. Have you listed your game in the App Gallery yet? http://gwtgallery.appspot.com/ Thanks for the suggestion for a global function to stop playing sounds. That seems pretty useful. Would you mind proposing it here? http://code.google.com/p/gwt-voices/issues/list Thanks Fred On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote: Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting
GWT App Gallery - it's for your apps, and your libraries too!
Hi- Do you have a cool GWT app or library you would like others to know about? Be sure to list it in the GWT App Gallery: http://gwtgallery.appspot.com/ I'd like to see your apps there too! -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
Thomas, That's pretty cool. Ook leuk om iets in 't Nederlands te zien. Have you listed your game in the App Gallery yet? http://gwtgallery.appspot.com/ Thanks for the suggestion for a global function to stop playing sounds. That seems pretty useful. Would you mind proposing it here? http://code.google.com/p/gwt-voices/issues/list Thanks Fred On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote: Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... - Main project page -http://code.google.com/p/gwt-dnd/ - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page -http://code.google.com/p/gwt-log/ - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-log/downloads/list - Building from trunk - http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse *gwt-voices-1.6.0.jar* - Cross platform browser sound support Recent change to allow streaming MP3 sounds to be replayed after sound.stop() has been called. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/Voi... - Main
Re: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
Thomas, I've also listed your project here: http://code.google.com/p/gwt-voices/ http://code.google.com/p/gwt-dnd/ Fred On Mon, Jul 20, 2009 at 4:14 PM, Fred Sauer fre...@google.com wrote: Thomas, That's pretty cool. Ook leuk om iets in 't Nederlands te zien. Have you listed your game in the App Gallery yet? http://gwtgallery.appspot.com/ Thanks for the suggestion for a global function to stop playing sounds. That seems pretty useful. Would you mind proposing it here? http://code.google.com/p/gwt-voices/issues/list Thanks Fred On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote: Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... - Main project page -http://code.google.com/p/gwt-dnd/ - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page -http://code.google.com/p/gwt-log/ - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-log/downloads/list - Building from trunk - http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse *gwt-voices-1.6.0.jar* - Cross platform browser sound support Recent change to allow streaming MP3 sounds
Re: GWT 1.7
GWT 1.7.0 adds a new user agent value for ie8 which causes this. Please try that latest gwt-log-2.6.2.jar from http://code.google.com/p/gwt-log/downloads/list Thanks Fred On Wed, Jul 15, 2009 at 10:47 AM, Scooter willi...@gmail.com wrote: Just upgraded to GWT 1.7 and ran into the following when trying to build with gwt-log. I already posted on the gwt-log discussion but wanted to put in the main GWT list for others using gwt-log. Thanks Scooter Compiling module edu.scripps.hddesktop.Main [ERROR] Errors in 'jar:file:/Users/Scooter/java/gwt-log/gwt- log-2.6.0.jar!/com/allen_sauer/gwt/log/client/util/DOMUtil.java' [ERROR] Line 32: Rebind result 'com.allen_sauer.gwt.log.client.util.impl.DOMUtilImpl' cannot be abstract [ERROR] Cannot proceed due to previous errors -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html - Main project page - http://code.google.com/p/gwt-dnd/ - Release notes - http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted (includes compatibility matrix) - Downloads - http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page - http://code.google.com/p/gwt-log/ - Release notes - http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted (includes compatibility matrix) - Downloads - http://code.google.com/p/gwt-log/downloads/list - Building from trunk - http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse *gwt-voices-1.6.0.jar* - Cross platform browser sound support Recent change to allow streaming MP3 sounds to be replayed after sound.stop() has been called. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/VoicesDemo.html - Main project page - http://code.google.com/p/gwt-voices/ - Release notes - http://code.google.com/p/gwt-voices/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-voices/wiki/GettingStarted (includes compatibility matrix) - Downloads - http://code.google.com/p/gwt-voices/downloads/list - Building from trunk - http://code.google.com/p/gwt-voices/wiki/UsingSourceWithEclipse Thanks-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: GWT History Best Practices
Allahbaksh, Ray hinted at a 'Place' abstraction in the last few minutes of his I/O talk: http://code.google.com/events/io/sessions/GoogleWebToolkitBestPractices.html While there's no source code for this, you can get an idea of how this works by his description. In general I'd recommend uses history token in a few cases: 1. Application state which you'd like to be bookmarkable, e.g. 'currently viewing account for customer number 42' 2. Application state which you'd like to (at least partially) survive a full page refresh (or a browser crash + recovery :) 3. Application state you want to be accessible from the browser 'back' and 'forward' buttons HTH Fred On Tue, Jul 7, 2009 at 1:33 AM, Allahbaksh a.allahba...@gmail.com wrote: Hi, Is there any best practices or design for implementing History in an application. Regards, Allahbaksh -- Fred Sauer f...@allen-sauer.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: How to: create a web service
On Tue, Jul 7, 2009 at 7:21 AM, Eric erat...@gmail.com wrote: Greetings, I've been using the Google Web Toolkit for a while now and I'm at that point where I want to interface it with PHP so I can talk to a MySQL database. In the past, I've used a RequestBuilder object to get this information and that works okay. The code gets a little messy though by calling things that way. Have you looked eat this feature in trunk which let's have better control over the RPCs? http://code.google.com/p/google-web-toolkit/source/detail?r=5045 Fred I've been looking around but can't seem to find anything on creating my own GWT Web Service. I would like to have a web service interract with my MySQL database via PHP and then return some JSON text back to the client GWT app. I hope I said that right. Thanks for any help! -- Fred Sauer f...@allen-sauer.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: Requestbuilder problems, would appreciate at least a short response
Amitabh, I would focus on getting the sample code to work as is, then figure out the differences between the sample code and your app. Fred On Tue, Jul 7, 2009 at 1:51 PM, Amitabh mathraw...@gmail.com wrote: Is there anything else I can try ? I'm running out of options. On Jul 6, 1:31 pm, Ian Bambury ianbamb...@gmail.com wrote: Hi, Have you got the line requestBuilder.setHeader(Content-Type, application/x-www-form-urlencoded); in there somewhere? Ian http://examples.roughian.com 2009/7/6 Amitabh mathraw...@gmail.com Thanks a lot Fred, for the response. I had given up on getting any response at all. Yes, I have read the examples from the docs and am getting a 200 response back, but the text is empty. Below is some code to give you an idea. requestBuilder.sendRequest(args.toString(), new RequestCallback() { @Override public void onResponseReceived( final Request request, final Response response) { String ret = response.getText(); External.logDebug( Received response to login : + response.getStatusCode() + + response.getStatusText() + : + response length = + ret.length() + + ret); I can see from the logs that the status code is 200, statustext is unknown, response length is 0, and the response is an empty string. In Fiddler, I can see that I did get a valid response with text in it. The header in fiddler says that the transfer encoding is of type chunked. I've tried to do various different searches on the web to find out if there is anything out there which says if chunked decoding is supported by gwt but i didn't find anything. I know that on the same machine, with the same browser sending the same request to the same URL, hand written javascript code works fine, but GWT generated javascript does not work. I am using ie6 as the string in my gwt. -- Fred Sauer f...@allen-sauer.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: 1.6 error with declaring servlets in inherited modules
Rahul I hope this helps: http://code.google.com/eclipse/docs/existingprojects.html Fred On Tue, Jul 7, 2009 at 12:52 PM, Rahul coolrahul18...@gmail.com wrote: Hi, I am getting the same warning. Anybody has an suggestions what might be wrong? On May 11, 6:29 pm, Thad thad.humphr...@gmail.com wrote: In attempting to move a widget from 1.5 to 1.6. I'm having problems with the servlet path. I have a module, ViewerWidget. In order to test this independently of other modules, I have Viewer, which inherits ViewerWidget andhasits own entry point. Under 1.5 I could run Viewer just fine. I could JAR up the module, and another module could inherit ViewerWidget without worry over the Viewer entry point. The servlet tags in to ViewerWidget's servlets in would be added to inheriting modulesweb.xml, for example servlet servlet-nameLiloServices/servlet-name servlet-classcom.optix.web.viewer.server.LiloServicesImpl/servlet- class /servlet servlet-mapping servlet-nameLiloServices/servlet-name url-pattern/servlet/liloServices/url-pattern /servlet-mapping However 1.6 does not like this naming. When I try to run Viewer, in hosted mode, I see errors like [WARN] Module declares a servlet class 'com.optix.web.viewer.server.LiloServicesImpl' with amappingto '/ com.optix.web.viewer.Viewer/servlet/liloServices', but theweb.xmlhasnocorrespondingmapping; please add the following lines to yourweb.xml: servlet-mapping servlet-nameLiloServices/servlet-name url-patternservlet/liloServices/url-pattern /servlet-mapping What gives? Adding the full class path does not help. Now an error comes back [WARN] 404 - POST /com.optix.web.viewer.Viewer//servlet/liloServices (127.0.0.1) 1435 bytes How should a modules RPC servlets be defined so they can be seen when inherited? -- Fred Sauer f...@allen-sauer.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: WindowClosingHandler
There's also a close handler which is called if the browser will close. If your app remains active they canceled the close. Fred On Tue, Jul 7, 2009 at 11:42 PM, NeMeSiS m.weish...@web.de wrote: Thanks for your answer. But how can I find out if the user pressed OK oder CANCEL? That was no problem with the WindowCloseListener. But its unfortunately deprecated now. Here is my Code: // React on window closing Window.addWindowClosingHandler(new Window.ClosingHandler() { @Override public void onWindowClosing(ClosingEvent event) { event.setMessage(You will be disconnected when you close this window!); //here something like: if(event.okClicked()) { disconnect(); } } }); TIA, NeMeSiS On 7 Jul., 21:44, Fred Sauer fre...@gmail.com wrote: NeMe, Try Window.addWindowClosingHandler() and Window.addCloseHandler() Fred On Mon, Jul 6, 2009 at 12:41 AM, NeMeSiS m.weish...@web.de wrote: Hello? Can anyone answer me please? On 1 Jul., 12:23, NeMeSiS m.weish...@web.de wrote: Hi all, I have a problem because the WindowCloseListener is deprecated und one should use the WindowClosingHandler. How is it used? How can I stop the closing of the window or at least do some actions before it closes? TIA, NeMeSiS -- Fred Sauer f...@allen-sauer.com -- Fred Sauer f...@allen-sauer.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: HTMLPanel still not rendering CSS in IE/Hosted
You can use ClientBundle's StyleInjector to reliably inject CSS at runtime. This is available in GWT trunk (so not in 1.6.4). Fred On Wed, Jul 8, 2009 at 7:52 AM, mjfan80 mjfa...@gmail.com wrote: I tried with IE (8) and chrome 2.0 it's not working with firefox is not working... why? is a serious problem On 4 Giu, 23:49, Andrew Perepelytsya apere...@gmail.com wrote: Referring to this gwt group discussionhttp://tr.im/nsSc, the problem is there with GWT 1.6.4. Is it some bug with IE or anything (I tried with IE 6), really a showstopper for many use cases. Andrew -- Fred Sauer f...@allen-sauer.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: How to decouple the application into multiple GWT modules?
Khoa, You can compile multiple modules into a single GWT output. This is in fact preferable since you get many savings w.r.t. script size which affect execution time and download time. You can have a single module which inherits all the modules you wish to include on your page. You then compile this single module. Fred On Wed, Jul 8, 2009 at 5:56 AM, Khoa Ngo ngovank...@gmail.com wrote: Hi all, I would like to decouple my application into multiple GWT modules. I use a main module to layout the UI structure: module rename-to='main' inherits name='com.google.gwt.user.User' / entry-point class='com.mycompany.MainWindow' / /module The MainWindow contains a MenuBar with a Home submenu and the getMenuBar() method that returns the menubar for child modules to reuse. Then I would like to create 3 child modules for Articles, Products, Contacts. module rename-to='articles' inherits name=com.google.gwt.user.User / inherits name=com.mycompany.MainWindow / entry-point class=com.mycompany.articles.Articles / /module The Articles class will getMenuBar() and add a submenu Articles into it. module rename-to='products' inherits name=com.google.gwt.user.User / inherits name=com.mycompany.MainWindow / entry-point class=com.mycompany.products.Products / /module The Products class will getMenuBar() and add a submenu Product into it. ... The problem is that, I can't group 3 modules above into one application. If the html page includes 3 generated javascript files, I get 3 submenu Home in the page. Because I have main.js that renders Home, and two sub modules articles and products that also renders Home since it inherits from the main. If I just include articles.js then Home isn't duplicated, but I loss the products.js. Anybody please lets me know if I can design my application following such way. Thanks and Best Regards, Khoa -- Fred Sauer f...@allen-sauer.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: Failure in IE, Success in non-IE
Thanks, Shellum. It's try that you *should* only have a single element with any given id. Browser behavior is undefined. A browser may return the first element with that id, a randomly selected element or raise an error as you saw. Fred On Wed, Jul 8, 2009 at 1:31 PM, Shellum shel...@gmail.com wrote: Hi, I just spend some time finding a possible issue. I didn't see this anywhere in my Googling, so... It is possible to have everything in a GWT project work fine in Safari, Firefox, Chrome, but fail in IE6 or IE7. IE will show a Javascript error : Error: 'undefined' is null or not an object You can get this error if you happen to give the id attribute in both your html and your RootPanel code the same name as your project. Example: Project name: mytest File mytest.html: div id=mytest/div File MyTest.java: RootPanel.get(mytest).add(myPanel); This will fail only in IE browsers. If you simply change the text string in both places to be different than the project name, it will work in all browsers. I hope this helps. --Shellum -- Fred Sauer f...@allen-sauer.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: MVC and JUnit - how to handle handlers?
You might also look at the MVP pattern as Ray described: http://code.google.com/events/io/sessions/GoogleWebToolkitBestPractices.html Fred On Thu, Jul 9, 2009 at 4:22 AM, Miroslav Genov mgenov.j...@gmail.comwrote: You could create a mock view which is listening for such events. For example: class MockAddressView implements AddressView, HasValueChangeHandlers... { .. } and in your test: testUpdateUserDataNotifiesViewThatUserDataHasBeenUpdated() { HandlerManager eventBus = new HandlerManager(); AddressModel model = new AddressModel (eventBus); final MockAddressView view = new MockAddressView(eventBus); view.addValueChangeHandler(new ValueChangeHandler() { void onValueChange(ValueChangeEvetString event) { view.notified = true; } }); model.updateUserData(); assertTrue(view.isNotified()); } Regards, Miroslav corpios wrote: I'm designing an application following the MVC pattern. Each view have its own controller and model. The view know about the model and the controller. The controller know about the model. The Observer pattern is used to handle the model - view relation. The model notifies the view about changes in the model. When I try to unit test the application logic, i.e the controller and model, then I face a problem with the changehandlers. The model will try to update the view, but there is no view to update.. and as a result a NullPointerException is thrown. Does that tell me that I can't unit test application logic where the model send notifications to its observers? Or is there a better way to do this? BR Tor -- Fred Sauer f...@allen-sauer.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: history and motion chart
Bryan, History is implemented with history tokens, which is the portion after the '#' in the URL. This is not sent to the server and is used client side only. So while these are URLs, they're special and should work for the scenario you described. Fred On Fri, Jul 10, 2009 at 4:05 AM, twittwit ytbr...@gmail.com wrote: anybody has any idea on this ? On Jul 10, 1:29 am, imgnik ytbr...@gmail.com wrote: hi all, i want to implement history in my motion chart app. and basically i want to have a stack of history items that comprise of different motion chart. so basically as i have more motion chart ( different ones) my history stack increment and i can go forward and backward with the motion chart changing to the next and previous chart respectively. ( and hopefully in the same state where it was left in) but i really donno how to implement the history management for this? can someone advise me? i know the distribution contains example of history management. but those are mere hyperlinks. will it be the same for bigger widget like motion chart? or even maps? cheers bryan -- Fred Sauer f...@allen-sauer.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: Traceroute
Have you looked at Charles Web Proxy or Firebug? On Thu, Jul 9, 2009 at 4:27 AM, giovaneoce...@hotmail.com giovaneoce...@hotmail.com wrote: Anyone knows a method to do tracerouting from client to a server? Thanks in advance -- Fred Sauer f...@allen-sauer.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: GWT Best Practices doubt
If you like it's fine to have two 'Command' classes. It's a choice of whether you want to deal with programmer confusion and IDE annoyances. However, both the Java and GWT compiler will be perfectly happy. Thanks Fred On Fri, Jul 10, 2009 at 7:50 AM, Kwhit kwhitting...@gmail.com wrote: Fair enough - ironically I just ran into the collision here. The other Command is a command pattern too. I would still prefer RpcCommand or the like but 'nuff said. Er... com.google.gwt.user.client.Command, used with MenuItem and DeferredCommand (which many apps make use of). -- Fred Sauer f...@allen-sauer.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: Dropdown menu zoom problem in IE7
Waf, John just created an issue to track this: http://code.google.com/p/google-web-toolkit/issues/detail?id=3835 Thanks Fred On Fri, Jul 10, 2009 at 12:25 PM, waf wlod...@gmail.com wrote: Hi all, It looks like there is a problem with dropdown menu items in IE7 when control-+/- is used to zoom the page. When control-+ is used to zoom in the drop down menu items get out of sync with menu bar, and when control-- is used to zoom out the drop down menu items don't show at all. This can be checked for example in GWT Showcase. Is that a known issue? -- waf -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: Horizontal tabs in a TabPanel
Bruce, Are you trying to support a RTL language? If so, the behavior should be automatic: http://gwt.google.com/samples/Showcase/Showcase.html?locale=ar Otherwise, you might be able to use a fake RTL attribute to quickly achieve the desired result. Haven't tried that myself though. Fred On Mon, Jun 29, 2009 at 11:52 PM, Bruce Choi choi.br...@gmail.com wrote: Just looked at some of the option avaliable, I think i'm going to add options into a stackpanel then putting the tabl panel and stackpanel into a dock panel. Just wondering how to incorporate it so everything looks awhole is it all done through a CSS? -- Fred Sauer f...@allen-sauer.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: Add class to SerializationPolicy
Andrey, As you know, GWT uses its own serialization mechanism: http://code.google.com/webtoolkit/tutorials/1.6/RPC.html#serialize How are you using your custom serializer(s)? Thanks Fred On Tue, Jun 30, 2009 at 2:42 AM, Andrey mino...@gmail.com wrote: Hello, everyone! How can I add a class to SerializationPolicy directly? I don't want to reference it in Service class and I cannot refernce it as a non-transient member. I need this because this class is a member of another class having its own custom serializer and this class also has its own serializer. Both the classes have Object fields so they cannot be serialized as usual. Thanks in advance! -- Fred Sauer f...@allen-sauer.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: Ctrl + s keyboard event in GWT
http://code.google.com/webtoolkit/tutorials/1.6/manageevents.html On Tue, Jun 30, 2009 at 3:16 AM, Saeed Zarinfam zarinfa...@gmail.comwrote: Hi I want to add Ctrl + s or Ctrl + xxx short key to my GWT program. please guide me. thanks. -- Fred Sauer f...@allen-sauer.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: Big RPC and long running script error
John, RPC does try it's best to be fast, but each browser puts its own restrictions in place for long eval times, and these restrictions change over time. I'd let the user experience guide you. I'd try to start displaying results to the user as quickly as possible. The user can't absorb 10,000 rows at once, so why now grab the first 30 or so rows and display those. While the user is looking at those, you can download additional rows. Fred On Tue, Jun 30, 2009 at 12:11 PM, John Lonergan john.loner...@gmail.comwrote: Does the RPC mechanism take any steps to avoid the dreaded long running script error for big serialisations and deserialisations? If not then is there anything I can do on the client side to chunk the serialisation/deserialisation. I'm shunting 10,000 rows up from the server and back. Surprisingly it seems to perform ok even in IE however I'd like to understand the limitations of this RPC technology. -- Fred Sauer f...@allen-sauer.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: HorizontalSplitPanel with DecoratorPanel in Firefox: how?
Max, If you're using standards mode, height:100% get tricky. Can you try setting the height of the outer most container to a specific number of pixels, just as a test? Fred On Tue, Jun 30, 2009 at 4:44 PM, max3000 maxime.lar...@gmail.com wrote: I'm trying to surround a HSP (height: 100%) with a DecoratorPanel. I can get it to work in Hosted, IE and Chrome. Unfortunately, no combination seems to work in Firefox. The code is straightforward: public void test(Panel parentPanel) { HorizontalSplitPanel hSplitPanel = new HorizontalSplitPanel(); // hSplitPanel.setHeight(100%); // hSplitPanel.setHeight(100px); hSplitPanel.setLeftWidget(new Label(left)); hSplitPanel.setRightWidget(new Label(right)); DecoratorPanel decPanel = new DecoratorPanel(); decPanel.setHeight(100%); decPanel.setWidget(hSplitPanel); parentPanel.add(decPanel); } (BTW, parentPanel in my case is a RootPanel.) In firefox, the code above doesn't show neither the split line, left or right. Un-commenting the first line does nothing (same behavior). Un-commenting the second line works (split line and texts are shown in firefox) but the HSP is not 100% in height. What am I missing? Thanks, Max -- Fred Sauer f...@allen-sauer.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: Very urgent GWT deployment on Godaddy shared hosting. Very urgent
Sajil, It's often useful to wrap the methods in your servlet with a try/catch IForm service(IForm form) { try { // your real code goes here } catch(Throwable e) { // log 'e' so it can be found in the server logs } } Fred On Tue, Jun 30, 2009 at 11:00 PM, sajil sajil.kor...@gmail.com wrote: I am trying to deploy a GWT project to GoDaddy shared hosting with tomcat 5.0.27. The apps work fine on the hosted Jetty server and also on my local Tomcat. I get the issue when I deploy it on the Shared Tomcat env. I have spend more than 2 weeks now to find a solution and totally frustrated out of this. The Godaddy doesn’t have a sophisticated logging systems for shared hosting and I can hardly see what’s happening at the server side. Here is the summary of the issue: I created a GWT project without AppEngine ( GWT1.6) . I have one RemoteServlet called BTServiceImpl. And at the client side I have “service ” as my target servlet. @RemoteServiceRelativePath(service) public interface BTService extends RemoteService { IForm service(IForm form); } I am creating the stub : private final BTServiceAsync btService = GWT .create(BTService.class); I am making the call: public void dispatchRequest(IForm form) { previousForm=form; btService.service(form , new AsyncCallbackIForm() { public void onFailure(Throwable caught) { } public void onSuccess(IForm result) { } }); } In my web.xml I have: web-app servlet servlet-nameservice/servlet-name servlet-classcom.bt.web.server.controller.BytetheoryServlet/ servlet-class /servlet servlet-mapping servlet-nameservice/servlet-name url-pattern/bytetheory/service/url-pattern /servlet-mapping /web-app I have a war file btproject.war which I have deployed on the Godaddy Tomcat server. Did anyone face the same issue before? One of my friends suggested me to use /servlet/bytetheory/service to access my servlet. I will be trying it today but same time I would appreciate your help if you are able to make out something. But when I host it and try to access it with a post I get an error page. But both of them doesn't seems to work. I would really apreciate your help here. I have tried my best to get help from Godaddy service but no one was able to find exactly whats wrong here. Thanks in advance. Thanks, Sajil Koroth -- Fred Sauer f...@allen-sauer.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: pressing tab key some times goes out of modal window
Please add your vote to this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=2707q=modal On Wed, Jul 1, 2009 at 12:35 AM, pepgrifell pepgrif...@gmail.com wrote: hi there, I have a modal window with some fields. After pressing tab key some times, it goes out of modal window and focus it's placed in url. If I keep pressing tab key, I can go to the main application and do other things (for example, put the focus in another button, press the return key and this will open another modal window). That's a security issue for my application. Is there any way to not allow focus go outside the modal window ? Focus should go to the first field after it arrives at the last field. Thanks ! -- Fred Sauer f...@allen-sauer.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: Excluding methods from GWT modules
Pandaman, Sure, by default only code in client/ is included by the GWT compiler and code in other directories (by convention server/ for example) is only made available on the server. In your module file you can override the default directory 'client' to be something else or you can include multiple directories. Yet any directories not included will not be compiled by the GWT compiler and will not have GWT restrictions placed on them. Fred On Wed, Jul 1, 2009 at 11:34 AM, Pandaman p4nda...@gmail.com wrote: I have a class that I want to include in a GWT module. Unfortunately, it has a method that has functionality unsupported by GWT (it uses Class.isInstance in case you're curious). I do not use this method in my GWT application, but other non-GWT apps use this method, so I cannot simply remove it. Is there a way to exclude this method in my module definition? Perhaps an annotation on the method can do this? -- Fred Sauer f...@allen-sauer.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: interactive map
Mitch, You're probably looking for the mouse click handler: http://code.google.com/webtoolkit/tutorials/1.6/manageevents.html Fred On Wed, Jul 1, 2009 at 3:31 PM, mitche...@gmail.com mitche...@gmail.comwrote: Hey guys, I am trying to create an interactive map interface... not unlike Google Maps, but needing FAR fewer features, and it is a map of an indoor facility, making Google Maps API rather silly. I would like to be able to display an image (the Map itself) and have the user click on a location of the image, and somehow get the x,y coordinates of the location/pixel that they clicked on. I have been searching high and low for something that might help me accomplish this, however all i can seem to find is the MouseListener, which seems like a little overkill. Is ther no onClick-sort event handler which can return x,y coordinates when a click occurs? If i have to use MouseListener, thats fine, i was just wondering if there was a simpler way... Thank you! Mitch -- Fred Sauer f...@allen-sauer.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: Unable to instantiate ( using GWT RPC and tomcat 6)
Deepak, It looks like one of two things: 1. Static initialization problem on your servlet class. Since you appear to have no static initialization code, it's probably not that 2. The class is actually not found in the server's class path. Have you verified the package name? Fred On Thu, Jul 2, 2009 at 12:09 AM, deepak kumar singh deepakkumarheart...@gmail.com wrote: Hi, I am new to gwt ,working with a game application which should open on browser after deployment,but is not happening .In debbuging mode the following two error is coming on develompent shell also it is is repeting continuously and home page is showing on this URL http://localhost:/il.ac.tau.cs.advJava.project.Main/but no any object is working while clicking on any button of page .When click on compile/browse or run then there is any object coming on browser i seems blank. [ERROR] Unable to instantiate 'ouritvision.server.GetMessageImpl' java.lang.ClassNotFoundException:ouritvision.server.GetMessageImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:933) at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:619) *Another error is * [ERROR] Unable to dispatch request. *GetMessageImpl class is written as following,* public class GetMessageImpl extends RemoteServiceServlet implements GetMessage { public GetMessageImpl() { } public MessageOnTheWire doMethod(int player, int lastMessage, boolean justKeepAlive) { if(Game.getInstance().gameHasStarted() player = 0) WatchDog.getInstance().justCalled(player); if(Game.getInstance().gameInReset() || justKeepAlive) return new MessageOnTheWire(100); else return GameBuffer.getInstance().getMessage(lastMessage + 1); } } I am struggling with this error from 3-4 day ...but i am not undertanding what is going on and how to resolve this error.Is any one have some idea about that please help me friends. THANKS -- Fred Sauer f...@allen-sauer.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
Re: Setting a PopupPanel modal
Hez, Please vote by starring this issues: http://code.google.com/p/google-web-toolkit/issues/detail?id=2707can=1q=modal Fred On Thu, Jul 2, 2009 at 11:38 AM, hezjing hezj...@gmail.com wrote: Hi May I know how to make a PopupPanel modal? Below is my testing code: public void onModuleLoad() { Label hello = new Label(Can you click the button now?); final PopupPanel popup = new PopupPanel(); popup.setModal(true); popup.setWidget(hello); Button button = new Button(Click me); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { popup.show(); // still able to click button after this? } }); VerticalPanel panel = new VerticalPanel(); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); panel.setSize(100%, 100%); panel.add(button); RootPanel root = RootPanel.get(); root.add(panel); } When the button is clicked, it will show the PopupPanel showing the Can you click the button now?. I'm still able to click on the button even though this PopupPanel has been setModal(true). Can you help me? -- Hez -- Fred Sauer f...@allen-sauer.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: GWT Generator Permutation Handling
Oldtimer, Can you use inheritence in the generated classes? Fred On Sat, Jul 4, 2009 at 5:44 AM, Oldtimer colinzhao...@yahoo.com wrote: Hi, I am working on a generator class to generate a factory class to create beans (GWT Composite classes) with configuration meta data in the Spring xml format. With the help of some of the early posts and articles about GWT generator, I am able to create the skeleton code and it is working fine. The problem is, however, the same factory class will be the same for all the permutations, is there a way to set a property to tell the GWT compiler to generate the class file(s) only once and include it in generating the javascript copies? I have been using GWT Rocket, which is a great package, but I have realized that I need to code my own generator for what I try to accomplish. Thanks. -- Fred Sauer f...@allen-sauer.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: GWT 1.6 structure
I hope this helps: http://code.google.com/eclipse/docs/existingprojects.html Fred On Fri, Jul 3, 2009 at 4:58 AM, magon mago...@gmail.com wrote: using GWT 1.6 with eclipse plugin before this version the gwt-project file structure had a public folder, where i put all my resources, and those resources become visible for all other gwt-project that references this first project now i have a war folder where i put all my resources, but other projects that references this one can´t use those resources. my doubt is: how to deal with that? thanks -- Fred Sauer f...@allen-sauer.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: GWT Best Practices doubt
Geraldo, This dispatching method is independent of the signature of the implementation. Your caching service class execute method can look like this: public T extends Response void execute(ActionT action, final AsyncCallbackT cb) { realService.execute(action, new AsyncCallbackT() { public void onFailure(Throwable caught) { cb.onFailure(caught); } public void onSuccess(T result) { // This is where we would cache the result cb.onSuccess(result); // This is where we would fire an event on the bus } }); } The actual caching and bus event generation code can be sensitive to the subtype of Action being passed in. HTH Fred On Sun, Jul 5, 2009 at 8:39 AM, Geraldo Lopes geraldo...@gmail.com wrote: I've been trying to understand Ray's presentation and want to share some doubts hoping for clarification: http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf Considering Page 21 interface ActionT extends Response { } interface Response { } interface ContactsService extends RemoteService { T extends Response T execute(ActionT action); } interface ContactsServiceAsync { T extends Response void execute(ActionT action, AsyncCallbackT callback); } Considering the Tossing the Event Page (46) public void execute(final UpdateContact update, final AsyncCallbackGetContactsResponse cb) { realService.execute(update, new AsyncCallbackUpdateContactResponse() { .. .. Observe that the execute method has specialized parameters. If it's implementing the ContactsServiceAsync interface it probably has a void execute(ActionT action, AsyncCallbackT callback) { if (action instanceof UpdateContact) execute(UpdateContact(action), (GetContactsResponse)callback); else if (action instanceof AnotherCommand) .. .. } I've understood the purpose of the code (It's a kind of a manual proxy to intercept the calls to the realService and make whatever is necessary ,caching, eventbus interaction). That's not the point. My doubt is : What is the signature of the class ? If you see the code of page 58 which is a Mock of the ContactsServiceAsync class MockContactsService implements ContactsServiceAsync { Action? lastAction; AsyncCallback? lastCallback; public T extends Response void execute(ActionT action, AsyncCallbackT callback) { lastAction = action; lastCallback = callback; } } You get the impression of there has to be some mechanism to dispatch to the real execute methods because one can't write class CachedBatchingService implements ContactsServiceAsync public CachedBatchingService(ContactsServiceAsync realService) { } public void execute(final UpdateContact update, final AsyncCallbackGetContactsResponse cb) { realService.execute(update, new AsyncCallbackUpdateContactResponse() { .. The compiler demands a method with : T extends Response void execute(ActionT action, AsyncCallbackT callback); Please be tolerant with my english and my java. Thanks in advance Geraldo -- Fred Sauer f...@allen-sauer.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: Text Area fixed with.
Kisll, Safari, and other browsers may allow text areas to be resized outside of the control of the web application. It's generally a good idea to allow your application to be flexible. Different browsers/platforms/operating systems and environments (fonts, etc.), zoom may cause slightly different sizes of elements on the page. Fred On Sun, Jul 5, 2009 at 10:42 AM, kislo.me...@gmail.com kislo.me...@gmail.com wrote: Hi! How to set fixed TextArea widget width ? Setting it by css and by setWidth() change only it`s size, but resize corner still change TextAreas`s size. TextArea is embedded in FlexTable. This problem appeared only on Safari (version 4). -- Fred Sauer f...@allen-sauer.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: changing marker color
I'd recommend the Maps documentation: http://code.google.com/apis/maps/ On Mon, Jul 6, 2009 at 9:30 AM, Piotr Kirklewski pkirklew...@gabaedevelopment.com wrote: I should also say that I'm playing around with GWT maps. The default marker color is red I need to change it to blue but cant find a method on the list which allows that. Regards Peter Piotr Kirklewski wrote: Hi there How can I change the marker color please ? Do I have to create new icon ? Or is there a simpler way to do that ? Regards PEter -- Fred Sauer f...@allen-sauer.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: WindowClosingHandler
NeMe, Try Window.addWindowClosingHandler() and Window.addCloseHandler() Fred On Mon, Jul 6, 2009 at 12:41 AM, NeMeSiS m.weish...@web.de wrote: Hello? Can anyone answer me please? On 1 Jul., 12:23, NeMeSiS m.weish...@web.de wrote: Hi all, I have a problem because the WindowCloseListener is deprecated und one should use the WindowClosingHandler. How is it used? How can I stop the closing of the window or at least do some actions before it closes? TIA, NeMeSiS -- Fred Sauer f...@allen-sauer.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: document.write
giovaneoceano, By default GWT is loaded in an IFRAME so that 'document' refers to the IFRAME, You may want to use '$doc' instead of document, although document.write() is unlikely to be what you want. Fred On Mon, Jul 6, 2009 at 6:29 AM, giovaneoce...@hotmail.com giovaneoce...@hotmail.com wrote: why if i invoke the following javascript function it doesn't work? private static native void display() /*-{ document.write('!--#echo var=REMOTE_ADDR--'); }-*/; -- Fred Sauer f...@allen-sauer.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: GWT 1.6 structure
Paulo, Placing those files under war/ will make them accessible to your web application as static files. I think this is what you want. You can also use ClientBundle to grab resources at compile time from the Java classpath. This is possible in GWT 2.0 (trunk), but not in GWT 1.6. Fred On Tue, Jul 7, 2009 at 1:02 PM, Paulo Coutinho pa...@prsolucoes.com wrote: I have a question about structure: i have a war folder like this: war/ index.html images image1.png image2.png ... css structure.css jquery.css js jquery.js jquery.plugin.js swf player.swf WEB-INF/ appengine-web.xml web.xml logging.properties classes/ lib/ ...App Engine JARs... So my question is, the images/css/js/swf folder is in correct place ? I have to MAP in any place(xml or .properties) my css/js/images ? 2009/7/7 Fred Sauer fre...@gmail.com: I hope this helps: http://code.google.com/eclipse/docs/existingprojects.html Fred On Fri, Jul 3, 2009 at 4:58 AM, magon mago...@gmail.com wrote: using GWT 1.6 with eclipse plugin before this version the gwt-project file structure had a public folder, where i put all my resources, and those resources become visible for all other gwt-project that references this first project now i have a war folder where i put all my resources, but other projects that references this one can´t use those resources. my doubt is: how to deal with that? thanks -- Fred Sauer f...@allen-sauer.com -- Atenciosamente, Paulo Coutinho. Blog: www.prsolucoes.com/blog Site: www.prsolucoes.com Msn: pa...@prsolucoes.com -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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: Serialization and key/value advice
Hi Barry, This is quite possible. In fact GWT will take care of the RPC serialization and deserialization for you. As for the storage on the server: you can implement your own, or easily build something on top of App Engine using the datastore API and memcache: http://code.google.com/appengine/docs/java/datastore/ http://code.google.com/appengine/docs/java/memcache/ HTH Fred On Thu, Jun 25, 2009 at 11:18 AM, Barry bdemc...@gmail.com wrote: Hi -- My application needs to implement a key-value database (i.e., for a given key, the database returns a value). My first thought would be that the GWT client should serialize whatever it wants to store, then pass it to the server, where the server would store it as a bag of bytes. The reverse would be true when the client passes a key to the server: the server returns the bag of bytes, and the client deserializes it. Is this doable in GWT with java.io.Serializable? I have read the 1.4 FAQ, and it seems encouraging. Has this already been done, and if so, can someone point me there?? Thanks. -- Fred Sauer f...@allen-sauer.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 -~--~~~~--~~--~--~---