when tried to run using ImmutableResourceBundle 'No source code is availabele ' error coms
hi experts, When I tried to add ImmutableResourceBundle and tried to run the example file i got error like ERROR] Line 27: No source code is available for type com.satmetrix.core.uifwk.swt.resourcebundle.SMXResourceBundle; did you forget to inherit a required module? The steps i did is as follows.. 1) inherits name='com.google.gwt.libideas.ImmutableResources'/ added in my .gwt.xml file 2) Create an interface like public interface MyResourceBundle extends ImmutableResourceBundle { public static final MyResourceBundle INSTANCE = (MyResourceBundle ) GWT.create(MyResourceBundle .class); /** @gwt.resource css/mycss.css */ public TextResource css(); } 3)tried to call from onmoduleload Window.alert(MyResourceBundle .INSTANCE.satmetrixcss().getText()); is there any additional steps i missed pls help --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
when tried to run using ImmutableResourceBundle 'No source code is availabele ' error coms
hi experts, When I tried to add ImmutableResourceBundle and tried to run the example file i got error like ERROR] Line 27: No source code is available for type com.MyApp.resourcebundle.MyResourceBundle; did you forget to inherit a required module? The steps i did is as follows.. 1) inherits name='com.google.gwt.libideas.ImmutableResources'/ added in my .gwt.xml file 2) Create an interface like public interface MyResourceBundle extends ImmutableResourceBundle { public static final MyResourceBundle INSTANCE = (MyResourceBundle ) GWT.create(MyResourceBundle .class); /** @gwt.resource css/mycss.css */ public TextResource css(); } 3)tried to call from onmoduleload Window.alert(MyResourceBundle .INSTANCE.css().getText()); is there any additional steps i missed pls help --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to use the applicationCreater on windows
you have to use command prompt. Go Run from the start menu, type Command and hit enter. You then have to navigate to the right directory using Dos commands, and follow instructions from there. Alternatively, I like to have TweakAll installed so I can get a CommandPrompt Here option on my directorys. Which opens Command at the correct position. On Oct 14, 11:49 pm, Talha [EMAIL PROTECTED] wrote: Hey guys i jus downloaded the google web toolkit on my windows computer and i have been following the get started section from samples onwards but when i come up to creating a new application from scratch im having dificulties as the applicationCreator does not open so that i can enter the command that will create the subdirectories itself. i have followed the step how to connect the sdk server by specifiying and editing the path in enviornmental variable in my computer. but nothing i could use some guidance as im completlty new and have limited knowlegde. help would be really appreciated thanks T --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Norton 360 slows GWT app?
what exactly is slow? * the time it needs to load the app * the app itself during execution? On Oct 15, 4:32 am, makoki [EMAIL PROTECTED] wrote: Can't find an explanation about it and hope anyone can tell me something, using Norton 360 in a Windows Vista environment seems to be slowing down GWT app incredibly. The app has been tested in different OS and browsers (MAC/WinXP/Vista/ FF3/Safari/ie6/ie7) but it seems to slow down when Vista/Norton 360 is activated. Did anyone found the same problem? Thx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Ant tasks ZipException
I'm not sure that the classloader's type would be a reliable check. Is there a practical way of knowing if any given classloader would be compatible? Just giving up if you don't find one specific classloader would cause GWTCompiler to fail in any environment that replaced that classloader, even with a compatible substitute. What I can suggest is a GwtCompilerTask for Ant that I've started working on in the Incubator. It's very much an alpha version, but it works in my tests and handles forking automatically. You can find it in the Incubator trunk and I also did a quick write-uphttp://publicint.blogspot.com/2008/10/introducing-gwtcompilertask.htmlabout it yesterday. Feedback is very much appreciated. On Wed, Oct 15, 2008 at 8:00 AM, walden [EMAIL PROTECTED] wrote: Yeah, I lost a lot of time on this a year and a half ago when I was trying to revive someone's GWT compile ant task code which was apparently written for GWT 1.3 or earlier. I've forgotten the specifics now, but it has to do with the search order used by the different loaders (I think). Anyway, I was wondering whether it would make sense to write an issue against this. Would it be feasible for the GWT compiler to examine its context classloader (or whatever it uses to find GWT resources) and fail fast if it's the wrong one? This problem may not be too common, but when it occurs, it tends to dumbfound us for a while. Walden On Oct 14, 3:43 pm, birwin [EMAIL PROTECTED] wrote: Walden, When I place fork=true in the java tasks, it compiles correctly. I had to adjust the memory as I ran out of memory during the build, but it appears to work fine now. I appreciate the input. I tried to look on the Internet to find more information regarding why the GWTCompiler run in a java Ant task needs fork=true, but I could find no information. It works anyway, even if I don't understand why, so I will move on... Thank you Walden and thank you Isaac for your time and help. - Brian I. On Oct 14, 6:30 am, walden [EMAIL PROTECTED] wrote: Hi Guys, Not sure if this could be related, but your ant target that uses the java task to run the GWT compile needs to set fork=true. This takes the ant classloader out of the equation. As I recall, the ant classloader defeates GWT; I don't remember the specifics. Walden On Oct 13, 8:42 pm, Isaac Truett [EMAIL PROTECTED] wrote: path refid=compile.cp / path refid=class.path / What's in these? Are they also in your stripped-down build? On Mon, Oct 13, 2008 at 6:39 PM, birwin [EMAIL PROTECTED] wrote: Well, I have created from scratch the simplest GWT application I could think of... I created the simplest build file I could think of (No Ivy dependency management, no code... Just a blank web page) and then attempted to build the project... I got exactly the same results as above. I decided to try a different version of Ant just to ensure it had nothing to do with Ant, and again the same results. I am not sure what to do at this point. I may try the build on another machine just to make sure it is not my environment. I may have to rely on a non-ant build (Cypal Studio in Eclipse) which seems to work without any problems. Unfortunately, there is no way to automate that process. - Brian I. On Oct 13, 12:24 pm, Isaac Truett [EMAIL PROTECTED] wrote: Sorry I couldn't identify the exact problem. It certainly is an odd error. The only other time I've seen it fail to find java.lang.Object was in this thread: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse... ... where I solved the problem by dumping my classpath and starting from scratch, basically. I never did find exactly what was causing the problem, but hopefully starting from scratch will work for you, too. On Mon, Oct 13, 2008 at 2:20 PM, birwin [EMAIL PROTECTED] wrote: It does contain com/google/gwt/emul/java/lang/Object.java Just to make sure the GWTCompile task handles spaces in its classpath, I moved the user.jar to the root directory and created a new classpath that just had that JAR. I tried a recompile and included the new classpath and again it failed with the same error. I believe I am going to start from scratch and try to do a Hello World-type build where I don't include any Ivy dependencies, etc... and everything is very basic. Once I have that working, I will return to debugging this build. If I find a solution, I will post it here when I finish. Thank you for your help I appreciate it. - Brian I. On Oct 13, 12:03 pm, Isaac Truett [EMAIL PROTECTED] wrote: That looks fine to me. I'm really fishing now... could you open up gwt-user.jar and confirm that it contains
Re: SuggestBox something wrong with style
Yup, two things you can do: 1. Look at the Javadoc for the SuggestBox API and note the various .gwt-* css rules used by default to style the widget and start using them. 2. Your screenshot is of Hosted Mode. Run your application is Web Mode and use Firebug or equivalent to get down and dirty into the DOM to see what's broken. Walden On Oct 15, 6:42 am, kaspar.ru [EMAIL PROTECTED] wrote: Hello, I'm trying to use a SuggestBox but it shows incorrectly, something is broken in css http://farm4.static.flickr.com/3045/2943471769_a3b8e77e48_o.jpg here is the code MultiWordSuggestOracle oracle= new MultiWordSuggestOracle(); ListString candidats=new ArrayListString(); candidats.add(Hello2); candidats.add(Hello4); candidats.add(Hello3); candidats.add(3Hello); candidats.add(Hello1); candidats.add(Hello0); candidats.add(privet); oracle.addAll(candidats); SuggestBox suggestBox=new SuggestBox(oracle); RootPanel.get().add(suggestBox); --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Your opinion sought: Jetty or Tomcat?
I do extensive get development in Netbeans for GWT and very happy with the current setup minus increasing the maxmemory variable every time I restart Netbeans so I don't run out of memory when building the application. If I debug the project, I run in the GWT browser and can do incremental debug updates on code without restarting as long as method signatures don't change so I rarely have issues with startup time when debugging code. When I want to test in browser I simply run the project and it launches in my default browser fairly quickly. To do a clean build takes about 1 minute 20 seconds on a fairly fast box. Changing one file and selecting debug which will build and launch takes 1 minute 30 seconds where startup of gwt browser takes about 10 seconds. I would like to see faster incremental build times when changing only one file. I work around this by debugging/fixing bugs and doing incremental updates on the current debug session and test the new code. This way I don't repeat all the application steps to get to the same debug state to test the code changes. Netbeans does the update and recalls the method with the same values prior to the incremental update. The main point is I have a very productive and working environment where I have a war file automatically built by netbeans and couldn't think of any way to make it easier and I do nothing to mess with the xml for building and deploying. No problems with you making changes but hopefully it doesn't break what already works well in netbeans. It would be nice if incremental builds was faster. Thanks Scooter Willis On Oct 15, 7:49 am, walden [EMAIL PROTECTED] wrote: +1 well said. On Oct 14, 6:03 pm, Jason Essington [EMAIL PROTECTED] wrote: Since creating a usable server side configuration in the embedded servlet container is all but impossible for anything but the simplest projects, I think that the choice of embedded server is a non-issue. Since complicated configurations aren't really something you want to address in the embedded server, my vote would be for the simplest, fastest implementation that supports the simple case uses. So, if Jetty starts faster and is lighter weight, then great, use it. -jason On Oct 13, 2008, at 4:48 PM, Bruce Johnson wrote: Hi everyone, Hope you're enjoying 1.5. The GWT team has started putting together a 1.6 roadmap, which we'll publish as soon as we have it nailed down. Two of the areas we want to work on for 1.6 are some improvements to hosted mode startup time and a friendlier output directory structure (something that looks more .war-like). As part of this effort, we've all but decided to switch the hosted mode embedded HTTP server from Tomcat to Jetty. Would this break you? (And if so, how mad would you be if we did it anyway?) We figure most people who really care about the web.xml and so on are already using -noserver to have full control over their server config. Thanks, Bruce- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Client Side Exceptions
Sorry i forgot to mention this has always been a web mode issue for me. Hosted is fine Ive only really had this problem with runtime exceptions (although after having this problem twice i just catch Exception). I first found it when i had some code like this: private Widget o; public Object getO() {} public void setO(Widget o) {} public void doSomething() { try { o.aMethod(); } catch (NullPointerException ex) { System.out.println(caught); return; } System.out.println(Not caught): } with the resulting output: Not caught and when using the debugger i can clearly see its throwing a null. and if i add something like Window.alert(ex.getCause()); and make it catch Exception and run it in web mode i get something similar to NullPointerException (renamed because its JS i assume but practically the same). Sorry i cant remember exactly what it was called. I cant possibly the only person thats come across this??? On Oct 15, 1:53 pm, walden [EMAIL PROTECTED] wrote: Stephen, When you say i have to catch it using... you are giving an interpretation of the problem (or rather, your solution) instead of the problem itself. What happens if you write code to catch the exact exception thrown? Walden On Oct 15, 5:42 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am finding that often if i throw an exception in the client side then i have to catch it using catch (Exception ex) rather than catch (TheActualExceptionThrown ex). Does anyone else have this issue as i havent seen any posts on the issue and it seems pretty annoying. Thanks, Steve- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
I downloaded EXT 2.0.5 and i added it to my project Lothar Kimmeringer a écrit : [EMAIL PROTECTED] schrieb: this is the list of libraries i added to my project:gwt-dev- window.jar, gwt-user.jar, gwtext.jar.i don't know what javascript library you speak about.can you be more explicit please? Cited from http://code.google.com/p/gwt-ext/ snip GWT-Ext ... uses GWT and Ext 2.0.2 LGPL. [...] Ext 2.0.2 can be downloaded from here. snip have you downloaded Ext 2.0.2 and installed the coresponding libraries? Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
width and height attributes when replacing an Image URL
I was having problems with old images maintaing their width and height attributes when replaced with new images with the same url. i.e. the image at the url is replaced with a different image. Unfortunately, the option of changing the image file name to force new values for width and height was not an option in my case. While researching a solution, I discovered that if I add the following lines to remove the width and height attributes which are never updated when the image at the url are changed, the image is resized appropriately both in hosted and web mode. I am using GWT 1.4.61 DOM.removeAttribute(image.getElement(), width); DOM.removeAttribute(image.getElement(), height); --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Your opinion sought: Jetty or Tomcat?
If it's faster, go for it, don't see how it can break hosted mode. If a substantial amount of the hosted start-up time is actually the server, one alternative might be to have a built-in way to start up the server portion separately, and let it stay running while iterating client code. I find the server code to generally be more amenable to hot-swapping, while changes in client code often require a restart, so if it didn't have to restart the server each time that would be a big bonus. Of course I can currently set stuff up run the server separately on my own, but having the ability built-in seems more along the GWT philosophy of easy entry. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Applet clent RPC to GWT RemoteServiceServlet
Just an FYI. What we wound up doing is using Xstream and hibernate4gwt (to remove our cglib proxies) to convert our objects to xml and back on the applet side. This worked very well. On Oct 10, 12:35 pm, ialpert [EMAIL PROTECTED] wrote: My apologies for my own ignorance. I've been searching for a way to have an applet (something that is not client code) communicate with our existing gwt service. I can't find any direct implementor of MessageServiceAsync (it's always created with GWT.create()). Because i'm not in client code i can't make use of GWT.create(). I presume this means that the only implementation of MessageServiceAsync is a javascript one. This (http://groups.google.com/group/Google-Web-Toolkit/browse_thread/ thread/e40b1a5e24618f62/0ea20d351a1c96d6?lnk=gstq=gwt+rpc+from +applet#0ea20d351a1c96d6) posting seems to indicate there has been work done to allow for this here (http://code.google.com/p/ javaongems/). However this project seems to be dead, and still makes use of GWT.create() here (http://groups.google.com/group/javaongems/ browse_thread/thread/d3dfcbcb8ec5973a/ 8cdf407e93427b65#8cdf407e93427b65). Because we make use of Hibernate4Gwt It would be very convenient to continue to pass our existing objects over the same wire, and get all the corresponding functionality with the front end being an applet. Is anybody aware of a way to achieve this? Thanks I --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
caption panel css?
Hi, I don't see a reference to css in the caption panel, is this an oversight? I'm trying to apply css rules to the caption itself... Thanks, Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Who are using jcifs for NTLM authentication
Ok, I know a lot of people here are doing some form of authentication and some are doingNTLM because they reside within an enterprise framework that requires them to do so. After getting a bit tired of dealing with jcifs (and the reasonably large amounts of configuration one had to do to be able to get it working properly) I constructed a simpler (although less portable) solution. Right now I am trying to figure out whether it's worth the time to actually clean it up to the point where someone else can use it or if I should let it rest in piece inside my own codebase. Let me know. And if you want to build your own - look to JNA and the secur32.dll in newer (i.e. Windows 2000 and later) Windows versions. AcceptSecurityContext is your friend. It's not exactly hard, the most complex part is getting the Structs mapped out properly. n. -- I've had a wonderful time but this wasn't it. Groucho Marx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Serialization problem !!!!
Hi You should call : RPC.decodeRequest(payload,this.remoteServiceClass, *this*); *this* being the remote servlet (SerializationPoliciyProvider) To resolve the serialization policy (That allow the GWT serialization of Serializable). If no SerializationPoliciyProvider or his the resolution fails to DefaultPolicies (GWT 1.3) is applied and Object must be IsSerializable. You can look at: http://code.google.com/p/net-orcades-spring/source/browse/trunk/orcades-spring-gwt/src/main/java/net/orcades/spring/gwt/SpringGWTRemoteServlet.java from my Spring integration: http://code.google.com/p/net-orcades-spring/ hih On Wed, Oct 15, 2008 at 4:17 PM, Sam [EMAIL PROTECTED] wrote: Hello all, I have written a code which will integrate the GWT with spring . For this purpose I have overridden the public String processCall(String payload) methode. This works fine if any class which needs to be serilized is implementing isSerilizabel interface. However if I implement the serilizabel interface insted of isSerilizabel , I get serilization exception. Error occours when I try to decode the request by using following code. RPCRequest rpcRequest = RPC.decodeRequest(payload,this.remoteServiceClass); Is there any way by which my code will run there by implementing Serilizabel interface ONLY. Any white paper , any link will greatly be appriciated. Thanks, Samir -- Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Serialization problem !!!!
Sorry for my poor expression... If no SerializationPoliciyProvider is given (your case) or if the resolution fails GWT DefaultPolicies (GWT 1.3) is applied and Object must be IsSerializable. On Wed, Oct 15, 2008 at 4:54 PM, olivier nouguier [EMAIL PROTECTED] wrote: Hi You should call : RPC.decodeRequest(payload,this.remoteServiceClass, *this*); *this* being the remote servlet (SerializationPoliciyProvider) To resolve the serialization policy (That allow the GWT serialization of Serializable). If no SerializationPoliciyProvider or his the resolution fails to DefaultPolicies (GWT 1.3) is applied and Object must be IsSerializable. You can look at: http://code.google.com/p/net-orcades-spring/source/browse/trunk/orcades-spring-gwt/src/main/java/net/orcades/spring/gwt/SpringGWTRemoteServlet.java from my Spring integration: http://code.google.com/p/net-orcades-spring/ hih On Wed, Oct 15, 2008 at 4:17 PM, Sam [EMAIL PROTECTED] wrote: Hello all, I have written a code which will integrate the GWT with spring . For this purpose I have overridden the public String processCall(String payload) methode. This works fine if any class which needs to be serilized is implementing isSerilizabel interface. However if I implement the serilizabel interface insted of isSerilizabel , I get serilization exception. Error occours when I try to decode the request by using following code. RPCRequest rpcRequest = RPC.decodeRequest(payload,this.remoteServiceClass); Is there any way by which my code will run there by implementing Serilizabel interface ONLY. Any white paper , any link will greatly be appriciated. Thanks, Samir -- Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire. -- Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Two Panel With tree on the left side
Τhanks a lot! It worked like a charm!:) xxx On Sep 2, 4:16 pm, gregor [EMAIL PROTECTED] wrote: Hi Eleni, In the simplest possible form: a) Use a HorizontalPanel putting your tree in cell 0 and your message in cell 1 b) Have your main module class implement the TreeListener interface c) Register your main module class as a listener with your Tree c) In the onTreeItemSelected(TreeItem) method, you can set the message in the rightpanelfrom the selected TreeItem passed In a more complex application you might usetwoComposite panels, one for navigation (which might have more than one navigation widget in it, frequently a StackPanel full of them etc), and the other for displaying data associated with the selection. In this case it you might: - Put them either side in a HorizontalSplitPanel - Have the navigationpanelimplement TreeListener to listen for Tree events, plus any others navigation/selection type widgets present - Have the navigationpanelconsolidate such events internally and broadcast a ChangeEvent (i.e. have it implement SourcesChangeEvents) - Have the datapanelimplement ChangeListener - Register the datapanelas a ChangeListener with the navigationpanel This way the navigation and data display parts of the application are very loosely coupled: and their code does not interfere with each other, they can be easily swapped in and out as development proceeds and there is a clear separation of concerns. regards gregor On Sep 1, 7:23 pm, eleni [EMAIL PROTECTED] wrote: Hi all! First of all I would like to mention that I just started dealing with GWT so please be patient:) What I wanna ask is how I could create apanel, where on the left side will be a tree and when you click on a tree-item, something (a message for instance) will appear on the right side. I am familiar with, trees and Panels (:P) I don't need any code! Just the steps and I will be ok!!! Thanks all in advance! Eleni --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
URI encoding for custom servlets
Hi, All! GWT 1.5.2/Windows. We are trying to implement servlets (e.g.: public class ExcelServlet extends HttpServlet) to serve generated Excel files for GWT applications. We pass certain parameters for servlet via URI encoding, e.g. link.append(a target=\_blank\ href=\./excelServlet?); link.append(session=).append(URL.encodeComponent(ServerCall.getSessionGuid())); link.append(guid=).append(URL.encodeComponent(componentMeta.guid)); link.append(view=).append(URL.encodeComponent(viewPanel.viewMeta.caption)); // good stuff here link.append(archive=).append(isArchive); link.append(params=).append(URL.encodeComponent(createParametersString().toString())); link.append(\); link.append(/a); ... setHTML... ... The problem appears with non-Latin1 (e.g. Cyrillic) code points encoded in URI components, e.g.: public void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { //request.setCharacterEncoding(UTF8); String view = request.getParameter(view); // Garbage here When Servlet receives them in Hosted mode they become garbage, because Servlet interpreted them as ISO Latin1, instead of UTF8. Using setCharacterEncoding doesn't help either, even with filters. In regular Tomcat I can set URIEncoding attribute for connector and everything works correctly: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 URIEncoding=UTF-8/ What is the proper way to set URIEncoding connector attribute for hosted mode Tomcat? I couldn't figure out where should I put server.xml and how to set it up. The following workarounds would work: 1) do - new String(view.getBytes(...)...) to repair scrambled string 2) parse getQueryString manually (long live CGI!) Using Mbeans to manipulate connector may also work, but I didn't try. But I'd prefer not to use dirty hacks to work around the problem. Shouldn't basic Servlet functionality also work in hosted mode? Nikolay Samofatov --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
CSS not updating when using a remote debug server
I've got eclipse setup to use a remote server for debugging so I can make requests from the same server. When I was using the default tomcat debugger I was getting the error about not being on the same server. So I got that working and then I was trying to add some style so I changed the default css file. Something simple like: body { color: red; } I saved the file and restarted the debuggernothing. If I shutdown the debugger and transfer the css file from my www directory to the server that I'm using for remote debugging and then restart the debugger it works. That is going to be a pain developing that way. Is there anything else that I can do? Thanks for your help. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
example-shell.cmd starts without exception, but only html pure will be displayed
I installed GWT 1.5.2 and all examples: DynaTable, Hello, I18N, JSON, ... started by calling DynaTable-shell.cmd, Hello-shell.cmd, ... appeared first time without any Problem. Later I changed something in my PC-Configuration, and all examples start, but the Output-Page will be displayed without any funtionality. e.g. after calling DynaTable- shell.cmd only the text School Schedule for Professors and Students will be shown and nothing else. There can't find any hint or exception to trace the problem. The button Compile/Browse remains all the time inactive (grayout). Someone any idea? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Two Panel With tree on the left side
Thank you so much for your reply!:) I will test it right away!! Have a nice day!¨:) xxx On Sep 2, 4:16 pm, gregor [EMAIL PROTECTED] wrote: Hi Eleni, In the simplest possible form: a) Use a HorizontalPanel putting your tree in cell 0 and your message in cell 1 b) Have your main module class implement the TreeListener interface c) Register your main module class as a listener with your Tree c) In the onTreeItemSelected(TreeItem) method, you can set the message in the right panel from the selected TreeItem passed In a more complex application you might use two Composite panels, one for navigation (which might have more than one navigation widget in it, frequently a StackPanel full of them etc), and the other for displaying data associated with the selection. In this case it you might: - Put them either side in a HorizontalSplitPanel - Have the navigation panel implement TreeListener to listen for Tree events, plus any others navigation/selection type widgets present - Have the navigation panel consolidate such events internally and broadcast a ChangeEvent (i.e. have it implement SourcesChangeEvents) - Have the data panel implement ChangeListener - Register the data panel as a ChangeListener with the navigation panel This way the navigation and data display parts of the application are very loosely coupled: and their code does not interfere with each other, they can be easily swapped in and out as development proceeds and there is a clear separation of concerns. regards gregor On Sep 1, 7:23 pm, eleni [EMAIL PROTECTED] wrote: Hi all! First of all I would like to mention that I just started dealing with GWT so please be patient:) What I wanna ask is how I could create a panel, where on the left side will be a tree and when you click on a tree-item, something (a message for instance) will appear on the right side. I am familiar with, trees and Panels (:P) I don't need any code! Just the steps and I will be ok!!! Thanks all in advance! Eleni --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
the code for closing gwt's host mode browser
i open child window by using native code var openedWindow = $wnd.open(url); and when i want to close it i use this code openedWindow.close(); but gwt's host mode browser don't close as i want is there any way to accomplish this ? thanks for any replys --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Doubt in gwt-rpc
Hi Iam newbie, i have a doubt in the gwt the rpc. I tried with the sample example, but i wont any errors, while running nothing is displayed... simple example for rpc.. and i have a doubt in http. can anyone guide me for the rpc and http process in gwt with clear and simple example code. thank u --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
To retrieve path of link on which right click of mouse is applied.
Hi, i'm new to GWT. I'm devoloping one application using GWT, i know Java. I just want to know that how to retreive path of link on which right click of mouse is applied so that we can perform various types of applications on it(such as open,delete,copy,paste etc.). I have tried all in-built methods provided by it. and developing applications in netbeans6.5. So please guide me as early as possible 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Graphs in pdf file
sridhar schrieb: I have generated some graphs using gwt's GChart.jar.Now i want that graphs to be generated in pdf file.how can i do that pls help me. You can use FOP (you can download that from the Apache-Website) and create a PDF containing an image, e.g. a GIF. The GIF you have to create on the server-side together with the PDF out of the same data, you used for the creation of the GChart. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
this is the list of libraries i added to my project:gwt-dev- window.jar, gwt-user.jar, gwtext.jar.i don't know what javascript library you speak about.can you be more explicit please? Lothar Kimmeringer a écrit : [EMAIL PROTECTED] schrieb: description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. You're using GWT-Ext but you haven't added all the Javascript- libraries of the ext-project to the web-folder of your project. GWT-Ext is implemented as simple wrappers around the Javascript- functions of the other library. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT: using Frame: JavaScript-Error
I am using a Frame in a dialog. This frame shows an URL (http:// whatever). I get an error (translated from german in english by myself): the control may not receive the focus, because its invisible or is not activated or it does not focus permits. I think the reason is, that the frame is not shown of the Start- Dialog. If I call site A tab 1 is selected, but my frame is on tab 3 (always on site A), which is not displayed, when I set the URL for the frame. It seems like the Error occured only in hosted-mode. Is there an way to set the URL correctly in my situation?? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Graphs in pdf file
You'll want to generate pdf on the server side ... Have a look at iText, or JasperReports for PDF generation or Reporting solutions respectively. -jason On Oct 15, 2008, at 2:05 AM, sridhar wrote: Hi all, I have generated some graphs using gwt's GChart.jar.Now i want that graphs to be generated in pdf file.how can i do that pls help me. regards, sridhar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
gwt tree: on hover underline the item
Hi all! I would like to do the following: I have a GWT tree. I want when the mouse is over a tree item this item turns its decoration/color to underline/red. I tried css, mouselisteners but nothing worked! 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: To retrieve path of link on which right click of mouse is applied.
I'm guessing you want to bring up your own menu with these operations when the user right clicks? Search the forum for context menu and you'll find plenty of information on how to do this. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: -noserver 1.5 RPC Help
Hi Christopher I had a tough time getting this to work at first too (using 1.5). One of the changes I made that I have not seen mentioned in this thread is that I had to change the service entry point to something different than what Bruce had in his initial post I had to use a full URL to my server, see example of my service entry point below. Also a couple of other things - you need to copy the compiled GWT application directory to the server directories (and recopy if you change the interface) and don't forget that you need to alter the address in the hosted mode browser to the actual page on your server or the application won't load. from bruce johnson's post 5) Make sure that your client-side code references the right service entrypoint using ServiceDefTarget. In this case, it would be something like serviceDefTarget.setServiceEntryPoint(/myproject/myservice). example of what I put in my code geoServiceTarget.setServiceEntryPoint(http://staging.abaqus.net/geo/ gcb/geoservice); hope this helps jos On Oct 14, 9:34 am, Christopher Venning [EMAIL PROTECTED] wrote: I cannot seem to get the -noserver mode working with RPCs. I got it to work in 1.4 but have changed environments in the last year. There don't appear to be any Group postings about getting it going since 1.5 was released. Bruce Johnson's original posting (http:// groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ 338c4b765d7dfc39) doesn't appear to be the 1.5-supported method, based on the current Developer's Guide (yes, I tried it anyways and failed). Working off ofhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=FAQ_..., Hosted Mode hooks in appropriately (changing Java code and refreshing the Hosted Browser changes content). However, the RPCs fail. I am probably doing something dumb, and would appreciate someone pointing that out. Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk 1.6u7, XP SP3 Relevant Error --- Throwable type: - com.google.gwt.user.client.rpc.StatusCodeException Message content: - html page from external Tomcat (has been confirmed) - 404 report - description: The requested resource (/ServerTest/testService) is not available. Relevant module code --- from TestService.java (extends RemoteService): @RemoteServiceRelativePath(/testService) from ServerTest.gwt.xml: servlet path=/testService class=org.server.TestServiceImpl / from ServerTest.launch (arguments): -noserverhttp://localhost:8080/ServerTest/ServerTest.html Sum Total of changes to Tomcat --- created %TOMCAT_HOME%/webapps/ServerTest copied into that directory (from compilation): - clear.cache.gif - history.html - hosted.html - org.ServerTest.nocache.js - ServerTest.html - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc - 9DA92932034707C17CFF15F95086D53F.cache.png - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Way to tag/add metadata to UIObjects?
I am writing a multi-section form in GWT, that will be saved out to the server as JSON. I was wondering if there is any facility to tag form fields in GWT with a metadata, or just tag like a JSON key string, for instance. I looked the the Javadoc API but didn't see anything like this. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
[EMAIL PROTECTED] schrieb: this is the list of libraries i added to my project:gwt-dev- window.jar, gwt-user.jar, gwtext.jar.i don't know what javascript library you speak about.can you be more explicit please? Cited from http://code.google.com/p/gwt-ext/ snip GWT-Ext ... uses GWT and Ext 2.0.2 LGPL. [...] Ext 2.0.2 can be downloaded from here. snip have you downloaded Ext 2.0.2 and installed the coresponding libraries? Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Ant tasks ZipException
Isaac, Since the GWT compiler has specific needs pertaining to classloading, I think it's appropriate to try to manage the problem internal to the compiler. I have not looked at this in detail for a long time, so I was wondering if anybody on the list was more conversant with how this works. Your points are well taken. Maybe a warning rather than an outright fail would be better. Just something so people don't keep getting stuck in this particular bit of tar (I noticed another incidence of this on the list yesterday). The custom ant task is a fine idea, but its failing is that not everyone will use it, and we're right back here. Walden On Oct 15, 8:17 am, Isaac Truett [EMAIL PROTECTED] wrote: I'm not sure that the classloader's type would be a reliable check. Is there a practical way of knowing if any given classloader would be compatible? Just giving up if you don't find one specific classloader would cause GWTCompiler to fail in any environment that replaced that classloader, even with a compatible substitute. What I can suggest is a GwtCompilerTask for Ant that I've started working on in the Incubator. It's very much an alpha version, but it works in my tests and handles forking automatically. You can find it in the Incubator trunk and I also did a quick write-uphttp://publicint.blogspot.com/2008/10/introducing-gwtcompilertask.htmlabout it yesterday. Feedback is very much appreciated. On Wed, Oct 15, 2008 at 8:00 AM, walden [EMAIL PROTECTED] wrote: Yeah, I lost a lot of time on this a year and a half ago when I was trying to revive someone's GWT compile ant task code which was apparently written for GWT 1.3 or earlier. I've forgotten the specifics now, but it has to do with the search order used by the different loaders (I think). Anyway, I was wondering whether it would make sense to write an issue against this. Would it be feasible for the GWT compiler to examine its context classloader (or whatever it uses to find GWT resources) and fail fast if it's the wrong one? This problem may not be too common, but when it occurs, it tends to dumbfound us for a while. Walden On Oct 14, 3:43 pm, birwin [EMAIL PROTECTED] wrote: Walden, When I place fork=true in the java tasks, it compiles correctly. I had to adjust the memory as I ran out of memory during the build, but it appears to work fine now. I appreciate the input. I tried to look on the Internet to find more information regarding why the GWTCompiler run in a java Ant task needs fork=true, but I could find no information. It works anyway, even if I don't understand why, so I will move on... Thank you Walden and thank you Isaac for your time and help. - Brian I. On Oct 14, 6:30 am, walden [EMAIL PROTECTED] wrote: Hi Guys, Not sure if this could be related, but your ant target that uses the java task to run the GWT compile needs to set fork=true. This takes the ant classloader out of the equation. As I recall, the ant classloader defeates GWT; I don't remember the specifics. Walden On Oct 13, 8:42 pm, Isaac Truett [EMAIL PROTECTED] wrote: path refid=compile.cp / path refid=class.path / What's in these? Are they also in your stripped-down build? On Mon, Oct 13, 2008 at 6:39 PM, birwin [EMAIL PROTECTED] wrote: Well, I have created from scratch the simplest GWT application I could think of... I created the simplest build file I could think of (No Ivy dependency management, no code... Just a blank web page) and then attempted to build the project... I got exactly the same results as above. I decided to try a different version of Ant just to ensure it had nothing to do with Ant, and again the same results. I am not sure what to do at this point. I may try the build on another machine just to make sure it is not my environment. I may have to rely on a non-ant build (Cypal Studio in Eclipse) which seems to work without any problems. Unfortunately, there is no way to automate that process. - Brian I. On Oct 13, 12:24 pm, Isaac Truett [EMAIL PROTECTED] wrote: Sorry I couldn't identify the exact problem. It certainly is an odd error. The only other time I've seen it fail to find java.lang.Object was in this thread: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse... ... where I solved the problem by dumping my classpath and starting from scratch, basically. I never did find exactly what was causing the problem, but hopefully starting from scratch will work for you, too. On Mon, Oct 13, 2008 at 2:20 PM, birwin [EMAIL PROTECTED] wrote: It does contain com/google/gwt/emul/java/lang/Object.java Just to make sure the GWTCompile task handles spaces in its classpath, I moved the user.jar to the root directory and
missing myApp-compile.cmd
A very trivial question but where should this myApp-compile.cmd file be located and how and when is it generated. I cannot seem to find it anywhere :( Thanks, Steve --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Displaying lists in a cell in a Flextable
Inspect you page in Firebug (or whatever) and see how list-style-type attribute is set on your li elements? On Oct 15, 6:59 am, craige [EMAIL PROTECTED] wrote: Hi I am trying to insert some HTML into a cell in a Flextable which includes a list (ordered/ordered it makes no difference). I use the setHTML method to set the contents of the cell but when displayed, the list markers are not displayed rendered at all i.e. no bullet points and no numerical markers. Other markup such as the b tags is rendered correctly as you would expect. The code which I am using to set the contents of the cell follows. faultDescriptionTable.setHTML(1,0,faultDetails.description); and faultDetails.description is set to This is a test of the systembrbrullia test/lilimore of a test/lilianother test/lilianother testbr/li/ul Has anybody any ideas what might be going on here? I'm using GWT 1.5 on linux and firefox 3 and opera. Cheers Craige --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
hi, you are extending window class, how do you manage to do that, Window has private constructor. so you can't extends it. kindly check it if it is same class as com.google.gwt.user.client.Window On Wed, Oct 15, 2008 at 2:37 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: this is the detail of this exception [ERROR] Unable to load module entry point class com.gwt.client.MyApplication (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. number: -2146823281 description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. at com.gwtext.client.widgets.Component.checkExtVer(Native Method) at com.gwtext.client.widgets.Component.clinit(Component.java:108) at com.gwt.client.MyApplication.onModuleLoad(MyApplication.java:22) -- Manik Chand Software Engineer Exact Software Pvt. Ltd. 403, 4th Floor, Accord Complex, Station Road, Goregaon(East), Mumbai - 400063 Cell No. : +91 9220984430 www.exact-solutions.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How I solved font-size problem in new 1.5 CSS
I noticed that my font sizes did not respond to style sheet changes in GWT 1.5.2. My solution is to place the following entry in my style sheet: table td, select { font-size: inherit; } My explanation follows. I divide up my GWT home page into sections by using the CSS div like: div id = page section name/div This permits me, for example, to locate my menu column by : div id=menu_column/div and to place it on the page in my code by: RootPanel.get(menu_column).add(menuColumnVP); My style sheet entry for the menu_column id contains: #menu_column{ font-size: x-small: } This stopped working in GWT 1.5.2, because the standard.css style sheet loaded by: inherits name='com.google.gwt.user.theme.standard.Standard'/ contains the following entry: body, table td, select { font-family: Arial Unicode MS, Arial, sans-serif; font-size: small; } This means that the font-size for everything in my menuColumnVP above will be small, not x-small as specified my menu_column id specification, because the contents of menuColumnVP will be inside some table td, overriding my specification. Hence the inherit solution. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
this is the detail of this exception [ERROR] Unable to load module entry point class com.gwt.client.MyApplication (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. number: -2146823281 description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. at com.gwtext.client.widgets.Component.checkExtVer(Native Method) at com.gwtext.client.widgets.Component.clinit(Component.java:108) at com.gwt.client.MyApplication.onModuleLoad(MyApplication.java:22) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: when tried to run using ImmutableResourceBundle 'No source code is availabele ' error coms
The exception is showing like below.. Unable to load module entry point class com.satmetrix.core.uifwk.swt.client.WidgetTester (see associated exception for details) java.lang.RuntimeException: Deferred binding failed for 'com.MyApp.WidgetTester$Resources' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 43) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.myapp.WidgetTester.onModuleLoad(WidgetTester.java:480) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: 329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access $300(BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java: 76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java: 139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: 294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: 194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java: 117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:478) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 359) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 39) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.satmetrix.core.uifwk.swt.client.WidgetTester.onModuleLoad(WidgetTester.java: 480) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: 329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access $300(BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java: 76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java: 139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: 294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: 194) any clue? On Oct 15, 11:43 am, zujee [EMAIL PROTECTED] wrote: hi experts, When I tried to add ImmutableResourceBundle and tried to run the example file i got error like ERROR] Line 27: No source code is available for type com.MyApp.resourcebundle.MyResourceBundle; did you forget to inherit a required module? The steps i did is as follows.. 1) inherits name='com.google.gwt.libideas.ImmutableResources'/ added in my .gwt.xml file 2) Create an interface like public interface MyResourceBundle extends ImmutableResourceBundle { public static final MyResourceBundle INSTANCE = (MyResourceBundle ) GWT.create(MyResourceBundle .class); /** @gwt.resource css/mycss.css */ public TextResource css(); } 3)tried to call from onmoduleload Window.alert(MyResourceBundle .INSTANCE.css().getText()); is there any additional steps i missed pls help --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
[EMAIL PROTECTED] schrieb: description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. You're using GWT-Ext but you haven't added all the Javascript- libraries of the ext-project to the web-folder of your project. GWT-Ext is implemented as simple wrappers around the Javascript- functions of the other library. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Norton 360 slows GWT app?
Thanks joe, Martin the app wasn't specially slow loading. It slowd down only on some actions, example: using incubator's gwt datepicker. Thx for your responses. Iago On 15 oct, 11:45, Joe Cole [EMAIL PROTECTED] wrote: We had huge issues with Norton at one installation. I think there is a setting to tell it to stop real time scanning of javascript output - that's probably what's causing the issue. We found the best explanation of these problems was in gmails troubleshooting, where it tells you how to disable and add exceptions for most popupblockers/security suites. Also, use firebug + ethereal to check it isn't doing things to your html/js. It added some code to ours that we could use to detect if norton was installed, and then asked them to add the exceptions. Joe On Oct 15, 3:32 pm, makoki [EMAIL PROTECTED] wrote: Can't find an explanation about it and hope anyone can tell me something, using Norton 360 in a Windows Vista environment seems to be slowing down GWT app incredibly. The app has been tested in different OS and browsers (MAC/WinXP/Vista/ FF3/Safari/ie6/ie7) but it seems to slow down when Vista/Norton 360 is activated. Did anyone found the same problem? Thx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Enter the Container
Dmitry, Ok, I see what you're trying to get at (across several threads and forums!), but let me suggest an alternative approach to trying to get another container class added to GWT. This seems to be meeting resistance - and rightly so, given the lightweight philosophy of GWT. Make the normal stuff easy - and the expert cases possible. I'm assuming the code is pretty small for the class, so of course it's no big deal to just have it in your own code. The real issue is the private status of certain methods/members in the GWT UI class hierarchy. Perhaps a more fruitful approach would be to propose a set of methods/members that you feel should be made protected instead of private - I've been frustrated by this myself trying to override various specifics without having to rewrite large portions of a particular UI class. I think this would be much easier to make happen, would benefit a larger audience, and would enable people to extend their own widgets in whatever manner they feel is best. So is there a set of methods and/or members in the UI class hierarchy that, made protected, would allow you to accomplish your goals? jk --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SuggestBox something wrong with style
3) Nick the css from here http://examples.roughian.com/#GWT/Input/SuggestBox Ian http://examples.roughian.com 2008/10/15 walden [EMAIL PROTECTED] Yup, two things you can do: 1. Look at the Javadoc for the SuggestBox API and note the various .gwt-* css rules used by default to style the widget and start using them. 2. Your screenshot is of Hosted Mode. Run your application is Web Mode and use Firebug or equivalent to get down and dirty into the DOM to see what's broken. Walden On Oct 15, 6:42 am, kaspar.ru [EMAIL PROTECTED] wrote: Hello, I'm trying to use a SuggestBox but it shows incorrectly, something is broken in css http://farm4.static.flickr.com/3045/2943471769_a3b8e77e48_o.jpg here is the code MultiWordSuggestOracle oracle= new MultiWordSuggestOracle(); ListString candidats=new ArrayListString(); candidats.add(Hello2); candidats.add(Hello4); candidats.add(Hello3); candidats.add(3Hello); candidats.add(Hello1); candidats.add(Hello0); candidats.add(privet); oracle.addAll(candidats); SuggestBox suggestBox=new SuggestBox(oracle); RootPanel.get().add(suggestBox); --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Ant tasks ZipException
Yeah, I lost a lot of time on this a year and a half ago when I was trying to revive someone's GWT compile ant task code which was apparently written for GWT 1.3 or earlier. I've forgotten the specifics now, but it has to do with the search order used by the different loaders (I think). Anyway, I was wondering whether it would make sense to write an issue against this. Would it be feasible for the GWT compiler to examine its context classloader (or whatever it uses to find GWT resources) and fail fast if it's the wrong one? This problem may not be too common, but when it occurs, it tends to dumbfound us for a while. Walden On Oct 14, 3:43 pm, birwin [EMAIL PROTECTED] wrote: Walden, When I place fork=true in the java tasks, it compiles correctly. I had to adjust the memory as I ran out of memory during the build, but it appears to work fine now. I appreciate the input. I tried to look on the Internet to find more information regarding why the GWTCompiler run in a java Ant task needs fork=true, but I could find no information. It works anyway, even if I don't understand why, so I will move on... Thank you Walden and thank you Isaac for your time and help. - Brian I. On Oct 14, 6:30 am, walden [EMAIL PROTECTED] wrote: Hi Guys, Not sure if this could be related, but your ant target that uses the java task to run the GWT compile needs to set fork=true. This takes the ant classloader out of the equation. As I recall, the ant classloader defeates GWT; I don't remember the specifics. Walden On Oct 13, 8:42 pm, Isaac Truett [EMAIL PROTECTED] wrote: path refid=compile.cp / path refid=class.path / What's in these? Are they also in your stripped-down build? On Mon, Oct 13, 2008 at 6:39 PM, birwin [EMAIL PROTECTED] wrote: Well, I have created from scratch the simplest GWT application I could think of... I created the simplest build file I could think of (No Ivy dependency management, no code... Just a blank web page) and then attempted to build the project... I got exactly the same results as above. I decided to try a different version of Ant just to ensure it had nothing to do with Ant, and again the same results. I am not sure what to do at this point. I may try the build on another machine just to make sure it is not my environment. I may have to rely on a non-ant build (Cypal Studio in Eclipse) which seems to work without any problems. Unfortunately, there is no way to automate that process. - Brian I. On Oct 13, 12:24 pm, Isaac Truett [EMAIL PROTECTED] wrote: Sorry I couldn't identify the exact problem. It certainly is an odd error. The only other time I've seen it fail to find java.lang.Object was in this thread: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse... ... where I solved the problem by dumping my classpath and starting from scratch, basically. I never did find exactly what was causing the problem, but hopefully starting from scratch will work for you, too. On Mon, Oct 13, 2008 at 2:20 PM, birwin [EMAIL PROTECTED] wrote: It does contain com/google/gwt/emul/java/lang/Object.java Just to make sure the GWTCompile task handles spaces in its classpath, I moved the user.jar to the root directory and created a new classpath that just had that JAR. I tried a recompile and included the new classpath and again it failed with the same error. I believe I am going to start from scratch and try to do a Hello World-type build where I don't include any Ivy dependencies, etc... and everything is very basic. Once I have that working, I will return to debugging this build. If I find a solution, I will post it here when I finish. Thank you for your help I appreciate it. - Brian I. On Oct 13, 12:03 pm, Isaac Truett [EMAIL PROTECTED] wrote: That looks fine to me. I'm really fishing now... could you open up gwt-user.jar and confirm that it contains com/google/gwt/emul/java/lang/Object.java? On Mon, Oct 13, 2008 at 1:47 PM, birwin [EMAIL PROTECTED] wrote: Sorry, the last Timecard.gwt.xml was not the correct one. Here is the one I am using: ?xml version=1.0 encoding=UTF-8 standalone=no? module !-- Inherit the core Web Toolkit stuff. -- inherits name=com.google.gwt.user.User/ !-- Inherit Web Toolkit Incubator stuff -- inherits name=com.google.gwt.widgetideas.WidgetIdeas/ inherits name=com.google.gwt.libideas.LibIdeas/ !-- Specify the app entry point class. -- entry-point class=com.webapp.client.Timecard / source path=client / public path=public / servlet class=com.webapp.server.TimecardServiceImpl path=/
Re: Client Side Exceptions
[EMAIL PROTECTED] schrieb: I am finding that often if i throw an exception in the client side then i have to catch it using catch (Exception ex) rather than catch (TheActualExceptionThrown ex). Is your own exception derived from SerializableException or directly from Exception. If it's the latter, try to derive it from SerializableException. Does anyone else have this issue as i havent seen any posts on the issue and it seems pretty annoying. Not that I'm aware of. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[ERROR] Uncaught exception escaped java.lang.NumberFormatException: For input string: div class=gwt-HTML dragdrop-draggable dragdrop-handle1
Hi, I want to capture the contents of a widget as a string, and then subdivide this string and assign each subpart to a different variable. The first substring I would like to convert into long, but the following error appears: [ERROR] Uncaught exception escaped java.lang.NumberFormatException: For input string: div class=gwt- HTML dragdrop-draggable dragdrop-handle1 at java.lang.NumberFormatException.forInputString(NumberFormatException.java: 48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.init(Long.java:671) at gwt.client.MouseListBox.programmerList(MouseListBox.java:70) at gwt.client.DualListBox.getListRight(DualListBox.java:107) at gwt.client.Management$3.onSuccess(Management.java:118) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 215) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java: 254) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java: 226) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 217) 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) --- I tried both with the costructor that valueOf (..): programmer.setId( new Long( dati.substring ( 0, indexParentesi ) )); programmer.setId( Long.valueOf( dati.substring ( 0, indexParentesi ) ).longValue() ); but I have the same exception. how can I parse without that error? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
[EMAIL PROTECTED] schrieb: i have this error:Unable to load module entry point class com.gwt.client.MyApplication (see associated exception for details) Can you explain me why i have this error and how do i resolve it? Depends on the exception being shown in the details. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Test
Hi Fabio, We realized that our JUnit testing documentation was sorely lacking prior to 1.5, and so have included more details about writing test cases for GWT applications in our new GWT 1.5 documentation. You can check it out at the link below. GWT 1.5 Unit Testing docs: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideJUnitIntegration As for the exception you received when trying to run the unit test, Eric's suggestion to increase the maximum heap size should work. Hope that helps, -Sumit Chandel On Fri, Oct 10, 2008 at 4:18 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, could anybody post me some tutorial to create gwt test case. I have tried with many example, but I don't Understand what are the steps to do. I want to test one presenter in my application, so I have created an TestCase class which extend GwtTestCase, but when I try to execute this code, the compiler answer with java.lang.OutOfMemoryError: Java heap space at java.util.zip.InflaterInputStream.init(Unknown Source) at java.util.zip.ZipFile$1.init(Unknown Source) at java.util.zip.ZipFile.getInputStream(Unknown Source) at java.util.zip.ZipFile.getInputStream(Unknown Source) at java.util.jar.JarFile.getBytes(Unknown Source) at java.util.jar.JarFile.getManifestFromReference(Unknown Source) at java.util.jar.JarFile.getManifest(Unknown Source) at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at junit.framework.TestResult.addError(TestResult.java:36) at junit.framework.TestResult.runProtected(TestResult.java:137) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java: 76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java: 45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: 38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java: 386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 196) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: problem about the module entry point of my application
hi Manik, window doesn't have a private constructor.It is window class of import com.gwtext.client.widgets.Window; Manik Chand a écrit : hi, you are extending window class, how do you manage to do that, Window has private constructor. so you can't extends it. kindly check it if it is same class as com.google.gwt.user.client.Window On Wed, Oct 15, 2008 at 2:37 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: this is the detail of this exception [ERROR] Unable to load module entry point class com.gwt.client.MyApplication (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. number: -2146823281 description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet. at com.gwtext.client.widgets.Component.checkExtVer(Native Method) at com.gwtext.client.widgets.Component.clinit(Component.java:108) at com.gwt.client.MyApplication.onModuleLoad(MyApplication.java:22) -- Manik Chand Software Engineer Exact Software Pvt. Ltd. 403, 4th Floor, Accord Complex, Station Road, Goregaon(East), Mumbai - 400063 Cell No. : +91 9220984430 www.exact-solutions.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: store data in temp file before saveing into database
hello sir, i made five web pages using gwt for insert data into the database but i want to save data of all fields of five pages after showing all inserted values at another web page with a button save and after click at the save button the whole data is stored into the database.please give me some code for that.Please solve my problem i'm thankful to u. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
problem about the module entry point of my application
Hello everyone, i've built a gwt application and i've created a class for the login of user.This is the code of this class: package com.gwt.client; import com.gwtext.client.widgets.*; import com.gwtext.client.widgets.form.FieldSet; import com.gwtext.client.widgets.form.FormPanel; import com.gwtext.client.widgets.form.TextField; public class LoginApplicationWindow extends Window { public LoginApplicationWindow(){ FormPanel formPanel = new FormPanel(); formPanel.setFrame(true); formPanel.setPaddings(5, 5, 5, 0); formPanel.setWidth(350); formPanel.setLabelWidth(75); formPanel.setTitle(GestionCvs); FieldSet authentificationfield = new FieldSet(login); TextField login = new TextField(Login, login, 210); TextField pawd= new TextField(Password, password, 210); authentificationfield.add(login); authentificationfield.add(pawd); formPanel.add(authentificationfield); this.add(formPanel); } } So when i try to call this class in my module which code is that package com.gwt.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; /** * Entry point classes define codeonModuleLoad()/code. */ public class MyApplication implements EntryPoint { /** * This is the entry point method. */ private LoginApplicationWindow window; public void onModuleLoad() { window = new LoginApplicationWindow(); window.show(); } } i have this error:Unable to load module entry point class com.gwt.client.MyApplication (see associated exception for details) Can you explain me why i have this error and how do i resolve it? Arnaud --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: missing myApp-compile.cmd
It's created in the same location as you use applicationCreator from, by default. http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideApplicationCreator That assumes you are using applicationCreator of course, but that is the normal way to have a compile script generated for you. On Oct 15, 12:32 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: A very trivial question but where should this myApp-compile.cmd file be located and how and when is it generated. I cannot seem to find it anywhere :( Thanks, Steve --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SuggestBox something wrong with style
Mmm. Well, if you hadn't changed anything, then it would look the same. And it doesn't. So you have. And it's in the css. Posting your code doesn't help pin it down unless you were setting css in code. Check that the defauld css you are using is the same as the default css that they are using, and that no typing errols have crept in anywhere. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Doubt in gwt-rpc
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRemoteProcedureCalls And, here is a simple example with code: http://gwt-maven.googlecode.com/svn/trunk/maven-googlewebtoolkit2-plugin/simplesample/src/main/java/com/totsp/sample/. Yes, that sample is from the GWT-Maven project, but you don't have to use Maven to use it - same GWT code whether or not you do, of course. (Just saying, Maven has no bearing on it, so don't worry about the higher levels of that project if you don't care to use Maven.) On Oct 15, 5:27 am, Smilers [EMAIL PROTECTED] wrote: Hi Iam newbie, i have a doubt in the gwt the rpc. I tried with the sample example, but i wont any errors, while running nothing is displayed... simple example for rpc.. and i have a doubt in http. can anyone guide me for the rpc and http process in gwt with clear and simple example code. thank u --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: example-shell.cmd starts without exception, but only html pure will be displayed
Depends what you changed in your PC-Configuration - try setting the logLevel option in the shell script, before running it, to get verbose logging - that should help you figure out where things are going wrong, if the shell is starting. http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideModuleHostedModeScript On Oct 15, 10:38 am, oxmon [EMAIL PROTECTED] wrote: I installed GWT 1.5.2 and all examples: DynaTable, Hello, I18N, JSON, ... started by calling DynaTable-shell.cmd, Hello-shell.cmd, ... appeared first time without any Problem. Later I changed something in my PC-Configuration, and all examples start, but the Output-Page will be displayed without any funtionality. e.g. after calling DynaTable- shell.cmd only the text School Schedule for Professors and Students will be shown and nothing else. There can't find any hint or exception to trace the problem. The button Compile/Browse remains all the time inactive (grayout). Someone any idea? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: refreshing page after change meta
Hi Eduardo, It seems like you made a little mistake in your gwt:property meta tag. The tag should read as follows: meta name=gwt:property content=locale=en_US To add another gwt:property meta tag for the pt_BR locale, you would also have to similarly add another meta tag that would look like the following: meta name=gwt:property content=locale=pt_BR Once you have these properly defined, your application should be able to pick up the correct properties files for a given locale URL parameter. Hope that helps, -Sumit Chandel On Mon, Oct 13, 2008 at 5:13 PM, Gambogi [EMAIL PROTECTED] wrote: Hello everybody, Im begginer in GWT , so , i got so many difficulties in this first step. I just trying to do a website with, at first moment, two languages. I did everything which i got from the tutorials etc etc. Now, i already have something wich works , but not like i want. I change my xml files and my html file . i have a line like this: meta name=gwt:property content=en_US I my java code , i change that value to content=pt_BR . But, my page still use the previous properties file. I only change that when i add in the end of my URL the sufix locale=pt_BR. So, theres a way to change that property and got the updated html easily? Without use the URL to set that? regards Eduardo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Parameter passing between host jsp and embedded gwt application
Hello, I have recently begun updating a web page for my company to be a bit more 21st-century. I should state that I am new to Javascript, and gwt, and I am not any sort of html wizard though I know the basics. I have been looking for a way in which to pass parameters into the Java class that is compiled into Javascript by gwt so that I might use these parameters in a RPC call to the server. I have read multiple posts on this discussion and have tried many things including adding div or input tags and attempting to read them, using JSNI to grab Javascript vars, and most recently attempting to use Dictionary class from com.google.gwt.i18n.I18N The post that I have been reading is the following thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/85267b4604f7e70f# When I attempt to use div or input the gwt grid no longer shows up at all. It is still there, as far as I can tell (I've used the Firefox Web Developer Toolbar to look at the included javascript) but I see nothing in either Firefox or IE When I attempt to grab the vars with JSNI I cannot get to it due to, I imagine, a misunderstanding on my part due to frames and variable scope when dealing with frames and Javascript. When I attempted to use the Dictionary class I again cannot see the gwt grid, identical problem as before. I believe in this case, though, it is because Dictionary is failing to find the variable - most likely due to aforementioned scope problems. The .jsp that includes these scripts as well as the frame that directs to the gwt application is as follows: % String jUser = request.getParameter(userId); String jAsOfDate = request.getParameter(asOfDate); String jCurrency = request.getParameter(currency); % script type=text/javascript var user = %=jUser%; var asOfDate = %=jAsOfDate%; var currency = %=jCurrency%; /script frameset FRAMEBORDER=0 BORDER=0 framespacing=0 frame SRC=/classpath/class.html name=ICV scrolling=yes noresize /frameset For the Dictionary attempt it is the same except the script is as follows: script type=text/javascript var params = { user: %=jUser%, asOfDate: %=jAsOfDate%, currency: %=jCurrency%, }; /script If anyone can see any glaring mistakes that I am making please let me know what I'm doing wrong. Else, a ulterior method to pass these variables would be just as good if not better! Thanks for reading, and for any help in advance, Kevek --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Client Side Exceptions
I am finding that often if i throw an exception in the client side then i have to catch it using catch (Exception ex) rather than catch (TheActualExceptionThrown ex). Does anyone else have this issue as i havent seen any posts on the issue and it seems pretty annoying. Thanks, Steve --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Debugging support in compile mode?
Ok, I gave it a try. I ran demo-shell -noserver and got a pop-up window with the following msg. The connection was refused when attempting to contact localhost:. Without the -noserver I get this. General Error: java.lang.NumberFormatException: For input string: /com.mudd.demo Do I need to disable the code that calls my XML/RPC server in order to run with the -noserver option? John On Oct 14, 1:10 pm, Isaac Truett [EMAIL PROTECTED] wrote: The -noserver option lets you debug your GWT client code in hosted mode while running any server you like, Tomcat or otherwise.On Tue, Oct 14, 2008 at 12:58 PM, JohnMudd [EMAIL PROTECTED] wrote: Running demo-shell -noserver doesn't change my situation. I'm using an XML/RPC server, not Tomcat. $ demo-shell -? Unknown argument: -? Google Web Toolkit 1.4.62 GWTShell [-port port-number | auto] [-noserver] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-out dir] [-style style] [url] where -port Runs an embedded Tomcat instance on the specified port (defaults to ) -noserver Prevents the embedded Tomcat server from running, even if a port is specified ... On Oct 14, 11:43 am, Isaac Truett [EMAIL PROTECTED] wrote: Why can't you run hosted mode with the -noserver option? On Tue, Oct 14, 2008 at 11:38 AM, JohnMudd [EMAIL PROTECTED] wrote: Any way to get the same sort of debugging support in compile mode as in shell mode? I'm using XML/RPC so I have to run in compile mode, not shell mode. The biggest drawback is all errors are not caught and reported. That turns simple errors into long bug hunts. I'm running inside a try block now and reporting all exceptions (that are caught) in a log panel. That helps but I still run into errors that go uncaught, just as trying to use panel object that has been set to null. All I get now in unexpected behavior that I have to manually track down. If the problem is just that there's no place to report errors in compile mode then I'd be happy to provide a panel object where error messages can be added. John --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Your opinion sought: Jetty or Tomcat?
+1 well said. On Oct 14, 6:03 pm, Jason Essington [EMAIL PROTECTED] wrote: Since creating a usable server side configuration in the embedded servlet container is all but impossible for anything but the simplest projects, I think that the choice of embedded server is a non-issue. Since complicated configurations aren't really something you want to address in the embedded server, my vote would be for the simplest, fastest implementation that supports the simple case uses. So, if Jetty starts faster and is lighter weight, then great, use it. -jason On Oct 13, 2008, at 4:48 PM, Bruce Johnson wrote: Hi everyone, Hope you're enjoying 1.5. The GWT team has started putting together a 1.6 roadmap, which we'll publish as soon as we have it nailed down. Two of the areas we want to work on for 1.6 are some improvements to hosted mode startup time and a friendlier output directory structure (something that looks more .war-like). As part of this effort, we've all but decided to switch the hosted mode embedded HTTP server from Tomcat to Jetty. Would this break you? (And if so, how mad would you be if we did it anyway?) We figure most people who really care about the web.xml and so on are already using -noserver to have full control over their server config. Thanks, Bruce- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Debugging support in compile mode?
Is your server running and accepting connections on port ? If not, that would explain the connection being refused. On Wed, Oct 15, 2008 at 2:58 PM, JohnMudd [EMAIL PROTECTED] wrote: Ok, I gave it a try. I ran demo-shell -noserver and got a pop-up window with the following msg. The connection was refused when attempting to contact localhost:. Without the -noserver I get this. General Error: java.lang.NumberFormatException: For input string: /com.mudd.demo Do I need to disable the code that calls my XML/RPC server in order to run with the -noserver option? John On Oct 14, 1:10 pm, Isaac Truett [EMAIL PROTECTED] wrote: The -noserver option lets you debug your GWT client code in hosted mode while running any server you like, Tomcat or otherwise.On Tue, Oct 14, 2008 at 12:58 PM, JohnMudd [EMAIL PROTECTED] wrote: Running demo-shell -noserver doesn't change my situation. I'm using an XML/RPC server, not Tomcat. $ demo-shell -? Unknown argument: -? Google Web Toolkit 1.4.62 GWTShell [-port port-number | auto] [-noserver] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-out dir] [-style style] [url] where -port Runs an embedded Tomcat instance on the specified port (defaults to ) -noserver Prevents the embedded Tomcat server from running, even if a port is specified ... On Oct 14, 11:43 am, Isaac Truett [EMAIL PROTECTED] wrote: Why can't you run hosted mode with the -noserver option? On Tue, Oct 14, 2008 at 11:38 AM, JohnMudd [EMAIL PROTECTED] wrote: Any way to get the same sort of debugging support in compile mode as in shell mode? I'm using XML/RPC so I have to run in compile mode, not shell mode. The biggest drawback is all errors are not caught and reported. That turns simple errors into long bug hunts. I'm running inside a try block now and reporting all exceptions (that are caught) in a log panel. That helps but I still run into errors that go uncaught, just as trying to use panel object that has been set to null. All I get now in unexpected behavior that I have to manually track down. If the problem is just that there's no place to report errors in compile mode then I'd be happy to provide a panel object where error messages can be added. John --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Unable to clone a local reference in a function being inlined
I went back to GWT 1.4 and it compiles perfectly hope anybody can still help my with this one it is horrible to work on java prior to version 5 On Oct 14, 12:16 pm, hofmanndavid [EMAIL PROTECTED] wrote: Sorry, I forgot to say the it perfectly works in hosted mode. But when compiling it produces this error. If I whould be able to know that the compiler is complaining about and how to evade that it will be enough for now Thank you On Oct 14, 12:13 pm, hofmanndavid [EMAIL PROTECTED] wrote: Any insigth in how to hack this please I think this is a bug. Thanks a lot for any reply. package py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.client; // line 1 import java.util.HashMap; import java.util.Map; import py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.client.wrapper.GItem; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.FocusListener; import com.google.gwt.user.client.ui.KeyboardListener; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.TextArea; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Tree; import com.google.gwt.user.client.ui.TreeItem; import com.google.gwt.user.client.ui.TreeListener; import com.google.gwt.user.client.ui.Widget; /** * Entry point classes define codeonModuleLoad()/code. */ public class ServiceManager implements EntryPoint { private TextArea textArea; private Button unlockButton; private Button removeButton; private Label label; private ScrollPanel scrollPanel; private TextBox msisdnTextBox; private Tree tree; public static Integer indexCounter = 0; public static MapInteger, GItem indexGItem =new HashMapInteger, GItem(); public static GItem currentSelection; public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); msisdnTextBox = new TextBox(); rootPanel.add(msisdnTextBox, 2, 0); msisdnTextBox.setWidth(378px); msisdnTextBox.addFocusListener(new FocusListener(){ public void onFocus(Widget sender) { msisdnTextBox.setSelectionRange(0, msisdnTextBox.getText().length()); } public void onLostFocus(Widget sender) { }}); msisdnTextBox.addKeyboardListener(new KeyboardListener(){ public void onKeyDown(Widget sender, char keyCode, int modifiers) {} public void onKeyUp(Widget sender, char keyCode, int modifiers) {} public void onKeyPress(Widget sender, char keyCode, int modifiers) { if (KeyboardListener.KEY_ENTER == keyCode) { if (msisdnTextBox.getText().length() 7) return; label.setText(Buscando ...); indexCounter = -1; indexGItem.clear(); msisdnTextBox.setText(59597+msisdnTextBox.getText().substring(msisdnTextBox.getText().length()-7)); ServerProxy.Util.getInstance().getMenu(msisdnTextBox.getText(), new AsyncCallbackGItem(){ public void onFailure(Throwable caught) { label.setText(); tree.clear(); tree.addItem(Error); tree.setFocus(true); } public void onSuccess(GItem result) { label.setText(); if (result == null) onFailure(null); TreeItem firstNode = new TreeItem(); fillTree(result, firstNode); tree.clear(); tree.addItem(firstNode); tree.setFocus(true); } private void fillTree(GItem gitem, TreeItem treeItem) { indexCounter++; indexGItem.put(indexCounter, gitem); if (!gitem.isService()) { if (gitem.isPage()) { TreeItem childNode = new TreeItem(indexCounter +.+gitem.toString()); treeItem.addItem(childNode); treeItem = childNode; } else { treeItem.setHTML(indexCounter+.STKMenu); } for (GItem g : gitem.childs) fillTree(g, treeItem); } else { treeItem.addItem(indexCounter
Re: -noserver 1.5 RPC Help
I didn't have to do that. The service path is set as /myService in both Module.gwt.xml and as the argument to @RemoteServiceRelativePath. I tried /myModule/myService, but got 404s stating that the server couldn't find /myModule/myModule/ myService. Some aspects of GWT seem to be tightly-coupled, so changing either one probably would break your app. Additionally, the arguments in Module.launch (Eclipse-specific) looks like: -noserver http://localhost:8080/Module/Module.html;, loading up a Hosted Browser with the included URL on launch. Alternatively, - noserver -port 8080 Module/Module.html works identically, as localhost is the default host Hosted Mode seeks. Additional URL arguments load multiple Hosted Browser instances in the Hosted Mode session at launch if need be. Both my trivial and non-trivial apps are working with this setup. If anyone would like to see the codebase for the entire, functioning trivial app, I can put that up. But, hey. What works, works. On Oct 15, 12:16 pm, jos [EMAIL PROTECTED] wrote: Hi Christopher I had a tough time getting this to work at first too (using 1.5). One of the changes I made that I have not seen mentioned in this thread is that I had to change the service entry point to something different than what Bruce had in his initial post I had to use a full URL to my server, see example of my service entry point below. Also a couple of other things - you need to copy the compiled GWT application directory to the server directories (and recopy if you change the interface) and don't forget that you need to alter the address in the hosted mode browser to the actual page on your server or the application won't load. from bruce johnson's post 5) Make sure that your client-side code references the right service entrypoint using ServiceDefTarget. In this case, it would be something like serviceDefTarget.setServiceEntryPoint(/myproject/myservice). example of what I put in my code geoServiceTarget.setServiceEntryPoint(http://staging.abaqus.net/geo/ gcb/geoservice); hope this helps jos On Oct 14, 9:34 am, Christopher Venning [EMAIL PROTECTED] wrote: I cannot seem to get the -noserver mode working with RPCs. I got it to work in 1.4 but have changed environments in the last year. There don't appear to be any Group postings about getting it going since 1.5 was released. Bruce Johnson's original posting (http:// groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ 338c4b765d7dfc39) doesn't appear to be the 1.5-supported method, based on the current Developer's Guide (yes, I tried it anyways and failed). Working off ofhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=FAQ_..., Hosted Mode hooks in appropriately (changing Java code and refreshing the Hosted Browser changes content). However, the RPCs fail. I am probably doing something dumb, and would appreciate someone pointing that out. Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk 1.6u7, XP SP3 Relevant Error --- Throwable type: - com.google.gwt.user.client.rpc.StatusCodeException Message content: - html page from external Tomcat (has been confirmed) - 404 report - description: The requested resource (/ServerTest/testService) is not available. Relevant module code --- from TestService.java (extends RemoteService): @RemoteServiceRelativePath(/testService) from ServerTest.gwt.xml: servlet path=/testService class=org.server.TestServiceImpl / from ServerTest.launch (arguments): -noserverhttp://localhost:8080/ServerTest/ServerTest.html Sum Total of changes to Tomcat --- created %TOMCAT_HOME%/webapps/ServerTest copied into that directory (from compilation): - clear.cache.gif - history.html - hosted.html - org.ServerTest.nocache.js - ServerTest.html - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc - 9DA92932034707C17CFF15F95086D53F.cache.png - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: default Font in IE7 is huge (GWT 1.5)
Any my attempts to override the font-size in css are not working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
default Font in IE7 is huge (GWT 1.5)
The default font in GWT appears fine in Safari and Firefox they render a reasonable size font, but it looks about 50% bigger in IE7. This was discussed in a thread back in July and no good solution was provided - basically it was required to override every single widget in your css to make it look right in IE. This seems like a hack to me because I am using only limited css styling and would rather just be using the Standard skin. My setup is a fairly simple project, which should not be hard to replicate: inherits name='com.google.gwt.user.theme.standard.Standard'/ In my entrypoint I setup a layout like: DockPanel (center) - DecoratorPanel- VerticalPanel - lots of DisclosurePanel Thank for any advice! GWT is awesome! Alex --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Parameter passing between host jsp and embedded gwt application
I should note that when I say frameset FRAMEBORDER=0 BORDER=0 framespacing=0 frame SRC=/classpath/class.html name=ICV scrolling=yes noresize /frameset that the class refers to the HTML file generated by compiling the GWT application via the hosted browser or using the compile.cmd script generated by GWT. This is the only way that I have found to get the HTML file to show up -- that is, by using frames and setting the src= to the html file of the GWT client app --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: refreshing page after change meta
Oh yes, you are right Sumit. I just wrote wrong the tag on post. Anyway, thanks for the answer. My problem is more complicated. I need set this language on runtime without refresh the page. Do you know how i can do that? best regards Eduardo On Wed, Oct 15, 2008 at 4:29 PM, Sumit Chandel [EMAIL PROTECTED]wrote: Hi Eduardo, It seems like you made a little mistake in your gwt:property meta tag. The tag should read as follows: meta name=gwt:property content=locale=en_US To add another gwt:property meta tag for the pt_BR locale, you would also have to similarly add another meta tag that would look like the following: meta name=gwt:property content=locale=pt_BR Once you have these properly defined, your application should be able to pick up the correct properties files for a given locale URL parameter. Hope that helps, -Sumit Chandel On Mon, Oct 13, 2008 at 5:13 PM, Gambogi [EMAIL PROTECTED]wrote: Hello everybody, Im begginer in GWT , so , i got so many difficulties in this first step. I just trying to do a website with, at first moment, two languages. I did everything which i got from the tutorials etc etc. Now, i already have something wich works , but not like i want. I change my xml files and my html file . i have a line like this: meta name=gwt:property content=en_US I my java code , i change that value to content=pt_BR . But, my page still use the previous properties file. I only change that when i add in the end of my URL the sufix locale=pt_BR. So, theres a way to change that property and got the updated html easily? Without use the URL to set that? regards Eduardo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SuggestBox something wrong with style
...so... The jsp produces HTML and doesn't work properly, but if you use the generated HTML, then it does, right? Looking at the demo (which I didn't before...) it seems that the only missing things are the right and bottom border and the corners. And the text-box is grey. That would suggest that the browser isn't displaying them properly (and not that the images are missing because the left and right borders are in the same png as are the top and bottom) What browser is hosted mode running? Does it work when compiled? Does CTRL+F5 make a difference? Ian http://examples.roughian.com 2008/10/15 kaspar.ru [EMAIL PROTECTED] you right Ian I use I use my own server in hosted mode (http:// code.google.com/support/bin/answer.py?answer=55200) and use jsp page for keeping some json data. So when I replace jsp with html everything works fine but in case of jsp there is this error. On 15 окт, 17:26, Ian Bambury [EMAIL PROTECTED] wrote: Mmm. Well, if you hadn't changed anything, then it would look the same. And it doesn't. So you have. And it's in the css. Posting your code doesn't help pin it down unless you were setting css in code. Check that the defauld css you are using is the same as the default css that they are using, and that no typing errols have crept in anywhere. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Good book on GWT 1.5
Dear all, Could anyone recommend good book on GWT 1.5 please. :-) I'm having a rough time reading the docs. Thank you very much --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Specific instance of trying to use Deferred Binding
I have a web app that currently uses only two GUI's with different sets of logic behind them, but we plan on adding more. I figured I would attempt some deferred binding to make this work. I have two interfaces: GUI and Logic, which are both implemented by my abstract classes AbstractGUI and AbstractLogic. My entrypoint class will just create instances of these (and a messenger class for RPC) and then do a couple of other setup things; then let those instances do what they need to do. My question is what should my instances of these classes be in this entry point class; the interfaces for them or the abstract versions? Obviously since I have abstract versions, I plan on extending them and these extensions will be my different GUI's and logic. Thanks for the help. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: EASYMOCK or JMOCK?
Hi Arthur, You should be able to find the GWTMockUtilities class in your GWT 1.5 distribution, with the Javadoc for the class included in the source. For the moment, GWTMockUtilities can only be used with JUnit. There is a simple example explained in the Javadoc as well that should help you get started with GWTMockUtilities for EasyMock support. In fact, it should be exactly what you're looking for in terms of mocking out your widgets for your test cases, so rock on :-) Hope that helps, -Sumit Chandel On Sun, Oct 12, 2008 at 5:28 PM, Arthur Kalmenson [EMAIL PROTECTED]wrote: Hey Ray, I never heard of a mocking utility in GWT and I can't seem to find it here: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?overview-summary.html . Is it in the trunk maybe? This would be a real help because right now I use interfaces to avoid having to use GWTTestCase. I guess it's good practise in general, but sometimes I would rather use Widget in my controller classes, and being able to mock them out would be very nice. Can GWTMockUtilities be used with any testing framework (TestNG) or just with JUnit? Yes, EasyMock rocks :) Regards, Arthur Kalmenson On Oct 10, 1:47 pm, Ray Ryan [EMAIL PROTECTED] wrote: Actually, our mocking story improved in 1.5, with the addition of GWTMockUtilities. See that class's javadoc for a sample use with EasyMock. Note that this allows normal JUnit test cases to create mock instances of GWT widgets. E.g., if you have a controller class and you want a mock of the widget that it drives without having to incur the 20 second GWTTestCase start up penalty, this is for you. If you need to test a widget itself, this won't help you. Oh, and EasyMock rocks. rjrjr On Oct 10, 6:07 am, Ponthiaux Eric [EMAIL PROTECTED] wrote: If you have the time to mock your project you're lucky : ). Anyway JMock looks better . regards . Arthur Kalmenson a écrit : This question was already asked a number of times. For server side testing, you can use any mocking framework you want. However, for client side testing of GWT specific code, you cannot use either mocking frameworks since they utilize reflection. Reflection is not supported on the client side for performance reasons. Regards, Arthur Kalmenson On Oct 8, 10:02 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can you use either EASYMOCK or JMOCK for unit testing purposes? Are there any restrictions or problems? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Import com.google.gdata.* doesn't work
Hi, I am trying to develop an application around google calendar, for which I am trying to use gdata libraries. Now the import to the gdata libraries doesn't work, as in the GWT compiler reports errors. Thus I understand that probably GWT is not compatible with gdata. Am I right on this??? And any work arounds??? -- Warm Regards, Amit Dhingra --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Parameter passing between host jsp and embedded gwt application
Im using a dictionary to do the exakt same thing and it works very good even with large amounts of data. you simply have forgotten the closing in the dictionary variables. 2008/10/15 Kevek [EMAIL PROTECTED] Hello, I have recently begun updating a web page for my company to be a bit more 21st-century. I should state that I am new to Javascript, and gwt, and I am not any sort of html wizard though I know the basics. I have been looking for a way in which to pass parameters into the Java class that is compiled into Javascript by gwt so that I might use these parameters in a RPC call to the server. I have read multiple posts on this discussion and have tried many things including adding div or input tags and attempting to read them, using JSNI to grab Javascript vars, and most recently attempting to use Dictionary class from com.google.gwt.i18n.I18N The post that I have been reading is the following thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/85267b4604f7e70f# When I attempt to use div or input the gwt grid no longer shows up at all. It is still there, as far as I can tell (I've used the Firefox Web Developer Toolbar to look at the included javascript) but I see nothing in either Firefox or IE When I attempt to grab the vars with JSNI I cannot get to it due to, I imagine, a misunderstanding on my part due to frames and variable scope when dealing with frames and Javascript. When I attempted to use the Dictionary class I again cannot see the gwt grid, identical problem as before. I believe in this case, though, it is because Dictionary is failing to find the variable - most likely due to aforementioned scope problems. The .jsp that includes these scripts as well as the frame that directs to the gwt application is as follows: % String jUser = request.getParameter(userId); String jAsOfDate = request.getParameter(asOfDate); String jCurrency = request.getParameter(currency); % script type=text/javascript var user = %=jUser%; var asOfDate = %=jAsOfDate%; var currency = %=jCurrency%; /script frameset FRAMEBORDER=0 BORDER=0 framespacing=0 frame SRC=/classpath/class.html name=ICV scrolling=yes noresize /frameset For the Dictionary attempt it is the same except the script is as follows: script type=text/javascript var params = { user: %=jUser%, asOfDate: %=jAsOfDate%, currency: %=jCurrency%, }; /script If anyone can see any glaring mistakes that I am making please let me know what I'm doing wrong. Else, a ulterior method to pass these variables would be just as good if not better! Thanks for reading, and for any help in advance, Kevek --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR:JS collections
The place we can run into trouble using the FastStringMap techniques is with IE6 when there are a lot of other JS objects, because of its less-then-optimal garbage collection algorithms. However, IE has the nice property it doesn't lie to you about the value of isOwnProperty(), so we can use an alternative js string map implementation for IE. I have also found that using a JsUniqueIdMap seems significantly faster then hash map, though I still need to prove that with more benchmarks, and is certainly smaller. On Tue, Oct 14, 2008 at 4:19 PM, Damon Lundin [EMAIL PROTECTED]wrote: I realize I may be jumping in late to this discussion, but Bruce just introduced me to this fine contributors group. At a talk during the Google I/O conference, I mentioned the benefit of using the GWT FastStringMap implementation over the HashMap implementation and I decided to re-run my analysis for 1.5 to see if the 1.5 compiler was smart enough to pick a faster implementation and unfortunately that does not appear to be the case. I hope I'm not hijacking Emily's thread, but I just thought some of you would find my (basic) data interesting for HashMap vs. FastStringMap. I posted my results up on my company development blog if you don't mind me not copy-and-pasting it all here: http://development.lombardi.com/?p=95 -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: SOYC Correlation work
On Wed, Oct 15, 2008 at 2:47 AM, Katharina Probst [EMAIL PROTECTED]wrote: I would say yes to the equals and compareTo, but I wouldn't consider the hashCode a blocking issue (although it's the simplest fix...). The equals and compareTo have the potential to create information loss (for example, something not added to the ancestor list) if there are actually cases where the comparison does not return the correct result. [In other words, the question is, can the current comparison in theory return a wrong result or is it provably correct?] I agree. Bob, what do you think? There are cases where addAdditionalAncestor will not actually add the ancestor. The question Kathrin and I could not answer is whether any of those cases matter. -Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: releases/1.6 merge from trunk
Well I'll be. Thanks for pointing that out. c3717 wasn't terribly important, so methinks I'll just remove it from the log message. Anyone have a serious problem with c3717http://code.google.com/p/google-web-toolkit/source/detail?r=3717not going into 1.6? On Wed, Oct 15, 2008 at 3:05 AM, Sam Gross [EMAIL PROTECTED] wrote: Hey Scott, The trunk fixes merged into releases/1.6 in r3739 seemed to have missed c3717. Regards, Sam --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RR: patch for ConstantMap to use FastStringMap instead of HashMap
Hi John, Please review the attached patch which fixes http://code.google.com/p/google-web-toolkit/issues/detail?id=2862 As per Scott's suggestion in the comments, I changed the implementation to use FastStringMap. Since FastStringMap is in a different package, I had to make the class public and make some of the private fields protected. The change passes all the i18n tests. Finally, modulo everything looks good, should this go in 1_5_3? Regards, Amit Index: user/src/com/google/gwt/i18n/client/impl/ConstantMap.java === --- user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (revision 3731) +++ user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (working copy) @@ -15,9 +15,10 @@ */ package com.google.gwt.i18n.client.impl; +import com.google.gwt.user.client.ui.FastStringMap; + import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; @@ -30,26 +31,15 @@ * specific, no elements are every removed from them and all elements are added * before the first user operation. */ -public class ConstantMap extends HashMapString, String { +public class ConstantMap extends FastStringMapString { - private static class DummyMapEntry implements Map.EntryString, String { -private final String key; + private static class DummyMapEntry extends FastStringMap.ImplMapEntryString { -private final String value; - DummyMapEntry(String key, String value) { - this.key = key; - this.value = value; + super(key, value); } -public String getKey() { - return key; -} - -public String getValue() { - return value; -} - +@Override public String setValue(String arg0) { throw new UnsupportedOperationException(); } Index: user/src/com/google/gwt/user/client/ui/FastStringMap.java === --- user/src/com/google/gwt/user/client/ui/FastStringMap.java (revision 3731) +++ user/src/com/google/gwt/user/client/ui/FastStringMap.java (working copy) @@ -31,16 +31,23 @@ * Special-case Map implementation which imposes limits on the types of keys * that can be used in return for much faster speed. In specific, only strings * that could be added to a JavaScript object as keys are valid. + * + * @param T the type of values. */ +public class FastStringMapT extends AbstractMapString, T { -class FastStringMapT extends AbstractMapString, T { - private static class ImplMapEntryT implements Map.EntryString, T { + /** + * Internal map entry. + * + * @param T The type of values. + */ + protected static class ImplMapEntryT implements Map.EntryString, T { private String key; private T value; -ImplMapEntry(String key, T value) { +protected ImplMapEntry(String key, T value) { this.key = key; this.value = value; } @@ -99,7 +106,7 @@ /* * Accesses need to be prefixed with ':' to prevent conflict with built-in * JavaScript properties. - */ + */ private JavaScriptObject map; public FastStringMap() { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: patch for ConstantMap to use FastStringMap instead of HashMap
What if we move FastStringMap into http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/user/src/com/google/gwt/user/client/impl ? On Wed, Oct 15, 2008 at 11:00 AM, Emily Crutcher [EMAIL PROTECTED] wrote: I do not think we want to make FastStringMap public where it is, though this might be another good reason to accelerate creating a jscollection package in GWT. On Wed, Oct 15, 2008 at 10:07 AM, Amit Manjhi [EMAIL PROTECTED]wrote: Hi John, Please review the attached patch which fixes http://code.google.com/p/google-web-toolkit/issues/detail?id=2862 As per Scott's suggestion in the comments, I changed the implementation to use FastStringMap. Since FastStringMap is in a different package, I had to make the class public and make some of the private fields protected. The change passes all the i18n tests. Finally, modulo everything looks good, should this go in 1_5_3? Regards, Amit Index: user/src/com/google/gwt/i18n/client/impl/ConstantMap.java === --- user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (revision 3731) +++ user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (working copy) @@ -15,9 +15,10 @@ */ package com.google.gwt.i18n.client.impl; +import com.google.gwt.user.client.ui.FastStringMap; + import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; @@ -30,26 +31,15 @@ * specific, no elements are every removed from them and all elements are added * before the first user operation. */ -public class ConstantMap extends HashMapString, String { +public class ConstantMap extends FastStringMapString { - private static class DummyMapEntry implements Map.EntryString, String { -private final String key; + private static class DummyMapEntry extends FastStringMap.ImplMapEntryString { -private final String value; - DummyMapEntry(String key, String value) { - this.key = key; - this.value = value; + super(key, value); } -public String getKey() { - return key; -} - -public String getValue() { - return value; -} - +@Override public String setValue(String arg0) { throw new UnsupportedOperationException(); } Index: user/src/com/google/gwt/user/client/ui/FastStringMap.java === --- user/src/com/google/gwt/user/client/ui/FastStringMap.java (revision 3731) +++ user/src/com/google/gwt/user/client/ui/FastStringMap.java (working copy) @@ -31,16 +31,23 @@ * Special-case Map implementation which imposes limits on the types of keys * that can be used in return for much faster speed. In specific, only strings * that could be added to a JavaScript object as keys are valid. + * + * @param T the type of values. */ +public class FastStringMapT extends AbstractMapString, T { -class FastStringMapT extends AbstractMapString, T { - private static class ImplMapEntryT implements Map.EntryString, T { + /** + * Internal map entry. + * + * @param T The type of values. + */ + protected static class ImplMapEntryT implements Map.EntryString, T { private String key; private T value; -ImplMapEntry(String key, T value) { +protected ImplMapEntry(String key, T value) { this.key = key; this.value = value; } @@ -99,7 +106,7 @@ /* * Accesses need to be prefixed with ':' to prevent conflict with built-in * JavaScript properties. - */ + */ private JavaScriptObject map; public FastStringMap() { -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWT branches\oophm fails with IndexOutOfBoundsException when reloading application
On Wed, Oct 15, 2008 at 6:08 AM, gslender [EMAIL PROTECTED] wrote: I get the following stack dump when I reload an application. When using FF3, the first load works fine, but when I refresh I get the following stack dump (ModuleSpace.scrubStackTrace was commented out to get the extended hosted mode dump). The following is the native code of XElement.setStyleAttribute public final native void setStyleAttribute(String attr, Object value) /*-{ this.setStyle(attr, value); }-*/; 00:00:26.260 [ERROR] Unable to load module entry point class com.mycompany.gxt.client.Test (see associated exception for details) java.lang.IndexOutOfBoundsException: Index: 18, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.google.gwt.dev.shell.CompilingClassLoader $DispatchClassInfoOracle.getClassInfoByDispId(CompilingClassLoader.java: 102) at com.google.gwt.dev.shell.CompilingClassLoader.getClassInfoByDispId(CompilingClassLoader.java: 545) at Ok, what is happening here is the dispatch ID-class table is empty in the new module instance, but the client is sending an old ID from the previous instance over the new channel. I'll see if I can get a simple reproduction case. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: patch for ConstantMap to use FastStringMap instead of HashMap
If we rename it FastStringMapImpl at the same time that would work. The rename is useful because people using class-lookup to find gwt utility classes cannot fail to realize it is an impl class. Of course, what I really want is a public JsStringMap api, and so consider the fact that we are having to make this class public because we need to use it as another plug for bumping up the priority for that API. Also, on the tangential note of serialization that started this thread, consider how fast a custom de-serializer could be made for JsStringMap :-). On Wed, Oct 15, 2008 at 11:42 AM, Scott Blum [EMAIL PROTECTED] wrote: What if we move FastStringMap into http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/user/src/com/google/gwt/user/client/impl ? On Wed, Oct 15, 2008 at 11:00 AM, Emily Crutcher [EMAIL PROTECTED] wrote: I do not think we want to make FastStringMap public where it is, though this might be another good reason to accelerate creating a jscollection package in GWT. On Wed, Oct 15, 2008 at 10:07 AM, Amit Manjhi [EMAIL PROTECTED]wrote: Hi John, Please review the attached patch which fixes http://code.google.com/p/google-web-toolkit/issues/detail?id=2862 As per Scott's suggestion in the comments, I changed the implementation to use FastStringMap. Since FastStringMap is in a different package, I had to make the class public and make some of the private fields protected. The change passes all the i18n tests. Finally, modulo everything looks good, should this go in 1_5_3? Regards, Amit Index: user/src/com/google/gwt/i18n/client/impl/ConstantMap.java === --- user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (revision 3731) +++ user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (working copy) @@ -15,9 +15,10 @@ */ package com.google.gwt.i18n.client.impl; +import com.google.gwt.user.client.ui.FastStringMap; + import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; @@ -30,26 +31,15 @@ * specific, no elements are every removed from them and all elements are added * before the first user operation. */ -public class ConstantMap extends HashMapString, String { +public class ConstantMap extends FastStringMapString { - private static class DummyMapEntry implements Map.EntryString, String { -private final String key; + private static class DummyMapEntry extends FastStringMap.ImplMapEntryString { -private final String value; - DummyMapEntry(String key, String value) { - this.key = key; - this.value = value; + super(key, value); } -public String getKey() { - return key; -} - -public String getValue() { - return value; -} - +@Override public String setValue(String arg0) { throw new UnsupportedOperationException(); } Index: user/src/com/google/gwt/user/client/ui/FastStringMap.java === --- user/src/com/google/gwt/user/client/ui/FastStringMap.java (revision 3731) +++ user/src/com/google/gwt/user/client/ui/FastStringMap.java (working copy) @@ -31,16 +31,23 @@ * Special-case Map implementation which imposes limits on the types of keys * that can be used in return for much faster speed. In specific, only strings * that could be added to a JavaScript object as keys are valid. + * + * @param T the type of values. */ +public class FastStringMapT extends AbstractMapString, T { -class FastStringMapT extends AbstractMapString, T { - private static class ImplMapEntryT implements Map.EntryString, T { + /** + * Internal map entry. + * + * @param T The type of values. + */ + protected static class ImplMapEntryT implements Map.EntryString, T { private String key; private T value; -ImplMapEntry(String key, T value) { +protected ImplMapEntry(String key, T value) { this.key = key; this.value = value; } @@ -99,7 +106,7 @@ /* * Accesses need to be prefixed with ':' to prevent conflict with built-in * JavaScript properties. - */ + */ private JavaScriptObject map; public FastStringMap() { -- There are only 10 types of people in the world: Those who understand binary, and those who don't -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Patch for TreeMap serialization
Let's just make this patch available on the issue and not include this in 1.5.3. On Tue, Oct 14, 2008 at 8:06 PM, Amit Manjhi [EMAIL PROTECTED] wrote: Hi all, I have attached a patch for TreeMap Serialization. The patch has been reviewed by John Tamplin. Most of the code is similar to the way we do serialization/deserialization for HashMap. The deserialization is done element by element and the tree is being built incrementally. John pointed out that this approach is fine for now, since the TreeMap implementation currently does not use the SortedMap constructor. There is just one drawback to this code going in 1_5_3. To get Stob to generate serializers for the key and value types, based on Lex's suggestion, I created two private variables that are not being used anywhere. Since my tests run correctly, either the compiler does not optimize away these two variables or Stob is looking at the code before these are optimized away? In both situations, there seem to be optimization opportunities. Moreover, in the former case, anyone using TreeMap would suffer an increase in codesize regardless of whether they use it for serialization or not. Am I missing something here? Thoughts about whether this code should go in 1_5_3 or not? Regards, Amit Index: user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java === --- user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java (revision 3731) +++ user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java (working copy) @@ -24,6 +24,7 @@ import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeHashSet; import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeLinkedHashMap; import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeLinkedHashSet; +import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeTreeMap; import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeVector; import java.sql.Time; @@ -36,6 +37,7 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.TreeMap; import java.util.Vector; /** @@ -328,6 +330,18 @@ return actual; } + public TreeMapString, MarkerTypeTreeMap echo( + TreeMapString, MarkerTypeTreeMap actual, boolean option) + throws CollectionsTestServiceException { +TreeMapString, MarkerTypeTreeMap expected = TestSetFactory.createTreeMap(option); +if (!TestSetValidator.isValid(expected, actual)) { + throw new CollectionsTestServiceException(expected: + + expected.toString() + actual: + actual.toString()); +} + +return actual; + } + public VectorMarkerTypeVector echo(VectorMarkerTypeVector actual) throws CollectionsTestServiceException { VectorMarkerTypeVector expected = TestSetFactory.createVector(); @@ -348,4 +362,5 @@ return value; } + } Index: user/test/com/google/gwt/user/client/rpc/TestSetValidator.java === --- user/test/com/google/gwt/user/client/rpc/TestSetValidator.java (revision 3731) +++ user/test/com/google/gwt/user/client/rpc/TestSetValidator.java (working copy) @@ -15,6 +15,7 @@ */ package com.google.gwt.user.client.rpc; +import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeTreeMap; import com.google.gwt.user.client.rpc.TestSetFactory.SerializableDoublyLinkedNode; import com.google.gwt.user.client.rpc.TestSetFactory.SerializablePrivateNoArg; import com.google.gwt.user.client.rpc.TestSetFactory.SerializableWithTwoArrays; @@ -26,7 +27,9 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Set; +import java.util.TreeMap; import java.util.Vector; import java.util.Map.Entry; @@ -318,6 +321,36 @@ return node.one == node.two; } + // also checks whether the sorting of entries is maintained or not. + public static boolean isValid(TreeMapString, MarkerTypeTreeMap expected, + TreeMapString, MarkerTypeTreeMap map) { +if (map == null) { + return false; +} +if (!equalsWithNullCheck(map.comparator(), expected.comparator())) { + return false; +} +int size = 0; +if ((size = expected.size()) != map.size()) { + return false; +} +// entrySet returns entries in the sorted order +ListMap.EntryString, MarkerTypeTreeMap actualList = new ArrayListMap.EntryString, MarkerTypeTreeMap( +map.entrySet()); +ListMap.EntryString, MarkerTypeTreeMap expectedList = new ArrayListMap.EntryString, MarkerTypeTreeMap( +expected.entrySet()); +for (int index = 0; index size; index++) { + EntryString, MarkerTypeTreeMap expectedEntry = expectedList.get(index); + EntryString, MarkerTypeTreeMap actualEntry =
[gwt-contrib] Re: RR: patch for ConstantMap to use FastStringMap instead of HashMap
Let's not do this in 1.5.3. On Wed, Oct 15, 2008 at 12:11 PM, Emily Crutcher [EMAIL PROTECTED] wrote: If we rename it FastStringMapImpl at the same time that would work. The rename is useful because people using class-lookup to find gwt utility classes cannot fail to realize it is an impl class. Of course, what I really want is a public JsStringMap api, and so consider the fact that we are having to make this class public because we need to use it as another plug for bumping up the priority for that API. Also, on the tangential note of serialization that started this thread, consider how fast a custom de-serializer could be made for JsStringMap :-). On Wed, Oct 15, 2008 at 11:42 AM, Scott Blum [EMAIL PROTECTED] wrote: What if we move FastStringMap into http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/user/src/com/google/gwt/user/client/impl ? On Wed, Oct 15, 2008 at 11:00 AM, Emily Crutcher [EMAIL PROTECTED] wrote: I do not think we want to make FastStringMap public where it is, though this might be another good reason to accelerate creating a jscollection package in GWT. On Wed, Oct 15, 2008 at 10:07 AM, Amit Manjhi [EMAIL PROTECTED]wrote: Hi John, Please review the attached patch which fixes http://code.google.com/p/google-web-toolkit/issues/detail?id=2862 As per Scott's suggestion in the comments, I changed the implementation to use FastStringMap. Since FastStringMap is in a different package, I had to make the class public and make some of the private fields protected. The change passes all the i18n tests. Finally, modulo everything looks good, should this go in 1_5_3? Regards, Amit Index: user/src/com/google/gwt/i18n/client/impl/ConstantMap.java === --- user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (revision 3731) +++ user/src/com/google/gwt/i18n/client/impl/ConstantMap.java (working copy) @@ -15,9 +15,10 @@ */ package com.google.gwt.i18n.client.impl; +import com.google.gwt.user.client.ui.FastStringMap; + import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; @@ -30,26 +31,15 @@ * specific, no elements are every removed from them and all elements are added * before the first user operation. */ -public class ConstantMap extends HashMapString, String { +public class ConstantMap extends FastStringMapString { - private static class DummyMapEntry implements Map.EntryString, String { -private final String key; + private static class DummyMapEntry extends FastStringMap.ImplMapEntryString { -private final String value; - DummyMapEntry(String key, String value) { - this.key = key; - this.value = value; + super(key, value); } -public String getKey() { - return key; -} - -public String getValue() { - return value; -} - +@Override public String setValue(String arg0) { throw new UnsupportedOperationException(); } Index: user/src/com/google/gwt/user/client/ui/FastStringMap.java === --- user/src/com/google/gwt/user/client/ui/FastStringMap.java (revision 3731) +++ user/src/com/google/gwt/user/client/ui/FastStringMap.java (working copy) @@ -31,16 +31,23 @@ * Special-case Map implementation which imposes limits on the types of keys * that can be used in return for much faster speed. In specific, only strings * that could be added to a JavaScript object as keys are valid. + * + * @param T the type of values. */ +public class FastStringMapT extends AbstractMapString, T { -class FastStringMapT extends AbstractMapString, T { - private static class ImplMapEntryT implements Map.EntryString, T { + /** + * Internal map entry. + * + * @param T The type of values. + */ + protected static class ImplMapEntryT implements Map.EntryString, T { private String key; private T value; -ImplMapEntry(String key, T value) { +protected ImplMapEntry(String key, T value) { this.key = key; this.value = value; } @@ -99,7 +106,7 @@ /* * Accesses need to be prefixed with ':' to prevent conflict with built-in * JavaScript properties. - */ + */ private JavaScriptObject map; public FastStringMap() { -- There are only 10 types of people in the world: Those who understand binary, and those who don't -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] GWT branches\oophm fails with IndexOutOfBoundsException when reloading application
Hi, I get the following stack dump when I reload an application. When using FF3, the first load works fine, but when I refresh I get the following stack dump (ModuleSpace.scrubStackTrace was commented out to get the extended hosted mode dump). The following is the native code of XElement.setStyleAttribute public final native void setStyleAttribute(String attr, Object value) /*-{ this.setStyle(attr, value); }-*/; 00:00:26.260 [ERROR] Unable to load module entry point class com.mycompany.gxt.client.Test (see associated exception for details) java.lang.IndexOutOfBoundsException: Index: 18, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.google.gwt.dev.shell.CompilingClassLoader $DispatchClassInfoOracle.getClassInfoByDispId(CompilingClassLoader.java: 102) at com.google.gwt.dev.shell.CompilingClassLoader.getClassInfoByDispId(CompilingClassLoader.java: 545) at com.google.gwt.dev.shell.JavaDispatchImpl.getMember(JavaDispatchImpl.java: 148) at com.google.gwt.dev.shell.JavaDispatchImpl.isField(JavaDispatchImpl.java: 111) at com.google.gwt.dev.shell.JsValueOOPHM $DispatchObjectOOPHM.getField(JsValueOOPHM.java:49) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 142) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1265) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 87) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 84) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 480) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java: 291) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java: 107) at com.extjs.gxt.ui.client.core.XElement$.setStyleAttribute$ (XElement.java) at com.extjs.gxt.ui.client.core.El.setStyleAttribute(El.java:2143) --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RR : Proposed Linker API and XML format for SOYC data
The attached Java file shows a rough sketch of what the CompilationAnalysis API might look like. The basic idea is to map J(s)Nodes, SourceInfos, and Correlations onto a simplified API suitable for building reports from. The inner interfaces would likely be top-level types in a separate package, but are in the one Java file for ease of transmission. The byte-accounting use cases would generally start with getStories(), which returns a Map of non-overlapping Ranges onto the applicable Story. Each Story can then provide a collection of Members that should be charged for those bytes. The reachability use case would use getClasses() and proceed to extract the fields and methods that have been retained (if somewhat mangled) in the JS output. The dependency use case is an extension and would crawl the Members that implement HasDependency. The inspection use case (similar to the JS-normal view) would be an extension of the byte-accounting interface, but would add in the additional mutation metadata from the Story. I'd expect that this is only really useful for compiler developers to look at the output with this much detail. Points for discussion: - Are simple HTML reports generated from the API (by a SoycReportLinker) or by processing an all-inclusive XML file after the fact? - There's going to be a _lot_ of data in the XML file [1]. It will likely be necessary to break the data up over several files, but I think that if we start with a single XML file and try to build some XSLT reports from it, we'll have a better idea of where the hotspots are. - If the data is broken up across several XML files, do we just start with a manifest XML file that says for dependency data for this permutation, see this file? - I don't really expect that anyone would use the Linker API directly, so I'm not really concerned with having that API perform any kind of aggregation or computations on behalf of the consumer. It's there in case anyone wants to use a different export format or to do something crazy like submit the data to a database as part of the build process. [1] A graphviz / .dot file showing dependencies for Dynatable weighs in at about 600k. It's mainly full of text label and lines that look like (56 - 182); Showcase dependency files are just under a meg. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- CompilationAnalysis.java Description: Binary data ?xml version=1.0 encoding=UTF-8? soyc !-- Assume that the children of the soyc node could be split up among several files to allow report-writers to reduce to total amount of XML used when generating simple reports. -- !-- Members are functional units that humans like to use -- members class id=com.google.Class name=Class package=com.google !-- Preserve some amount of the type hierarchy, even if the superclass or superinterface doesn't contribute anything directly. -- overrides idref=com.google.AbstractClass / !-- We could move depends to a top-level construct -- depends on idref=com.google.Foo.methodUsedInPrototypeSetup / /depends !-- After inlining, many things are related only through direct field accesses. -- field id=com.google.Class.field name=field / !-- Methods may or may not be directly preserved in the JS ouput, but we still want to be able to talk about the chunk of code the JS originated from. -- method id=com.google.Class.method name=method depends on idref=com.google.Other.method / on idref=com.google.Other.field / on idref=com.google.ThirdClass / /depends overrides idref=com.google.AbstractClass.method / /method /class !-- Prototype setup function -- function id=com_google_Class name=com_google_Class depends on idref=com.google.Class / /depends /function /members stories !-- Stories have a counter-based ID -- story id=story1 !-- The primary list of mutations, following the parent chain -- mutations mutationClass seed and function prototype setup/mutation mutationFrobnicator frobbed this function/mutation !-- Shows ancestor SourceInfos -- ancestor mutationAdditional ancestor's mutation/mutation mutationAdditional ancestar's mutation/mutation /ancestor ancestor mutationSome other ancester's mutation/mutation /ancestor /mutations !-- Shows references to member tags / functional units; getPrimaryCorrelations() -- correlations by idref=com.google.Class / by idref=com.google.Class.method / by idref=com_google_Class / /correlations /story
[gwt-contrib] Re: Patch for TreeMap serialization
Amit, this patch looks great. I saw a tiny bit of whitespace cheese in 1 or 2 files, but it's fine. On Wed, Oct 15, 2008 at 12:23 PM, Bruce Johnson [EMAIL PROTECTED] wrote: Let's just make this patch available on the issue and not include this in 1.5.3. I dunno, Bruce, I'm in favor of getting this in. Applying a patch is easy for someone mostly using GWT from source, but it's a real headache for anyone using the standard jar installation. It's very low-risk and would make a number of people happy. It also appeases the principle of least surprise, which is that TreeMap in the real JRE is marked Serializable and should be serializable. I'd argue for going ahead and putting it in. The reason not to do it was the opportunity cost of doing the work; since the work is done there's little risk in putting it in. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: SOYC Correlation work
Cool! LGTU. -Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: gwt-google-apis gears Add support for message types other than String()
On Tue, Oct 14, 2008 at 5:43 PM, Alex Rudnick [EMAIL PROTECTED] wrote: Hey Eric :) I'll take this one. LGTM, save the (formatting) comments below and a question about documentation. gears/test/com/google/gwt/gears/client/workerpool/WorkerPoolTest.java: 388: Should probably take out the commented-out testReceiveMessageObject. Unless you wanted to put this one in? Thanks - I put it back in. I had taken it out while debugging during some refactoring and forgot to put it back in. 473: Extra newline? Fixed. gears/src/com/google/gwt/gears/client/workerpool/WorkerPool.java: LGTM gears/src/com/google/gwt/gears/client/workerpool/WorkerPoolMessageHandler.java: 50: If the message is not really an Array type, the method may throw a JavaScriptException. What's an example of a case where it wouldn't throw an exception on a type mismatch? A quick explanation of why this would happen (or a link to one) would be helpful. Likewise for other javadocs in the file. As noted above, since an Array is also an Object, you wouldn't get an exception if you tried to read an Object type as an Array. I expanded the comments a bit, and re.moved them from classes where there actually is some explicit type conversion going on. The exception will only occur in hosted mode, so I noted that. On Mon, Oct 13, 2008 at 4:27 PM, Eric Ayers [EMAIL PROTECTED] wrote: This was reported as issue 182: http://code.google.com/p/gwt-google-apis/issues/detail?id=182 -- Alex Rudnick swe, gwt, atl Thanks for the review Alex! Committed as r899 -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: SOYC Correlation work
On Wed, Oct 15, 2008 at 1:39 PM, Lex Spoon [EMAIL PROTECTED] wrote: Cool! LGTU. Committed at r3760. I'm going to follow up to this with a patch to pass in the caller of makeChild() and makeSynthetic() since findCaller() was removed. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Patch for TreeMap serialization
@All: For context, we're shooting for a 1.5.3 this week, which is focused on fixing some problems with GWT RPC on Android. It will have a couple of other previously-agreed-upon bug fixes, too, but this TreeMap patch wasn't one of them. @Amit: Thank you for getting it done quickly, but in the spirit (that we are trying to cultivate) of getting and staying in the habit of having more predictable, shorter, lower-risk cycles, let's not do this patch for 1.5.3 despite the temptation to do so. If we and the community feel like lack of TreeMap serialization is bad enough to justify it, we could discuss a 1.5.4. @Scott: I fully acknowledge that it probably would be fine had we included this patch in 1.5.3, but let's err on the side of caution, and we can adjust our collective trigger finger in future cycles. On Wed, Oct 15, 2008 at 1:29 PM, Amit Manjhi [EMAIL PROTECTED] wrote: Thanks Scott. Bruce, should I commit it to 1.5.3 or not? On Wed, Oct 15, 2008 at 12:58 PM, Scott Blum [EMAIL PROTECTED] wrote: Amit, this patch looks great. I saw a tiny bit of whitespace cheese in 1 or 2 files, but it's fine. On Wed, Oct 15, 2008 at 12:23 PM, Bruce Johnson [EMAIL PROTECTED] wrote: Let's just make this patch available on the issue and not include this in 1.5.3. I dunno, Bruce, I'm in favor of getting this in. Applying a patch is easy for someone mostly using GWT from source, but it's a real headache for anyone using the standard jar installation. It's very low-risk and would make a number of people happy. It also appeases the principle of least surprise, which is that TreeMap in the real JRE is marked Serializable and should be serializable. I'd argue for going ahead and putting it in. The reason not to do it was the opportunity cost of doing the work; since the work is done there's little risk in putting it in. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: FF3 winxp on OOPHM rev 3747 branch fails with No GWT plugin found
I'm going to start another thread - that way the title stays on topic. Cheers, Grant --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r3761 - branches/oophm/user/src/com/google/gwt/dom/client
Author: [EMAIL PROTECTED] Date: Wed Oct 15 11:31:32 2008 New Revision: 3761 Modified: branches/oophm/user/src/com/google/gwt/dom/client/Element.java Log: Merge in fix for failing tests from 1.5/trunk. Modified: branches/oophm/user/src/com/google/gwt/dom/client/Element.java == --- branches/oophm/user/src/com/google/gwt/dom/client/Element.java (original) +++ branches/oophm/user/src/com/google/gwt/dom/client/Element.java Wed Oct 15 11:31:32 2008 @@ -56,10 +56,7 @@ * does not have a specified or default value */ public final native String getAttribute(String name) /*-{ -var result = this.getAttribute(name); -// BUILD FIX HACK: must coerce to String for IE. -// ON MERGE: use a jgw fix from trunk instead of this! -return (result == null) ? null : String(result); +return this.getAttribute(name) || ''; }-*/; /** --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RR 1.6: Snip a couple of redundant HasText declarations
Hey, Alex. This patch cleans up a couple of spots where we were unnecessarily declaring extends HasHTML, HasText (silly, since HasHTML itself extends HasText). It's intended for the 1.6 branch. M src/com/google/gwt/user/client/ui/DialogBox.java M src/com/google/gwt/user/client/ui/Anchor.java M src/com/google/gwt/user/client/ui/CustomButton.java rjrjr --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- snip-redundant-HasText-1_6-3761.patch Description: Binary data
[gwt-contrib] Re: RR 1.6: Snip a couple of redundant HasText declarations
LGTM! (although your formatting seems to have taken out a bunch of spaces inside comments, probably don't need to commit those...) On Wed, Oct 15, 2008 at 3:42 PM, Ray Ryan [EMAIL PROTECTED] wrote: Hey, Alex. This patch cleans up a couple of spots where we were unnecessarily declaring extends HasHTML, HasText (silly, since HasHTML itself extends HasText). It's intended for the 1.6 branch. M src/com/google/gwt/user/client/ui/DialogBox.java M src/com/google/gwt/user/client/ui/Anchor.java M src/com/google/gwt/user/client/ui/CustomButton.java rjrjr -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r3763 - in branches/oophm/user: src/com/google/gwt/user/client/rpc/impl src/com/google/gwt/user/s...
Author: [EMAIL PROTECTED] Date: Wed Oct 15 13:13:48 2008 New Revision: 3763 Modified: branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java branches/oophm/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java branches/oophm/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java branches/oophm/user/test/com/google/gwt/user/client/rpc/TestSetValidator.java branches/oophm/user/test/com/google/gwt/user/client/rpc/UnicodeEscapingService.java branches/oophm/user/test/com/google/gwt/user/client/rpc/UnicodeEscapingServiceAsync.java branches/oophm/user/test/com/google/gwt/user/client/rpc/UnicodeEscapingTest.java branches/oophm/user/test/com/google/gwt/user/server/rpc/RPCTest.java branches/oophm/user/test/com/google/gwt/user/server/rpc/UnicodeEscapingServiceImpl.java Log: Port RPC quoting change (with minor adjustment) from 1.5.3. Modified: branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java == --- branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java (original) +++ branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java Wed Oct 15 13:13:48 2008 @@ -15,6 +15,8 @@ */ package com.google.gwt.user.client.rpc.impl; +import com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter; + /** * Base class for the client and server serialization streams. This class * handles the basic serialization and deserialization formatting for primitive @@ -23,11 +25,21 @@ public abstract class AbstractSerializationStream { /** - * This is the only supported RPC protocol version. + * The character used to separate fields in client-server RPC messages. + * + * Note that this character is referenced in the following places not + * using this constant, and they must be changed if this is: + * ul + * li[EMAIL PROTECTED] ServerSerializationStreamWriter}.deserializeStringTable + * li[EMAIL PROTECTED] ClientSerializationStreamReader}.getQuotingRegex + * /ul */ - public static final int SERIALIZATION_STREAM_VERSION = 4; + public static final char RPC_SEPARATOR_CHAR = '|'; - protected static final char RPC_SEPARATOR_CHAR = '|'; + /** + * This is the only supported RPC protocol version. + */ + public static final int SERIALIZATION_STREAM_VERSION = 5; private int flags = 0; private int version = SERIALIZATION_STREAM_VERSION; Modified: branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java == --- branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java (original) +++ branches/oophm/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java Wed Oct 15 13:13:48 2008 @@ -16,8 +16,10 @@ package com.google.gwt.user.client.rpc.impl; import com.google.gwt.core.client.GWT; +import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.UnsafeNativeLong; import com.google.gwt.user.client.rpc.SerializationException; +import com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader; import java.util.List; @@ -27,18 +29,86 @@ public final class ClientSerializationStreamWriter extends AbstractSerializationStreamWriter { + /** + * Used by JSNI, see [EMAIL PROTECTED] #quoteString(String)}. + */ + @SuppressWarnings(unused) + private static JavaScriptObject regex = getQuotingRegex(); + private static void append(StringBuffer sb, String token) { assert (token != null); sb.append(token); sb.append(RPC_SEPARATOR_CHAR); } + /** + * Create the RegExp instance used for quoting dangerous characters in + * user payload strings. + * + * Note that [EMAIL PROTECTED] AbstractSerializationStream#RPC_SEPARATOR_CHAR} is used in + * this expression, which must be updated if the separator character is + * changed. + * + * For Android WebKit, we quote many more characters to keep them from + * being mangled. + * + * @return RegExp object + */ + private static native JavaScriptObject getQuotingRegex() /*-{ +// | = AbstractSerializationStream.RPC_SEPARATOR_CHAR +var ua = navigator.userAgent.toLowerCase(); +if (ua.indexOf(android) != -1) { + // initial version of Android WebKit has a double-encoding bug for UTF8, + // so we have to encode every non-ASCII character. Later builds can + // use \u0300 instead of \u0080, and hopefully by the time Android + // supports non-Latin input it will be fully
[gwt-contrib] Re: [gwt-team] Release Notes for review
Added Scott's changes. Any more nitpicks or is it ready to commit? Can you Thanks, John LaBanca [EMAIL PROTECTED] On Tue, Oct 14, 2008 at 4:37 PM, Scott Blum [EMAIL PROTECTED] wrote: Just formatting nitpicks.1) All code needs to use the HTML for code. 2) Any code that refers to a method should be postfixed with parentheses. See the formatting in 1.5.2 notes. Specifically: HTTPRequests - make singular to match class name, use code style getAbsoluteTop/Left - getAbsoluteTop()/Left() +codestyle Time.valueOf - Time.valueOf() +codestyle 08:00:00 - 08:00:00 +codestyle 0xC:0xB:0xA - 0xC:0xB:0xA +codestyle On Tue, Oct 14, 2008 at 4:20 PM, John LaBanca [EMAIL PROTECTED] wrote: Alright, please take a final look at the changes you all recommended and give a LGTM if the release notes look good. http://www.corp.google.com/~jlabanca/release_notes.htmlhttp://www.corp.google.com/%7Ejlabanca/release_notes.html Thanks, John LaBanca [EMAIL PROTECTED] On Tue, Oct 14, 2008 at 3:08 PM, Scott Blum [EMAIL PROTECTED] wrote: I don't think anything I did merits explicit release notes call out; let's remember to include a query link for all fixed issues. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- Index: distro-source/core/src/release_notes.html === --- distro-source/core/src/release_notes.html (revision 3762) +++ distro-source/core/src/release_notes.html (working copy) @@ -29,6 +29,7 @@ h1Google Web Toolkit Release Notes/h1 ul lia href=#Release_Notes_Current@GWT_VERSION@/a/li + lia href=#Release_Notes_1_5_21.5.2/a/li lia href=#Release_Notes_1_5_11.5.1 (RC2)/a/li lia href=#Release_Notes_1_5_01.5.0 (RC)/a/li lia href=#Release_Notes_1_4_601.4.60/a/li @@ -46,6 +47,25 @@ hr/ a name=Release_Notes_Current/a h2Release Notes for @GWT_VERSION@/h2 + h3Fixed Issues/h3 + ul +liRPC requests no longer fail on the embedded Android web browser/li +liLeaf codeTreeItems/code now line up with their non-leaf siblings/li +liRemoving the last child node from a codeTreeItem/code no longer creates extra margins on the left/li +licodeHTTPRequest/code no longer uses POST instead of GET on some IE installs because of incorrect XHR selection/li +liCompiler now uses a more reliable check to prevent methods with local variables from being inlined/li +licodegetAbsoluteTop()/Left()/code can no longer return non-integral values/li +licodeTime.valueOf()/code no longer fails to parse code08:00:00/code or incorrectly accepts code0xC:0xB:0xA/code./li + /ul + p +See the GWT issue tracker for +a href=http://code.google.com/p/google-web-toolkit/issues/list?can=1q=status%3AFixed%2CFixedNotReleased%20milestone%3A1_5_3num=1000; +the complete list of bug fixes and enhancements/a in this release. + /p + + hr/ + a name=Release_Notes_1_5_2/a + h2Release Notes for 1.5.2/h2 h3Potentially breaking changes and fixes/h3 ul licodeHistory.onHistoryChanged()/code has been added back (it was missing from 1.5 RC2) but is now deprecated. Application startup should be handled by calling the new codeHistory.fireCurrentHistoryState()/code./li
[gwt-contrib] Code Review Request - disabled XMLTest.testParse() in the 1.5 branch
John - Please do a code review on this patch that disables XMLTest.testParse(). It fails on Safari in web mode in the 1.5 branch, but it passes on all other configs. The files in the xml package in the 1.5 branch are identical to the files in the trunk. Thanks, John LaBanca [EMAIL PROTECTED] --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- Index: user/test/com/google/gwt/xml/client/XMLTest.java === --- user/test/com/google/gwt/xml/client/XMLTest.java (revision 3762) +++ user/test/com/google/gwt/xml/client/XMLTest.java (working copy) @@ -312,7 +312,13 @@ assertEquals(top.getChildNodes().getLength(), 1); } - public void testParse() { + /** + * This test is failing on one Safari configuration in web mode in the 1.5 + * release branch, but it passes in all other configurations and in the trunk. + * The files in the xml package are identical between the trunk and the 1.5 + * branch. + */ + public void disabledTestParse() { Document docA = XMLParser.parse(!--hello-- a spam=\ham\\n ?pi hello ?dfgdfg b/\t/a); Document docB = XMLParser.createDocument();
[gwt-contrib] [google-web-toolkit commit] r3764 - in changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs: . ast impl
Author: [EMAIL PROTECTED] Date: Wed Oct 15 13:42:08 2008 New Revision: 3764 Added: changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java (contents, props changed) changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java (contents, props changed) Removed: changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentMapper.java Modified: changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/JavaToJavaScriptMap.java changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java Log: Instead of code splitting in GenerateJavaScriptAST, split code after JavaScript optimization has completed. This allows code splitting to be more modular. Extraction of an individual fragment is done by a new class FragmentExtractor, and the standard splitting strategy is implemented by class CodeSplitter. FragmentMapper goes away, and so do the associated fragment maps in JTypeOracle. Modified: changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java == --- changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (original) +++ changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java Wed Oct 15 13:42:08 2008 @@ -40,12 +40,12 @@ import com.google.gwt.dev.jjs.impl.BuildTypeMap; import com.google.gwt.dev.jjs.impl.CastNormalizer; import com.google.gwt.dev.jjs.impl.CatchBlockNormalizer; +import com.google.gwt.dev.jjs.impl.CodeSplitter; import com.google.gwt.dev.jjs.impl.DeadCodeElimination; import com.google.gwt.dev.jjs.impl.EqualityNormalizer; import com.google.gwt.dev.jjs.impl.Finalizer; import com.google.gwt.dev.jjs.impl.FixAssignmentToUnbox; import com.google.gwt.dev.jjs.impl.FragmentLoaderCreator; -import com.google.gwt.dev.jjs.impl.FragmentMapper; import com.google.gwt.dev.jjs.impl.GenerateJavaAST; import com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST; import com.google.gwt.dev.jjs.impl.JavaAndJavaScript; @@ -400,8 +400,7 @@ ReplaceRebinds.exec(logger, jprogram, rpo); // Fix up GWT.createAsync() - int fragments = ReplaceRunAsyncs.exec(logger, jprogram); - jsProgram.setFragmentCount(fragments); + ReplaceRunAsyncs.exec(logger, jprogram); // Resolve entry points, rebinding non-static entry points. findEntryPoints(logger, rpo, declEntryPoints, jprogram); @@ -551,9 +550,6 @@ // Prune everything Pruner.exec(jprogram, false); -// (6.5) Map each piece of the program to one of the program fragments -FragmentMapper.exec(jprogram); - // (7) Generate a JavaScript code DOM from the Java type declarations jprogram.typeOracle.recomputeClinits(); final JavaToJavaScriptMap map = GenerateJavaScriptAST.exec(jprogram, @@ -603,31 +599,11 @@ throw new InternalCompilerException(Unknown output mode); } -JavaToJavaScriptMap postStringInterningMap = new JavaToJavaScriptMap() { - public JsName nameForType(JReferenceType type) { -return map.nameForType(type); - } - - public JField nameToField(JsName name) { -return map.nameToField(name); - } +JavaToJavaScriptMap postStringInterningMap = addStringLiteralMap(map, +stringLiteralMap); - public JMethod nameToMethod(JsName name) { -return map.nameToMethod(name); - } - - public String stringLiteralForName(JsName name) { -return stringLiteralMap.get(name); - } - - public JReferenceType typeForStat(JsStatement stat) { -return map.typeForStat(stat); - } - - public JMethod vtableInitToMethod(JsStatement stat) { -return map.vtableInitToMethod(stat); - } -}; +// (10.5) Split up the program into fragments +CodeSplitter.exec(jprogram, jsProgram, postStringInterningMap); // (11) Perform any post-obfuscation normalizations. @@ -701,6 +677,40 @@ // prove that any types that have been culled from the main tree are // unreferenced due to type tightening? } while (didChange); + } + + private JavaToJavaScriptMap addStringLiteralMap( + final JavaToJavaScriptMap map, final MapJsName, String stringLiteralMap) { +JavaToJavaScriptMap postStringInterningMap = new JavaToJavaScriptMap() { + public JsName nameForMethod(JMethod method) { +
[gwt-contrib] Re: data binding framework for GWT
Hi Ray, On Wed, Oct 8, 2008 at 6:24 PM, Ray Cromwell [EMAIL PROTECTED] wrote: Something struck me about the way you are approaching things, that is, letting the BoundField's return widgets. With the new HasData stuff being proposed, why not let the programmer create the widget, and bind the field to an already created widget? (if the widgets export an interface like HasData which permits wiring them up.) That seems to provide more flexibility, since people tend to design the look and layout of the widgets and wire up the logic separately. Couldn't the API look more like this? PersonForm form = GWT.create(PersonForm.class); form.getFirstName().bind(existingWidget, personInstance); form.getLastName().bind(anotherExistingWidget, personInstance); or perhaps form.bindInstance(personInstance). getFirstName().bind(widget1). getLastName().bind(widget2); I realize there may be issues making this work with arbitrary subclasses of Widget, but let's leave that aside for a moment and assume the proper support can be added to the widgets. This would also seem to work alot better with the proposed UI Templating system being proposed. Sorry for the long delay--it's taking a while to come back to the real world after a weekend that included about 45 hours in a car and a fair amount of turkey. Anyway, I've thought some more about your suggestion here (that widgets be passed into the binding framework, rather than defining them on the form), and I think I agree with you. Given that the same value could be displayed/edited in more than one kind of widget, the choice of _which_ widget seems like a presentation issue while the business logic in the binding itself seems like a model issue. I think that's enough argument for me that you're right. (As a bonus, your suggestion also cleans up the smell of defining constructor arguments in string form on the @UseEditor and @UseViewer annotations.) I do disagree with the particular APIs you suggested, though. To me, a Form is to a class as a BoundForm is to an instance. I think it should be possible to use the same form in multiple places at once, and each place should be relatively independent, sharing only definitions and not instances. I'd therefore suggest something like the following: BeanForm form = GWT.create(BeanForm.class); BoundFormBeanType boundForm = form.bindTo(beanInstance); panel.add(boundForm.bind(form.getFieldOne(), new TextBoxEditor(CurrencyConverter.INSTANCE)); panel.add(boundForm.bind(form.getFieldTwo(), new LabelViewer(DefaultToString.INSTANCE)); panel.add(boundForm.bind(form.getFieldThree(), new CreditCardEditor()); The above code could be shortened if you assume it was in the context of a DataCompositeBeanType instead of in some random UI code: public class BeanComposite extends DataCompositeBeanType { private static final BeanForm form = GWT.create(BeanForm.class); // in retrospect, I really like this code--there's hardly any // generic type cheese in the _use_ of the binding library // anywhere except the definition of the form itself. public BeanComposite() { super(form); FlowPanel panel = new FlowPanel(); panel.add(bind(form.getFieldOne(), new TextBoxEditor(CurrencyConverter.INSTANCE))); panel.add(bind(form.getFieldTwo(), new LabelViewer(DefaultToString.INSTANCE))); panel.add(bind(form.getFieldThree(), new CreditCardEditor())); initWidget(panel); } } // in random UI code BeanComposite bc = new BeanComposite(); RootWidget.get().add(bc); bc.setBean(new BeanType()); Regarding implementing widgets with proper support for a databinding library like mine, I think that's a bad idea. At the moment, I still like the declaration of intent implied by the Viewer and Editor interfaces, so I'd expect BoundForm.bind() to be declared something like this: public interface BoundFormB { /** * Binds editor to field and returns editor. codeP/code is field's value type. */ P, W extends Widget EditorP W bind(FieldB, P field, W editor); /** * Binds viewer to formula and returns viewer. codeP/code is formula's value type. */ P, W extends Widget ViewerP W bind(FormulaB, P formula, W viewer); } Given HasData, it might be possible to write some really generic implementations of Editor and Viewer that wrap an instance of HasData to make it easier for developers to come up with an instance of Editor to bind to, but I'm a little squirrelly about binding to arbitrary widgets. Thoughts? Ian PS I intend to look at the XForms spec as soon as I have some time--I'm not ignoring your exhortations. :) --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Patch for TreeMap serialization
Commited as r3765 to 1.6 On Wed, Oct 15, 2008 at 2:14 PM, Bruce Johnson [EMAIL PROTECTED] wrote: @All: For context, we're shooting for a 1.5.3 this week, which is focused on fixing some problems with GWT RPC on Android. It will have a couple of other previously-agreed-upon bug fixes, too, but this TreeMap patch wasn't one of them. @Amit: Thank you for getting it done quickly, but in the spirit (that we are trying to cultivate) of getting and staying in the habit of having more predictable, shorter, lower-risk cycles, let's not do this patch for 1.5.3 despite the temptation to do so. If we and the community feel like lack of TreeMap serialization is bad enough to justify it, we could discuss a 1.5.4. @Scott: I fully acknowledge that it probably would be fine had we included this patch in 1.5.3, but let's err on the side of caution, and we can adjust our collective trigger finger in future cycles. On Wed, Oct 15, 2008 at 1:29 PM, Amit Manjhi [EMAIL PROTECTED]wrote: Thanks Scott. Bruce, should I commit it to 1.5.3 or not? On Wed, Oct 15, 2008 at 12:58 PM, Scott Blum [EMAIL PROTECTED] wrote: Amit, this patch looks great. I saw a tiny bit of whitespace cheese in 1 or 2 files, but it's fine. On Wed, Oct 15, 2008 at 12:23 PM, Bruce Johnson [EMAIL PROTECTED]wrote: Let's just make this patch available on the issue and not include this in 1.5.3. I dunno, Bruce, I'm in favor of getting this in. Applying a patch is easy for someone mostly using GWT from source, but it's a real headache for anyone using the standard jar installation. It's very low-risk and would make a number of people happy. It also appeases the principle of least surprise, which is that TreeMap in the real JRE is marked Serializable and should be serializable. I'd argue for going ahead and putting it in. The reason not to do it was the opportunity cost of doing the work; since the work is done there's little risk in putting it in. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---