Re: Caching and SSL
Hello! I want to cache javascript (it is in .html files, right?). As I see now in Forefox 3.5 application loads every time and it takes a lot, as scripts are rather big. Andrey On Oct 14, 3:39 pm, Austen awconsta...@gmail.com wrote: I believe that the no-cache issue is only a problem for IE? Does this help?http://www.symphonious.net/2007/06/19/caching-in-tomcat/ Austen On Oct 14, 11:20 am, Andrey mino...@gmail.com wrote: Hello! I am using Tomcat with SSL and it seems that my GWT app is not cached. I've read some posts here but still don't have clear understanding. My questions are: 1. How can I check whether caching for my app is enabled or not? 2. Why GWT http headers contain cache-control: no-cache by default? 3. How can I change cache-control with Tomcat? 4. Why do we need caching-filters for tomcat? Isn't it enough to set cache-control, max-age and something else? Maybe there is some kind of FAQ on SSL and caching? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating a sample application of 3 different pages
Thank you for your reply Alex. Regarding the 3rd item you enumerated, mulitiple entry points and module, is there some tutorial i could follow for it? Since am having issue to implement the different entry points into the xml With thanks, Neerou On Oct 15, 4:42 pm, Alex alex.jong...@gmail.com wrote: As far as I know there are three ways to archive that goal (resp. an impression that there are multiple pages). 1. You could use the DeckPanel. This way you app reacts very fast on the user, but your design is hidden in the java code. 2. You could put your different pages into a single HTML file and wrap each page into a DIV element and use your GWT code to set the visibilty of the DIV elements. This way you site still reacts fast, and lots of HTML code is within the HTML file. 3. You could use different HTML pages, but than you have to define a Module and corresponding Entry Point Class for each page in which you would like to use the GWT. Not the fastest way, but I think it's a good way to work together with designers who don't know anything about Java/GWT and work the traditional way (Designers design the site in separate HTML files - Developers adds functionality - The customer reviews the result and changes may result in applying this cycle again) Good luck, Alex On Oct 15, 12:38 pm,neerounee...@gmail.com wrote: Any one has an idea abt the issue below? On Oct 14, 4:23 pm,neerounee...@gmail.com wrote: Hello, I am novice to GWT. Since now I have been trying the exercises on the Code.google site. I would now want to create different pages in the application. 1) a login page 2) a list of items 3) a list of users Do i need to create 3 different modules for the 3 different pages? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
I had the same problem - I solved it by manually deleting the temp internet files and all the cache in browser. On Oct 8, 3:50 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: I got some problem too with Eclipse and Snow Leopard. It's always asking me to re-compile my application and I've done that a lot of times ! I was trying to get it work with an active project. Christian On Thu, Oct 8, 2009 at 2:22 AM, Parvez Shah parvezs...@gmail.com wrote: Hi, I tried searching,but could not find any document regarding what all changes has been made in the API, do we get any new widget in 2.0 any new annotation On Thu, Oct 8, 2009 at 7:38 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi Jospeh, did you consider to install the Google Plugin for eclipse? You will even then run into problems, but reading through this post http://groups.google.com/group/google-web-toolkit/browse_thread/threa... you should be up and running pretty soon. HTH Dominik On 7 Okt., 20:00, Joseph Arceneaux joe.arcene...@gmail.com wrote: There does not appear to be a nice URL I can point Eclipse 3.5 at in order to install GWT 2.0 in the usual fashion. Nor, apparently, any instructions about an alternate procedure. It appears unclear on just where / how to merge the contents of the zip file into an existing Eclipse integration; does anyone have a pointer to documentation for this? Thanks, Joe On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi amitman...@google.com wrote: Hi everyone, We are excited to release the first milestone build for GWT 2.0 today. This milestone provides early access (read: known to still be unfinished and buggy) to the various bits of core functionality that will be coming in GWT 2.0. Please download the bits from: http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2.. .. Things that are changing with GWT 2.0 that might otherwise be confusing without explanation * Terminology changes: We're going to start using the term development mode rather than the old term hosted mode. The term hosted mode was sometimes confusing to people, so we'll be using the more descriptive term from now on. For similar reasons, we'll be using the term production mode rather than web mode when referring to compiled script. * Changes to the distribution: Note that there's only one download, and it's no longer platform-specific. You download the same zip file for every development platform. This is made possible by the new plugin approach used to implement development mode (see below). The distribution file does not include the browser plugins themselves; those are downloaded separately the first time you use development mode in a browser that doesn't have the plugin installed. Functionality that will be coming in GWT 2.0 * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided a special-purpose hosted browser to debug your GWT code. In 2.0, the web page being debugged is viewed within a regular-old browser. Development mode is supported through the use of a native-code plugin for each browser. In other words, you can use development mode directly from Safari, Firefox, IE, and Chrome. * Code Splitting: Developer-guided code splitting allows you to chunk your GWT code into multiple fragments for faster startup. Imagine having to download a whole movie before being able to watch it. Well, that's what you have to do with most Ajax apps these days -- download the whole thing before using it. With code splitting, you can arrange to load just the minimum script needed to get the application running and the user interacting, while the rest of the app is downloaded as needed. * Declarative User Interface: GWT's UiBinder now allows you to create user interfaces mostly declaratively. Previously, widgets had to be created and assembled programmatically, requiring lots of code. Now, you can use XML to declare your UI, making the code more readable, easier to maintain, and faster to develop. The Mail sample has been updated to use the new declarative UI. * Bundling of resources (ClientBundle): GWT has shipped with ImageBundles since GWT v1.4, giving developers automatic spriting of images. ClientBundle generalizes this technique, bringing the power of combining and optimizing resources into one download to things like text files, CSS, and XML. This means fewer network round trips, which in turn can decrease application latency -- especially on mobile applications. * Using HtmlUnit for running GWT tests: GWT 2.0 no longer uses SWT or the old mozilla code (on linux) to run GWT tests. Instead, it uses HtmlUnit as the built-in browser. HtmlUnit is 100% Java. This means there is a single GWT distribution for linux,
Re: Floting elements inside a ScrollPanel
Hi Ian, thanks for your hint. Indeed, a FlexTable seems to be a better solution since I can hook the bars to the row. I will definitely put some text inside the bars as well as a ClickListener (maybe they should also be draggable). That's why I thought of something like a SimplePanel whith position: absolute which is added to a row of the FlexTable. That would definitely be draggable - but I'm not sure if it works that way. The current implementation uses a HTML table for the calendar and a div element for the bars ... but that only seems to work in webkit as expected. Cheers, Michael On Oct 15, 6:52 pm, Ian Bambury ianbamb...@gmail.com wrote: A FlexTable instead of a grid would allow you to span columns in a row, add padding, and put a label in it. The only problem you will hit is that cell numbers get right complicated. In your example, you seem to have a granularity of 15m so on row one, you'd have 8 empty cells, then another cell spanning 0900-1445, then the next cell would be #9 (1445-1500), on an empty row, it would be #31 (as would the cell two below it on the third row would be). It definitely depends on how you are dealing with this - you could, for example, simply have a start-use image followed by any number of in-use images followed by and end-use image. But I dare say you are going to want to put text in there at some time, in which case you need to span. Ian http://examples.roughian.com 2009/10/15 grue michael.gruetz...@googlemail.com Hi, I have implementet some sort of calendar widget using a Grid. This calendar is supposed to show the availability of various things. To indicate that a particular object is occupied in a given timeframe I want to draw some bars across the calendar. Look athttp://picbattle.ch/calendar.pngto see how it should look like. Since the calendar can grow very big it is inside a ScrollPanel. Now, my question is what would be the best way to draw the bars across the grid? The important thing is that they should scroll along with the grid. Thanks in advance for any hints, Michael --~--~-~--~~~---~--~~ 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: Google Project Build fails silently after installing eclipse plugin 1.1.2.v200910130758
Hi Rajeev, 1) In Eclipse... Help - Software Updates - Manage Configuration - Revert to Previous (in the lower right pane) I selected the previous configuration, this restored v1.1.1 of the plugin without the need to uninstall/reinstall 2) I installed the plugin the first time via the update site. 3) I upgraded via the update site. 4) when I did the update yesterday through the update site I was given the options to update the plugin and the AppEngine SDK, no GWT update was shown. I updated both the plugin and the AppEngine SDK. My GWT SDK veriosion is 1.7.1 (which I think is the last?). Hope this helps, thanks for your help. Francesco On Oct 16, 7:31 am, Rajeev Dayal rda...@google.com wrote: Hi Francesco, Sorry that you've been running into trouble. I've tried to reproduce the problem by: 1) Installing Eclipse 3.3.2 on Linux 2) Installing version 1.1.1 of the plugin and the 1.7.1 GWT SDK 3) Restarting Eclipse 4) Creating a new Project 5) Adding some JSNI to one of the client classes 6) Upgrading the plugin to 1.1.2 7) Restarting Eclipse 7) Rebuilding the project I was not able to see the behavior that you're running into. When you say that you reverted your previous configuration, how exactly did you do that? Did you just uninstall the newer version of the plugin, and when the old one was present, all seemed to work well? Also, can you tell me how you installed the plugin the first time? Did you do it via the update site, or using the zip files? When you upgraded the plugin, did you do so with a zip file, or using the update site? Did you update your GWT SDK as well? Rajeev On Thu, Oct 15, 2009 at 11:43 PM, francescoNemesi nem...@yahoo.com wrote: For Your Information, I reverted back to my previous Eclipse configuration with gwt plugin version 1.1.1v200909221731 and everything seems to work now. Apparently there is a problem with version 1.1.2.v200910130758? On Oct 15, 9:08 pm, francescoNemesi nem...@yahoo.com wrote: Hi Miguel, thanks for your reply, below you can find the log, written when I started Eclipse. I only have one project open in my workspace, the one mentioned in the second error. !SESSION 2009-10-15 21:01:15.965 --- eclipse.buildId=M20080221-1800 java.version=1.6.0_15 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Command-line arguments: -os win32 -ws win32 -arch x86 This is a continuation of log file D:\Dati\Eclipe 3.3.2 Europa Workspace\.metadata\.bak_0.log Created Time: 2009-10-15 21:01:51.118 !ENTRY org.eclipse.jface 2 0 2009-10-15 21:01:51.118 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2009-10-15 21:01:51.118 !MESSAGE A conflict occurred for ALT+CTRL+A: Binding(ALT+CTRL+A, ParameterizedCommand(Command (sas.ads.sasJavaProject.SASAddAttachments,Add SAS Attachments..., , Category(sas.ads.sasJavaProject.editorActionsCategory,SAS Editor Actions,null,true), ActionDelegateHandlerProxy (null,com.sas.ads.sasQuickAssist.SASConnectionHelper), ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.jdt.ui.javaEditorScope,,,system) Binding(ALT+CTRL+A, ParameterizedCommand(Command(de.jayefem.log4e.ReplaceId,Substitute System.out's in this class, Substitute System.out's in this class, Category(org.eclipse.ui.category.edit,Edit,null,true), ActionDelegateHandlerProxy (null,de.jayefem.log4e.popup.actions.WorkbenchWindowAction), ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.jdt.ui.javaEditorScope,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2009-10-15 21:01:51.118 !MESSAGE A conflict occurred for ALT+CTRL+O: Binding(ALT+CTRL+O, ParameterizedCommand(Command (sas.ads.sasJavaProject.importOrganizer,Organize SAS Imports..., , Category(sas.ads.sasJavaProject.editorActionsCategory,SAS Editor Actions,null,true), ActionDelegateHandlerProxy (null,com.sas.ads.action.importAdder.ImportAdderAction), ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.jdt.ui.javaEditorScope,,,system) Binding(ALT+CTRL+O, ParameterizedCommand(Command(de.jayefem.log4e.AddPositionId,Log at this position..., Log at this position..., Category(org.eclipse.ui.category.edit,Edit,null,true), ActionDelegateHandlerProxy (null,de.jayefem.log4e.popup.actions.WorkbenchWindowAction), ,,true),null),
Re: Unable to use gadget api along with GWT 2.0 M1
I got it working. i had the following in my gwt xml which was causing the issue add-linker name=xs /. Thank you, bala. On Fri, Oct 16, 2009 at 11:19 AM, balachandra maddina chandu2...@gmail.comwrote: Please ignore my comments as i had a typo in one of my xml files. anyway, having said that, the compilation process is working fine but the resulting gadget xml file has no content in it Content type=html![CDATA[__BOOTSTRAP__]]/Content The above is the content i have in the resulting xml file, am i missing any compile time argument here? Thank you, bala. On Fri, Oct 16, 2009 at 11:02 AM, balachandra maddina chandu2...@gmail.com wrote: Hi There, I have been trying to get the gadget api work with GWT V2 but so far i couldn't make it work the document available online is out of date it wont even work with GWT 1.7. anyway, my question is, has any one tried Gadget API with GWT V2 M1, if so could you share the details please, when i try to compile my gadget class by including the gadget api in class path using the build file im getting following error, gwtc: [java] Compiling module com.example.gadget.Gadget [java]Finding entry point classes [java] [ERROR] Unable to find type 'com.example.gadget.client.Gadget' [java] [ERROR] Hint: Check that the type name 'com.example.gadget.client.Gadget' is really what you meant [java] [ERROR] Hint: Check that your classpath includes all required source roots If i use the same code and use the shell script provided in GWT 1.5 it works fine, not sure what change is required to make it work with GWT V2 M1 Your help is appreciated. Thank you, bala. --~--~-~--~~~---~--~~ 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: Using a define in java
You have several options actually. To do exactly what you are trying to, you would use something like: public interface RuntimeParameters { public static final String PAGE_URL = http://blablabla;; } and then use RuntimeParameters.PAGE_URL. However, this is probably not what you actually want to do. A much better idea generally is to use the page location or module location URL as the prefix for your page (and make sure that the page has the same name in each environment). You can do this in GWT with: GWT.getHostPageBaseURL() - to get the directory URL for the HTML page, or GWT.getModuleBaseURL() - to the the directory URL of the JavaScript files So something like: final String pageUrl = GWT.getHostPageBaseURL() + users.php; Is far preferred to changing variable names between builds. Generally it's considered a good idea to keep all of your environments as similar as possible. If you run Apache with PHP in production, you should generally run it locally for development as well (this is why GWT supports the '-noserver' option). I hope this helps a bit. //Jason tedpottel wrote: Hi I may have already posted this, but cannot find it. I’n using Ajax code, I have 3 different servers the php file is in, depending on what I’m debugging. I have the Jiffy server when debugging within eclipse, then I have my local Apache server, when I’m trying to debug the php code, and a different server name for production run. C and PHP has a define statement, whare I could have something like #define server /local/ And include it in all my files. Is there a way to do this in java, so I can easly switch the server name, without having to change it superbly in all my classes? Ted Define --~--~-~--~~~---~--~~ 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: Floting elements inside a ScrollPanel
Take a look at this: http://www.future-earth.eu/gwt/calendar/MainDemoApp.html and the horizontal time panel in particular. You may want to use that as it is, or to get ideas from it. HTH Paul grue wrote: Hi Ian, thanks for your hint. Indeed, a FlexTable seems to be a better solution since I can hook the bars to the row. I will definitely put some text inside the bars as well as a ClickListener (maybe they should also be draggable). That's why I thought of something like a SimplePanel whith position: absolute which is added to a row of the FlexTable. That would definitely be draggable - but I'm not sure if it works that way. The current implementation uses a HTML table for the calendar and a div element for the bars ... but that only seems to work in webkit as expected. Cheers, Michael On Oct 15, 6:52 pm, Ian Bambury ianbamb...@gmail.com wrote: A FlexTable instead of a grid would allow you to span columns in a row, add padding, and put a label in it. The only problem you will hit is that cell numbers get right complicated. In your example, you seem to have a granularity of 15m so on row one, you'd have 8 empty cells, then another cell spanning 0900-1445, then the next cell would be #9 (1445-1500), on an empty row, it would be #31 (as would the cell two below it on the third row would be). It definitely depends on how you are dealing with this - you could, for example, simply have a start-use image followed by any number of in-use images followed by and end-use image. But I dare say you are going to want to put text in there at some time, in which case you need to span. Ian http://examples.roughian.com 2009/10/15 grue michael.gruetz...@googlemail.com Hi, I have implementet some sort of calendar widget using a Grid. This calendar is supposed to show the availability of various things. To indicate that a particular object is occupied in a given timeframe I want to draw some bars across the calendar. Look athttp://picbattle.ch/calendar.pngto see how it should look like. Since the calendar can grow very big it is inside a ScrollPanel. Now, my question is what would be the best way to draw the bars across the grid? The important thing is that they should scroll along with the grid. Thanks in advance for any hints, Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating a sample application of 3 different pages
I've searched a lot, but unfortunately I couldn't find a tutorial or so, so I wrote one myself for my students (I'm a teacher) . The tutorial however is in written in Dutch and not meant to be spread around; at least not in the form that it's now. But here are the steps you have to take to work with multiple HTML pages. I assume that you already have a GWT project with a single HTML file, and that HTML file contains a link toward another HTML file which also should make use of the GWT. Let's assume that the HTML file you are linking to is called info.html, and that the page doesn't exists yet. To add the page follow the following steps: - Start by adding the packages info and info.client into the src tree. - Add into the package info a new google webtoolkit module called info - Add into the package info.client a new Entry Point Class that uses the module info.info - Finally add in the war directory a new HTML page info.html that uses only the module info.info I suggest to use the Google Plugin for Eclipse, to do this; because lots of stuff will then be generated for you if you add the module, class html page using the plugin. Good luck, Alex On Oct 16, 9:21 am, neerou nee...@gmail.com wrote: Thank you for your reply Alex. Regarding the 3rd item you enumerated, mulitiple entry points and module, is there some tutorial i could follow for it? Since am having issue to implement the different entry points into the xml With thanks, Neerou On Oct 15, 4:42 pm, Alex alex.jong...@gmail.com wrote: As far as I know there are three ways to archive that goal (resp. an impression that there are multiple pages). 1. You could use the DeckPanel. This way you app reacts very fast on the user, but your design is hidden in the java code. 2. You could put your different pages into a single HTML file and wrap each page into a DIV element and use your GWT code to set the visibilty of the DIV elements. This way you site still reacts fast, and lots of HTML code is within the HTML file. 3. You could use different HTML pages, but than you have to define a Module and corresponding Entry Point Class for each page in which you would like to use the GWT. Not the fastest way, but I think it's a good way to work together with designers who don't know anything about Java/GWT and work the traditional way (Designers design the site in separate HTML files - Developers adds functionality - The customer reviews the result and changes may result in applying this cycle again) Good luck, Alex On Oct 15, 12:38 pm,neerounee...@gmail.com wrote: Any one has an idea abt the issue below? On Oct 14, 4:23 pm,neerounee...@gmail.com wrote: Hello, I am novice to GWT. Since now I have been trying the exercises on the Code.google site. I would now want to create different pages in the application. 1) a login page 2) a list of items 3) a list of users Do i need to create 3 different modules for the 3 different pages? --~--~-~--~~~---~--~~ 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.0 ms1 RPC issue IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
I've the same problem.Any ideas? On 16 Ott, 04:39, tskaife tska...@gmail.com wrote: While running in either hosted mode, or compiled I get this error. I have no problems with RPC calls that pass primitive types. But I've tried both java.lang.String and java.lang.Long and get the same results. I've tried both JDK 1.6.0_10 and 1.5.0_21 to no avail. I'm on Linux, if that matters, and haven't had any problems with the application while using GWT 1.7.1, 1.7.0, 1.6.4... Any insights on what it might be would be much appreciated. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke (OophmSessionHandler.java:146) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn (BrowserChannel.java:1573) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:124) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 502) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject (ModuleSpace.java:275) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject (JavaScriptHost.java:91) at com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate (transient source for com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.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:146) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn (BrowserChannel.java:1573) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:124) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 502) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject (ModuleSpace.java:275) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject (JavaScriptHost.java:91) at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap $.instantiate$(SerializerBase.java) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate (SerializerBase.java:140) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize (ClientSerializationStreamReader.java:114) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject (AbstractSerializationStreamReader.java:61) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived (RequestCallbackAdapter.java:199) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl (Request.java:316) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch (Request.java:288) at com.google.gwt.http.client.Request.fireOnResponseReceived (Request.java:270) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange (RequestBuilder.java:396) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.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:146) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages (BrowserChannel.java:1542)
Announcing Mvp4g-1.0.0
Mvp4g-1.0.0 is available. Mvp4g is a framemwork that helps developers build GWT applications easily following best practices shown by Ray Ryan (MVP, Event Bus and Dependency Injection). Based on an XML file, the framework allows to: -set MVP architecture for components -inject views and services into presenters -set an event bus and configure handlers with no need to create events or handlers classes/interfaces -set a Place Service. Examples are provided to illustrate the framework (including an example with GXT). Download and more information available at http://code.google.com/p/mvp4g/ --~--~-~--~~~---~--~~ 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: HorizontalPanel Cell Alignments
Have you tried DockPanel? East | Center | West Either the East or West widget will have to absorb the slack. Try adding the widgets in this order: Center, East, West. Stop worrying about ... GWTs confusing mix of tables and divs in the HTML output. You're trying too hard if you're at that level. It's one thing to review the HTML to learn what each widget generates, but the generated HTML is platform specific. On Thu, Oct 15, 2009 at 6:21 PM, AndyB rn.an...@gmail.com wrote: Hi, I know this is more of a HTML/CSS question then a GWT related question, But I just cant figure it out with the Java code. I have a header HorizontalPanel, with three cells that all contain a Simple Panel (headerLeft, headerCenter, headerRIght). headerCenter contains my applications logo image that is 980px wide. The left side of the image is bright and the right side of the image is dark. Thats what the left and right cells are for, in the left cell i want to display a bright image and in the right i want to display a dark image. (Bright Image)[ Logo 980px ](Dark Image) So, with my headerCenter cell's width set to 980px, how can I set the two outter cells to fill the rest of the page? Eg: if the window is 1000px, have the center cell 980px and the other outter cells to 10px. I know this is doable with CSS, but I just cant get it to work with GWTs confusing mix of tables and divs in the HTML output. Other then listening in on every window resize event and calculating the remaining width, how can I acomplish these auto sizing HorizontalPanel cells? Thanks, Andy --~--~-~--~~~---~--~~ 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: XML Parsing Issue with FireFox
try Document xmlDocument = XMLParser.parse(result); XMLParser.removeWhitespace(xmlDocument); It was a while ago that I ran across this but I remember having a problem with the parser getting whitespaces as empty Node objects. The document itself is also from the Node interface so to get your first Node you need to try something like: if(xmlDocument != null) { NodeList documentNodes = xmlDocument.getChildNodes(); // the declaration is also a Node for(int i = 0; i documentNodes.getLength(); i++) { Node currentNode = documentNodes.item(i); if(currentNode != null currentNode.getNodeName ().equalsIgnoreCase(TestCase)) { return currentNode; } } } Good Luck! On Oct 15, 7:39 am, Parmeet Kohli parmeet.ko...@gmail.com wrote: Hi, Has anyone faced an issue with parsing XML in FF ?? I hope i can explain the problem accurately. My XML starts with ?xml version=1.0 encoding=ISO-8859-1? TestCase URLhttp://192.168.0.153:8080/axis2/services/Calculator?wsdl/ URL TestStep ... Now in IE as well as the hosted mode, Document document = XMLParser.parse(xmlContent); Node encodingElem = document.getFirstChild(); PopUp.showPopUp(ENCODING:, encodingElem.getNodeValue()); // helper function .. just shows a pop up the above code shows a pop with string ?xml version=1.0 encoding=ISO-8859-1? but in FF it prints null !! I'm doing a whole lot of parsing after this which works perfect in IE and hosted mode but FF just doesn't go any further !! Is this a GWT bug ? PS: document.toString() prints the entire XML perfectly even in FF. Appreciate any help Thank you, Parmeet --~--~-~--~~~---~--~~ 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: Thousands of images
Agreed, imagebundles are better suited for combining fancy user interface images like buttons, icons, etc. On Oct 16, 10:06 am, mon3y darkside...@hotmail.com wrote: As far as i know ImageBundles can only be created at compile time so it would be kinda hard to do that. What i would do is just put the user images in the DB and get them at request time. Just my thoughts... On Oct 15, 9:37 am, iaio81 stefano.taurie...@gmail.com wrote: Hi all, I have an application where every user has his own picture, according to you it's better put all them into ImageBundle or leave them on filesystem ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Jason Essington
Jason Essington -- Your account has apparently been compromised, and is being used to post spam to this list. --~--~-~--~~~---~--~~ 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: Spam messages to the group
There's a new one this morning: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/89ae20736a87bfaf# On Oct 15, 8:34 pm, Jason Essington jason.essing...@gmail.com wrote: I just noticed that there were several spam messages in my Gmail sent box that came to this group over the last couple of days. Very odd indeed, but I believe that I've remedied the situation. Apologies for not noticing this earlier. -jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Jason Essington
Yes, I saw this as well. On Fri, Oct 16, 2009 at 9:24 AM, Jason Essington jason.essing...@gmail.com wrote: I'm trying to chase this down, but at this point I believe that my account is intact as there is no recent activity that would correspond to those messages. Also, the ONLY place that I am seeing spam like this is from this group! I would be interested if anyone else has seen this sort of thing recently with their accounts. -jason On Oct 16, 2009, at 9:51 AM, Jim Douglas wrote: Jason Essington -- Your account has apparently been compromised, and is being used to post spam to this list. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hosted mode an double slashes
I have a GWT app which works great when I setup the war file and deploy to my Tomcat Server. However, I created a new GWT app and moved my old application to this .. that way I can setup hosted mode. When I try to run my app in Hosted Mode, my server class has an additional slash .. So: com.tom.test.myApp//testEP instead of com.tom.test.myApp/testEP(which does work) I checked the App.gwt.xml and the web.xml file ... I can't figure out why I am getting an extra slash (/) So, any help would be much appreciated. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating a sample application of 3 different pages
The approach I've taken is to use a single HTML page containing a div with a known ID. The GWT application will live in that div. In onModuleLoad, I call RootPanel.get() with that ID and add a SimplePanel to that RootPanel. From then on, when I want to switch which screen is displayed, I call setWidget() on the SimplePanel. I'm not sure this is the best way to do it, but it works for me for the relatively simple application that I'm working on, and it seems easier than creating separate modules for each screen. -Brian On Oct 14, 8:23 am, neerou nee...@gmail.com wrote: Hello, I am novice to GWT. Since now I have been trying the exercises on the Code.google site. I would now want to create different pages in the application. 1) a login page 2) a list of items 3) a list of users Do i need to create 3 different modules for the 3 different pages? --~--~-~--~~~---~--~~ 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: Serializing types that have only been included as a map generic in remote interface fails
Same issue here com.google.gwt.user.client.rpc.SerializationException: com.test.action.BatchAction at com.test.action.ActionService_TypeSerializer.raiseSerializationException (transient source for com.test.action.ActionService_TypeSerializer: 1017) at com.test.action.ActionService_TypeSerializer.serialize(Native Method) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize (ClientSerializationStreamWriter.java:216) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.test.action.ActionService_Proxy.executeAction(transient source for com.test.action.ActionService_Proxy:31) at com.test.client.manager.impl.DefaultActionManager$1.execute (DefaultActionManager.java:64) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands (CommandExecutor.java:310) at com.google.gwt.user.client.CommandExecutor$2.run (CommandExecutor.java:205) at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160) at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146) at com.google.gwt.user.client.Timer.fire(Timer.java:138) On Oct 1, 12:56 pm, juggec jorgenicarls...@gmail.com wrote: I'm experiencing the same issues when having my signature defined as void doIt(ListFooBar list). Bar cannot be serialized. Any hints on how to work around this apart from adding dummy methods just to get the type whitelisted? /J On 14 Aug, 22:42, pgraham philip.robert.gra...@gmail.com wrote: Hi all, I believe I have encountered a bug with gwt serialization and Maps. I have created a service with a single method that has an AbstractMap as its only parameter. public interface DataService extends RemoteService { public ChartData getChartData(AbstractMapFilterTypeDto, ListBaseDto filters); } When I invoke this method from the client side I get this error: org.sitebrand.report.gwt.dto.FilterTypeDto at org.sitebrand.report.gwt.service.DataService_TypeSerializer.raiseSerializat ionException (transient source for org.sitebrand.report.gwt.service.DataService_TypeSerializer:2403) at org.sitebrand.report.gwt.service.DataService_TypeSerializer.serialize (Native Method) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali ze (ClientSerializationStreamWriter.java:216) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase .serialize (Map_CustomFieldSerializerBase.java:49) at com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer .serialize (HashMap_CustomFieldSerializer.java:36) at org.sitebrand.report.gwt.service.DataService_TypeSerializer.serialize (Native Method) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali ze (ClientSerializationStreamWriter.java:216) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at org.sitebrand.report.gwt.service.DataService_Proxy.getChartData (transient source for org.sitebrand.report.gwt.service.DataService_Proxy:31) If I add a dummy method to the service that defines the type that is failing to serialize as a parameter (see example) then calls to the getChartData() method work. public interface DataService extends RemoteService { public void bleh(FilterTypeDto dto); public void getChartData(AbstractMapFilterTypeDto, ListBaseDto filters); } Has anyone else encountered this and found a solution that doesn't involve cluttering your service interface? Cheers, Philip --~--~-~--~~~---~--~~ 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: Good GWT Book?
You can also try Beginning Google Web Toolkit: From Novice to Professional by Bram Smeets, Uri Boness, Roald Bankras (Apress). That one at least covers GWT 1.5, whereas I think the others mostly target 1.4. The other books are good as well for learning the concepts and some specific details, but they can be tough to follow at first if you're using a more recent version of GWT since they changed around some of the file locations and deprecated and renamed some APIs. -Brian On Oct 15, 1:49 pm, davis davisf...@zenoconsulting.biz wrote: Hi Andy, the code moves fast. That's the story with most frameworks that are actively under development. I picked up both Manning books GWT In Practice, GWT In Action -- and read them both. They are both decent in getting you familiar with the framework. Unfortunately, a lot of that code is also outdated, but they are still valuable references to read once. The best thing to do after that is just code and learn. Google I/O has some very good videos on best practices for GWT (e.g. MVP, dependency injection, command pattern, etc.) On Oct 15, 11:59 am, AndyB rn.an...@gmail.com wrote: Hi, I have been reading Google Web Toolkit Applications from gwtapps.com in order to learn how to use GWT. But unfortunately it is from a much older version of gwt and a lot of the code has been depreciated. Has anyone got any good recomendations for resources or books on learning how to use GWT? Thanks, Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Is it possible to get the mouse's location (over a whole page) without preventing links on the page from being clickable?
I have a HTML page, and want to know the mouses location wherever it is on the page, but not to block the links being clickable. I can easily make a transparent widget of some sort, add a addMouseMoveHandler, and set it to be the size of the page ontop of everything else. This will give me the co-ordinates nicely. But it also prevents html links working, and (indeed) any other mouse interaction. Any workarounds? Any methods just to listen for mouse moves, without interfering with clicks on elements under? --~--~-~--~~~---~--~~ 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: Mutiple EntryPoint Modules in Hosted Mode under Eclipse? is it Possible?
Yes, this is what I want to do. I was hoping we could do it directly from hosted mode. I do not know if I understood well, but what you are basically saying is that We can not run an application/project that involves multiple modules, each one having a different entrypoint in hosted mode? Did I parse correctly what you said? Thanks for clarifying. RSN. On Thu, Oct 15, 2009 at 8:38 PM, Davis Ford davisf...@zenoconsulting.bizwrote: Hi, I'm not sure you can do this in hosted mode, but I had a similar situation that I solved, and now it is a set and forget. To be up front -- I am a maven bigot. I think Ant is fine if it is done right, but maven makes my life so much easier that I use it for all new projects. That said, I had to develop an app that would have several different features depending on the user/role -- significantly the login would define that (and the role), but the login page was also different for each user role. I also wanted to share a lot of the code between these different apps for obvious reasons. I could have made multiple maven projects and made re-usable components to inherit and share the code that way -- but this would mean several different projects, and the maintenance, overhead, headache of dealing with all that. My needs were simpler. I wanted all the code in one project...but I wanted different entry points. Really, the only thing that was different was the entry point that bootstrapped the code specific for that app. I separated it out via URL, so you can hit: http://localhost/app1 or http://localhost/app2 So, in the end my project uses multiple modules and URL filtering to control access to a particular app. The only real downside is that it takes longer to compile when I deploy, but that is no big deal for me. I can't run hosted mode in parallel like you are asking for, but hosted mode is for quick dev. anyway, so I don't find that to be a limitation. To run app1, I do: mvn gwt:run -DrunTarget=my.package.App1/App1.html To run app2, I do: mvn gwt-run -DrunTarget=my.package.App2/App2.html ...or I create a Run/Debug target inside Eclipse and launch it with the GWT eclipse plugin that way. Anyway, I wrote up a blog and sample project you can take a look at as a skeleton here: http://zenoconsulting.wikidot.com/blog:16 -- if it helps you/someone..great. Regards, Davis On Wed, Oct 14, 2009 at 8:20 PM, RSN romeo.sanc...@gmail.com wrote: I am kind of new with GWT, and I was hoping someone could clarify my following questions, or at least point me out to some light. Thanks for any help. The setting is as follows: - Eclipse 3.4.2 , GWT 1.7.1 and plugin. - Created two basic GWT modules with GWT Plugin under Eclipse. Both are just copies of the GreetService application that gets generated by default when you create a new GWT project using the plugin Wizard. The modules are: -Security -Main The Main module is going to inherit the Security one. So, I modified the Main.gwt.xml file to inherit the security module. inherits name='org.security.Security'/ In addition to this, Eclipse complained about the build path for the Main module when I did this change. So, I had to add the Security module as a Required project on the build path of the Main module. This step removed any problems in compilation time. So, I proceed to run the Main module. When, I ran the project, only one single Hosted-mode browser window opened. And, these are the problems encountered: - The single browser window contained elements (buttons, textboxes, etc) from both of the modules. So, I could see all html elements in a single window. First questions: Is this the desired behavior? Can we open more than one browser window, one per each module that has an entrypoint and refers to a html page? Is there a way to let each module know on which port each application will run? In other words, both of the modules are running in localhost, but I would like to set them to run in different ports such that there is no conflict. Then, I proceed to test the functionality of the elements in the single browser window. I clicked the button of the Main application that greets the Server. It worked well. No problems. Then, I clicked in the second button from the Security module to make an RPC to the server, and it got the default message: An error occurred while attempting to contact the server. Please check network connection ... I am guessing that the Server side of the Security module did not load because of the port issue. Is this true, or is there something else that I am missing? I get in the Hosted Mode Window also the following: 404 - POST /main/greet (127.0.0.1) 1396 bytes I notice that the main module do not have a greet servlet (since I refactored it). However, the Security module kept that servlet name, should not be /security/greet instead?, where is the application getting confused? Why the call is going
Re: Creating a sample application of 3 different pages
Hi, Does somebody know if you can run an application/project having/inheriting multiple modules having each one an entrypoint in hosted mode? I have searched a lot about a tutorial, and I have not found anything. Could you please send the link to your tutorial page?, I am going to translate it somehow. Thanks RSN On Fri, Oct 16, 2009 at 4:06 AM, Alex alex.jong...@gmail.com wrote: I've searched a lot, but unfortunately I couldn't find a tutorial or so, so I wrote one myself for my students (I'm a teacher) . The tutorial however is in written in Dutch and not meant to be spread around; at least not in the form that it's now. But here are the steps you have to take to work with multiple HTML pages. I assume that you already have a GWT project with a single HTML file, and that HTML file contains a link toward another HTML file which also should make use of the GWT. Let's assume that the HTML file you are linking to is called info.html, and that the page doesn't exists yet. To add the page follow the following steps: - Start by adding the packages info and info.client into the src tree. - Add into the package info a new google webtoolkit module called info - Add into the package info.client a new Entry Point Class that uses the module info.info - Finally add in the war directory a new HTML page info.html that uses only the module info.info I suggest to use the Google Plugin for Eclipse, to do this; because lots of stuff will then be generated for you if you add the module, class html page using the plugin. Good luck, Alex On Oct 16, 9:21 am, neerou nee...@gmail.com wrote: Thank you for your reply Alex. Regarding the 3rd item you enumerated, mulitiple entry points and module, is there some tutorial i could follow for it? Since am having issue to implement the different entry points into the xml With thanks, Neerou On Oct 15, 4:42 pm, Alex alex.jong...@gmail.com wrote: As far as I know there are three ways to archive that goal (resp. an impression that there are multiple pages). 1. You could use the DeckPanel. This way you app reacts very fast on the user, but your design is hidden in the java code. 2. You could put your different pages into a single HTML file and wrap each page into a DIV element and use your GWT code to set the visibilty of the DIV elements. This way you site still reacts fast, and lots of HTML code is within the HTML file. 3. You could use different HTML pages, but than you have to define a Module and corresponding Entry Point Class for each page in which you would like to use the GWT. Not the fastest way, but I think it's a good way to work together with designers who don't know anything about Java/GWT and work the traditional way (Designers design the site in separate HTML files - Developers adds functionality - The customer reviews the result and changes may result in applying this cycle again) Good luck, Alex On Oct 15, 12:38 pm,neerounee...@gmail.com wrote: Any one has an idea abt the issue below? On Oct 14, 4:23 pm,neerounee...@gmail.com wrote: Hello, I am novice to GWT. Since now I have been trying the exercises on the Code.google site. I would now want to create different pages in the application. 1) a login page 2) a list of items 3) a list of users Do i need to create 3 different modules for the 3 different pages? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Handler manager is not able to add handlers.
Hi, Iam developing a small GWT application where i have an entry point called login Login shows LoginPage composite which has user name and password and a login button. When the user presses login iam firing an event and this event is picked up by the login. Then iam creating a composite called overview. But during the creation all the handlers iam adding are not added. Instead they are going to deferreddeltas in handle manager. The firingdepth is 1 instead of the usual 0. The execution happens like this Login - Login Page - Login Event fired Login - Login Event Received - overview function executed - Here when i add the event handler iam facing this problem. Can you please tell me what is the problem here?. Am i doing any design mistake?. --~--~-~--~~~---~--~~ 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: com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException
Ah, the empty constructor. I was banging my head on the wall for a long time before I saw that bit of info. Thanks! On Oct 15, 10:30 am, Dominik Steiner dominik.j.stei...@googlemail.com wrote: you should check that all of the types of your properties insides your DTO are also serializable and have an empty default constructor. HTH Dominik On Oct 13, 11:45 pm, Satya Lakshminath lakshminat...@gmail.com wrote: Hi, I am too getting a similar problem like was reported above I am trying to run application on tomcat and I have some of the DTO objects under a package com.x. and I able to get objects from table except for one DTO, I am implementing IsSerializable interface for my DTO when I watch at the the loggers in tomcat I see the following stack trace SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeWithCustomSerializer (ServerSerializationStreamWriter.java:696) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:593) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeWithCustomSerializer (ServerSerializationStreamWriter.java:678) … 24 more Caused by: com.google.gwt.user.client.rpc.SerializationException: Type ‘[Ljava.lang.Object;’ was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSer ialize (StandardSerializationPolicy.java:83) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSeriali zerBase.serialize (Collection_CustomFieldSerializerBase.java:43) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializ er.serialize (ArrayList_CustomFieldSerializer.java:36) … 29 more nothing else is displayed in the loggers. while compiling my application I am shown with the following
Hosted Mode Browser won't show controls in Windows Vista
Hi, I'm using Windows VISTA at home and Windows XP at work. My GWT Hosted Mode Browser will not show any GWT controls in VISTA but they show up fine in XP. Has anyone run into this problem? Thanks. Iqbal Yusuf Dipu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Load GWT Widget in Remote Page
Hello Friends, I facing some issues regarding loading a GWT widget inside a Remote Page using IFrame. I have loaded my page inside IFrame. Now i want to close my IFrame element from client page. Please help me out. Thanks a Lot!!!, Tushar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is there a way to block until a server response is available?
Maybe this will help you. You can use Command pattern to send request after server responde to previous request. The idea is. You have one callback, that callback is given to another callback who in onSuccess() method call the next command and then give that callback to the finall callback. So to be more clear, create one interface Command who have only one method execute. public interface Command { abstract void execute(); } Create interface Loader who have two methods add(Command command) and execute(). public interface Loader { void add(Command command); void execute(); } Create implementation for that interface for example ChainLoader who have one collection ListCommand command and method add(Command command) add elements in that collection. The method execute check if the collection contain any command and if size is 0 return. If size is not 0 Get first command from the commands, call execute method and remove that command from the list. public class ChainLoader implements Loader{ ListCommand commands = new ArrayListCommand(); @Override public void add(Command command){ commands.add(command); } @Override public void execute(){ if(commands.size() == 0){ return; } Command command = commands.get(0); command.execute(); if(commands.size() 0){ commands.remove(0); } } } Create one CommandChain who implements your AsyncCallback interface, and in constructor receiveAsyncCallback and Loader. public class CommandChainT implements AsyncCallbackT{ private AsyncCallbackT callback; private Loader loader; public CommandChain(AsyncCallbackT callback, Loader loader) { this.callback = callback; this.loader = loader; } @Override public void onFailure(Throwable caught) { callback.onFailure(caught); } @Override public void onSuccess(T result) { callback.onSuccess(result); loader.execute(); } } Finaly create CommandChain what you will use to make the chain. public abstract class EntityCommandT implements Command { private AsyncCallbackT callback; public EntityCommand(AsyncCallbackT callback) { this.callback = callback; } @Override public void execute(){ proceed(callback); } public abstract void proceed(AsyncCallbackT callback); } How you probably say WTF? :) The use is really simple for example i write one test you can modify in your code: @Test public void test(){ AsyncCallbackString callback0 = new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { } @Override public void onSuccess(String result) { doSomeStuff(result); } }; AsyncCallbackString callback1 = new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { } @Override public void onSuccess(String result) { doSomeStuff(result); } }; Loader loader = new ChainLoader(); CommandChainString chain1 = new CommandChainString(callback0, loader); CommandString command1 = new CommandString(chain1) { @Override public void proceed(AsyncCallbackString callback) { asyncService.sendRequest(callback); } }; loader.add(command1); CommandChainString chain2 = new CommandChainString(callback1, loader); CommandString command2 = new CommandString(chain2) { @Override public void proceed(AsyncCallbackString callback) { asyncService.sendRequest(callback); } }; loader.add(command2); loader.execute(); } Good luck ;) Shawn Pearce wrote: On Thu, Oct 15, 2009 at 15:48, AndiMullaraj andimulla...@gmail.com wrote: There are cases when blocking calls to server are indispensable (agreed, assync calls are the way to go for 99% of the cases). I scanned the client API and cannot find a way on how to do this. If not through a direct API call, is there a way on how to achieve this? (Like having a wait/process_events loop going until the response comes from the server). No. Most browsers are single threaded. They can't send an HTTP request or parse an HTTP response while they are also executing JavaScript. So GWT assumes that is the case and requires you to return control to the browser. Which means blocking calls are not supported. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the
Re: Is there a way to block until a server response is available?
Just a little change. You need to remove command from list before call execute(); On Oct 16, 1:48 am, AndiMullaraj andimulla...@gmail.com wrote: There are cases when blocking calls to server are indispensable (agreed, assync calls are the way to go for 99% of the cases). I scanned the client API and cannot find a way on how to do this. If not through a direct API call, is there a way on how to achieve this? (Like having a wait/process_events loop going until the response comes from the server). Thanks for you attention, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
how can i make SyntaxHighlighter work in gwt jsni???
i want to use SyntaxHighlighter(site:http://alexgorbatchev.com/wiki/ SyntaxHighlighter) to highlight code , the offical demo is html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=UTF-8 / script type=text/javascript src=scripts/shCore.js/ script script type=text/javascript src=scripts/shBrushJava.js/ script link type=text/css rel=stylesheet href=styles/ shCore.css/ link type=text/css rel=stylesheet href=styles/ shThemeDefault.css/ script type=text/javascript window.SyntaxHighlighter.all(); /script /head body pre class='brush:java'public String getName();/pre /body /html it works well. now i want to use it in gwt ,my code is public class MainEntryPoint implements EntryPoint { public void onModuleLoad() { sh(); RootPanel.get().add(new HTML(pre class='brush:java'public String getName();/pre)); } private native void sh()/*-{ $wnd.SyntaxHighlighter.all(); }-*/; } but is seems doesnt work at all. does anyone can give me some ideas? thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
CheckBox/RadioButton and change events
Hi, Is there any reason why CheckBox and RadioButton don't implement the HasChangeHandlers interface? I want to create a single handler for bunch of widgets including text boxes and a checkbox. David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
How can I remove a FlexTable?
Hi, i cant remove a FlexTable. This is my code: In my html div id=listado/div In my Java FlexTable listado = new FlexTable(); ... ... RootPanel.get(listado).add(listado); And then in a click handler i want to remove that table, but it doesnt erase RootPanel.get(listado).clear(); How can i do to take it out? Thanx --~--~-~--~~~---~--~~ 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: python gwt
I think the answer relies not only in the popularity of Java vs. Python, but in the fact that Java is a static typed language, and one with a lot of tools already in existence which can help you debug and develop faster. One of the reasons you want to avoid coding in a scripting language (javascript to begin with) for the web, is the inability to tell if there are some syntax/compiler errors before you deploy and run on the browser. On Oct 15, 9:01 am, Arthur Kalmenson arthur.k...@gmail.com wrote: You could always look at Pyjamas project as an alternative:http://code.google.com/p/pyjamas/. I've never used it so I can't say how good it is, but it has quite a few people on the project, if that says anything :P -- Arthur Kalmenson On Sun, Oct 4, 2009 at 4:44 PM, alf alberto@gmail.com wrote: Why google team choose java to compile into javascript when create GWT I think best had been python compile into javascript this away server and client will be same and in my case python is better than java. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Efficient way to access the database in gwt
GWT is client-side only. You need to look up how to do it in whatever language you have chosen to use on the server. Ian http://examples.roughian.com 2009/10/16 manish mkj.onl...@gmail.com Hello Everybody, I am a new user of GWT.Can anyone explain me how can i insert,update,retrieve data from database in GWT with a simple example. Thanks in Advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: how can i make SyntaxHighlighter work in gwt jsni???
On 16 oct, 14:40, zhiweiv zhiw...@gmail.com wrote: i want to use SyntaxHighlighter(site:http://alexgorbatchev.com/wiki/ SyntaxHighlighter) to highlight code , the offical demo is html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=UTF-8 / script type=text/javascript src=scripts/shCore.js/ script script type=text/javascript src=scripts/shBrushJava.js/ script link type=text/css rel=stylesheet href=styles/ shCore.css/ link type=text/css rel=stylesheet href=styles/ shThemeDefault.css/ script type=text/javascript window.SyntaxHighlighter.all(); /script /head body pre class='brush:java'public String getName();/pre /body /html it works well. now i want to use it in gwt ,my code is public class MainEntryPoint implements EntryPoint { public void onModuleLoad() { sh(); RootPanel.get().add(new HTML(pre class='brush:java'public String getName();/pre)); } private native void sh()/*-{ $wnd.SyntaxHighlighter.all(); }-*/; } but is seems doesnt work at all. does anyone can give me some ideas? Because $wnd.SyntaxHighlighter.all() registers a window.onload event handler, which generally already happened at the time onModuleLoad is called. Try calling $wnd.SyntaxHightlighter.highlight() instead. --~--~-~--~~~---~--~~ 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: CheckBox/RadioButton and change events
On 16 oct, 11:32, shangxiao shang.xiao.sand...@gmail.com wrote: Hi, Is there any reason why CheckBox and RadioButton don't implement the HasChangeHandlers interface? I want to create a single handler for bunch of widgets including text boxes and a checkbox. They implement HasClickHandlers because that's how they work at the DOM level: they don't fire 'change' events but 'click' events. However, both TextBox and CheckBox (and therefore RadioButton too) implement HasValue?, which inherits HasValueChangeHandlers, so you could use ValueChangeEvents instead of ChangeEvents. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is it possible to get the mouse's location (over a whole page) without preventing links on the page from being clickable?
On 16 oct, 20:02, darkflame darkfl...@gmail.com wrote: I have a HTML page, and want to know the mouses location wherever it is on the page, but not to block the links being clickable. I can easily make a transparent widget of some sort, add a addMouseMoveHandler, and set it to be the size of the page ontop of everything else. This will give me the co-ordinates nicely. But it also prevents html links working, and (indeed) any other mouse interaction. Any workarounds? Any methods just to listen for mouse moves, without interfering with clicks on elements under? Use Event.addNativePreviewHandler. --~--~-~--~~~---~--~~ 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 Hosted mode Wont create GWT widgets
I too have similar problem. All of a sudden my module is not loading. It is not starting even when I tried command line. Please suggest me some alternative. On Oct 7, 1:17 pm, mike_mac michael.mac...@gmail.com wrote: Well I've just opened another thread with what sounds like a similar (but different) problem ...http://groups.google.com/group/google-web-toolkit/browse_thread/threa... Try running the app in hosted mode from the command line ... if it works you can simply launch it from inside eclipse as a java app. I know it doesn't solve your problem but it may at least allow you to keep developing. On Oct 7, 1:10 pm, Patrick Corbett patrickcorbett@googlemail.com wrote: Hello, I am having a problem that started just out of the blue. my project has been working fine for months however today all of a sudden it stopped running in hosted mode. I can still compile the project and when run on my tomcat it worked fine. I have determined that it is not contained to simply the project i was working on all previous and new proejects fail to start. only basic HTML code is shown in the hosted browser and it wont process the java code in the entry point. If i set a break point within the onModuleLoad method it is never triggered. I am using eclispe 3.4 with GWT 1.7, also tried 1.6.4 and 1.7.1 with no effect. using the Google plugin Thanks Patrick- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Error with GWT 1.7.1 and Eclipse - Correct code sometimes results in incorrect JavaScript
I've been following a book about GWT and had an example app I needed to do. I was however surprised to see the code didn't always work and it seemed quite arbitrary when it actually worked. Sometimes I compiled with GWT and everything was fine.. other times it gave back JavaScript with an undefined variable frameWmd, resulting in only the HTML being run. The entire Eclipse project is here: http://www.megaupload.com/?d=0XDYU4E1 I've tried taking up this issue on IRC also.. here the conclusion was that it was some weird error with GWT that only occured in some cases. The system I'm running on is a 64 bit Linux Kubuntu with Eclipse Ganymede, GWT 1.71, fully updated Eclipse plugin and JRE 1.6 in a 32bit version (so that hosted mode works). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is there a way to block until a server response is available?
Thank you both for your prompt and attentive replies. I was fearing the answer I got from Shawn as it looks it won't be possible to partially fetch a long collection from the server (and then fetch items on demand). The classic collection/list interfaces don't have the notion of not available yet embedded in their method definitions so even if you cache a big nr of items coming from the server initially, there is no guarantee the client won't consume those faster than the connection can handle ... which obsoletes the solution proposed by Lazo (I had the same idea initially). So, all classic collections (and other classic alikes) would have to be be fetched totally before their construction ... argh! ... Or maybe my reasoning is wrong? Thanks again, Andi Mullaraj On Oct 16, 12:59 pm, Lazo Apostolovski qbox2...@gmail.com wrote: Just a little change. You need to remove command from list before call execute(); On Oct 16, 1:48 am, AndiMullaraj andimulla...@gmail.com wrote: There are cases when blocking calls to server are indispensable (agreed, assync calls are the way to go for 99% of the cases). I scanned the client API and cannot find a way on how to do this. If not through a direct API call, is there a way on how to achieve this? (Like having a wait/process_events loop going until the response comes from the server). Thanks for you attention, --~--~-~--~~~---~--~~ 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: Mutiple EntryPoint Modules in Hosted Mode under Eclipse? is it Possible?
Actually, you can, but you'll have to compile them both first. To clarify what I mean...if I do this: mvn clean mvn gwt:run -DrunTarget=package.namespace.App1/App1.html Then try to switch URL to App2, it will fail b/c that is not compiled yet. but if I do this: mvn clean mvn gwt:compile mvn gwt:run -DrunTarget=package.namespace.App1/App1.html I should be able to switch URLS between the two apps in hosted mode. It is possible, you just have to make sure all apps are compiled. On Fri, Oct 16, 2009 at 2:10 PM, Romeo Sanchez romeo.sanc...@gmail.comwrote: Yes, this is what I want to do. I was hoping we could do it directly from hosted mode. I do not know if I understood well, but what you are basically saying is that We can not run an application/project that involves multiple modules, each one having a different entrypoint in hosted mode? Did I parse correctly what you said? Thanks for clarifying. RSN. On Thu, Oct 15, 2009 at 8:38 PM, Davis Ford davisf...@zenoconsulting.bizwrote: Hi, I'm not sure you can do this in hosted mode, but I had a similar situation that I solved, and now it is a set and forget. To be up front -- I am a maven bigot. I think Ant is fine if it is done right, but maven makes my life so much easier that I use it for all new projects. That said, I had to develop an app that would have several different features depending on the user/role -- significantly the login would define that (and the role), but the login page was also different for each user role. I also wanted to share a lot of the code between these different apps for obvious reasons. I could have made multiple maven projects and made re-usable components to inherit and share the code that way -- but this would mean several different projects, and the maintenance, overhead, headache of dealing with all that. My needs were simpler. I wanted all the code in one project...but I wanted different entry points. Really, the only thing that was different was the entry point that bootstrapped the code specific for that app. I separated it out via URL, so you can hit: http://localhost/app1 or http://localhost/app2 So, in the end my project uses multiple modules and URL filtering to control access to a particular app. The only real downside is that it takes longer to compile when I deploy, but that is no big deal for me. I can't run hosted mode in parallel like you are asking for, but hosted mode is for quick dev. anyway, so I don't find that to be a limitation. To run app1, I do: mvn gwt:run -DrunTarget=my.package.App1/App1.html To run app2, I do: mvn gwt-run -DrunTarget=my.package.App2/App2.html ...or I create a Run/Debug target inside Eclipse and launch it with the GWT eclipse plugin that way. Anyway, I wrote up a blog and sample project you can take a look at as a skeleton here: http://zenoconsulting.wikidot.com/blog:16 -- if it helps you/someone..great. Regards, Davis On Wed, Oct 14, 2009 at 8:20 PM, RSN romeo.sanc...@gmail.com wrote: I am kind of new with GWT, and I was hoping someone could clarify my following questions, or at least point me out to some light. Thanks for any help. The setting is as follows: - Eclipse 3.4.2 , GWT 1.7.1 and plugin. - Created two basic GWT modules with GWT Plugin under Eclipse. Both are just copies of the GreetService application that gets generated by default when you create a new GWT project using the plugin Wizard. The modules are: -Security -Main The Main module is going to inherit the Security one. So, I modified the Main.gwt.xml file to inherit the security module. inherits name='org.security.Security'/ In addition to this, Eclipse complained about the build path for the Main module when I did this change. So, I had to add the Security module as a Required project on the build path of the Main module. This step removed any problems in compilation time. So, I proceed to run the Main module. When, I ran the project, only one single Hosted-mode browser window opened. And, these are the problems encountered: - The single browser window contained elements (buttons, textboxes, etc) from both of the modules. So, I could see all html elements in a single window. First questions: Is this the desired behavior? Can we open more than one browser window, one per each module that has an entrypoint and refers to a html page? Is there a way to let each module know on which port each application will run? In other words, both of the modules are running in localhost, but I would like to set them to run in different ports such that there is no conflict. Then, I proceed to test the functionality of the elements in the single browser window. I clicked the button of the Main application that greets the Server. It worked well. No problems. Then, I clicked in the second button from the Security module to make an RPC to the server, and it got the default message: An error occurred while
Edit text for the cloned widget
Hi, For my project i am using Raphael JS with gwt. Using Rahael JS i have created some widgets like circle, rectangle etc and they are cloned on each drag. Now I need to add text to them and then make these cloned widget text editable. Any suggestions would be appreciated. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: CheckBox/RadioButton and change events
I'm no expert on the dom but I thought that they did do change events: http://www.quirksmode.org/dom/events/change.html#t04 The problem with using ValueChangeEvents is that list boxes don't implement HasValueChangeHandlers... although I believe there plans to implement the HasValue interface: http://code.google.com/p/google-web-toolkit/issues/detail?id=2010#c7 No matter though, I've just temporarily extended checkbox to implement HasChangeHandlers and I'm able to get it to do what I want to do ;) 2009/10/17 Thomas Broyer t.bro...@gmail.com On 16 oct, 11:32, shangxiao shang.xiao.sand...@gmail.com wrote: Hi, Is there any reason why CheckBox and RadioButton don't implement the HasChangeHandlers interface? I want to create a single handler for bunch of widgets including text boxes and a checkbox. They implement HasClickHandlers because that's how they work at the DOM level: they don't fire 'change' events but 'click' events. However, both TextBox and CheckBox (and therefore RadioButton too) implement HasValue?, which inherits HasValueChangeHandlers, so you could use ValueChangeEvents instead of ChangeEvents. --~--~-~--~~~---~--~~ 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: OOPHM plugin for firefox problem.
I can confirm absolutely that swapping the GWT settings does not alter the gwt-servlet.jar file on 3 computers I've tested it on (all winxp). For example, trying to roll back to GWT 1.7 will result in this error when you attempt to launch hosted mode: [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 This is again fixed by replacing the gwt-servlet.jar file. Looks like this might be the plugin eclipse failing to do something, but I don't see any errors in the logs. I'd expect something like this, which is what you'd get if you set the file to read only: eclipse.buildId=M20090211-1700 java.version=1.6.0_13 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 Error Sat Oct 17 13:45:41 WST 2009 Unexpected Exception org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources. at org.eclipse.core.internal.resources.Resource.delete(Resource.java: 724) at org.eclipse.core.internal.resources.Resource.delete(Resource.java: 670) at com.google.gdt.eclipse.core.sdk.UpdateWebInfFolderCommand.execute (UpdateWebInfFolderCommand.java:65) at com.google.gdt.eclipse.core.sdk.UpdateProjectSdkCommand.execute (UpdateProjectSdkCommand.java:67) at com.google.gwt.eclipse.core.properties.ui.GWTProjectPropertyPage.addGWT (GWTProjectPropertyPage.java:186) at com.google.gwt.eclipse.core.properties.ui.GWTProjectPropertyPage.saveProjectProperties (GWTProjectPropertyPage.java:132) at com.google.gdt.eclipse.core.ui.AbstractProjectPropertyPage.performOk (AbstractProjectPropertyPage.java:78) at org.eclipse.jface.preference.PreferenceDialog$13.run (PreferenceDialog.java:931) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.preference.PreferenceDialog.okPressed (PreferenceDialog.java:911) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed (FilteredPreferenceDialog.java:456) at org.eclipse.jface.preference.PreferenceDialog.buttonPressed (PreferenceDialog.java:233) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:228) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at com.google.gdt.eclipse.core.actions.AbstractProjectPropertiesAction.run (AbstractProjectPropertiesAction.java:56) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java: 251) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2 (ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent (ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run (EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at
[gwt-contrib] Re: In-block Clinit Pruner
http://gwt-code-reviews.appspot.com/80801/diff/1/2 File dev/core/src/com/google/gwt/dev/jjs/impl/flow/ClInitPruner.java (right): http://gwt-code-reviews.appspot.com/80801/diff/1/2#newcode63 Line 63: tracer.inc(Tracing.COUNT_PRUNABLE_CLINIT); Everything looks beautiful except here. Where is the clinit actually removed? Is BasicBlock going to have some methods for doing modification, I suppose? http://gwt-code-reviews.appspot.com/80801/diff/1/2#newcode64 Line 64: } else if (clinit != null) { To my taste, check for nullness before calling contains(). It's a little easier to understand what's going on. It's up to you, though. http://gwt-code-reviews.appspot.com/80801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by claude...@gmail.com: After suffering a little to get an OOPHM plugin working on debian Iceweasel, I've got success and are making my notes here... hope to help somebody on getting it work too: On Debian Lenny, with iceweasel (Firefox re-branded) 3.0.6 the .xpi file from this page doesn't works (even the alternate libraries version). To make it work I had to rebuild the plugin linking it against the libraries of the xulrunner-dev package: {{{ ~ # apt-get install xulrunner-dev }}} to make it work, after building the gwt from trunk as said in [http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode Working on Code] need to checkout also the plugin-sdks from svn on the same directory level you checked-out tools and trunk: {{{ ~/gwt$ svn checkout http://google-web-toolkit.googlecode.com/svn/plugin-sdks/ plugin-sdks }}} after this, go to /trunk/plugins/xpcom directory, set some variables and build the thing: {{{ ~/gwt/trunk/plugins/xpcom$ export BROWSER=ff3 ~/gwt/trunk/plugins/xpcom$ export DEFAULT_FIREFOX_LIBS=/usr/lib/xulrunner-devel-1.9/sdk/lib/ ~/gwt/trunk/plugins/xpcom$ make clean ~/gwt/trunk/plugins/xpcom$ make }}} after this, you should have a new gwt-dmp-ff3.xpi file inside the prebuild directory, this file should work with the iceweasel package from lenny. I think that similar approach need to be taken for packages from squeeze or sid (iceweasel 3.5 already) For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Add properties to selectively disable ant test targets
Reviewers: jat, Description: Description: === The default ant test target in trunk/user/build.xml runs all test targets by default. Since we generally run the test target in trunk/build.xml, there isn't a good way to selectively run test targets. Fix: Adding disable options to some targets so we can selectively disable them. This allows us to spread the targets over multiple systems without redundancy. Please review this at http://gwt-code-reviews.appspot.com/80802 Affected files: user/build.xml Index: user/build.xml === --- user/build.xml (revision 6390) +++ user/build.xml (working copy) @@ -447,7 +447,8 @@ target name=test.dev depends=compile, compile.tests - description=Run dev-mode tests for this project. + description=Run dev-mode tests for this project. + unless=test.dev.disable limit failonerror=true hours=${test.timeout} parallel threadsPerProcessor=${gwt.threadsPerProcessor} !-- disable HtmlUnit until it is reliable @@ -463,7 +464,8 @@ target name=test.web depends=compile, compile.tests - description=Run web-mode tests for this project. + description=Run web-mode tests for this project. + unless=test.web.disable limit failonerror=true hours=${test.timeout} parallel threadsPerProcessor=${gwt.threadsPerProcessor} !-- disable HtmlUnit until it is reliable @@ -479,7 +481,8 @@ target name=test.emma depends=compile, compile.tests - description=Run emma tests for this project. + description=Run emma tests for this project. + unless=test.emma.disable limit failonerror=true hours=${test.timeout} parallel threadsPerProcessor=${gwt.threadsPerProcessor} !-- disable HtmlUnit until it is reliable @@ -495,7 +498,8 @@ target name=test.draft depends=compile, compile.tests - description=Run draft compiled tests for this project. + description=Run draft compiled tests for this project. + unless=test.draft.disable limit failonerror=true hours=${test.timeout} parallel threadsPerProcessor=${gwt.threadsPerProcessor} !-- disable HtmlUnit until it is reliable @@ -511,7 +515,8 @@ target name=test.nometa depends=compile, compile.tests - description=Run -XdisableClassMetadata tests for this project. + description=Run -XdisableClassMetadata tests for this project. + unless=test.nometa.disable limit failonerror=true hours=${test.timeout} parallel threadsPerProcessor=${gwt.threadsPerProcessor} !-- disable HtmlUnit until it is reliable --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Addition of Generated Java File (from .proto) and Protobuf Library
LGTM http://gwt-code-reviews.appspot.com/77830 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6391 committed - Adding more parallization of test targets, preventing compilation for ...
Revision: 6391 Author: jlaba...@google.com Date: Fri Oct 16 09:36:03 2009 Log: Adding more parallization of test targets, preventing compilation for each target, and adding option to selectively disable targets. Patch by: jlabanca Review by: jat http://code.google.com/p/google-web-toolkit/source/detail?r=6391 Modified: /trunk/user/build.xml === --- /trunk/user/build.xml Thu Oct 15 21:52:05 2009 +++ /trunk/user/build.xml Fri Oct 16 09:36:03 2009 @@ -56,7 +56,8 @@ !-- Platform shouldn't matter here, just picking one -- property.ensure name=gwt.dev.jar location=${gwt.build.lib}/gwt-dev.jar / - target name=compile description=Compile all class files + target name=compile description=Compile all class files + unless=compile.complete mkdir dir=${javac.out} / gwt.javac classpath @@ -88,7 +89,8 @@ Compiles the test code for this project -- target name=compile.tests - depends=compile.dev.tests, compile.emma.if.enabled + depends=compile.dev.tests, compile.emma.if.enabled + unless=compile.tests.complete mkdir dir=${javac.junit.out} / gwt.javac srcdir=test excludes=com/google/gwt/langtest/** destdir=${javac.junit.out} @@ -134,7 +136,8 @@ target name=test.web.remote description=Run web test with remote browsers - if=gwt.hosts.web.remote + if=gwt.hosts.web.remote + unless=test.web.remote.disable echo message=Performing web remote testing at ${gwt.hosts.web.remote} / property name=test.web.remote.args value=${test.args} / fileset id=test.web.remote.tests dir=${javac.junit.out} @@ -152,7 +155,8 @@ target name=test.dev.remote depends=compile, compile.tests description=Run dev-mode tests with remote browsers - if=gwt.hosts.dev.remote + if=gwt.hosts.dev.remote + unless=test.dev.remote.disable echo message=Performing dev-mode remote testing at ${gwt.remote.browsers} / property name=test.dev.remote.args value=${test.args} / fileset id=test.dev.remote.tests dir=${javac.junit.out} @@ -170,7 +174,8 @@ target name=test.emma.remote depends=compile, compile.tests description=Run emma tests with remote browsers - if=gwt.hosts.dev.remote + if=gwt.hosts.dev.remote + unless=test.emma.remote.disable echo message=Performing emma remote testing at ${gwt.hosts.dev.remote} / property name=test.emma.remote.args value=${test.args} / fileset id=test.emma.remote.tests dir=${javac.junit.out} @@ -189,7 +194,8 @@ target name=test.emma.selenium depends=compile, compile.tests description=Run emma tests with Selenium-RC servers - if=gwt.hosts.dev.selenium + if=gwt.hosts.dev.selenium + unless=test.emma.selenium.disable echo message=Performing emma selenium testing at ${gwt.hosts.dev.selenium} / property name=test.emma.remote.args value=${test.args} / fileset id=test.emma.selenium.tests dir=${javac.junit.out} @@ -208,7 +214,8 @@ target name=test.draft.remote depends=compile, compile.tests description=Run draft compiled tests with remote browsers - if=gwt.hosts.web.remote + if=gwt.hosts.web.remote + unless=test.draft.remote.disable echo message=Performing draft remote testing at ${gwt.hosts.web.remote} / property name=test.draft.remote.args value=${test.args} / fileset id=test.draft.remote.tests dir=${javac.junit.out} @@ -225,7 +232,8 @@ target name=test.nometa.remote description=Run -XdisableClassMetadata tests with remote browsers - if=gwt.hosts.web.remote + if=gwt.hosts.web.remote + unless=test.nometa.remote.disable echo message=Performing nometa remote testing at ${gwt.hosts.web.remote} / property name=test.nometa.remote.args value=${test.args} / fileset id=test.nometa.remote.tests dir=${javac.junit.out} @@ -247,7 +255,8 @@ target name=test.web.selenium depends=compile, compile.tests description=Run web tests using Selenium RC - if=gwt.hosts.web.selenium + if=gwt.hosts.web.selenium + unless=test.web.selenium.disable echo message=Performing web testing using Selenium RC at ${gwt.hosts.web.selenium} / property name=test.selenium.args value=${test.args} / fileset id=test.web.selenium.tests dir=${javac.junit.out} @@ -265,7 +274,8 @@ target name=test.dev.selenium depends=compile, compile.tests description=Run dev-mode tests using Selenium RC servers - if=gwt.hosts.dev.selenium + if=gwt.hosts.dev.selenium + unless=test.dev.selenium.disable echo message=Performing dev-mode testing using Selenium RC at ${gwt.hosts.dev.selenium} / property name=test.selenium.args value=${test.args} / fileset id=test.dev.selenium.tests dir=${javac.junit.out} @@ -282,7 +292,8 @@ target
[gwt-contrib] [google-web-toolkit] r6392 committed - Add protobuf library, which is required by the generated Java files.
Revision: 6392 Author: rda...@google.com Date: Fri Oct 16 09:44:38 2009 Log: Add protobuf library, which is required by the generated Java files. http://code.google.com/p/google-web-toolkit/source/detail?r=6392 Added: /branches/remote-ui-communication/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteMessageProto.java Modified: /branches/remote-ui-communication/dev/build.xml /branches/remote-ui-communication/eclipse/dev/.classpath === --- /dev/null +++ /branches/remote-ui-communication/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteMessageProto.java Fri Oct 16 09:44:38 2009 @@ -0,0 +1,8009 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! + +package com.google.gwt.dev.shell.remoteui; + +public final class RemoteMessageProto { + private RemoteMessageProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + public static final class Message extends + com.google.protobuf.GeneratedMessage { +// Use Message.newBuilder() to construct. +private Message() {} + +private static final Message defaultInstance = new Message(); +public static Message getDefaultInstance() { + return defaultInstance; +} + +public Message getDefaultInstanceForType() { + return defaultInstance; +} + +public static final com.google.protobuf.Descriptors.Descriptor +getDescriptor() { + return com.google.gwt.dev.shell.remoteui.RemoteMessageProto.internal_static_com_google_gwt_dev_shell_remoteui_Message_descriptor; +} + +protected com.google.protobuf.GeneratedMessage.FieldAccessorTable +internalGetFieldAccessorTable() { + return com.google.gwt.dev.shell.remoteui.RemoteMessageProto.internal_static_com_google_gwt_dev_shell_remoteui_Message_fieldAccessorTable; +} + +public enum MessageType +implements com.google.protobuf.ProtocolMessageEnum { + REQUEST(0, 0), + RESPONSE(1, 1), + ; + + + public final int getNumber() { return value; } + + public static MessageType valueOf(int value) { +switch (value) { + case 0: return REQUEST; + case 1: return RESPONSE; + default: return null; +} + } + + public static com.google.protobuf.Internal.EnumLiteMapMessageType + internalGetValueMap() { +return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMapMessageType + internalValueMap = +new com.google.protobuf.Internal.EnumLiteMapMessageType() { + public MessageType findValueByNumber(int number) { +return MessageType.valueOf(number) + ;} +}; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { +return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { +return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { +return com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.getDescriptor().getEnumTypes().get(0); + } + + private static final MessageType[] VALUES = { +REQUEST, RESPONSE, + }; + public static MessageType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { +if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( +EnumValueDescriptor is not for this type.); +} +return VALUES[desc.getIndex()]; + } + private final int index; + private final int value; + private MessageType(int index, int value) { +this.index = index; +this.value = value; + } + + static { + com.google.gwt.dev.shell.remoteui.RemoteMessageProto.getDescriptor(); + } +} + +public static final class Request extends +com.google.protobuf.GeneratedMessage { + // Use Request.newBuilder() to construct. + private Request() {} + + private static final Request defaultInstance = new Request(); + public static Request getDefaultInstance() { +return defaultInstance; + } + + public Request getDefaultInstanceForType() { +return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { +return com.google.gwt.dev.shell.remoteui.RemoteMessageProto.internal_static_com_google_gwt_dev_shell_remoteui_Message_Request_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { +return
[gwt-contrib] Re: Addition of Generated Java File (from .proto) and Protobuf Library
Thanks for the review. Final commit rev: r6394 http://gwt-code-reviews.appspot.com/77830 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6394 committed - Moved protobuf library into a temporary directory as part of this bran...
Revision: 6394 Author: rda...@google.com Date: Fri Oct 16 09:44:49 2009 Log: Moved protobuf library into a temporary directory as part of this branch. More discussion is needed before we drop it into GWT_TOOLS proper. http://code.google.com/p/google-web-toolkit/source/detail?r=6394 Added: /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0 /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0/COPYING.txt /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0/README /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0/protobuf-java-2.2.0.jar Modified: /branches/remote-ui-communication/dev/build.xml /branches/remote-ui-communication/eclipse/dev/.classpath === --- /dev/null +++ /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0/COPYING.txt Fri Oct 16 09:44:49 2009 @@ -0,0 +1,33 @@ +Copyright 2008, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. +* Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Code generated by the Protocol Buffer compiler is owned by the owner +of the input file used when generating it. This code is not +standalone and requires a support library to be linked with it. This +support library is itself covered by the above license. === --- /dev/null +++ /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0/README Fri Oct 16 09:44:49 2009 @@ -0,0 +1,22 @@ +This is version 2.2.0 of the Java Protocol Buffer Library. We use protocol buffers +communication protocol between the Development Mode Server and Remote Viewers. + +To build this library: + +1) Download http://protobuf.googlecode.com/files/protobuf-2.2.0.tar.gz +2) Unzip the archive + +3) Follow the Installation - With Maven instructions located in java/README.txt. +Note that Maven is not required; one can altenatively follow the +Installation - Without Maven instructions. + +NOTE: If you decide to use Maven, be sure to add: + +properties +project.build.sourceEncodingUTF-8/project.build.sourceEncoding +/properties + +as a child of the project tag in the java/pom.xml file. This will prevent +platform-dependent encoding warnings during the packaging step. See +http://maven.apache.org/general.html#encoding-warning for more information. + === --- /dev/null +++ /branches/remote-ui-communication/dev/core/gwt-tools-do-not-commit-into-trunk/lib/protobuf-2.2.0/protobuf-java-2.2.0.jar Fri Oct 16 09:44:49 2009 Binary file, no diff available. === --- /branches/remote-ui-communication/dev/build.xml Fri Oct 16 09:44:38 2009 +++ /branches/remote-ui-communication/dev/build.xml Fri Oct 16 09:44:49 2009 @@ -68,7 +68,6 @@ include name=tomcat/tomcat-http11-1.0.jar / include name=tomcat/tomcat-jk2-2.1.jar / include name=tomcat/tomcat-util-5.1.jar / - include name=protobuf/protobuf-2.2.0.jar / !-- htmlunit dependencies not already included: BEGIN -- include name=apache/commons/commons-codec-1.3.jar / include name=apache/commons/commons-httpclient-3.1.jar / @@ -86,6 +85,9 @@
[gwt-contrib] Adds TabLayoutPanelParser.
Reviewers: Ray Ryan, Please review this at http://gwt-code-reviews.appspot.com/81801 Affected files: A user/javadoc/com/google/gwt/examples/TabLayoutPanelExample.java A user/src/com/google/gwt/uibinder/parsers/TabLayoutPanelParser.java M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java M user/src/com/google/gwt/user/client/ui/LayoutPanel.java A user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java A user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Adds TabLayoutPanelParser.
Reviewers: , Please review this at http://gwt-code-reviews.appspot.com/81802 Affected files: A user/src/com/google/gwt/uibinder/parsers/TabLayoutPanelParser.java M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java M user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6395 committed - Adds com/google/gwt/soyc/** to standalone compiler....
Revision: 6395 Author: sco...@google.com Date: Fri Oct 16 10:59:37 2009 Log: Adds com/google/gwt/soyc/** to standalone compiler. There are now direct code references from the standalone compiler to the soyc package, fixing the build rules to reflect this dependency. Review by: kprobst (desk) http://code.google.com/p/google-web-toolkit/source/detail?r=6395 Modified: /trunk/dev/build.xml /trunk/eclipse/dev/compiler/.classpath === --- /trunk/dev/build.xmlTue Oct 13 16:57:19 2009 +++ /trunk/dev/build.xmlFri Oct 16 10:59:37 2009 @@ -169,6 +169,7 @@ include name=com/google/gwt/dev/js/**/ include name=com/google/gwt/dev/resource/**/ include name=com/google/gwt/dev/util/**/ + include name=com/google/gwt/soyc/**/ include name=com/google/gwt/util/tools/**/ classpath pathelement location=${gwt.tools.lib}/apache/ant-1.6.5.jar / === --- /trunk/eclipse/dev/compiler/.classpath Tue Aug 4 13:38:44 2009 +++ /trunk/eclipse/dev/compiler/.classpath Fri Oct 16 10:59:37 2009 @@ -1,6 +1,6 @@ ?xml version=1.0 encoding=UTF-8? classpath - classpathentry including=com/google/gwt/core/ext/| com/google/gwt/core/linker/|com/google/gwt/dev/About.java| com/google/gwt/dev/asm/|com/google/gwt/dev/cfg/|com/google/gwt/dev/javac/| com/google/gwt/dev/jdt/|com/google/gwt/dev/jjs/|com/google/gwt/dev/js/| com/google/gwt/dev/resource/|com/google/gwt/dev/util/| com/google/gwt/util/tools/ kind=src path=core/src/ + classpathentry including=com/google/gwt/core/ext/| com/google/gwt/core/linker/|com/google/gwt/dev/About.java| com/google/gwt/dev/asm/|com/google/gwt/dev/cfg/|com/google/gwt/dev/javac/| com/google/gwt/dev/jdt/|com/google/gwt/dev/jjs/|com/google/gwt/dev/js/| com/google/gwt/dev/resource/|com/google/gwt/dev/util/|com/google/gwt/soyc/| com/google/gwt/util/tools/ kind=src path=core/src/ classpathentry excluding=com/google/gwt/dev/jjs/intrinsic/ kind=src path=core/super/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=var path=GWT_TOOLS/lib/apache/ant-1.6.5.jar sourcepath=/GWT_TOOLS/lib/apache/ant-1.6.5-src.zip/ --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by claude...@gmail.com: my previous post...it worked on one machine, but on another, with a fresh install of iceweasel, it didn't worked! I am really without a clue about this! For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6393 committed - Add license info for the Free BSD License, since we're bundling the pr...
Revision: 6393 Author: rda...@google.com Date: Fri Oct 16 09:44:44 2009 Log: Add license info for the Free BSD License, since we're bundling the protobuf library in gwt-dev.jar. http://code.google.com/p/google-web-toolkit/source/detail?r=6393 Modified: /branches/remote-ui-communication/distro-source/core/src/COPYING /branches/remote-ui-communication/distro-source/core/src/COPYING.html /branches/remote-ui-communication/distro-source/core/src/about.html /branches/remote-ui-communication/distro-source/core/src/about.txt === --- /branches/remote-ui-communication/distro-source/core/src/COPYINGTue May 19 08:35:33 2009 +++ /branches/remote-ui-communication/distro-source/core/src/COPYINGFri Oct 16 09:44:44 2009 @@ -246,3 +246,10 @@ Source code availability: http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code +* Protobuf + License: New BSD License +http://www.opensource.org/licenses/bsd-license.php + Source code availablility: +http://code.google.com/p/protobuf/source/checkout + + === --- /branches/remote-ui-communication/distro-source/core/src/COPYING.html Tue May 19 08:35:33 2009 +++ /branches/remote-ui-communication/distro-source/core/src/COPYING.html Fri Oct 16 09:44:44 2009 @@ -333,6 +333,11 @@ td class=licensea href=http://www.mozilla.org/MPL/MPL-1.1.txt;Mozilla Public License v. 1.1/a/td td class=locationa href=http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code;mozilla.org/a/td /tr + tr +td class=packageProtobuf/td +td class=licensea href=http://www.opensource.org/licenses/bsd-license.php;New BSD License/a/td +td class=locationa href=http://code.google.com/p/protobuf/source/checkout;code.google.com/p/protobuf/a/td + /tr /tbody/table /div === --- /branches/remote-ui-communication/distro-source/core/src/about.html Tue May 19 08:35:33 2009 +++ /branches/remote-ui-communication/distro-source/core/src/about.html Fri Oct 16 09:44:44 2009 @@ -95,6 +95,7 @@ lia href=http://selenium-rc.openqa.org/;Selenium-RC/a /li /ul /li +liThe a href=http://code.google.com/p/protobuf/;Protobuf Project/a/li /ul For source availability and license information see COPYING.html. === --- /branches/remote-ui-communication/distro-source/core/src/about.txt Tue May 19 08:35:33 2009 +++ /branches/remote-ui-communication/distro-source/core/src/about.txt Fri Oct 16 09:44:44 2009 @@ -20,5 +20,6 @@ - ASM (http://asm.objectweb.org/) with modifications - The OpenQA Project (http://openqa.org/) - Selenium-RC (http://selenium-rc.openqa.org/) + - The Protobuf Project (http://code.google.com/p/protobuf/) For source availability and license information see COPYING. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Disable tests that crash firefox in dev mode
Reviewers: jat, Description: Description: Returning Float.MAX_VALUE or Double.MAX_VALUE from a JSNI method causes firefox on windows to crash. Fix: === Disabling the failing tests, with a TODO to fix them before shipping GWT2.0. Please review this at http://gwt-code-reviews.appspot.com/81804 Affected files: user/test/com/google/gwt/dev/jjs/test/HostedTest.java Index: user/test/com/google/gwt/dev/jjs/test/HostedTest.java === --- user/test/com/google/gwt/dev/jjs/test/HostedTest.java (revision 6394) +++ user/test/com/google/gwt/dev/jjs/test/HostedTest.java (working copy) @@ -276,7 +276,12 @@ assertEquals(VAL3-foo, TestEnum.VAL3.foo()); } - public void testFloat() { + /** + * Returning Float.MAX_VALUE or Double.MAX_VALUE causes firefox to crash on + * Windows in dev mode + * TODO (jat): Enable this test before shipping GWT 2.0. + */ + public void disabledTestFloat() { storeFloat(Float.MIN_VALUE); float f = getFloat(); assertTrue(f == Float.MIN_VALUE); @@ -410,8 +415,12 @@ /** * More test cases resulting from issue 2426 to show that primitives can be * passed through JSNI methods unmolested. + * + * Returning Float.MAX_VALUE or Double.MAX_VALUE causes firefox to crash on + * Windows in dev mode + * TODO(jat): Enable this test before shipping GWT 2.0. */ - public void testJsniPassthroughPrimitives() { + public void disabledTestJsniPassthroughPrimitives() { class Inner { native boolean nativeBoolean(boolean param) /*-{ return param; --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6396 committed - Disabling tests that cause FF to crash in dev mode on Windows....
Revision: 6396 Author: jlaba...@google.com Date: Fri Oct 16 12:07:20 2009 Log: Disabling tests that cause FF to crash in dev mode on Windows. Patch by: jlabanca Review by: jat http://code.google.com/p/google-web-toolkit/source/detail?r=6396 Modified: /trunk/user/test/com/google/gwt/dev/jjs/test/HostedTest.java === --- /trunk/user/test/com/google/gwt/dev/jjs/test/HostedTest.javaWed Mar 4 10:40:25 2009 +++ /trunk/user/test/com/google/gwt/dev/jjs/test/HostedTest.javaFri Oct 16 12:07:20 2009 @@ -276,7 +276,12 @@ assertEquals(VAL3-foo, TestEnum.VAL3.foo()); } - public void testFloat() { + /** + * Returning Float.MAX_VALUE or Double.MAX_VALUE causes firefox to crash on + * Windows in dev mode + * TODO (jat): Enable this test before shipping GWT 2.0. + */ + public void disabledTestFloat() { storeFloat(Float.MIN_VALUE); float f = getFloat(); assertTrue(f == Float.MIN_VALUE); @@ -410,8 +415,12 @@ /** * More test cases resulting from issue 2426 to show that primitives can be * passed through JSNI methods unmolested. + * + * Returning Float.MAX_VALUE or Double.MAX_VALUE causes firefox to crash on + * Windows in dev mode + * TODO(jat): Enable this test before shipping GWT 2.0. */ - public void testJsniPassthroughPrimitives() { + public void disabledTestJsniPassthroughPrimitives() { class Inner { native boolean nativeBoolean(boolean param) /*-{ return param; --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Disable tests that crash firefox in dev mode
LGTM. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Initial implementation of TabLayoutPanel.
Committed at r6397. http://gwt-code-reviews.appspot.com/78820/diff/1/4 File user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/78820/diff/1/4#newcode61 Line 61: */ On 2009/10/14 21:27:33, Ray Ryan wrote: That customizability is my main concern. If the widget is actually master of its own events, everything else is angels dancing on the heads of pins. So if I want to, say, put a popup volume slider on each of my Tabs, I'm good? As long as they don't let click events bubble out, yes. That just means they need to cancel them. Pretty much standard practice under those circumstances. http://gwt-code-reviews.appspot.com/78820/diff/1/4#newcode365 Line 365: SelectionEvent.fire(this, index); On 2009/10/14 21:41:12, amirkashani wrote: Any chance this could be gated on a issueEvent argument? In most cases the handling of a user-select is the same as a programmatic select, but it's nice to have the option. It does clutter up the API a bit though I thought of doing that, but we haven't really done it anywhere else, so I decided it wasn't really the time. I'm not entirely averse to the idea in general, and would welcome a gwtc discussion of doing this broadly across all the widgets. http://gwt-code-reviews.appspot.com/78820 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6397 committed - Initial implementation of TabLayoutPanel....
Revision: 6397 Author: j...@google.com Date: Fri Oct 16 12:16:25 2009 Log: Initial implementation of TabLayoutPanel. http://gwt-code-reviews.appspot.com/78820 http://code.google.com/p/google-web-toolkit/source/detail?r=6397 Added: /trunk/user/javadoc/com/google/gwt/examples/TabLayoutPanelExample.java /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java Modified: /trunk/user/src/com/google/gwt/user/client/ui/LayoutPanel.java === --- /dev/null +++ /trunk/user/javadoc/com/google/gwt/examples/TabLayoutPanelExample.java Fri Oct 16 12:16:25 2009 @@ -0,0 +1,43 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.examples; + +import com.google.gwt.core.client.EntryPoint; +import com.google.gwt.dom.client.Style.Unit; +import com.google.gwt.user.client.ui.HTML; +import com.google.gwt.user.client.ui.RootLayoutPanel; +import com.google.gwt.user.client.ui.TabLayoutPanel; + +public class TabLayoutPanelExample implements EntryPoint { + + public void onModuleLoad() { +// Create a three-item tab panel, with the tab area 1.5em tall. +TabLayoutPanel p = new TabLayoutPanel(1.5, Unit.EM); +p.add(new HTML(this), [this]); +p.add(new HTML(that), [that]); +p.add(new HTML(the other), [the other]); + +// Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for +// resize events on the window to ensure that its children are informed of +// possible size changes. +RootLayoutPanel rp = RootLayoutPanel.get(); +rp.add(p); + +// The RootLayoutPanel requires that its layout() method be explicitly +// called for the initial layout to take effect. +rp.layout(); + } +} === --- /dev/null +++ /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java Fri Oct 16 12:16:25 2009 @@ -0,0 +1,449 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.user.client.ui; + +import com.google.gwt.dom.client.Document; +import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.Style.Unit; +import com.google.gwt.dom.client.Style.Visibility; +import com.google.gwt.event.dom.client.ClickEvent; +import com.google.gwt.event.dom.client.ClickHandler; +import com.google.gwt.event.logical.shared.BeforeSelectionEvent; +import com.google.gwt.event.logical.shared.BeforeSelectionHandler; +import com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers; +import com.google.gwt.event.logical.shared.HasSelectionHandlers; +import com.google.gwt.event.logical.shared.SelectionEvent; +import com.google.gwt.event.logical.shared.SelectionHandler; +import com.google.gwt.event.shared.HandlerRegistration; +import com.google.gwt.layout.client.Layout.Alignment; +import com.google.gwt.layout.client.Layout.Layer; + +import java.util.ArrayList; +import java.util.Iterator; + +/** + * A panel that represents a tabbed set of pages, each of which contains another + * widget. Its child widgets are shown as the user selects the various tabs + * associated with them. The tabs can contain arbitrary text, HTML, or widgets. + * + * p + * This widget will emonly/em work in standards mode, which requires + * that the HTML page in which it is run have an explicit lt;!DOCTYPEgt; + * declaration. + * /p + * + * p + * NOTE: This class is still very new, and its interface may change without + * warning. Use at your own risk. + * /p + * + * p + * h3Example/h3 + * {...@example com.google.gwt.examples.TabLayoutPanelExample} + * /p + * + * TODO: + * - Aria, RTL, DebugId + * - Update style mechanism (gwt-Tab, etc. not really sufficient). + */ +public class TabLayoutPanel extends LayoutComposite implements HasWidgets, +RequiresResize, ProvidesResize, IndexedPanel, +
[gwt-contrib] Re: Adds TabLayoutPanelParser.
Some error message and method name nits, and one weird thing in TabLayoutPanel by accident? http://gwt-code-reviews.appspot.com/81802/diff/1/2 File user/src/com/google/gwt/uibinder/parsers/TabLayoutPanelParser.java (right): http://gwt-code-reviews.appspot.com/81802/diff/1/2#newcode46 Line 46: .findType(TabLayoutPanel.class.getName()), Double.toString(size), Any locale gotchas lurking in Double#toString? http://gwt-code-reviews.appspot.com/81802/diff/1/2#newcode47 Line 47: DockLayoutPanelParser.getFullyQualifiedEnumName(unit)); You sleazebag. :-) LGTM http://gwt-code-reviews.appspot.com/81802/diff/1/2#newcode53 Line 53: writer.die(In %s, only tab children are allowed., panelElem); ...only %s:%s children..., panelElem, panelElem.getPrefix(), TAB) http://gwt-code-reviews.appspot.com/81802/diff/1/2#newcode88 Line 88: writer.die(%s requires either a %s or %s, tabElem, HEADER, CUSTOM); writer.die(%1$s requires either a %2$s:%3$s or %2$s:%4$s, tabElem, tabElem.getPrefix(), HEADER, CUSTOM) http://gwt-code-reviews.appspot.com/81802/diff/1/2#newcode129 Line 129: private boolean hasAttribute(XMLElement child, final String attribute) { Should be called hasTag, right? Probably my bad. http://gwt-code-reviews.appspot.com/81802/diff/1/4 File user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/81802/diff/1/4#newcode135 Line 135: tabBar.getElement().getStyle().setWidth(16384, Unit.PX); Is this on purpose? http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Adds TabLayoutPanelParser.
http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Adds TabLayoutPanelParser.
LGTY? http://gwt-code-reviews.appspot.com/81802/diff/12/15 File user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/81802/diff/12/15#newcode135 Line 135: tabBar.getElement().getStyle().setWidth(16384, Unit.PX); This really does have a comment on my local client. The upload script seems to have skipped this file... http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Adds TabLayoutPanelParser.
http://gwt-code-reviews.appspot.com/81802/diff/1/2 File user/src/com/google/gwt/uibinder/parsers/TabLayoutPanelParser.java (right): http://gwt-code-reviews.appspot.com/81802/diff/1/2#newcode47 Line 47: DockLayoutPanelParser.getFullyQualifiedEnumName(unit)); Yup. Much better this than copy paste, nice. http://gwt-code-reviews.appspot.com/81802/diff/12/15 File user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/81802/diff/12/15#newcode135 Line 135: tabBar.getElement().getStyle().setWidth(16384, Unit.PX); Sorry, still confused here. So this is on purpose? If so, can you add the comment and put the magic number in a constant? http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by claude...@gmail.com: tested with iceweasel 3.5 from sid... worked well! For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6398 committed - Add unshift(), join(), and setLength() methods to JsArray types....
Revision: 6398 Author: rj...@google.com Date: Fri Oct 16 12:49:04 2009 Log: Add unshift(), join(), and setLength() methods to JsArray types. Patch by: bobv http://code.google.com/p/google-web-toolkit/source/detail?r=6398 Modified: /trunk/user/src/com/google/gwt/core/client/JsArray.java /trunk/user/src/com/google/gwt/core/client/JsArrayBoolean.java /trunk/user/src/com/google/gwt/core/client/JsArrayInteger.java /trunk/user/src/com/google/gwt/core/client/JsArrayNumber.java /trunk/user/src/com/google/gwt/core/client/JsArrayString.java /trunk/user/test/com/google/gwt/core/client/JsArrayTest.java === --- /trunk/user/src/com/google/gwt/core/client/JsArray.java Wed Apr 8 17:12:14 2009 +++ /trunk/user/src/com/google/gwt/core/client/JsArray.java Fri Oct 16 12:49:04 2009 @@ -1,12 +1,12 @@ /* * Copyright 2008 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the License); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -18,10 +18,10 @@ /** * A simple wrapper around a homogeneous native array of * {...@link JavaScriptObject} values. - * + * * This class may not be directly instantiated, and can only be returned from a * native method. For example, - * + * * code * native JsArrayJavaScriptObject getNativeArray() /*-{ * return [ @@ -31,7 +31,7 @@ * ]; * }-* /; * /code - * + * * @param T the concrete type of object contained in this array */ public class JsArrayT extends JavaScriptObject extends JavaScriptObject { @@ -41,18 +41,36 @@ /** * Gets the object at a given index. - * + * * @param index the index to be retrieved - * @return the object at the given index, or codenull/code if none - * exists + * @return the object at the given index, or codenull/code if none exists */ public final native T get(int index) /*-{ return this[index]; }-*/; + /** + * Convert each element of the array to a String and join them with a comma + * separator. The value returned from this method may vary between browsers + * based on how JavaScript values are converted into strings. + */ + public final String join() { +// As per JS spec +return join(,); + } + + /** + * Convert each element of the array to a String and join them with a comma + * separator. The value returned from this method may vary between browsers + * based on how JavaScript values are converted into strings. + */ + public final native String join(String separator) /*-{ +return this.join(separator); + }-*/; + /** * Gets the length of the array. - * + * * @return the array length */ public final native int length() /*-{ @@ -68,10 +86,10 @@ /** * Sets the object value at a given index. - * + * * If the index is out of bounds, the value will still be set. The array's * length will be updated to encompass the bounds implied by the added object. - * + * * @param index the index to be set * @param value the object to be stored */ @@ -79,12 +97,30 @@ this[index] = value; }-*/; + /** + * Reset the length of the array. + * + * @param newLength the new length of the array + */ + public final native void setLength(int newLength) /*-{ +this.length = newLength; + }-*/; + /** * Shifts the first value off the array. + * * @return the shifted value */ public final native T shift() /*-{ return this.shift(); }-*/; - -} + + /** + * Shifts a value onto the beginning of the array. + * + * @param value the value to the stored + */ + public final native void unshift(T value) /*-{ +this.unshift(value); + }-*/; +} === --- /trunk/user/src/com/google/gwt/core/client/JsArrayBoolean.java Wed Apr 8 17:12:14 2009 +++ /trunk/user/src/com/google/gwt/core/client/JsArrayBoolean.java Fri Oct 16 12:49:04 2009 @@ -1,12 +1,12 @@ /* * Copyright 2008 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the License); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -17,10 +17,10 @@ /** * A simple wrapper around a homogeneous native
[gwt-contrib] Re: Adds TabLayoutPanelParser.
http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Adds TabLayoutPanelParser.
LGTM http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Adds TabLayoutPanelParser.
On 2009/10/16 20:09:18, Ray Ryan wrote: LGTM Thanks. Committed at r6399. http://gwt-code-reviews.appspot.com/81802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6399 committed - Adds TabLayoutPanelParser....
Revision: 6399 Author: j...@google.com Date: Fri Oct 16 13:11:56 2009 Log: Adds TabLayoutPanelParser. Review: http://gwt-code-reviews.appspot.com/81802 http://code.google.com/p/google-web-toolkit/source/detail?r=6399 Added: /trunk/user/src/com/google/gwt/uibinder/parsers/TabLayoutPanelParser.java Modified: /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/uibinder/parsers/TabLayoutPanelParser.java Fri Oct 16 13:11:56 2009 @@ -0,0 +1,151 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.uibinder.parsers; + +import com.google.gwt.core.ext.UnableToCompleteException; +import com.google.gwt.core.ext.typeinfo.JClassType; +import com.google.gwt.dom.client.Style.Unit; +import com.google.gwt.uibinder.rebind.UiBinderWriter; +import com.google.gwt.uibinder.rebind.XMLElement; +import com.google.gwt.user.client.ui.TabLayoutPanel; + +/** + * Parses {...@link TabLayoutPanel} widgets. + */ +public class TabLayoutPanelParser implements ElementParser { + + private static class Children { +XMLElement body; +XMLElement header; +XMLElement customHeader; + } + + private static final String CUSTOM = customHeader; + private static final String HEADER = header; + private static final String TAB = tab; + + public void parse(XMLElement panelElem, String fieldName, JClassType type, + UiBinderWriter writer) throws UnableToCompleteException { +// TabLayoutPanel requires tabBar size and unit ctor args. +double size = panelElem.consumeDoubleAttribute(barHeight); +Unit unit = panelElem.consumeEnumAttribute(barUnit, Unit.class); + +String enumName = DockLayoutPanelParser.getFullyQualifiedEnumName(unit); +JClassType tlpType = writer.getOracle().findType( +TabLayoutPanel.class.getName()); +writer.setFieldInitializerAsConstructor(fieldName, tlpType, +Double.toString(size), enumName); + +// Parse children. +for (XMLElement tabElem : panelElem.consumeChildElements()) { + // Get the tab element. + if (!isElementType(panelElem, tabElem, TAB)) { +writer.die(In %s, only %s:%s children are allowed., panelElem, +panelElem.getPrefix(), TAB); + } + + // Find all the children of the tab. + Children children = findChildren(tabElem, writer); + + // Parse the child widget. + if (children.body == null) { +writer.die(%s must have a child widget, tabElem); + } + if (!writer.isWidgetElement(children.body)) { +writer.die(In %s, %s must be a widget, tabElem, children.body); + } + String childFieldName = writer.parseElementToField(children.body); + + // Parse the header. + if (children.header != null) { +HtmlInterpreter htmlInt = HtmlInterpreter.newInterpreterForUiObject( +writer, fieldName); +String html = children.header.consumeInnerHtml(htmlInt); +writer.addStatement(%s.add(%s, \%s\, true);, fieldName, +childFieldName, html); + } else if (children.customHeader != null) { +XMLElement headerElement = + children.customHeader.consumeSingleChildElement(); + +if (!writer.isWidgetElement(headerElement)) { + writer.die(In %s of %s, %s is not a widget, children.customHeader, + tabElem, headerElement); +} + +String headerField = writer.parseElementToField(headerElement); +writer.addStatement(%s.add(%s, %s);, fieldName, childFieldName, +headerField); + } else { +// Neither a header or customHeader. +writer.die(%1$s requires either a %2$s:%3$s or %2$s:%4$s, +tabElem, tabElem.getPrefix(), HEADER, CUSTOM); + } +} + } + + private Children findChildren(final XMLElement elem, + final UiBinderWriter writer) throws UnableToCompleteException { +final Children children = new Children(); + +elem.consumeChildElements(new XMLElement.InterpreterBoolean() { + public Boolean interpretElement(XMLElement child) + throws UnableToCompleteException { + +if (hasTag(child, HEADER)) { + assertFirstHeader(); + children.header = child; + return true; +} + +if (hasTag(child, CUSTOM)) { +
[gwt-contrib] Re: Addition of Message Transport API
http://gwt-code-reviews.appspot.com/80803 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Addition of Message Transport API
This contains the wrong patch. I'll send out a new review and delete this one. http://gwt-code-reviews.appspot.com/80803 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Code Review Request: Addition of the Message Transport API
Reviewers: mmendez, Description: This patch adds the message transport API that users can use to communicate with the Development Mode Server. Note that all aspects of this have not been tested as yet (this code is slightly different than the code that you tested). I'll run it through a full test once the rest of the pieces needed to communicate with the Dev Mode View in Eclipse are in place. Please review this at http://gwt-code-reviews.appspot.com/81805 Affected files: dev/core/src/com/google/gwt/dev/shell/remoteui/MessageProcessor.java dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6400 committed - Add $entry magic function to guarantee correct entry and exit of GWT c...
Revision: 6400 Author: rj...@google.com Date: Fri Oct 16 14:04:54 2009 Log: Add $entry magic function to guarantee correct entry and exit of GWT code from ex Patch by: bobv Review by: scottb, bruce, rjrjr, jgw http://code.google.com/p/google-web-toolkit/source/detail?r=6400 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java /trunk/dev/core/src/com/google/gwt/dev/js/ast/JsRootScope.java /trunk/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java /trunk/user/src/com/google/gwt/core/client/impl/Impl.java === --- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html Thu Oct 15 08:36:29 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html Fri Oct 16 14:04:54 2009 @@ -4,7 +4,7 @@ //separate functions. var $wnd = parent; var $doc = $wnd.document; -var $moduleName, $moduleBase +var $moduleName, $moduleBase, $entry ,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null; // Lightweight metrics if ($stats) { === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java Tue Oct 13 16:57:19 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java Fri Oct 16 14:04:54 2009 @@ -760,6 +760,11 @@ JMethodBody body = (JMethodBody) bootStrapMethod.getBody(); JBlock block = body.getBlock(); + +// Also remember $entry, which we'll handle specially in GenerateJsAst +JMethod registerEntry = program.getIndexedMethod(Impl.registerEntry); +program.addEntryMethod(registerEntry); + for (String mainClassName : mainClassNames) { block.addStmt(makeStatsCalls(program, mainClassName)); JDeclaredType mainType = program.getFromTypeMap(mainClassName); @@ -986,10 +991,12 @@ } } catch (ParserConfigurationException e) { throw new InternalCompilerException( -Error reading compile report information that was just generated, e); +Error reading compile report information that was just generated, +e); } catch (SAXException e) { throw new InternalCompilerException( -Error reading compile report information that was just generated, e); +Error reading compile report information that was just generated, +e); } dashboard.generateForOnePermutation(); reportArtifacts = outDir.getArtifacts(); === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java Fri Aug 21 10:53:16 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java Fri Oct 16 14:04:54 2009 @@ -1453,23 +1453,37 @@ ListJsStatement globalStmts) { /** * pre + * var $entry = Impl.registerEntry(); * function gwtOnLoad(errFn, modName, modBase){ * $moduleName = modName; * $moduleBase = modBase; * if (errFn) { * try { - * init(); + * $entry(init)(); * } catch(e) { * errFn(modName); * } * } else { - * init(); + * $entry(init)(); * } * } * /pre */ SourceInfo sourceInfo = program.createSourceInfoSynthetic( GenerateJavaScriptAST.class, gwtOnLoad); + + JsName entryName = topScope.findExistingName($entry); + entryName.setObfuscatable(true); + JsVar entryVar = new JsVar(sourceInfo, entryName); + JsInvocation registerEntryCall = new JsInvocation(sourceInfo); + JsFunction registerEntryFunction = indexedFunctions.get(Impl.registerEntry); + registerEntryCall.setQualifier(registerEntryFunction.getName().makeRef( + sourceInfo)); + entryVar.setInitExpr(registerEntryCall); + JsVars entryVars = new JsVars(sourceInfo); + entryVars.add(entryVar); + globalStmts.add(entryVars); + JsName gwtOnLoadName = topScope.declareName(gwtOnLoad); gwtOnLoadName.setObfuscatable(false); JsFunction gwtOnLoad = new JsFunction(sourceInfo, topScope, @@ -1501,10 +1515,15 @@ jsIf.setElseStmt(callBlock); jsTry.setTryBlock(callBlock); for (JsFunction func : entryFuncs) { -if (func != null) { +if (func == registerEntryFunction) { + continue; +} else if (func != null) { JsInvocation call = new JsInvocation(sourceInfo); - call.setQualifier(func.getName().makeRef(sourceInfo)); - callBlock.getStatements().add(call.makeStmt()); + call.setQualifier(entryName.makeRef(sourceInfo)); +
[gwt-contrib] [google-web-toolkit] r6401 committed - Update user code to use $entry....
Revision: 6401 Author: rj...@google.com Date: Fri Oct 16 14:48:33 2009 Log: Update user code to use $entry. Patch by: bobv Review by: jgw http://gwt-code-reviews.appspot.com/77813 http://code.google.com/p/google-web-toolkit/source/detail?r=6401 Modified: /trunk/user/src/com/google/gwt/http/client/Request.java /trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java /trunk/user/src/com/google/gwt/layout/client/LayoutImplIE6.java /trunk/user/src/com/google/gwt/user/client/AsyncProxy.java /trunk/user/src/com/google/gwt/user/client/DOM.java /trunk/user/src/com/google/gwt/user/client/HTTPRequest.java /trunk/user/src/com/google/gwt/user/client/Timer.java /trunk/user/src/com/google/gwt/user/client/Window.java /trunk/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java /trunk/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java /trunk/user/src/com/google/gwt/user/client/impl/HTTPRequestImpl.java /trunk/user/src/com/google/gwt/user/client/impl/HistoryImpl.java /trunk/user/src/com/google/gwt/user/client/impl/HistoryImplIE6.java /trunk/user/src/com/google/gwt/user/client/impl/HistoryImplTimer.java /trunk/user/src/com/google/gwt/user/client/impl/WindowImpl.java /trunk/user/src/com/google/gwt/user/client/impl/WindowImplIE.java /trunk/user/src/com/google/gwt/user/client/ui/FormPanel.java /trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java /trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java /trunk/user/src/com/google/gwt/user/client/ui/impl/FormPanelImpl.java /trunk/user/src/com/google/gwt/user/client/ui/impl/FormPanelImplIE6.java /trunk/user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplIE6.java /trunk/user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplMozilla.java /trunk/user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplStandard.java /trunk/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java === --- /trunk/user/src/com/google/gwt/http/client/Request.java Mon Mar 16 16:27:28 2009 +++ /trunk/user/src/com/google/gwt/http/client/Request.java Fri Oct 16 14:48:33 2009 @@ -15,8 +15,6 @@ */ package com.google.gwt.http.client; -import com.google.gwt.core.client.GWT; -import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; import com.google.gwt.user.client.Timer; import com.google.gwt.xhr.client.XMLHttpRequest; @@ -148,7 +146,7 @@ * and set this field to null. */ private XMLHttpRequest xmlHttpRequest; - + /** * Only used for building a * {...@link com.google.gwt.user.client.rpc.impl.FailedRequest}. @@ -265,33 +263,6 @@ * reaches 4 (LOADED). */ void fireOnResponseReceived(RequestCallback callback) { -UncaughtExceptionHandler handler = GWT.getUncaughtExceptionHandler(); -if (handler != null) { - fireOnResponseReceivedAndCatch(handler, callback); -} else { - fireOnResponseReceivedImpl(callback); -} - } - - /* - * Stops the current HTTPRequest timer if there is one. - */ - private void cancelTimer() { -if (timer != null) { - timer.cancel(); -} - } - - private void fireOnResponseReceivedAndCatch(UncaughtExceptionHandler handler, - RequestCallback callback) { -try { - fireOnResponseReceivedImpl(callback); -} catch (Throwable e) { - handler.onUncaughtException(e); -} - } - - private void fireOnResponseReceivedImpl(RequestCallback callback) { if (xmlHttpRequest == null) { // the request has timed out at this point return; @@ -316,6 +287,15 @@ callback.onResponseReceived(this, response); } } + + /* + * Stops the current HTTPRequest timer if there is one. + */ + private void cancelTimer() { +if (timer != null) { + timer.cancel(); +} + } /* * Method called when this request times out. @@ -340,22 +320,20 @@ * ol * liOn Mozilla, after a network error, attempting to read the status code * results in an exception being thrown. See a - * href=https://bugzilla.mozilla.org/show_bug.cgi?id=238559;https://bugzilla.mozilla.org/show_bug.cgi?id=238559/a. - * /li - * liOn Safari, if the HTTP response does not include any response text. - * See a - * href=http://bugs.webkit.org/show_bug.cgi?id=3810;http://bugs.webkit.org/show_bug.cgi?id=3810/a. - * /li + * href=https://bugzilla.mozilla.org/show_bug.cgi?id=238559; + * https://bugzilla.mozilla.org/show_bug.cgi?id=238559/a./li + * liOn Safari, if the HTTP response does not include any response text. See + * a + * href=http://bugs.webkit.org/show_bug.cgi?id=3810;http://bugs.webkit.org + * /show_bug.cgi?id=3810/a./li * /ol * - * @param xhr the JavaScript codeXmlHttpRequest/code object - * to test + * @param xhr the JavaScript codeXmlHttpRequest/code object to test
[gwt-contrib] Re: RR : GWT 2.0: Initial thoughts on $entry
http://gwt-code-reviews.appspot.com/77810/diff/1007/30 File user/src/com/google/gwt/core/client/impl/Impl.java (right): http://gwt-code-reviews.appspot.com/77810/diff/1007/30#newcode166 Line 166: // What is the correct return value here or should we re-throw? Additionally, this could be a general purpose feature, not just something for event handlers. When you consider the general case, letting it return an object looks like a cheap and sometimes helpful generalization. http://gwt-code-reviews.appspot.com/77810 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Code Review Request: Addition of the Message Transport API
Reviewers: mmendez, Description: Added DevModeServiceServer. Implements request handling for DevModeService requests. Needed to add a skeleton RemoteUI class as well; it still needs to be filled in. The implementation of DevModeServiceServer made me realize that I was missing capability exchange message types. Updated the .proto file, and the generated Java file. Also added a method to MessageProcessor that allows for the sending of a response message. This patch depends on http://gwt-code-reviews.appspot.com/81805 Please review this at http://gwt-code-reviews.appspot.com/81806 Affected files: dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceServer.java dev/core/src/com/google/gwt/dev/shell/remoteui/MessageProcessor.java dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteMessageProto.java dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java dev/core/src/com/google/gwt/dev/shell/remoteui/remotemessage.proto --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request: Addition of the Message Transport API
Actually, this patch won't work, as the other has not been committed as yet. I'll nix this issue and send you another one that will work properly. http://gwt-code-reviews.appspot.com/81806 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Code Review Request: Addition of the DevModeService Server
Reviewers: mmendez, Description: Added DevModeServiceServer. Implements request handling for DevModeService. Needed to add a skeleton RemoteUI class as well; it still needs to be filled in. The implementation of DevModeServiceServer made me realize that I was missing capability exchange message types. Updated the proto file and the generated Java file accordingly. Also added a method to MessageProcessor that allows for the sending of a response message. This patch depends on issue reitveld issue #81805 Please review this at http://gwt-code-reviews.appspot.com/80805 Affected files: A dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceServer.java M dev/core/src/com/google/gwt/dev/shell/remoteui/MessageProcessor.java M dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteMessageProto.java A dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java M dev/core/src/com/google/gwt/dev/shell/remoteui/remotemessage.proto --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6404 committed - Fix JsInliner improperly inlining array, object, and function literals...
Revision: 6404 Author: cromwellian Date: Fri Oct 16 16:16:55 2009 Log: Fix JsInliner improperly inlining array, object, and function literals. Patch by: cromwellian Review by: spoon, scottb http://code.google.com/p/google-web-toolkit/source/detail?r=6404 Modified: /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.javaMon Jun 22 10:19:32 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.javaFri Oct 16 16:16:55 2009 @@ -96,6 +96,16 @@ public boolean affectedBySideEffects() { return affectedBySideEffects; } + +@Override +public void endVisit(JsArrayLiteral x, JsContextJsExpression ctx) { + affectedBySideEffects = true; +} + +@Override +public void endVisit(JsFunction x, JsContextJsExpression ctx) { + affectedBySideEffects = true; +} @Override public void endVisit(JsInvocation x, JsContextJsExpression ctx) { @@ -126,6 +136,11 @@ */ affectedBySideEffects = true; } + +@Override +public void endVisit(JsObjectLiteral x, JsContextJsExpression ctx) { + affectedBySideEffects = true; +} } /** === --- /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java Mon Jun 22 10:19:32 2009 +++ /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java Fri Oct 16 16:16:55 2009 @@ -28,6 +28,7 @@ public class JsInlinerTest extends OptimizerTestBase { private static class FixStaticRefsVisitor extends JsModVisitor { + public static void exec(JsProgram program) { (new FixStaticRefsVisitor()).accept(program); } @@ -35,13 +36,35 @@ @Override public void endVisit(JsFunction x, JsContextJsExpression ctx) { JsName name = x.getName(); - name.setStaticRef(x); + if (name != null) { +name.setStaticRef(x); + } } } + public void testInlineArrayLiterals() throws Exception { +String input = function a1(arg, x) { arg.x = x; return arg; } ++ function b1() { var x=a1([], 10); } b1();; +compare(input, input); + } + + public void testInlineFunctionLiterals() throws Exception { +String input = function a1(arg, x) { arg.x = x; return arg; } ++ function b1() { var x=a1(function (){}, 10); } b1();; +compare(input, input); +String input2 = function a1(arg, x) { arg.x = x; return arg; } ++ function b1() { var x=a1(function blah(){}, 10); } b1();; +compare(input2, input2); + } + + public void testInlineObjectLiterals() throws Exception { +String input = function a1(arg, x) { arg.x = x; return arg; } ++ function b1() { var x=a1({}, 10); } b1();; +compare(input, input); + } /** * A test for mutually-recursive functions. Setup: - * + * * pre * a - b, c * b - a, c @@ -71,6 +94,7 @@ input = optimize(input, JsSymbolResolver.class, FixStaticRefsVisitor.class, JsInliner.class, JsUnusedFunctionRemover.class); expected = optimize(expected); +System.err.println(Input vs ); assertEquals(expected, input); } } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : GWT 2.0: Initial thoughts on $entry
Bob, Hmm, I just caught this thread. It looks like I should be updating GWT-Exporter library to use this? GWT exporter can export non-static methods as well, I'm wondering how that meshes with expectations? -Ray On Mon, Oct 12, 2009 at 8:39 AM, b...@google.com wrote: Reviewers: jgw, Message: I'm looking for an initial vetting of the overall idea, not necessarily this implementation. Obviously, there are additional entry-points that need to be reworked and $entry need to detect reentrancy. Description: This is an attempt to rationalize how external JS code should call into a GWT module. A new module-level variable $entry will be defined to provide a wrapper function that will correctly enter and exit GWT code. Previously, where you might have written: $wnd.foo = @some.package.Class::staticMethod(typeArgs); you would now write $wnd.foo = $entry(@some.package.Class::staticMethod(typeArgs)); Right now, $entry just makes sure that the uncaught exception handler is called. Later on, it will ensure that the FinallyCommand stack gets flushed (e.g. to allow for efficient batching of StyleInjector calls). Please review this at http://gwt-code-reviews.appspot.com/77810 Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java M dev/core/src/com/google/gwt/dev/js/ast/JsRootScope.java M user/src/com/google/gwt/core/client/impl/Impl.java M user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java M user/src/com/google/gwt/user/client/impl/DOMImplStandard.java M user/src/com/google/gwt/user/client/impl/DOMImplTrident.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6406 committed - After upgrading HtmlUnit from 2.5 to 2.7-snapshot, sending an explicit...
Revision: 6406 Author: amitman...@google.com Date: Fri Oct 16 18:12:55 2009 Log: After upgrading HtmlUnit from 2.5 to 2.7-snapshot, sending an explicit QUIT message when the module transition happens does not seem to be required. Patch by: amitmanjhi Review by: jat (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6406 Modified: /trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelClient.java /trunk/dev/oophm/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java === --- /trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelClient.java Tue Oct 13 16:57:19 2009 +++ /trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelClient.java Fri Oct 16 18:12:55 2009 @@ -63,7 +63,6 @@ private final String url; private final String versionString; private boolean connected = false; - private boolean shouldDisconnect = false; private int protocolVersion; public BrowserChannelClient(String addressParts[], String url, @@ -124,9 +123,6 @@ new LoadModuleMessage(this, url, tabKey, sessionKey, moduleName, htmlUnitSessionHandler.getUserAgent()).send(); returnMessage = reactToMessages(htmlUnitSessionHandler, true); - if (shouldDisconnect) { -disconnectFromHost(); - } } logger.log(TreeLogger.DEBUG, loaded module, returnValue: + returnMessage.getReturnValue() + , isException: @@ -138,15 +134,8 @@ HtmlUnitSessionHandler handler) throws IOException, BrowserChannelException { ReturnMessage returnMessage = reactToMessages(handler, true); -if (shouldDisconnect) { - disconnectFromHost(); -} return returnMessage; } - - void setShouldDisconnect() { -shouldDisconnect = true; - } /* * Perform the initial interaction. Return true if interaction succeeds, false === --- /trunk/dev/oophm/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java Tue Oct 13 16:57:19 2009 +++ /trunk/dev/oophm/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java Fri Oct 16 18:12:55 2009 @@ -211,7 +211,6 @@ if (!newUrl.equals(currentUrl)) { // TODO: removeAllJobs for all windows? window.getWebWindow().getTopWindow().getJobManager().removeAllJobs(); - ((BrowserChannelClient) channel).setShouldDisconnect(); } } result = jsEngine.callFunction(htmlPage, jsFunction, jsContext, window, --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6407 committed - Removing -precompile option from all test targets because it can cause...
Revision: 6407 Author: jlaba...@google.com Date: Fri Oct 16 20:20:33 2009 Log: Removing -precompile option from all test targets because it can cause sporadic failures in timed, asynchronous tests. Patch by: jlabanca Review by: jat (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6407 Modified: /trunk/user/build.xml === --- /trunk/user/build.xml Fri Oct 16 09:36:03 2009 +++ /trunk/user/build.xml Fri Oct 16 20:20:33 2009 @@ -143,7 +143,7 @@ fileset id=test.web.remote.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.web.includes} excludes=${gwt.junit.testcase.web.excludes} / -gwt.junit test.args=${test.args} -out www -web -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module -precompile parallel +gwt.junit test.args=${test.args} -out www -web -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module test.out=${junit.out}/web-remote test.cases=test.web.remote.tests extraclasspaths @@ -163,7 +163,7 @@ includes=${gwt.junit.testcase.dev.includes} excludes=${gwt.junit.testcase.dev.excludes} / gwt.junit -test.args=${test.args} -out www -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module -precompile parallel +test.args=${test.args} -out www -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module test.out=${junit.out}/dev-remote test.cases=test.dev.remote.tests extraclasspaths path refid=test.extraclasspath / @@ -181,7 +181,7 @@ fileset id=test.emma.remote.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.dev.includes} excludes=${gwt.junit.testcase.dev.excludes} / - gwt.junit test.args=${test.args} -out www -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module -precompile parallel + gwt.junit test.args=${test.args} -out www -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module test.out=${junit.out}/emma-remote test.cases=test.emma.remote.tests extraclasspaths @@ -201,7 +201,7 @@ fileset id=test.emma.selenium.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.dev.includes} excludes=${gwt.junit.testcase.dev.excludes} / -gwt.junit test.args=${test.args} -out www -runStyle Selenium:${gwt.hosts.dev.selenium} -batch module -precompile parallel +gwt.junit test.args=${test.args} -out www -runStyle Selenium:${gwt.hosts.dev.selenium} -batch module test.out=${junit.out}/emma-selenium test.cases=test.emma.selenium.tests extraclasspaths @@ -221,7 +221,7 @@ fileset id=test.draft.remote.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.web.includes} excludes=${gwt.junit.testcase.web.excludes} / - gwt.junit test.args=${test.args} -draftCompile -web -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module -precompile parallel + gwt.junit test.args=${test.args} -draftCompile -web -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module test.out=${junit.out}/draft-remote test.cases=test.draft.remote.tests extraclasspaths @@ -239,7 +239,7 @@ fileset id=test.nometa.remote.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.web.includes} excludes=${gwt.junit.testcase.web.excludes} / - gwt.junit test.args=${test.args} -XdisableClassMetadata -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module -precompile parallel + gwt.junit test.args=${test.args} -XdisableClassMetadata -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module test.out=${junit.out}/nometa-remote test.cases=test.nometa.remote.tests extraclasspaths @@ -262,7 +262,7 @@ fileset id=test.web.selenium.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.web.includes} excludes=${gwt.junit.testcase.web.excludes} / -gwt.junit test.args=${test.args} -web -out www -runStyle Selenium:${gwt.hosts.web.selenium} -batch module -precompile parallel +gwt.junit test.args=${test.args} -web -out www -runStyle Selenium:${gwt.hosts.web.selenium} -batch module test.out=${junit.out}/web-selenium test.cases=test.web.selenium.tests extraclasspaths @@ -281,7 +281,7 @@ fileset id=test.dev.selenium.tests dir=${javac.junit.out} includes=${gwt.junit.testcase.dev.includes} excludes=${gwt.junit.testcase.dev.excludes} / -gwt.junit test.args=${test.args} -out www -runStyle Selenium:${gwt.hosts.dev.selenium} -batch module -precompile parallel +gwt.junit test.args=${test.args} -out www -runStyle Selenium:${gwt.hosts.dev.selenium} -batch module test.out=${junit.out}/dev-selenium test.cases=test.dev.selenium.tests extraclasspaths @@ -299,7 +299,7 @@ fileset
[gwt-contrib] [google-web-toolkit] r6409 committed - Add back a HostedMode entry point that logs a warning and redirects to...
Revision: 6409 Author: j...@google.com Date: Fri Oct 16 20:24:31 2009 Log: Add back a HostedMode entry point that logs a warning and redirects to DevMode. Patch by: jat Review by: amitmanjhi http://code.google.com/p/google-web-toolkit/source/detail?r=6409 Added: /trunk/dev/core/src/com/google/gwt/dev/HostedMode.java === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/dev/HostedMode.java Fri Oct 16 20:24:31 2009 @@ -0,0 +1,55 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev; + +import com.google.gwt.core.ext.TreeLogger; + +/** + * Support old name for this entry point, logging a warning message before + * redirecting to the new name. + */ +...@deprecated +public class HostedMode extends DevMode { + + /** + * Support old name for this entry point, logging a warning message before + * redirecting to the new name. + * + * @param args command-line arguments + */ + public static void main(String[] args) { +HostedMode hostedMode = new HostedMode(); +if (new ArgProcessor(hostedMode.options).processArgs(args)) { + hostedMode.run(); + // Exit w/ success code. + System.exit(0); +} +// Exit w/ non-success code. +System.exit(-1); + } + + @Override + protected boolean doStartup() { +if (!super.doStartup()) { + return false; +} +getTopLogger().log(TreeLogger.WARN, The class ++ HostedMode.class.getName() ++ is deprecated and will be removed -- use ++ DevMode.class.getName() + instead); +return true; + } +} --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6411 committed - Remove last traces of dev/oophm....
Revision: 6411 Author: j...@google.com Date: Fri Oct 16 22:24:33 2009 Log: Remove last traces of dev/oophm. Patch by: jat Review by: amitmanjhi (verbal) http://code.google.com/p/google-web-toolkit/source/detail?r=6411 Deleted: /trunk/dev/oophm Modified: /trunk/dev/build.xml /trunk/eclipse/dev/.classpath /trunk/eclipse/dev/.project /trunk/eclipse/samples/Showcase/Showcase.launch === --- /trunk/dev/build.xmlFri Oct 16 10:59:37 2009 +++ /trunk/dev/build.xmlFri Oct 16 22:24:33 2009 @@ -21,9 +21,6 @@ gwt.javac srcdir= destdir=${javac.junit.out} src path=core/src / src path=core/test / - src path=oophm/src / - src path=oophm/overlay / - src path=oophm/test / classpath pathelement location=${javac.out} / pathelement location=${alldeps.jar} / @@ -184,8 +181,6 @@ target name=compile depends=compiler.standalone, build.alldeps.jar description=Compiles this project gwt.javac srcdir= excludes=${filter.pattern} src path=core/src / - src path=oophm/src / - src path=oophm/overlay / classpath pathelement location=${alldeps.jar} / pathelement location=${gwt.tools.lib}/junit/junit-3.8.1.jar / @@ -217,9 +212,6 @@ filename name=org/eclipse/**/*.java negate=yes / filename name=org/apache/**/*.java negate=yes / /fileset - fileset dir=oophm/src / - fileset dir=oophm/overlay / - fileset dir=oophm/test / /gwt.checkstyle gwt.checkstyle @@ -235,14 +227,11 @@ pathelement location=${alldeps.jar} / !-- TODO: the following six items are needed because dev (alone) does not adhere to the .../{src,super,test} convention, having a split -between core, oophm, and (historically) the OS platforms. When +between core and (historically) oophm and the OS platforms. When that unifies, these should go away. -- pathelement location=${gwt.root}/${project.tail}/core/src / pathelement location=${gwt.root}/${project.tail}/core/super / pathelement location=${gwt.root}/${project.tail}/core/test / -pathelement location=${gwt.root}/${project.tail}/oophm/src / -pathelement location=${gwt.root}/${project.tail}/oophm/overlay / -pathelement location=${gwt.root}/${project.tail}/oophm/test / !-- Pull in gwt-dev and gwt-user sources for .gwt.xml files -- pathelement location=${gwt.root}/user/src/ / pathelement location=${gwt.root}/user/super/ / @@ -255,8 +244,6 @@ mkdir dir=${gwt.build.lib} / outofdate sourcefiles -fileset dir=oophm/src excludes=**/package.html/ -fileset dir=oophm/overlay excludes=**/package.html/ fileset dir=core/src exclude name=**/package.html/ exclude name=**/*.properties/ !-- copied and/or filtered into bin -- @@ -273,8 +260,6 @@ /targetfiles sequential gwt.jar - fileset dir=oophm/src excludes=**/package.html/ - fileset dir=oophm/overlay excludes=**/package.html/ fileset dir=core/src exclude name=**/package.html/ exclude name=**/*.properties/ !-- copied and/or filtered into bin -- === --- /trunk/eclipse/dev/.classpath Tue Oct 13 19:01:20 2009 +++ /trunk/eclipse/dev/.classpath Fri Oct 16 22:24:33 2009 @@ -2,9 +2,6 @@ classpath classpathentry kind=src path=core/src/ classpathentry kind=src path=core/test/ - classpathentry kind=src path=oophm/overlay/ - classpathentry kind=src path=oophm/src/ - classpathentry kind=src path=oophm/test/ classpathentry excluding=com/google/gwt/dev/jjs/intrinsic/ kind=src path=core/super/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=var path=GWT_TOOLS/lib/apache/ant-1.6.5.jar sourcepath=/GWT_TOOLS/lib/apache/ant-1.6.5-src.zip/ === --- /trunk/eclipse/dev/.project Tue Oct 13 19:01:20 2009 +++ /trunk/eclipse/dev/.project Fri Oct 16 22:24:33 2009 @@ -20,10 +20,5 @@ type2/type locationURIGWT_ROOT/dev/core/locationURI /link - link - nameoophm/name - type2/type - locationURIGWT_ROOT/dev/oophm/locationURI - /link /linkedResources /projectDescription === --- /trunk/eclipse/samples/Showcase/Showcase.launch Tue Oct 13 16:57:19 2009 +++ /trunk/eclipse/samples/Showcase/Showcase.launch Fri Oct 16 22:24:33 2009 @@ -1,5 +1,11 @@ ?xml version=1.0 encoding=UTF-8 standalone=no? launchConfiguration type=org.eclipse.jdt.launching.localJavaApplication +listAttribute