Re: MyNamedFrame is better than GWT's NamedFrame
As it turns out, IE does NOT support programmatically setting the onload attribute of the iframe. The solution is to set the onload attribute in the html tab to call another function, which is the function you programmatically set. My following post will include all the code for the new solution, which works in ALL browsers (well I tested IE, FF and Chrome :P) On May 20, 12:13 am, Sky myonceinalifet...@gmail.com wrote: Just in case you ever wanted to have a handler for the iframe's onload event: import com.google.gwt.event.dom.client.HasLoadHandlers; import com.google.gwt.event.dom.client.LoadEvent; import com.google.gwt.event.dom.client.LoadHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.ui.NamedFrame; public classMyNamedFrameextends NamedFrame implements HasLoadHandlers { publicMyNamedFrame(String name) { super(name); } @Override public HandlerRegistration addLoadHandler(LoadHandler handler) { return addDomHandler(handler, LoadEvent.getType()); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MyNamedFrame is better than GWT's NamedFrame
package com.skystrider.subtabs.client.gwtUtils; import java.util.ArrayList; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.dom.client.IFrameElement; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.Frame; /** * A {...@link com.google.gwt.user.client.ui.Frame} that has a 'name' associated * with it. This allows the frame to be the target of a * {...@link com.google.gwt.user.client.ui.FormPanel} * * h3CSS Style Rules/h3 * ul class='css' * li.gwt-Frame { }/li * /ul */ public class MyNamedFrame extends Frame { private ArrayListLoadHandler loadHandlers = null; // Used inside JSNI, so please don't delete this field just because // your compiler or IDE says it's unused. @SuppressWarnings(unused) private static JavaScriptObject PATTERN_NAME; static { if (GWT.isClient()) { initStatics(); } } /** * Creates an HTML IFRAME element with a src and name. * * @param src the src of the frame * @param name the name of the frame, which must contain at least one * non-whitespace character and must not contain reserved HTML markup * characters such as 'codelt;/code', 'codegt;/ code', * or 'codeamp;/code' * @return the newly-created element * @throws IllegalArgumentException if the supplied name is not allowed */ private static IFrameElement createIFrame(String src, String name) { if (name == null || !isValidName(name.trim())) { throw new IllegalArgumentException( expecting one or more non-whitespace chars with no '', '', or ''); } // Use innerHTML to implicitly create the iframe. This is necessary // because most browsers will not respect a dynamically-set iframe name. Element div = DOM.createDiv(); String onload = onload=\if(!event){event = window.event;} this.myonload(event);\; div.setInnerHTML(iframe src=\ + src + \ name=' + name + ' + onload + ); return div.getFirstChild().cast(); } private static native void initStatics() /*-{ @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME = /^[^ \'\]+$/; }-*/; /** * @param name the specified frame name to be checked * @return codetrue/code if the name is valid, codefalse/ code if * not */ private static native boolean isValidName(String name) /*-{ return @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME.test(name); }-*/; /** * Constructs a frame with the given name. * * @param name the name of the frame, which must contain at least one * non-whitespace character and must not contain reserved HTML markup * characters such as 'codelt;/code', 'codegt;/ code', * or 'codeamp;/code' * * @throws IllegalArgumentException if the supplied name is not allowed */ public MyNamedFrame(String name) { // Setting a src prevents mixed-content warnings. // http://weblogs.asp.net/bleroy/archive/2005/08/09/how-to-put-a-div-over-a-select-in-ie.aspx super(createIFrame(javascript:'', name)); setStyleName(gwt-Frame); setMyOnload(this.getElement().cast(), this); } /** * Gets the name associated with this frame. * * @return the frame's name */ public String getName() { return DOM.getElementProperty(getElement(), name); } public void addLoadHandler(LoadHandler handler) { if(loadHandlers == null){ loadHandlers = new ArrayListLoadHandler(); } loadHandlers.add(handler); } public interface LoadHandler { void onLoad(Event event); } public native void setMyOnload(JavaScriptObject elm, MyNamedFrame frame)/*-{ elm.myonload = function(event){ fra...@com.skystrider.subtabs.client.gwtutils.mynamedframe::onload(Lcom/ google/gwt/user/client/Event;)(event); }; }-*/; public void onload(Event event) { for (LoadHandler handler : loadHandlers) { handler.onLoad(event); } } } On May 20, 12:13 am, Sky myonceinalifet...@gmail.com wrote: Just in case you ever wanted to have a handler for the iframe's onload event: import
Re: Is switching to GWT 2.1 safe?
I'm interested in new widget too, but, for me, I think it's better to continue developing the application (which is quite simple) with 2.0 and then spend some time converting it to 2.1 with the new widget... On May 21, 12:11 am, Paul Stockley pstockl...@gmail.com wrote: I have a fatal compiler issue when trying to compile my application. They are working on tracking it down. Dev mode works OK. The only reason I am on it is because I want to try out the new cell views. I would hold off for a while if you can. On May 20, 5:55 pm, Jeff Chimene jchim...@gmail.com wrote: On 05/20/2010 02:35 PM, Raffo wrote: I'm currently working on a project with GWT and I want to know if it is safe to switch now to GWT 2.1... I don't want to have strange bugs or other problems that will slow down the development... thank you. If you are in a time crunch, there is absolutely no [point/reason/excuse] to adopt 2.1M1 It's a milestone release; which label means the odds are not in your favor that it's free of show-stopper bugs that can will affect your project. That being said, you can install 2.1 side-by-side with 2.0. Do you use an IDE? If you use a recent version of Eclipse, such parallel testing is fairly straightforward. Earlier today there was a message re: a compile error on 2.1M1 Check today's archived posts for more info. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: resize-able panels like in google wave
great! i thought i had to make them myself! (sorry i'm new to GWT) On Thu, May 20, 2010 at 9:03 PM, kozura koz...@gmail.com wrote: Or the new SplitLayoutPanel which does arbitrary resizable panels. On May 20, 1:00 pm, Sean slough...@gmail.com wrote: I haven't used Google Wave, but it sounds like you're talking about HorizontalSplitPanel which is built into GWT. There's also a VerticalSplitPanel. On May 20, 7:38 am, outsource lucas outsourcelu...@gmail.com wrote: Hi all, I am still quite new to GWT. If I wish to make resize-able panels (horizontal or vertical resizer bars) like in google wave, what is the best way to implement this in GWT? Is there any example available? Lucas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: resize-able panels like in google wave
Can you nest those SplitLayoutPanels inside each other? Does that still work? On Fri, May 21, 2010 at 9:21 AM, outsource lucas outsourcelu...@gmail.comwrote: great! i thought i had to make them myself! (sorry i'm new to GWT) On Thu, May 20, 2010 at 9:03 PM, kozura koz...@gmail.com wrote: Or the new SplitLayoutPanel which does arbitrary resizable panels. On May 20, 1:00 pm, Sean slough...@gmail.com wrote: I haven't used Google Wave, but it sounds like you're talking about HorizontalSplitPanel which is built into GWT. There's also a VerticalSplitPanel. On May 20, 7:38 am, outsource lucas outsourcelu...@gmail.com wrote: Hi all, I am still quite new to GWT. If I wish to make resize-able panels (horizontal or vertical resizer bars) like in google wave, what is the best way to implement this in GWT? Is there any example available? Lucas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiling classes that refer to uncompilable classes
Use DTOs and some mapping helpers to communicate with the presentation layer (GWT). There's a prior discussion in the group regardin this, search for Dozer / Gilead. HTH, best regards José On 20 mayo, 23:16, Raziel raziel...@gmail.com wrote: Hi, currently I create modules in order to access server-side classes in my GWT client code. Until now all these classes have not referred (directly or indirectly) to classes outside of the GWT JRE emulation. However, now I need to be able to compile a bean with a reference to javax.xml.namescape.QName. And in general I see how it might soon be needed to compile classes with references to uncompilable classes either because it's a third party class and we don't have the source available, or it's a JRE class for which there's no emulation yet, etc. So I'm wondering if there's a way to use deferred binding to provide the compiler with a client-side specific implementation of those classes. The caveat of course is that the class containing the offending reference to uncompilable code should not be changed. For example: class MyBean { QName q; MyBean(QName q) { this.q = q; } } Maybe something along the lines of ... replace-with class=com.mycompany.gwt.bind.MyQName when-type-is class=javax.xml.namescape.QName/ /replace-with For what I read nothing of the like is possible, since for starters the deferred implementation has to go through GWT.create(), but I'm hoping there's another way I haven't thought about. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
difference between hosted mode and development mode
hi, i m quite new to gwt i m using eclipse for building GWT projects my question is what is the difference between hosted mode and development mode...? and also how many modes of deployment actually exist...? Thank you. -- Chatak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help integrating GWT with existing Eclipse J2EE Tomcat project
Sorry, I don't have my development environment here, so I don't remember the exact details, but... You must run BOTH the Tomcat server and the GWT application in development mode. The trick is to configure the GWT application so it doesn't run the built in server, and use the Tomcat server instead. When run this way, the first time you launch the GWT application it will ask for the place where the web application is, you must point it to the Tomcat webapp directory used by Eclipse. This way you're also able to debug simultaneously the GWT and the JavaEE code. We've got such an environment, integrated with Maven. Sorry for giving such a few details... I guess I'll end up writing and publishing a how to about this... HTH, best regards José On 19 mayo, 20:34, randy randiz...@gmail.com wrote: Using the Eclipse plugin I created a new GWT project. I was able to run it in development mode (via the 'Run As Web Application' command. I was able to run the auto-generated test app successfully. Note that I named the test project testGWT. I have an existing project in Eclipse which uses Tomcat. I need to integrated GWT into this project. I followed the instructions here...http://code.google.com/eclipse/docs/existingprojects.html I then copied the source code, html and css from the test project into my project. I also copied the servlet entry into my web.xml. I restarted Tomcat and noted that the WAR/testgwt directory was created/ I then tried to hithttp://127.0.0.1:8080/TestGWT.html?gwt.codesvr=127.0.0.1:9997 in my browser, which returned... Plugin failed to connect to hosted mode server at 127.0.0.1:9997 (I tried changing 127.0.0.01 to localhost, which did not help.) At this point I thought I would simply compile to Javascript and test that way. I right clicked the project Google GWT Compile. I get the dialogue which shows my entry point class. When I click ok I get the error GWT compilation failed with no details as to why. I confirmed that the gwt-servlet.jar file is on my classpath and Eclipse is notifying me of no compilation problems prior to the GWT compile attempt. Next I tried compiling to Javascript from the command line and then hitting the test page in production mode. This worked. This is obviously an insufficient solution however. I think I must be missing something fundamental. Does anyone have any suggestions? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: difference between hosted mode and development mode
Hosted mode is the old name for development mode, they're the same. There are two modes, and they're currently named development mode and production mode Best regards José On 21 mayo, 11:58, Chatak 007aditya.b...@gmail.com wrote: hi, i m quite new to gwt i m using eclipse for building GWT projects my question is what is the difference between hosted mode and development mode...? and also how many modes of deployment actually exist...? Thank you. -- Chatak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the best/easiest way of doing server-side persistence with GWT?
Thanks José! Spring Roo looks brilliant! Just one issue, does any of its modules utilise Gilead or another DTO assembler so that the Hibernate entities can smoothly go to the GWT client-side? On May 20, 5:03 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although you could think they're the perfect solution for persistence in OO languages, object databases haven't taken off, so if you're doing anything serious I would be cautious about using them. I don't know of any big application in production with an OODB. Maybe we're too used to relational databases... Take a look at Spring Roo, I think you will like it. Best regards José On 20 mayo, 17:43, Navigateur naveen.c...@googlemail.com wrote: Wow, thanks José and David! I'm new to tools so I'm a bit nervous about using them (although I probably shouldn't be) whereas db4o offers straightforward code for persisting objects. Are there any disadvantages to using db4o instead of ORM with tools? db4o seems intuitavely the best option for me right now, but could I be wrong? I thank David for bringing it to my attention, it looks VERY interesting, and under active development, although the queries are currently reportedly slow, but when that is fixed, is there a reason why it shouldn't supercede RD and ORD for new projects? On May 20, 3:18 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: JPA/Hibernate supports annotations, so you don't have to fiddle with xml files any more; and JPA/Hibernate has adopted the sane defaults and convention over configuration policy, so unless you want to take control of your mappings (something you should do if you're doing anything serious) most of the times it's enough to annotate the persistent class with the @Entity annotation. Anyway, if you're handling complex object structures, it's way more cumbersome to handle persistence by hand, instead of using a ORM framework. If you want to have automatic update of the database, Hibernate tools is able to generate the database schema from your mappings. I suggest to take a look at Maven, Maven Hibernate plugin, JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT has just made a coordinated release with Spring Roo and I think it may be quite interesting for you. I hope this isn't getting too much OT... HTH, best regards José On 20 mayo, 15:37, Navigateur naveen.c...@googlemail.com wrote: Thanks José! But don't they still require you to do the hibernate- mapping xml thing? Isn't this cumbersome for complex object structures? Or is there a way of being able to play with your object structure without having to change the hibernate-mapping xml every time (i.e. a default automatic behaviour for all objects, which also updates the data-store to reflect object-structure changes in the code)? Thanks! N On May 20, 10:08 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although your question has (almost) nothing to do with GWT... we're working on a GWT + JavaEE application, and evaluated several alternatives regarding this problem. We had two winners, both of them using of course JPA with Hibernate provider: 1. Use Gilead to transform your persistent entities and send them to GWT 2. Use DTOs, and use Dozer to transform from / to domain objects / entities In our case we chose DTOs / Dozer over Gilead because we favoured layer separation, encapsulation and security over development ease. YMMV Best regards José On 20 mayo, 10:54, Navigateur naveen.c...@googlemail.com wrote: Ah yes! Except that I want to be able to get persistent things onto my client side without too much conversion or trouble (i.e. the same objects client-and-server-side using the same language, and the same class definitions). What are my full range of options for this, anyway? And which is the best one for the purposes I've mentioned? On May 20, 12:34 am, Blessed Geek blessedg...@gmail.com wrote: Wouldn't your initial question be like - What is the best power tool to use to build the fence around my garden if I wish to plant my garden with tulips. But later on in your post, you reveal that your question actually has nothing to do with GWT, just as growing tulips has nothing to do with choice of power tools for your fence. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group
Re: How to get notified after a widget has been completely rendered?
As far as I understood both of them are called *before* the rendering is complete: onLoad: This method is called immediately after a widget becomes attached to the browser's document. onAttach: This method is called when a widget is attached to the browser's document. Or am I mistaken here? (for me they both sound very similar and I don't really get the difference) thanks, Dennis On May 20, 4:37 pm, rudolf michael roud...@gmail.com wrote: onLoad or onAttach On Thu, May 20, 2010 at 5:16 PM, googelybear googelyb...@gmail.com wrote: Hi, I'd like to ask if it is possible to get notified (by adding some kind of event handler) after a widget has been completely rendered? I couldn't find such an event... thanks for your help, Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the best/easiest way of doing server-side persistence with GWT?
Can't help there, as I haven't tried it yet. Anyway the Spring Roo tutorial includes generation of persistent classes using JPA and Hibernate, so I guess it will include some way to get those entities to GWT, taking into account that is integrated with it Good luck!! On 21 mayo, 12:57, Navigateur naveen.c...@googlemail.com wrote: Thanks José! Spring Roo looks brilliant! Just one issue, does any of its modules utilise Gilead or another DTO assembler so that the Hibernate entities can smoothly go to the GWT client-side? On May 20, 5:03 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although you could think they're the perfect solution for persistence in OO languages, object databases haven't taken off, so if you're doing anything serious I would be cautious about using them. I don't know of any big application in production with an OODB. Maybe we're too used to relational databases... Take a look at Spring Roo, I think you will like it. Best regards José On 20 mayo, 17:43, Navigateur naveen.c...@googlemail.com wrote: Wow, thanks José and David! I'm new to tools so I'm a bit nervous about using them (although I probably shouldn't be) whereas db4o offers straightforward code for persisting objects. Are there any disadvantages to using db4o instead of ORM with tools? db4o seems intuitavely the best option for me right now, but could I be wrong? I thank David for bringing it to my attention, it looks VERY interesting, and under active development, although the queries are currently reportedly slow, but when that is fixed, is there a reason why it shouldn't supercede RD and ORD for new projects? On May 20, 3:18 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: JPA/Hibernate supports annotations, so you don't have to fiddle with xml files any more; and JPA/Hibernate has adopted the sane defaults and convention over configuration policy, so unless you want to take control of your mappings (something you should do if you're doing anything serious) most of the times it's enough to annotate the persistent class with the @Entity annotation. Anyway, if you're handling complex object structures, it's way more cumbersome to handle persistence by hand, instead of using a ORM framework. If you want to have automatic update of the database, Hibernate tools is able to generate the database schema from your mappings. I suggest to take a look at Maven, Maven Hibernate plugin, JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT has just made a coordinated release with Spring Roo and I think it may be quite interesting for you. I hope this isn't getting too much OT... HTH, best regards José On 20 mayo, 15:37, Navigateur naveen.c...@googlemail.com wrote: Thanks José! But don't they still require you to do the hibernate- mapping xml thing? Isn't this cumbersome for complex object structures? Or is there a way of being able to play with your object structure without having to change the hibernate-mapping xml every time (i.e. a default automatic behaviour for all objects, which also updates the data-store to reflect object-structure changes in the code)? Thanks! N On May 20, 10:08 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although your question has (almost) nothing to do with GWT... we're working on a GWT + JavaEE application, and evaluated several alternatives regarding this problem. We had two winners, both of them using of course JPA with Hibernate provider: 1. Use Gilead to transform your persistent entities and send them to GWT 2. Use DTOs, and use Dozer to transform from / to domain objects / entities In our case we chose DTOs / Dozer over Gilead because we favoured layer separation, encapsulation and security over development ease. YMMV Best regards José On 20 mayo, 10:54, Navigateur naveen.c...@googlemail.com wrote: Ah yes! Except that I want to be able to get persistent things onto my client side without too much conversion or trouble (i.e. the same objects client-and-server-side using the same language, and the same class definitions). What are my full range of options for this, anyway? And which is the best one for the purposes I've mentioned? On May 20, 12:34 am, Blessed Geek blessedg...@gmail.com wrote: Wouldn't your initial question be like - What is the best power tool to use to build the fence around my garden if I wish to plant my garden with tulips. But later on in your post, you reveal that your question actually has nothing to do with GWT, just as growing tulips has nothing to do with choice of power tools for
Problem with RichTextEdit on Google Chrome (linux); works fine in other browsers.
Hi I am working on an applivation, that includes a form, where I have a textarea, that I can switch between using a TextArea, and a RichTextArea. Everything works fine in Firefox (Linux and Windows) and on Internet Explorer; However when I try my application on Google Chrome (v6.0.401.1) on SuSe Linux, I have some problems when in RichTextEdit mode. ( I find it strange, that with a Google product like GWT, that they do not have prober support for their own browser; when things are working fine in other browsers) 1: The TAB key does not work. 2: OnFocus and OnBlur handlers are not called when entering/leaving the RichTextArea (works fine on TextArea) I am using GWT v2.0.3 the class is defined like this: public class CslRichTextEdit extends Composite implements ClickHandler, KeyUpHandler, FocusHandler, BlurHandler { I assign the handlers like this: textArea = new TextArea(); richTextArea = new RichTextArea(); richTextArea.addFocusHandler(this); richTextArea.addBlurHandler(this); richTextArea.addKeyUpHandler(this); richTextArea.addClickHandler(this); textArea.addFocusHandler(this); textArea.addBlurHandler(this); textArea.addKeyUpHandler(this); textArea.addClickHandler(this); and the Focus/Blur handlers are created like this: @Override public void onFocus(FocusEvent event) { if (rawMode) { textbar.setVisible(true); } else toolbar.setVisible(true); if (maxChars 0) { cPanel.setVisible(true); } } @Override public void onBlur(BlurEvent event) { if (rawMode) { textBuffer = textArea.getText(); } else { textBuffer = richTextArea.getHTML(); } if (maxChars 0) { cPanel.setVisible(false); textSize = textBuffer.length(); if (textSize maxChars) { Window.alert(Too many characters in textbox); if (rawMode) textArea.setFocus(true); else richTextArea.setFocus(true); } } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Export CSV from Client
@Ramon Buckland: Thank you for this solution! On May 6, 5:08 am, Ramon Buckland ra...@thebuckland.com wrote: There is a way to achieve this .. http://downloadify.info/ see below for a jQuery-ified example/ http://stackoverflow.com/questions/2226192/generate-some-xml-in-javas... This uses a Flash .swf as the download conduit. tatical it seems but also functional. cheers r, On Wed, May 5, 2010 at 10:18 PM, flyingb...@gmail.com flyingb...@gmail.comwrote: to save data as a file, you will need to passs the client data to server and server send back the data to download as a cvs. On May 5, 12:30 pm, cho.cabot cho.ca...@gmail.com wrote: I am trying to allow a user to download data he has manipulated in a GWT application in CSV format by clicking a button. I do not want to have to go back to the server to create/download this CSV file since I already have the data I need for the file in the client. I did not see a way to accomplish this in the GWT API, so I went the native JavaScript route. I created these methods: private native Object exportOpen() /*-{ var win = window.open(, export, ); var doc = win.document; doc.open(text/csv, replace); return win; }-*/; private native void exportWrite(Object win, String line) /*-{ win.document.writeln(line); }-*/; private native void exportClose(Object win) /*-{ win.document.close(); }-*/; And when a button is clicked, the following method is called: private void export() { Object win = exportOpen(); // Actual code loops through data and writes lines, but for example... exportWrite(win, TEST,TEST,TEST); exportClose(win); } This code basically works, except for the fact that the output is just displayed in a new browser window without prompting the user with the open/save dialog, which is what I was after. Does anyone know how I can get the open/save dialog to be opened for the user? Or, is there a way to create and download this data in GWT without using native JavaScript? 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 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Where is com.google.gwt.core.client.prefetch.Prefetcher?
Hi All, I've having a look at the source for the GWT Showcase samplehttp://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/samples/showcase. For the purposes of good and not evil I grabbed all the source and dragged it out into my own project. However, I am unable to resolve a dependency on com.google.gwt.core.client.prefetch.Prefetcher Prefectcher is used here (amoungst other places): http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java#236 I kinda understand what it's trying to do, but it's not in the 2.0.3 SDK AFAIK. Any help would be appreciated. Cheers :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where is com.google.gwt.core.client.prefetch.Prefetcher?
Its there on the trunk of GWT, don't know about the 2.0.3 branch. See http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/core/client/prefetch/ --Sri On 21 May 2010 18:53, Andrew Hughes ahhug...@gmail.com wrote: Hi All, I've having a look at the source for the GWT Showcase samplehttp://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/samples/showcase. For the purposes of good and not evil I grabbed all the source and dragged it out into my own project. However, I am unable to resolve a dependency on com.google.gwt.core.client.prefetch.Prefetcher Prefectcher is used here (amoungst other places): http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java#236 I kinda understand what it's trying to do, but it's not in the 2.0.3 SDK AFAIK. Any help would be appreciated. Cheers :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help integrating GWT with existing Eclipse J2EE Tomcat project
You may also want to look at http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee. On Fri, May 21, 2010 at 6:15 AM, José González Gómez jose.gonzalez.go...@gmail.com wrote: Sorry, I don't have my development environment here, so I don't remember the exact details, but... You must run BOTH the Tomcat server and the GWT application in development mode. The trick is to configure the GWT application so it doesn't run the built in server, and use the Tomcat server instead. When run this way, the first time you launch the GWT application it will ask for the place where the web application is, you must point it to the Tomcat webapp directory used by Eclipse. This way you're also able to debug simultaneously the GWT and the JavaEE code. We've got such an environment, integrated with Maven. Sorry for giving such a few details... I guess I'll end up writing and publishing a how to about this... HTH, best regards José On 19 mayo, 20:34, randy randiz...@gmail.com wrote: Using the Eclipse plugin I created a new GWT project. I was able to run it in development mode (via the 'Run As Web Application' command. I was able to run the auto-generated test app successfully. Note that I named the test project testGWT. I have an existing project in Eclipse which uses Tomcat. I need to integrated GWT into this project. I followed the instructions here... http://code.google.com/eclipse/docs/existingprojects.html I then copied the source code, html and css from the test project into my project. I also copied the servlet entry into my web.xml. I restarted Tomcat and noted that the WAR/testgwt directory was created/ I then tried to hithttp:// 127.0.0.1:8080/TestGWT.html?gwt.codesvr=127.0.0.1:9997 in my browser, which returned... Plugin failed to connect to hosted mode server at 127.0.0.1:9997 (I tried changing 127.0.0.01 to localhost, which did not help.) At this point I thought I would simply compile to Javascript and test that way. I right clicked the project Google GWT Compile. I get the dialogue which shows my entry point class. When I click ok I get the error GWT compilation failed with no details as to why. I confirmed that the gwt-servlet.jar file is on my classpath and Eclipse is notifying me of no compilation problems prior to the GWT compile attempt. Next I tried compiling to Javascript from the command line and then hitting the test page in production mode. This worked. This is obviously an insufficient solution however. I think I must be missing something fundamental. Does anyone have any suggestions? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the best/easiest way of doing server-side persistence with GWT?
I just completed an application on the following stack - GWT, Spring and EclipseLink (JPA). From my experience, if you are using GWT 2.x and using annotations in your persistent classes, there is no need for Gilead or Dozer. Don't get hung up digging the net as most of the blogs/articles are outdated (for GWT 1.5 or 1.x) If you are developing your application as one big project, this is super easy and everything just works. There is no problem transferring objects from DAO layer all the way upto java script. (GWT 2.x knows how to handle it). But if you want to separate out your server side development you will have to package those transfer objects along with source as a jar and add them as gwt module(source is also required for gwt). Mine was a relatively small application and hence followed the first approach. But i did try out the second approach and it worked. (A simple build script will do the work for you) Thanks, Manoj On May 21, 8:44 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Can't help there, as I haven't tried it yet. Anyway the Spring Roo tutorial includes generation of persistent classes using JPA and Hibernate, so I guess it will include some way to get those entities to GWT, taking into account that is integrated with it Good luck!! On 21 mayo, 12:57, Navigateur naveen.c...@googlemail.com wrote: Thanks José! Spring Roo looks brilliant! Just one issue, does any of its modules utilise Gilead or another DTO assembler so that the Hibernate entities can smoothly go to the GWT client-side? On May 20, 5:03 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although you could think they're the perfect solution for persistence in OO languages, object databases haven't taken off, so if you're doing anything serious I would be cautious about using them. I don't know of any big application in production with an OODB. Maybe we're too used to relational databases... Take a look at Spring Roo, I think you will like it. Best regards José On 20 mayo, 17:43, Navigateur naveen.c...@googlemail.com wrote: Wow, thanks José and David! I'm new to tools so I'm a bit nervous about using them (although I probably shouldn't be) whereas db4o offers straightforward code for persisting objects. Are there any disadvantages to using db4o instead of ORM with tools? db4o seems intuitavely the best option for me right now, but could I be wrong? I thank David for bringing it to my attention, it looks VERY interesting, and under active development, although the queries are currently reportedly slow, but when that is fixed, is there a reason why it shouldn't supercede RD and ORD for new projects? On May 20, 3:18 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: JPA/Hibernate supports annotations, so you don't have to fiddle with xml files any more; and JPA/Hibernate has adopted the sane defaults and convention over configuration policy, so unless you want to take control of your mappings (something you should do if you're doing anything serious) most of the times it's enough to annotate the persistent class with the @Entity annotation. Anyway, if you're handling complex object structures, it's way more cumbersome to handle persistence by hand, instead of using a ORM framework. If you want to have automatic update of the database, Hibernate tools is able to generate the database schema from your mappings. I suggest to take a look at Maven, Maven Hibernate plugin, JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT has just made a coordinated release with Spring Roo and I think it may be quite interesting for you. I hope this isn't getting too much OT... HTH, best regards José On 20 mayo, 15:37, Navigateur naveen.c...@googlemail.com wrote: Thanks José! But don't they still require you to do the hibernate- mapping xml thing? Isn't this cumbersome for complex object structures? Or is there a way of being able to play with your object structure without having to change the hibernate-mapping xml every time (i.e. a default automatic behaviour for all objects, which also updates the data-store to reflect object-structure changes in the code)? Thanks! N On May 20, 10:08 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although your question has (almost) nothing to do with GWT... we're working on a GWT + JavaEE application, and evaluated several alternatives regarding this problem. We had two winners, both of them using of course JPA with Hibernate provider: 1. Use Gilead to transform your persistent entities and send them to GWT 2. Use DTOs, and use Dozer to transform from / to domain objects / entities In our case
Re: How to get notified after a widget has been completely rendered?
Hi, I do not see any reason for such an event. What do you like to do with it? What you can do is to call a deferred command. Maybe 10ms later to do your stuff. And the event user has seen the rendered widget still lacks the specification ;-) But as a workaround you could offer a button which needs to be clicked when the user has seen the widget. Stefan Bachert http://gwtworld.de On 20 Mai, 16:16, googelybear googelyb...@gmail.com wrote: Hi, I'd like to ask if it is possible to get notified (by adding some kind of event handler) after a widget has been completely rendered? I couldn't find such an event... thanks for your help, Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: resize-able panels like in google wave
Sure, but you can get most usable layouts with a single one; too many of these resizable areas would be pretty ugly. On May 21, 1:39 am, outsource lucas outsourcelu...@gmail.com wrote: Can you nest those SplitLayoutPanels inside each other? Does that still work? On Fri, May 21, 2010 at 9:21 AM, outsource lucas outsourcelu...@gmail.comwrote: great! i thought i had to make them myself! (sorry i'm new to GWT) On Thu, May 20, 2010 at 9:03 PM, kozura koz...@gmail.com wrote: Or the new SplitLayoutPanel which does arbitrary resizable panels. On May 20, 1:00 pm, Sean slough...@gmail.com wrote: I haven't used Google Wave, but it sounds like you're talking about HorizontalSplitPanel which is built into GWT. There's also a VerticalSplitPanel. On May 20, 7:38 am, outsource lucas outsourcelu...@gmail.com wrote: Hi all, I am still quite new to GWT. If I wish to make resize-able panels (horizontal or vertical resizer bars) like in google wave, what is the best way to implement this in GWT? Is there any example available? Lucas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to get notified after a widget has been completely rendered?
Override Widget.onLoad() Stefan Bachert wrote: Hi, I do not see any reason for such an event. What do you like to do with it? What you can do is to call a deferred command. Maybe 10ms later to do your stuff. And the event user has seen the rendered widget still lacks the specification ;-) But as a workaround you could offer a button which needs to be clicked when the user has seen the widget. Stefan Bachert http://gwtworld.de On 20 Mai, 16:16, googelybear googelyb...@gmail.com wrote: Hi, I'd like to ask if it is possible to get notified (by adding some kind of event handler) after a widget has been completely rendered? I couldn't find such an event... thanks for your help, Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiling classes that refer to uncompilable classes
DTOs and that it's good and useful, but I'm talking about compilation. I want to be able to use a server-side class on the client GWT code. Whether I need to pass it around between client and server is another story. Right now I'm just trying to use it. The problem comes when the class has fields that are not GWT serializable. In that case I'm wondering if there's a way to use deferred binding (or something else) to provide alternate implementations for those uncompilable fields' types. The base deferred binding obviously doesn't work since it's not a straight replacement of a type for its implementation (it's more a way to generate instances, and thus its use through GWT.create). But I'm wondering if there's something more obcure that I have missed. At least having an annotation (already proposed and logged in a ticket http://code.google.com/p/google-web-toolkit/issues/detail?id=3769q=serveronly) for the compiler to ignore such fields, would be a partial solution. But I really wish there's a replacement option. On May 21, 5:42 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Use DTOs and some mapping helpers to communicate with the presentation layer (GWT). There's a prior discussion in the group regardin this, search forDozer/Gilead. HTH, best regards José On 20 mayo, 23:16, Raziel raziel...@gmail.com wrote: Hi, currently I create modules in order to access server-side classes in my GWT client code. Until now all these classes have not referred (directly or indirectly) to classes outside of the GWT JRE emulation. However, now I need to be able to compile a bean with a reference to javax.xml.namescape.QName. And in general I see how it might soon be needed to compile classes with references to uncompilable classes either because it's a third party class and we don't have the source available, or it's a JRE class for which there's no emulation yet, etc. So I'm wondering if there's a way to use deferred binding to provide the compiler with a client-side specific implementation of those classes. The caveat of course is that the class containing the offending reference to uncompilable code should not be changed. For example: class MyBean { QName q; MyBean(QName q) { this.q = q; } } Maybe something along the lines of ... replace-with class=com.mycompany.gwt.bind.MyQName when-type-is class=javax.xml.namescape.QName/ /replace-with For what I read nothing of the like is possible, since for starters the deferred implementation has to go through GWT.create(), but I'm hoping there's another way I haven't thought about. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the best/easiest way of doing server-side persistence with GWT?
Hello, I have completed a GWT / Hibernate / gilead / mysql project. It was my first, the whole process was a large pain but mostly worth it still compared to DIY. My newer project is based on GWT / Oracle DB Java edition an object based db. It has been too easy so far... no translators, just one or two non intrusive annotations on my Entities and persistent classes. Plus it can outperform SQL in a lot of aspects. Only thing that sucks is reporting. Sql is much easier/robost for reporting solutions. Other than that, unless you were making a large shared database that has to be separate from the app, I would go without SQL. On May 19, 3:16 pm, Navigateur naveen.c...@googlemail.com wrote: I haven't yet chosen a server or anything. Is Gilead the best thing for persistence on the server side? Does the choice of server make a difference for developing for persistence e.g. AppEngine? GlassFish? Anything? Sorry, these are relatively beginner questions - in case you say it depends on what you're doing I'm making an app where I want object- oriented persistence, quick error-free multi-user concurrent access to that (object-oriented) datastore, and ease-of-development with code that doesn't tie me down too strongly in case I want to switch platforms. Oh, and it should be in Java, like GWT is. And besides, what are the full range of options for this? Cheers! N -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the best/easiest way of doing server-side persistence with GWT?
Manoj, are you saying that Gilead is totally redundant for GWT now? That the problems mentioned on the Gilead page (LazyInitializationException, Eager-fetching etc.. ) never occur any longer? I couldn't find a gwt issue on the tracker that solved this, but was it ever an issue/needed? On May 21, 3:00 pm, Manoj vkma...@gmail.com wrote: I just completed an application on the following stack - GWT, Spring and EclipseLink (JPA). From my experience, if you are using GWT 2.x and using annotations in your persistent classes, there is no need for Gilead or Dozer. Don't get hung up digging the net as most of the blogs/articles are outdated (for GWT 1.5 or 1.x) If you are developing your application as one big project, this is super easy and everything just works. There is no problem transferring objects from DAO layer all the way upto java script. (GWT 2.x knows how to handle it). But if you want to separate out your server side development you will have to package those transfer objects along with source as a jar and add them as gwt module(source is also required for gwt). Mine was a relatively small application and hence followed the first approach. But i did try out the second approach and it worked. (A simple build script will do the work for you) Thanks, Manoj On May 21, 8:44 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Can't help there, as I haven't tried it yet. Anyway the Spring Roo tutorial includes generation of persistent classes using JPA and Hibernate, so I guess it will include some way to get those entities to GWT, taking into account that is integrated with it Good luck!! On 21 mayo, 12:57, Navigateur naveen.c...@googlemail.com wrote: Thanks José! Spring Roo looks brilliant! Just one issue, does any of its modules utilise Gilead or another DTO assembler so that the Hibernate entities can smoothly go to the GWT client-side? On May 20, 5:03 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although you could think they're the perfect solution for persistence in OO languages, object databases haven't taken off, so if you're doing anything serious I would be cautious about using them. I don't know of any big application in production with an OODB. Maybe we're too used to relational databases... Take a look at Spring Roo, I think you will like it. Best regards José On 20 mayo, 17:43, Navigateur naveen.c...@googlemail.com wrote: Wow, thanks José and David! I'm new to tools so I'm a bit nervous about using them (although I probably shouldn't be) whereas db4o offers straightforward code for persisting objects. Are there any disadvantages to using db4o instead of ORM with tools? db4o seems intuitavely the best option for me right now, but could I be wrong? I thank David for bringing it to my attention, it looks VERY interesting, and under active development, although the queries are currently reportedly slow, but when that is fixed, is there a reason why it shouldn't supercede RD and ORD for new projects? On May 20, 3:18 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: JPA/Hibernate supports annotations, so you don't have to fiddle with xml files any more; and JPA/Hibernate has adopted the sane defaults and convention over configuration policy, so unless you want to take control of your mappings (something you should do if you're doing anything serious) most of the times it's enough to annotate the persistent class with the @Entity annotation. Anyway, if you're handling complex object structures, it's way more cumbersome to handle persistence by hand, instead of using a ORM framework. If you want to have automatic update of the database, Hibernate tools is able to generate the database schema from your mappings. I suggest to take a look at Maven, Maven Hibernate plugin, JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT has just made a coordinated release with Spring Roo and I think it may be quite interesting for you. I hope this isn't getting too much OT... HTH, best regards José On 20 mayo, 15:37, Navigateur naveen.c...@googlemail.com wrote: Thanks José! But don't they still require you to do the hibernate- mapping xml thing? Isn't this cumbersome for complex object structures? Or is there a way of being able to play with your object structure without having to change the hibernate-mapping xml every time (i.e. a default automatic behaviour for all objects, which also updates the data-store to reflect object-structure changes in the code)? Thanks! N On May 20, 10:08 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although your question
Re: What's the best/easiest way of doing server-side persistence with GWT?
Robonauticus, which object db are you using? db4o? On May 21, 3:50 pm, Robnauticus- robnauti...@gmail.com wrote: Hello, I have completed a GWT / Hibernate / gilead / mysql project. It was my first, the whole process was a large pain but mostly worth it still compared to DIY. My newer project is based on GWT / Oracle DB Java edition an object based db. It has been too easy so far... no translators, just one or two non intrusive annotations on my Entities and persistent classes. Plus it can outperform SQL in a lot of aspects. Only thing that sucks is reporting. Sql is much easier/robost for reporting solutions. Other than that, unless you were making a large shared database that has to be separate from the app, I would go without SQL. On May 19, 3:16 pm, Navigateur naveen.c...@googlemail.com wrote: I haven't yet chosen a server or anything. Is Gilead the best thing for persistence on the server side? Does the choice of server make a difference for developing for persistence e.g. AppEngine? GlassFish? Anything? Sorry, these are relatively beginner questions - in case you say it depends on what you're doing I'm making an app where I want object- oriented persistence, quick error-free multi-user concurrent access to that (object-oriented) datastore, and ease-of-development with code that doesn't tie me down too strongly in case I want to switch platforms. Oh, and it should be in Java, like GWT is. And besides, what are the full range of options for this? Cheers! N -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: difference between hosted mode and development mode
and I want to add something... Development mode doesn't care about optimization, It is showing the results as quick as possible Production mode makes all the optimization process and it is producing fully optimized JS+HTML+.. codes. On May 21, 1:41 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Hosted mode is the old name for development mode, they're the same. There are two modes, and they're currently named development mode and production mode Best regards José On 21 mayo, 11:58, Chatak 007aditya.b...@gmail.com wrote: hi, i m quite new to gwt i m using eclipse for building GWT projects my question is what is the difference between hosted mode and development mode...? and also how many modes of deployment actually exist...? Thank you. -- Chatak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the best/easiest way of doing server-side persistence with GWT?
And how does GWT handle associations where Hibernate (as JPA implementation) puts own Collection implementations? They are not serializable... that is the reason why Gilead exists. Can you tell me how is it possible to achieve it without such layer? On 21. Máj, 16:00 h., Manoj vkma...@gmail.com wrote: I just completed an application on the following stack - GWT, Spring and EclipseLink (JPA). From my experience, if you are using GWT 2.x and using annotations in your persistent classes, there is no need for Gilead or Dozer. Don't get hung up digging the net as most of the blogs/articles are outdated (for GWT 1.5 or 1.x) If you are developing your application as one big project, this is super easy and everything just works. There is no problem transferring objects from DAO layer all the way upto java script. (GWT 2.x knows how to handle it). But if you want to separate out your server side development you will have to package those transfer objects along with source as a jar and add them as gwt module(source is also required for gwt). Mine was a relatively small application and hence followed the first approach. But i did try out the second approach and it worked. (A simple build script will do the work for you) Thanks, Manoj On May 21, 8:44 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Can't help there, as I haven't tried it yet. Anyway the Spring Roo tutorial includes generation of persistent classes using JPA and Hibernate, so I guess it will include some way to get those entities to GWT, taking into account that is integrated with it Good luck!! On 21 mayo, 12:57, Navigateur naveen.c...@googlemail.com wrote: Thanks José! Spring Roo looks brilliant! Just one issue, does any of its modules utilise Gilead or another DTO assembler so that the Hibernate entities can smoothly go to the GWT client-side? On May 20, 5:03 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although you could think they're the perfect solution for persistence in OO languages, object databases haven't taken off, so if you're doing anything serious I would be cautious about using them. I don't know of any big application in production with an OODB. Maybe we're too used to relational databases... Take a look at Spring Roo, I think you will like it. Best regards José On 20 mayo, 17:43, Navigateur naveen.c...@googlemail.com wrote: Wow, thanks José and David! I'm new to tools so I'm a bit nervous about using them (although I probably shouldn't be) whereas db4o offers straightforward code for persisting objects. Are there any disadvantages to using db4o instead of ORM with tools? db4o seems intuitavely the best option for me right now, but could I be wrong? I thank David for bringing it to my attention, it looks VERY interesting, and under active development, although the queries are currently reportedly slow, but when that is fixed, is there a reason why it shouldn't supercede RD and ORD for new projects? On May 20, 3:18 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: JPA/Hibernate supports annotations, so you don't have to fiddle with xml files any more; and JPA/Hibernate has adopted the sane defaults and convention over configuration policy, so unless you want to take control of your mappings (something you should do if you're doing anything serious) most of the times it's enough to annotate the persistent class with the @Entity annotation. Anyway, if you're handling complex object structures, it's way more cumbersome to handle persistence by hand, instead of using a ORM framework. If you want to have automatic update of the database, Hibernate tools is able to generate the database schema from your mappings. I suggest to take a look at Maven, Maven Hibernate plugin, JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT has just made a coordinated release with Spring Roo and I think it may be quite interesting for you. I hope this isn't getting too much OT... HTH, best regards José On 20 mayo, 15:37, Navigateur naveen.c...@googlemail.com wrote: Thanks José! But don't they still require you to do the hibernate- mapping xml thing? Isn't this cumbersome for complex object structures? Or is there a way of being able to play with your object structure without having to change the hibernate-mapping xml every time (i.e. a default automatic behaviour for all objects, which also updates the data-store to reflect object-structure changes in the code)? Thanks! N On May 20, 10:08 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although your question has (almost) nothing to do with
Re: difference between hosted mode and development mode
On 21 mai, 17:31, KeremTiryaki keremtiry...@gmail.com wrote: and I want to add something... Development mode doesn't care about optimization, It is showing the results as quick as possible Actually, dev mode runs Java whereas prod mode compiles to JavaScript. This means that un dev mode you're using the true java.lang.String or java.util.ArrayList for instance, whereas in prod mode it's the emulated version that's being used. It sometimes lead to different results (Java's Date is quite not the same as JavaScript's one) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DockLayoutPanel Sample Code No Style Issue
I tried the DockLayoutCode which is presented in the Javadoc: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/DockLayoutPanel.html DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(header), 2); p.addSouth(new HTML(footer), 2); p.addWest(new HTML(navigation), 10); p.add(new HTML(some content)); // I added this: RootLayoutPanel.get().add(p); All this code was obviously placed inside the onModuleLoad substituting the sample Eclipse startup code when you create a new GWT app. The output looked nothing like what was presented on DockLayoutPanel in the Developer's Guide: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html Am I missing a css or something else really simple? Thanks! -m -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiling classes that refer to uncompilable classes
On 20 mai, 23:16, Raziel raziel...@gmail.com wrote: Hi, currently I create modules in order to access server-side classes in my GWT client code. Until now all these classes have not referred (directly or indirectly) to classes outside of the GWT JRE emulation. However, now I need to be able to compile a bean with a reference to javax.xml.namescape.QName. And in general I see how it might soon be needed to compile classes with references to uncompilable classes either because it's a third party class and we don't have the source available, or it's a JRE class for which there's no emulation yet, etc. So I'm wondering if there's a way to use deferred binding to provide the compiler with a client-side specific implementation of those classes. The caveat of course is that the class containing the offending reference to uncompilable code should not be changed. For example: class MyBean { QName q; MyBean(QName q) { this.q = q; } } Maybe something along the lines of ... replace-with class=com.mycompany.gwt.bind.MyQName when-type-is class=javax.xml.namescape.QName/ /replace-with For what I read nothing of the like is possible, since for starters the deferred implementation has to go through GWT.create(), but I'm hoping there's another way I haven't thought about. That's what super-source/ is about. See Overriding one package implementation with another at http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Refresh handler
On 20 mai, 17:42, laurent bagno_laur...@hotmail.com wrote: Hello, I've a simple question.Exist it a handler(or listener) for a click on the refresh button or F5? Window.addWindowClosingHandler/addCloseHandler, the very same that's used when you leave your app; and before you ask, there's no way to tell which action actually led to the event being fired. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel Sample Code No Style Issue
You have !DOCTYPE html at the top of your HTML file to set the browser to standards mode? On May 21, 10:01 am, Matt ima...@gmail.com wrote: I tried the DockLayoutCode which is presented in the Javadoc:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(header), 2); p.addSouth(new HTML(footer), 2); p.addWest(new HTML(navigation), 10); p.add(new HTML(some content)); // I added this: RootLayoutPanel.get().add(p); All this code was obviously placed inside the onModuleLoad substituting the sample Eclipse startup code when you create a new GWT app. The output looked nothing like what was presented on DockLayoutPanel in the Developer's Guide:http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html Am I missing a css or something else really simple? Thanks! -m -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel Sample Code No Style Issue
Yep, I have !doctype html at the top of my html file.. On May 21, 11:40 am, kozura koz...@gmail.com wrote: You have !DOCTYPE html at the top of your HTML file to set the browser to standards mode? On May 21, 10:01 am, Matt ima...@gmail.com wrote: I tried the DockLayoutCode which is presented in the Javadoc:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(header), 2); p.addSouth(new HTML(footer), 2); p.addWest(new HTML(navigation), 10); p.add(new HTML(some content)); // I added this: RootLayoutPanel.get().add(p); All this code was obviously placed inside the onModuleLoad substituting the sample Eclipse startup code when you create a new GWT app. The output looked nothing like what was presented on DockLayoutPanel in the Developer's Guide:http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html Am I missing a css or something else really simple? Thanks! -m -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Table Row Gaps
It sounds like this - https://developer.mozilla.org/en/Images,_Tables,_and_Mysterious_Gaps is what you're experience, On May 20, 11:14 pm, Craigo craig...@gmail.com wrote: When creating a Grid, FlexTable, VerticalPanel, or any other type of table, I couldn't get rid of the gaps in the rows. The gaps would only appear in Chrome and FF, but not in IE6. They were very small gaps (about 3 pixels high). Nothing seemed to work, setCellPadding, setCellSpacing, css with padding, margin, border-collapse, ... Finally figured out changing the doctype solved it. The default was: !doctype html When I changed it to: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; The row gaps disappeared! If there is a better way, please post. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: difference between hosted mode and development mode
ohk i got it that means whenever i wish to deploy an application in developement mode the extra parameter for gwt plugin eg 'gwt=something' is required and at that time browser is using Java code instead of javascript. and in case of production mode it doesnt refer to java it just refer to the javascript which has been loaded into the browser which requires a compile. I hope what i m assuming is right. Thanks for ur replies and helping me to sort out queries. plz ignore any spelling and punctuation mistakes. -- Chatak On Fri, May 21, 2010 at 9:30 PM, Thomas Broyer t.bro...@gmail.com wrote: On 21 mai, 17:31, KeremTiryaki keremtiry...@gmail.com wrote: and I want to add something... Development mode doesn't care about optimization, It is showing the results as quick as possible Actually, dev mode runs Java whereas prod mode compiles to JavaScript. This means that un dev mode you're using the true java.lang.String or java.util.ArrayList for instance, whereas in prod mode it's the emulated version that's being used. It sometimes lead to different results (Java's Date is quite not the same as JavaScript's one) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MyNamedFrame is better than GWT's NamedFrame
hi sky! that looks pretty much like our implementation...;) this is the problem of such a big toolkit like GWT, there are too many 'features' (like widgets, rpc, jre emulation, java-to-js compilation, the new data driven widgets and so on) which is great for a fast start and even enough for many applications, but as soon as you get creative, you have to start doing things by yourself, which is in my expirience really hard with GWT since many, many (far too much) methods and classes are private or final, so it is really hard to extend the provided stuff, so at the end you finish hacking GWT and building your own framework on top of the toolkit based on the core feature, java-to-js compilation, which could be the idea.of the developers, i do not know... continue the good work! regards Michael On May 21, 9:04 am, Sky myonceinalifet...@gmail.com wrote: package com.skystrider.subtabs.client.gwtUtils; import java.util.ArrayList; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.dom.client.IFrameElement; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.Frame; /** * A {...@link com.google.gwt.user.client.ui.Frame} that has a 'name' associated * with it. This allows the frame to be the target of a * {...@link com.google.gwt.user.client.ui.FormPanel} * * h3CSS Style Rules/h3 * ul class='css' * li.gwt-Frame { }/li * /ul */ public class MyNamedFrame extends Frame { private ArrayListLoadHandler loadHandlers = null; // Used inside JSNI, so please don't delete this field just because // your compiler or IDE says it's unused. @SuppressWarnings(unused) private static JavaScriptObject PATTERN_NAME; static { if (GWT.isClient()) { initStatics(); } } /** * Creates an HTML IFRAME element with a src and name. * * @param src the src of the frame * @param name the name of the frame, which must contain at least one * non-whitespace character and must not contain reserved HTML markup * characters such as 'codelt;/code', 'codegt;/ code', * or 'codeamp;/code' * @return the newly-created element * @throws IllegalArgumentException if the supplied name is not allowed */ private static IFrameElement createIFrame(String src, String name) { if (name == null || !isValidName(name.trim())) { throw new IllegalArgumentException( expecting one or more non-whitespace chars with no '', '', or ''); } // Use innerHTML to implicitly create the iframe. This is necessary // because most browsers will not respect a dynamically-set iframe name. Element div = DOM.createDiv(); String onload = onload=\if(!event){event = window.event;} this.myonload(event);\; div.setInnerHTML(iframe src=\ + src + \ name=' + name + ' + onload + ); return div.getFirstChild().cast(); } private static native void initStatics() /*-{ @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME = /^[^ \'\]+$/; }-*/; /** * @param name the specified frame name to be checked * @return codetrue/code if the name is valid, codefalse/ code if * not */ private static native boolean isValidName(String name) /*-{ return @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME.test(name); }-*/; /** * Constructs a frame with the given name. * * @param name the name of the frame, which must contain at least one * non-whitespace character and must not contain reserved HTML markup * characters such as 'codelt;/code', 'codegt;/ code', * or 'codeamp;/code' * * @throws IllegalArgumentException if the supplied name is not allowed */ public MyNamedFrame(String name) { // Setting a src prevents mixed-content warnings. //http://weblogs.asp.net/bleroy/archive/2005/08/09/how-to-put-a-div-ove... super(createIFrame(javascript:'', name)); setStyleName(gwt-Frame); setMyOnload(this.getElement().cast(), this); } /** * Gets the name associated with this frame. * * @return the frame's name */ public String getName() { return DOM.getElementProperty(getElement(), name); } public void
Re: What's the best/easiest way of doing server-side persistence with GWT?
There are enhancements in GWT 2.0 to handle enhanced classes especially the ones related to persistence. Please see the section Serializing Enhanced Classes of http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes As mentioned in their documentation, there still exists certain limitations, but see if they are relevant to your application. Also note that you need to add jpa-annotations-source.jar in gwt classpath. You can get it from here - http://code.google.com/p/google-web-toolkit/issues/detail?id=1830 Thanks, Manoj On May 21, 11:44 am, Ladislav Gazo ladislav.g...@gmail.com wrote: And how does GWT handle associations where Hibernate (as JPA implementation) puts own Collection implementations? They are not serializable... that is the reason why Gilead exists. Can you tell me how is it possible to achieve it without such layer? On 21. Máj, 16:00 h., Manoj vkma...@gmail.com wrote: I just completed an application on the following stack - GWT, Spring and EclipseLink (JPA). From my experience, if you are using GWT 2.x and using annotations in your persistent classes, there is no need for Gilead or Dozer. Don't get hung up digging the net as most of the blogs/articles are outdated (for GWT 1.5 or 1.x) If you are developing your application as one big project, this is super easy and everything just works. There is no problem transferring objects from DAO layer all the way upto java script. (GWT 2.x knows how to handle it). But if you want to separate out your server side development you will have to package those transfer objects along with source as a jar and add them as gwt module(source is also required for gwt). Mine was a relatively small application and hence followed the first approach. But i did try out the second approach and it worked. (A simple build script will do the work for you) Thanks, Manoj On May 21, 8:44 am, José González Gómez jose.gonzalez.go...@gmail.com wrote: Can't help there, as I haven't tried it yet. Anyway the Spring Roo tutorial includes generation of persistent classes using JPA and Hibernate, so I guess it will include some way to get those entities to GWT, taking into account that is integrated with it Good luck!! On 21 mayo, 12:57, Navigateur naveen.c...@googlemail.com wrote: Thanks José! Spring Roo looks brilliant! Just one issue, does any of its modules utilise Gilead or another DTO assembler so that the Hibernate entities can smoothly go to the GWT client-side? On May 20, 5:03 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: Although you could think they're the perfect solution for persistence in OO languages, object databases haven't taken off, so if you're doing anything serious I would be cautious about using them. I don't know of any big application in production with an OODB. Maybe we're too used to relational databases... Take a look at Spring Roo, I think you will like it. Best regards José On 20 mayo, 17:43, Navigateur naveen.c...@googlemail.com wrote: Wow, thanks José and David! I'm new to tools so I'm a bit nervous about using them (although I probably shouldn't be) whereas db4o offers straightforward code for persisting objects. Are there any disadvantages to using db4o instead of ORM with tools? db4o seems intuitavely the best option for me right now, but could I be wrong? I thank David for bringing it to my attention, it looks VERY interesting, and under active development, although the queries are currently reportedly slow, but when that is fixed, is there a reason why it shouldn't supercede RD and ORD for new projects? On May 20, 3:18 pm, José González Gómez jose.gonzalez.go...@gmail.com wrote: JPA/Hibernate supports annotations, so you don't have to fiddle with xml files any more; and JPA/Hibernate has adopted the sane defaults and convention over configuration policy, so unless you want to take control of your mappings (something you should do if you're doing anything serious) most of the times it's enough to annotate the persistent class with the @Entity annotation. Anyway, if you're handling complex object structures, it's way more cumbersome to handle persistence by hand, instead of using a ORM framework. If you want to have automatic update of the database, Hibernate tools is able to generate the database schema from your mappings. I suggest to take a look at Maven, Maven Hibernate plugin, JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT has just made a coordinated release with Spring Roo and I think it may be quite interesting for you. I hope this isn't getting too much
how to customize the Button class (with skins)
How can I customize a standard Button directly from my java code? (I want to have round corners with images / custom skin / etc, but want to manipulate this directly from my code, on the fly). Or should I not do it with the Button class and use something else to emulate it? (Short example code would also be welcome) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Compile Issue
I created an Eclipse launch configuration using the com.google.gwt.dev.Compiler (GWT 2.0), but am not able to compile. Here is the error message: Compiling module gidm Removing invalidated units Finding entry point classes [ERROR] Unable to find type 'whi.idm.client.GIDM' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly Here is my module xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.1// EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro- source/core/src/gwt-module.dtd module rename-to='gidm' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the GWT HTTP module. -- inherits name=com.google.gwt.http.HTTP / !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name=com.smartgwt.SmartGwt/ inherits name=com.smartgwt.tools.SmartGwtTools / !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='whi.idm.client.GIDM'/ source path=whi.idm.client / /module Can somebody shed some light on 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to customize the Button class (with skins)
I suggest you take a look at this: http://code.google.com/p/cobogw/ One of the widgets is a pretty customizable button - see the demo. On May 21, 9:24 pm, outsource lucas outsourcelu...@gmail.com wrote: How can I customize a standard Button directly from my java code? (I want to have round corners with images / custom skin / etc, but want to manipulate this directly from my code, on the fly). Or should I not do it with the Button class and use something else to emulate it? (Short example code would also be welcome) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
My application doesn´t work in OAS and apache-tomca t
Hi everybody, I had finish my web application using GWT but in this moment I´m having a trouble deploying it in a server(as Oracle Application Server, apache-tomcat). My application work fine in Developent mode, but in the servers all calls done to the server fail. I had added all my librarys used in the aplication in the war folder, in the EAR project,etc, but i can't. If somebody knows what another configuration I need ,or another idea that I can use... please help me Thanks for all -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP Framework in GWT 2.1 M1 ?
Am I right in assuming that eventually the intention is that CellList will become an alternative to the existing ListBox? On May 21, 8:08 am, Paul Stockley pstockl...@gmail.com wrote: There is the data bound cell based list and tree widgets they talked about. These are really independent of any mvp framework. However, there is also server/client side data binding support that is part of their new business application framework. The expenses application is very different from the mvp stuff shown to date. If you look at the bikeshed project in the 2.1 branch you can see the expenses application code. On May 20, 5:12 pm, metrixon metri...@gmail.com wrote: Thanks for the link Paul - I'm afraid my answer overlapped with your first reply. I think we talk about two different features in 2.1: first, there is the data binding stuff that was shown in great length during the keynote and I agree that it seems to be originating form the link you posted. The other feature is the MVP infrastructure. To my mind, the MVP framework has nothing to do with the server side but is intended for a clean separation of concerns within the client layer. As far as I understand MVP, it essentially decouples the actual view code from the logic that handles the data (the Presenter), making the logic part a lot easier to test. Regarding the data binding part, there are some new classes that also appear in the javadocs of M1 (Cell-Classes, ListView, Pager etc.) but I haven't found anything regarding the MVP-Framework. On 20 Mai, 20:10, Paul Stockley pstockl...@gmail.com wrote: Actually I don't think it has much relation to that. I think it originated from this: http://code.google.com/p/google-web-toolkit/wiki/ValueStoreAndRequest... On May 20, 2:03 pm, metrixon metri...@gmail.com wrote: I think, the whole MVP with GWT thing is actually inspired by the talk given by Ray Ryan on last year's Google IO (seehttp://www.youtube.com/watch?v=PDuhR18-EdM). Currently, there are implementations available that do provide an MVP infrastructure and implement other patterns as well: -http://code.google.com/p/gwt-presenter/ -http://code.google.com/p/gwt-dispatch/ -http://code.google.com/p/gwt-platform/ However, it would be nice to see these features integrated into GWT directly, therefore I'm really interested in how Google itself implemented the patterns :-) I know that the announcement was just yesterday but it would be great to get more detailed information on the new features introduced in 2.1 (especially the new widgets and mvp). Regarding the demo given during the keynote, I'd also like to know how the automatic resizing for mobile screens takes place. Kind regards, Christian On May 20, 7:48 pm, Frederic Conrotte frederic.conro...@gmail.com wrote: I've asked myself the same question: New MVP framework ? Where is the doc? I guess they are talking about this one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html On 20 mai, 10:44, metrixon metri...@gmail.com wrote: I just downloaded the M1 release of GWT 2.1 and was wondering where I can find more information on the MVP framework that will be part of GWT 2.1. I looked around the Javadocs but did not find anything like it. Is the MVP framework already part of the M1 release ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to
UIBinder and dynamic tables
Hi, I'm trying to create a simple table in UIBinder, then iterate through a set of objects creating a row for each object. Ideally, there would be some sort of loop construct in UIBinder? Or some way to bind a table to an array of objects? I guess I could use flextable but I'd like to have more control over the styles. I can use a hidden row that I clone then append to the table. But it gets into nasty dom manipulation after that. Node newNode = row.cloneNode(true); mytable.appendChild(newNode); Ideas? Damon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UnsatisfiedLinkError when using Window.Location.replace()
Hi, I am developing a sample app using GWT, that needs to redirect to the facebook login page. I am using Window.Location to do that as shown below. Window.Location.replace(http://www.facebook.com/login.php? api_key=+ API_KEY); But when I run the app either in hosted mode or in Tomcat, I get following error - java.lang.UnsatisfiedLinkError: com.google.gwt.user.client.Window $Location.getPath()Ljava/lang/String; How to fix this error? Thank you for your help. -Hiren -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT designing
Hi.. I have created one gwt application. In the client package i inculded two java file contains gwt coding. In the first java program i included one Hyperlink when this Hyperlink is clicked it should redircted to Second file which also contains some GWT coding. I dont know how to redirect the java file. Help me on this issue... Regards, Raji -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT-RPC authentication
Hi. I'm working on a GWT project in which I plan to use a GWT-RPC proxy on tomcat which will interact with the target host, also on tomcat. My main concern at this point is user authentication. I'm not sure I understand how this should work. In previous projects using Flex, we had a simple form-based auth setup in which we established the session and all was good. I assume that tomcat created a session cookie behind the scenes and used this for all further requests. My question is: How will either form-based or basic authentication work with a GWT-RPC proxy between the client and host server? What do I need to configure for this to work? Both proxy and target hosts are running tomcat. thanks in advance for any 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Static Initializer behavior?
I have a situation where I think that static initializers are not acting correctly. I have distilled a simple example where I get different behavior if I compile in Java vs when I am running in development mode (this is using GWT 2.0.3). (I have not tried a production compile yet). Given the following 2 classes in the same pkg, I get different results in Java vs GWT when I invoke B.getFoo(). Java: B.getFoo() returns xxx GWT: B.getFoo() returns null Seems like since static initializers are supposed to be executed prior to the class being available, that GWT is incorrect here? Can anyone enlighten me if I'm doing something wrong or unsupported in GWT? public class A { protected static String foo; public static String getFoo() { return foo; } } public class B extends A { static { foo = xxx; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to create a seamless authenticated session through a GWT-RPC proxy server to the target host.
Hi. I'm working on a GWT project in which I plan to use a GWT-RPC proxy on tomcat which will interact with the host, also on tomcat. My main concern at this point is user authentication. I'm not sure I understand how this should work. In previous projects using Flex, we had a simple form-based auth setup in which we established the session and all was good. I assume that tomcat created a session cookie behind the scenes and used this for all further requests. My question is: How will either form-based or basic authentication work with a GWT-RPC proxy between the client and host server? What do I need to configure for this to work? Both proxy and target hosts are running tomcat. thanks in advance for any 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
org.hibernate.HibernateException: /hibernate.cfg.xml not found
Comment for newbies only on this (Fra: Cosmin Nicula cosmin.nic...@googlemail.com Dato: Mon, 7 Apr 2008 05:36:39 -0700 (PDT) Lokalt: Ma. 7 Apr. 2008 14:36 Emne: Re: org.hibernate.HibernateException: /hibernate.cfg.xml not found Sorry for bothering you :-)) So you did not bother me! Thanks Cosmin. After reading your two contribs on this group I also got my things working. Cause I then realized I could not paste anyting into src folder if inside Project Explorer (in Eclipse). / 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using GWT UI Client Side javascript only
Hi, I am new to GWT and still reading up on it. I would lke to use GWT as the tool to generated only the UI and drop the compiled javascript and html into my own project. Most data for the UI components shall be filled using JSNI, hence no RPC involved. Is there any drawback or complication i should know prior to using GWT in such situation? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Data Presentation Widgets reference
Where to find Data Presentation Widgets references? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Compilation Failed
Hi, I have installed eclipse and gwt plugins. I was able to run the application but all of a sudden I started encountering the following problem. GWT Compilation Failed - Plugin - com.google.gwt.eclipse.core Compiling module com.mycompany.mywebapp.MyWebApp [ERROR] Unexpected java.lang.NullPointerException at com.google.gwt.dev.javac.JsniChecker.getSuppressedWarnings(JsniChecker.java: 445) at com.google.gwt.dev.javac.JsniChecker $JsniDeclChecker.visit(JsniChecker.java:115) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java: 209) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java: 1239) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java: 687) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:478) at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:427) at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater $UnitProcessorImpl.process(CompilationStateBuilder.java:62) at com.google.gwt.dev.javac.JdtCompiler $CompilerImpl.process(JdtCompiler.java:166) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 467) at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:142) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: 281) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java: 182) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java: 280) at com.google.gwt.dev.Precompile.precompile(Precompile.java:502) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) Can someone help me with this. Thank you. Rock -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Hibernate Project Structure
Hi, This is my first ever forum post. I really need some help with understanding how to setup a GWT 2.0 Hibernate3 project. I understand the GWT RPC mechanism and the problems with serializing Hibernate POJOs. I would prefer to use DTO's rather than Gilead or Dozer. So far, I have a Hibernate Project built with Maven2 in Eclipse using the m2eclipse plugin and the HibernateTools plugin for Eclipse. I also have a GWT 2.0 project built with the GWT plugin for Eclipse. I'm using MySql as the RDBMS. What I don't understand is how to setup, configure, and deploy the two projects in such a way that they can communicate with each other. Let's say with the above setup, I'm trying to persist a Person object that has only an id, and a name as fields. In my Hibernate project, I would create a Person.hbm.xml Hibernate mapping document, and then generate the corresponding Hibernate Java POJO and MySql table. Then, in my GWT project, I would create a serializable PersonDTO.java class that can be sent 'across the wire' to and from the server via GWT RPC. Then, for simplicity's sake, let's say that in the client package of my GWT project I create a CreatePersonService.java interface and a CreatePersonServiceAsync.java interface with one method, void createPerson(). I would then need a CreatePersonServiceImp.java class on the server side that implements createPerson(). Fine, but here's where I get confused. If the createPersonServiceImp.java class is going to transform a PersonDTO.java class into its Hibernate POJO equivalent, then it needs to utilize classes from both my GWT Eclipse project and Hibernate Eclipse project. So which project do I put it in? It needs to have access to GWT classes like PersonDTO, AsyncCallback and other RPC classes. It also needs access to Hibernate classes like SessionFactory, Transaction, etc. So it needs to have access to my GWT jars and Hibernate jars which are in two separate projects. How do do I link them so that CreatePersonServiceImp.java has access to all the libraries it needs. Finally, how do I correctly merge both of these projects into one WAR file for deploying onto a server? Or am I way off track? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Get date and time from java-javascript compilation
Hi all! I'd like to have an about dialog which would show users the date and time the web application was compiled. Is there any way to get that in GWT? I know that I could do that with ant tasks like in http://coding.derkeiler.com/Archive/Java/comp.lang.java.help/2003-12/0914.html, but actually I'm using the eclipse plugin to compile, so I just like to know if there is another way to get that. Thanks, Matheus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Integrating GWT Plugin for Eclipse with PDE
I am interested in using my Eclipse plugins and OSGI bundles with GWT. There are a number of ad hoc projects, partial documentation attempts, and a Planet Eclipse example, but they all seem to discuss GWT 1.5. I would like to see some first class support for this scenario in the GWT plugin. Some features that would be useful: * New project wizard (probably create three bundles like the Planet Eclipse example does) * Official development/deployment OSGI bundles (com.google.gwt.user, com.google.gwt.servlet, etc) * A run configuration that is more similar to the OSGi Framework or Eclipse Application configurations * An export wizard that will spit out bundles that can be dropped into an OSGI instance Any interest or feedback? How does one go about implementing major new features like 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP Framework in GWT 2.1 M1 ?
I started using another mvp framework for GWT called mvp4g. So far I am quite happy with it. YMMV. It is hosted here: http://code.google.com/p/mvp4g/ On May 20, 1:03 pm, metrixon metri...@gmail.com wrote: I think, the whole MVP with GWT thing is actually inspired by the talk given by Ray Ryan on last year's Google IO (seehttp://www.youtube.com/watch?v=PDuhR18-EdM). Currently, there are implementations available that do provide an MVP infrastructure and implement other patterns as well: -http://code.google.com/p/gwt-presenter/ -http://code.google.com/p/gwt-dispatch/ -http://code.google.com/p/gwt-platform/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ScrollPanel not displaying contents in nested DockLayoutPanels
Hi, the problem is that ScrollPanel apparently is not propagating the layout data, according to the explained here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design A workaround is to remove position:relative style from ScrollPanel div. Savio Grossi www.sambatech.com On Thu, May 13, 2010 at 8:53 PM, Mike spirydo...@gmail.com wrote: Hi, I have the same type of problem but with slightly simplier structure: RootLayoutPanel DockLayoutPanel ScrollPanel (in center) DockLayoutPanel Widget within north of the last DockLayoutPanel shows up correctly. Other parts (east, west, center, south) do not appear, i.e. if I specify east, south and center I have nothing at all inside the ScrollPanel however if I have north and center I can see whatever there is in the north but not in the center. Here is an example: g:north size=5 g:LabelNorth/g:Label /g:north g:center g:LabelTest/g:Label /g:center where only North text is visible. I use UiBinder for all the levels below root and 2.0.3 version of the Toolkit. The host html page has strict HTML doctype declaration. Initially loaded in FF 3.6.3 with Google Update plugin 1.2.183.23. Also uploaded onto App Engine and got the same result w/o dev plugin. Thanks, Mike On Apr 16, 4:51 am, rmmcgr richard.mcgr...@gmail.com wrote: Hi, I have problem with a ScrollPanel not displaying its contents that is buried a few layers deep in some layout panels (all done using UiBinder). I have: RootLayoutPanel DockLayoutPanel (for application layout) TabLayoutPanel (in the center area) tab Custom View, implementing ResizeComposite DockLayoutPanel ScrollPanel (in the west area) FlexGrid (for the list of items) FlowLayoutPanel (in the center, for the detail of a particular item) Form controls Problem with the above is that the list in the scroll panel is not showing. FireBug is showing me that the data gets into the page, but is not visible. If I swap out the ScrollPanel for, say, a FlowPlanel it appears. What is the trick to getting this all to work? Thanks for any help, Richard -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to navigate to particular tab of GWT automatically
I have a Module called Employer inside my app . The employer module has a jsp page to it called Employer.jsp . This Module builds various Parent Tabs and Child Tabs and Each Tab has its own data content rendered from different onModule Load on its own . Now I have a requirement like if the user is on the 2 child Tab and clicks on send message to a different user . Then I should be able to capture the link and send it across to the user . So when the second user sees the message and clicks on the link he should directly go to this tab . The message will be viewed within the app . Since there is only one module . i am not sure how to capture this link and send it across . Because when i take a look at the url it only says myappContextPath/Employer.jsp it does not say which Tab item is selected and so forth. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to navigate to particular tab of GWT automatically
The answer lies in com.google.gwt.i18n.client.Dictionary If the entrypoint module is reachable thro /MakeAGoodGuess/ Employer.jsp, then the url you could use is /MakeAGoodGuess/Employer.jsp/pg3. Presuming - you know how to parse the subpath of request url from the request object of the jsp page, - you know how to use java code in a jsp, - you are familiar with json construct a javascript tag enclosure and define a var as dictated by javadoc of gwt Dictionary class. That var would be a json structure contain all the info you wish to pass to the entrypoint module. But if you won't need to pass a whole load of params, you don't need a json structure but just var pg = 3; At the entry point onModuleLoad, use Dictionary to extract that var. Then just use TabLayoutPanel selectTab method to select tab 3. If you have a whole load of params to pass from jsp used to load the module to the entrypoint module, you might as well define a var assigned to a json structure. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get date and time from java-javascript compilation
Hi Matheus, There might already be a built in way to do this, but if there is I don't know of it. There might also be a simple way to add an ant task to the regular eclipse plugin compilation process, since I believe it's just using ant under the hood. Within straight GWT land, though, the key is that you want to evaluate code at compile time and have the result available at run time. I would just write a really simple generator that generates a class to an interface consisting of just getCompileTime() (or whatever), which could be returned as a String or a Date object (from a String) if you need localization/more options/etc. If you've never written a generator for GWT before, the learning curve can be a bit daunting, but once over the concept is pretty simple, powerful, and a great way to get to know the real flexibility allowed by the GWT compilation process. On May 21, 7:27 am, Matheus Garcia garcia.figueir...@gmail.com wrote: Hi all! I'd like to have an about dialog which would show users the date and time the web application was compiled. Is there any way to get that in GWT? I know that I could do that with ant tasks like inhttp://coding.derkeiler.com/Archive/Java/comp.lang.java.help/2003-12/..., but actually I'm using the eclipse plugin to compile, so I just like to know if there is another way to get that. Thanks, Matheus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to navigate to particular tab of GWT automatically
Thanks for your answer I am a newbie . I am not still sure how to do this if you can provide me sample it would be great Let me explain it more This is what happens when the user hits the employer.jsp , what my app does is show all the employees who belong to a particular employer in a grid . When the grid 's row is clicked , we taket hem to a section where there are many tabs and child tabs . and each child tab has a a Icon next to it which would enable to user to create a message with this child tab link link . So next time lets say user b logs into the system and sees the message and hits on to the link the child tab should automatically open , starting from constructing the parent and the child tab and selecting the child tab . On Fri, May 21, 2010 at 7:20 PM, Blessed Geek blessedg...@gmail.com wrote: The answer lies in com.google.gwt.i18n.client.Dictionary If the entrypoint module is reachable thro /MakeAGoodGuess/ Employer.jsp, then the url you could use is /MakeAGoodGuess/Employer.jsp/pg3. Presuming - you know how to parse the subpath of request url from the request object of the jsp page, - you know how to use java code in a jsp, - you are familiar with json construct a javascript tag enclosure and define a var as dictated by javadoc of gwt Dictionary class. That var would be a json structure contain all the info you wish to pass to the entrypoint module. But if you won't need to pass a whole load of params, you don't need a json structure but just var pg = 3; At the entry point onModuleLoad, use Dictionary to extract that var. Then just use TabLayoutPanel selectTab method to select tab 3. If you have a whole load of params to pass from jsp used to load the module to the entrypoint module, you might as well define a var assigned to a json structure. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get date and time from java-javascript compilation
We just have ant increment build numbers and build dates in our *Constants and associated properties files. Joe On May 22, 12:27 am, Matheus Garcia garcia.figueir...@gmail.com wrote: Hi all! I'd like to have an about dialog which would show users the date and time the web application was compiled. Is there any way to get that in GWT? I know that I could do that with ant tasks like inhttp://coding.derkeiler.com/Archive/Java/comp.lang.java.help/2003-12/..., but actually I'm using the eclipse plugin to compile, so I just like to know if there is another way to get that. Thanks, Matheus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
com.google.gwt.user.client.rpc.SerializationException without stacktrace
Hi GWT gurus, I am using GWT2.03 and I get com.google.gwt.user.client.rpc.SerializationException without any stacktrace for some RPC calls. *All* classes have a default constructor without param. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: com.google.gwt.user.client.rpc.SerializationException without stacktrace
root cause com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter line 126 getObjectTypeSignature(instance) returns null the object class has already been included in gwt.xml On May 22, 12:11 pm, Max thebb...@gmail.com wrote: Hi GWT gurus, I am using GWT2.03 and I get com.google.gwt.user.client.rpc.SerializationException without any stacktrace for some RPC calls. *All* classes have a default constructor without param. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: com.google.gwt.user.client.rpc.SerializationException without stacktrace
PS: I can also find this class in serialization policy file On May 22, 12:34 pm, Max thebb...@gmail.com wrote: root cause com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter line 126 getObjectTypeSignature(instance) returns null the object class has already been included in gwt.xml On May 22, 12:11 pm, Max thebb...@gmail.com wrote: Hi GWT gurus, I am using GWT2.03 and I get com.google.gwt.user.client.rpc.SerializationException without any stacktrace for some RPC calls. *All* classes have a default constructor without param. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT designing
GWT is based on modules not files. Do you mean you wanted to redirect to another html file or a module in Java? If a HTML page you can use the following command. Window.open(linkURL, _self, ) HTH. -Shyam, On May 21, 6:55 am, Rajalakshmi Subramanian raji.sm...@gmail.com wrote: Hi.. I have created one gwt application. In the client package i inculded two java file contains gwt coding. In the first java program i included one Hyperlink when this Hyperlink is clicked it should redircted to Second file which also contains some GWT coding. I dont know how to redirect the java file. Help me on this issue... Regards, Raji -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT designing
Hello sir, I have two GWT java files in one package From file A using onModuleLoad() method i want to call another java file B. I created object for B and call the method..but it dosen't works. How to call that method when i clicked the hyperlink which is created in java file A. Regards, Raji On Sat, May 22, 2010 at 10:48 AM, Shyam Visamsetty shyamsunder...@gmail.com wrote: GWT is based on modules not files. Do you mean you wanted to redirect to another html file or a module in Java? If a HTML page you can use the following command. Window.open(linkURL, _self, ) HTH. -Shyam, On May 21, 6:55 am, Rajalakshmi Subramanian raji.sm...@gmail.com wrote: Hi.. I have created one gwt application. In the client package i inculded two java file contains gwt coding. In the first java program i included one Hyperlink when this Hyperlink is clicked it should redircted to Second file which also contains some GWT coding. I dont know how to redirect the java file. Help me on this issue... Regards, Raji -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- RAJI -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: 1.3.1 gwt-maven-plugin in 2.1.0 M1 ??
That's fine, I just wanted to ensure changes would be sent back to codehaus Jira to avoid some sort of fork - we allready hardly merged the codehaus googlecode gwt-maven plugins ! I'd be pleased to help if you plan to support some SDK features in an official GWT Maven plugin The codeHaus plugin is complex because it supports all GWT 1.4+ releases from same code base. A maven plugin developped/deployed in sync with the SDK would be far simplier. It also overlap with some features of Google Eclipse plugin (ex: Async interface generation) that may be reused as is. Maybe you could start a poll/moderator to check how many GWT developpers are Maven users and what they think about Maven support in GWT ? Nicolas On 21 mai, 01:26, Ray Cromwell cromwell...@gmail.com wrote: Nicolas, Sorry I didn't give you a heads up, I had to patch some things at the last minute for Google I/O Keynote, and I did not think there was sufficient time to turn around a patch and get it committed, so temporarily, there's a forked maven plugin (the version # 1.3.1.google should give it away that it's s one-off), but in due time, after I decompress from I/O, I'll send you my changes, and you can tell me if they're necessary or not, or if there is an alternative workaround. -Ray On Tue, May 18, 2010 at 3:56 AM, nicolas de loof nicolas.del...@gmail.com wrote: Hi I'm the maintainer of codehaus-mojo gwt-maven-plugin and I wonder the plugin is deployed with a 1.3.1.google version at http://google-web-toolkit.googlecode.com/svn/2.1.0.M1/gwt/maven/ Is it a internal release of the codehaus trunk to get a fixed version, or a custom build with some fixes ? Do you plan to add support for Maven as a standard GWT feature ? I'd be pleased to contribute and deprecate the mojo plugin in such case. Nicolas -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JsParserException better error reporting (issue546801)
Very nice. LGTM. http://gwt-code-reviews.appspot.com/546801/diff/2001/3001 File dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java (right): http://gwt-code-reviews.appspot.com/546801/diff/2001/3001#newcode422 dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java:422: throw new RuntimeException(Unexpected reading in-memory stream, e); Insert error http://gwt-code-reviews.appspot.com/546801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] STS RPC failures
I'm seeing a strange issue with STS where launching a web application from within STS succeeds, but then RPCs fail with the following errors: http://goo.gl/hAkP The project I'm running is from /samples/expenses.roo and was created using the Roo shell (script expenses.roo). If I try running the same project via 'mvn gwt:run', it works. Here's my setup: OS X SpringSource Tool Suite (2.3.3.M1) - DataNucleus Eclipse Plugins (2.0.2) - Google App Engine Java SDK (1.3.4.v201005191217) - Google Plugin for Eclipse 3.5 (1.4.0.m1-201005192034) - Google Web Toolkit SDK (2.1.0.m1-201005191217) - Spring Roo (1.0.2.RELEASE) Thanks! Aaron -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] STS RPC failures
I wonder about the version of Roo that you're using. If you navigate down into your STS folder, do you see a roo-related directory there? What is the name of that directory? I think you need to be using the milestone version of roo, which is located at sts dir/roo dir/bin/roo.{sh, bat}. On Fri, May 21, 2010 at 2:02 PM, Aaron Steele eightyste...@gmail.comwrote: I'm seeing a strange issue with STS where launching a web application from within STS succeeds, but then RPCs fail with the following errors: http://goo.gl/hAkP The project I'm running is from /samples/expenses.roo and was created using the Roo shell (script expenses.roo). If I try running the same project via 'mvn gwt:run', it works. Here's my setup: OS X SpringSource Tool Suite (2.3.3.M1) - DataNucleus Eclipse Plugins (2.0.2) - Google App Engine Java SDK (1.3.4.v201005191217) - Google Plugin for Eclipse 3.5 (1.4.0.m1-201005192034) - Google Web Toolkit SDK (2.1.0.m1-201005191217) - Spring Roo (1.0.2.RELEASE) Thanks! Aaron -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] STS RPC failures
The roo directory should be roo-1.1.0.M1; so you should be using Roo 1.1.0.M1 to generate the app, as opposed to Roo 1.0.2. On Fri, May 21, 2010 at 2:22 PM, Rajeev Dayal rda...@google.com wrote: I wonder about the version of Roo that you're using. If you navigate down into your STS folder, do you see a roo-related directory there? What is the name of that directory? I think you need to be using the milestone version of roo, which is located at sts dir/roo dir/bin/roo.{sh, bat}. On Fri, May 21, 2010 at 2:02 PM, Aaron Steele eightyste...@gmail.comwrote: I'm seeing a strange issue with STS where launching a web application from within STS succeeds, but then RPCs fail with the following errors: http://goo.gl/hAkP The project I'm running is from /samples/expenses.roo and was created using the Roo shell (script expenses.roo). If I try running the same project via 'mvn gwt:run', it works. Here's my setup: OS X SpringSource Tool Suite (2.3.3.M1) - DataNucleus Eclipse Plugins (2.0.2) - Google App Engine Java SDK (1.3.4.v201005191217) - Google Plugin for Eclipse 3.5 (1.4.0.m1-201005192034) - Google Web Toolkit SDK (2.1.0.m1-201005191217) - Spring Roo (1.0.2.RELEASE) Thanks! Aaron -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Added benchmark task to ant in user/ (issue547801)
Reviewers: Lex, Description: Added benchmark task to ant in user/ Please review this at http://gwt-code-reviews.appspot.com/547801/show Affected files: M /build.xml M /common.ant.xml M /user/build.xml A /user/test/com/google/gwt/emultest/EmulSuiteBenchmark.java A /user/test/com/google/gwt/i18n/I18NSuiteBenchmark.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] STS RPC failures
Similar results using Roo 1.1.0.M1 to generate the app (as opposed to Roo 1.0.2): http://goo.gl/SD8sx $ springsource/roo-1.1.0.M1/bin/roo.sh roo script --file expenses.roo What am I missing? FWIW, when launching from STS (Run as-Web Application), it launches a Finder window and prompts me to select a WAR directory, which defaults to target/extrack-0.1.0-SNAPSHOT. On Fri, May 21, 2010 at 11:24 AM, Rajeev Dayal rda...@google.com wrote: The roo directory should be roo-1.1.0.M1; so you should be using Roo 1.1.0.M1 to generate the app, as opposed to Roo 1.0.2. On Fri, May 21, 2010 at 2:22 PM, Rajeev Dayal rda...@google.com wrote: I wonder about the version of Roo that you're using. If you navigate down into your STS folder, do you see a roo-related directory there? What is the name of that directory? I think you need to be using the milestone version of roo, which is located at sts dir/roo dir/bin/roo.{sh, bat}. On Fri, May 21, 2010 at 2:02 PM, Aaron Steele eightyste...@gmail.com wrote: I'm seeing a strange issue with STS where launching a web application from within STS succeeds, but then RPCs fail with the following errors: http://goo.gl/hAkP The project I'm running is from /samples/expenses.roo and was created using the Roo shell (script expenses.roo). If I try running the same project via 'mvn gwt:run', it works. Here's my setup: OS X SpringSource Tool Suite (2.3.3.M1) - DataNucleus Eclipse Plugins (2.0.2) - Google App Engine Java SDK (1.3.4.v201005191217) - Google Plugin for Eclipse 3.5 (1.4.0.m1-201005192034) - Google Web Toolkit SDK (2.1.0.m1-201005191217) - Spring Roo (1.0.2.RELEASE) Thanks! Aaron -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] STS RPC failures
[by the way, the second link you posted is broken] Hm, this is odd. What actions are you taking (in the UI) when the RPC exceptions happen? The dialog that pops up for you to select your WAR directory is expected; the default value is what you should choose. Can you send a text listing of the files that are in that directory (plus subdirectories) during the launch? Also, you shouldn't need to specify --file expenses.roo; you should just be able to type script expenses.roo, but I don't think that would make a difference anyway. On Fri, May 21, 2010 at 3:37 PM, Aaron Steele eightyste...@gmail.comwrote: Similar results using Roo 1.1.0.M1 to generate the app (as opposed to Roo 1.0.2): http://goo.gl/SD8sx $ springsource/roo-1.1.0.M1/bin/roo.sh roo script --file expenses.roo What am I missing? FWIW, when launching from STS (Run as-Web Application), it launches a Finder window and prompts me to select a WAR directory, which defaults to target/extrack-0.1.0-SNAPSHOT. On Fri, May 21, 2010 at 11:24 AM, Rajeev Dayal rda...@google.com wrote: The roo directory should be roo-1.1.0.M1; so you should be using Roo 1.1.0.M1 to generate the app, as opposed to Roo 1.0.2. On Fri, May 21, 2010 at 2:22 PM, Rajeev Dayal rda...@google.com wrote: I wonder about the version of Roo that you're using. If you navigate down into your STS folder, do you see a roo-related directory there? What is the name of that directory? I think you need to be using the milestone version of roo, which is located at sts dir/roo dir/bin/roo.{sh, bat}. On Fri, May 21, 2010 at 2:02 PM, Aaron Steele eightyste...@gmail.com wrote: I'm seeing a strange issue with STS where launching a web application from within STS succeeds, but then RPCs fail with the following errors: http://goo.gl/hAkP The project I'm running is from /samples/expenses.roo and was created using the Roo shell (script expenses.roo). If I try running the same project via 'mvn gwt:run', it works. Here's my setup: OS X SpringSource Tool Suite (2.3.3.M1) - DataNucleus Eclipse Plugins (2.0.2) - Google App Engine Java SDK (1.3.4.v201005191217) - Google Plugin for Eclipse 3.5 (1.4.0.m1-201005192034) - Google Web Toolkit SDK (2.1.0.m1-201005191217) - Spring Roo (1.0.2.RELEASE) Thanks! Aaron -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] STS RPC failures
Oh, also, did you enable AspectJ weaving (when STS asked you about this)? On Fri, May 21, 2010 at 3:50 PM, Rajeev Dayal rda...@google.com wrote: [by the way, the second link you posted is broken] Hm, this is odd. What actions are you taking (in the UI) when the RPC exceptions happen? The dialog that pops up for you to select your WAR directory is expected; the default value is what you should choose. Can you send a text listing of the files that are in that directory (plus subdirectories) during the launch? Also, you shouldn't need to specify --file expenses.roo; you should just be able to type script expenses.roo, but I don't think that would make a difference anyway. On Fri, May 21, 2010 at 3:37 PM, Aaron Steele eightyste...@gmail.comwrote: Similar results using Roo 1.1.0.M1 to generate the app (as opposed to Roo 1.0.2): http://goo.gl/SD8sx $ springsource/roo-1.1.0.M1/bin/roo.sh roo script --file expenses.roo What am I missing? FWIW, when launching from STS (Run as-Web Application), it launches a Finder window and prompts me to select a WAR directory, which defaults to target/extrack-0.1.0-SNAPSHOT. On Fri, May 21, 2010 at 11:24 AM, Rajeev Dayal rda...@google.com wrote: The roo directory should be roo-1.1.0.M1; so you should be using Roo 1.1.0.M1 to generate the app, as opposed to Roo 1.0.2. On Fri, May 21, 2010 at 2:22 PM, Rajeev Dayal rda...@google.com wrote: I wonder about the version of Roo that you're using. If you navigate down into your STS folder, do you see a roo-related directory there? What is the name of that directory? I think you need to be using the milestone version of roo, which is located at sts dir/roo dir/bin/roo.{sh, bat}. On Fri, May 21, 2010 at 2:02 PM, Aaron Steele eightyste...@gmail.com wrote: I'm seeing a strange issue with STS where launching a web application from within STS succeeds, but then RPCs fail with the following errors: http://goo.gl/hAkP The project I'm running is from /samples/expenses.roo and was created using the Roo shell (script expenses.roo). If I try running the same project via 'mvn gwt:run', it works. Here's my setup: OS X SpringSource Tool Suite (2.3.3.M1) - DataNucleus Eclipse Plugins (2.0.2) - Google App Engine Java SDK (1.3.4.v201005191217) - Google Plugin for Eclipse 3.5 (1.4.0.m1-201005192034) - Google Web Toolkit SDK (2.1.0.m1-201005191217) - Spring Roo (1.0.2.RELEASE) Thanks! Aaron -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Improvements to GWT benchmarking. Report now provides averaged results and error statistics to i... (issue548801)
Reviewers: tobyr, Description: Improvements to GWT benchmarking. Report now provides averaged results and error statistics to identify and combat mesurement noise. Please review this at http://gwt-code-reviews.appspot.com/548801/show Affected files: M /tools/api-checker/config/gwt20_21userApi.conf M /user/src/com/google/gwt/benchmarks/BenchmarkReport.java M /user/src/com/google/gwt/benchmarks/BenchmarkShell.java M /user/src/com/google/gwt/benchmarks/client/Benchmark.java M /user/src/com/google/gwt/benchmarks/client/IterationTimeLimit.java A /user/src/com/google/gwt/benchmarks/client/impl/BenchmarkCommon.java A /user/src/com/google/gwt/benchmarks/client/impl/Experiment.java M /user/src/com/google/gwt/benchmarks/client/impl/PermutationIterator.java M /user/src/com/google/gwt/benchmarks/client/impl/Trial.java M /user/src/com/google/gwt/benchmarks/rebind/BenchmarkGenerator.java M /user/super/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java M /user/test/com/google/gwt/junit/client/BenchmarkTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8201 committed - Fixed the module definitions so that it pulls in its dependencies corr...
Revision: 8201 Author: amitman...@google.com Date: Fri May 21 11:31:55 2010 Log: Fixed the module definitions so that it pulls in its dependencies correctly. Removed auth. Bumped up the appEngine version number. Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8201 Modified: /branches/2.1/bikeshed/src/com/google/gwt/app/App.gwt.xml /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml /branches/2.1/bikeshed/war/WEB-INF/web.xml === --- /branches/2.1/bikeshed/src/com/google/gwt/app/App.gwt.xml Thu Apr 29 18:58:19 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/app/App.gwt.xml Fri May 21 11:31:55 2010 @@ -2,7 +2,7 @@ !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 0.0.999//EN http://google-web-toolkit.googlecode.com/svn/tags/0.0.999/distro-source/core/src/gwt-module.dtd; module inherits name='com.google.gwt.user.User'/ - inherits name='com.google.gwt.valuestore.ValueStore'/ + inherits name='com.google.gwt.requestfactory.RequestFactory'/ source path=place/ source path=client/ === --- /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml Tue May 18 17:22:30 2010 +++ /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml Fri May 21 11:31:55 2010 @@ -1,7 +1,7 @@ ?xml version=1.0 encoding=utf-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0; applicationgwt-bikeshed/application - version27/version + version28/version static-files include path=**.nocache.* expiration=1s/ include path=**.cache.html expiration=365d/ === --- /branches/2.1/bikeshed/war/WEB-INF/web.xml Wed May 19 09:09:03 2010 +++ /branches/2.1/bikeshed/war/WEB-INF/web.xml Fri May 21 11:31:55 2010 @@ -109,6 +109,7 @@ /security-constraint !-- Require login. -- + !-- security-constraint web-resource-collection web-resource-nameAccess/web-resource-name @@ -118,5 +119,5 @@ role-nameadmin/role-name /auth-constraint /security-constraint - + -- /web-app -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RR : Reimplement DevMode JavaScriptObject support (issue473801)
My brain hurts now. http://gwt-code-reviews.appspot.com/473801/diff/5001/6004 File dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java (right): http://gwt-code-reviews.appspot.com/473801/diff/5001/6004#newcode63 dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java:63: if (desiredType != null !desiredType.isAssignableFrom(jsoType)) { Just move this code out to the single call site that needs it, in get(). http://gwt-code-reviews.appspot.com/473801/diff/5001/6005 File dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java (right): http://gwt-code-reviews.appspot.com/473801/diff/5001/6005#newcode46 dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java:46: * instantiable type./li This wants a major rewrite, naturally. http://gwt-code-reviews.appspot.com/473801/diff/5001/6005#newcode60 dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java:60: static class RewriterOracle { I like how you did this. It looks like, down the road, this could easily be redone to not use TypeOracle, but to use CCL or ASM+CompState. http://gwt-code-reviews.appspot.com/473801/diff/5001/6006 File dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java (right): http://gwt-code-reviews.appspot.com/473801/diff/5001/6006#newcode57 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java:57: private class MyMethodAdapter extends AnalyzerAdapter { Somewhere in here, don't you need to rewrite things like new JsoSubtype[3] to new JavaScriptObject[3]? Also, what about visitVarInsn for storing into locals/params, and visitInsn for storing into arrays? http://gwt-code-reviews.appspot.com/473801/diff/5001/6006#newcode128 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java:128: rewriterOracle.isJsoSubtype(t.getInternalName())) { I think I see a problem here: IJsoIntf i = (JsoSubclass) jso; i.getClass() -- incorrectly returns JsoSubclass.class http://gwt-code-reviews.appspot.com/473801/diff/5001/6006#newcode136 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java:136: rewriterOracle.isJsoSubtype(t.getElementType().getInternalName())) { This goes away if we just prevent JsoSubclass[] from ever getting instantiated. http://gwt-code-reviews.appspot.com/473801/diff/5001/6006#newcode148 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java:148: Method m = new Method(name, desc); Nasty, but wow, guess it works. Maybe a short overview up here? http://gwt-code-reviews.appspot.com/473801/diff/5001/6006#newcode272 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java:272: * Casts to Object or JavaScriptObject should result in the canonical object Does a cast to JavaScriptObject require the canonical object? Or just casts to Object? I forget what we decided there. Seems like less code generally gets generated executed if only Object has to be canonical. http://gwt-code-reviews.appspot.com/473801/diff/5001/6006#newcode356 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsoCasts.java:356: } else if (rewriterOracle.isJsoSubtype(internalName)) { BTW: the implementation of this method returns true for JSO itself, and for subtypes. This is the intent here? http://gwt-code-reviews.appspot.com/473801/diff/5001/6007 File dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteObjectComparisons.java (right): http://gwt-code-reviews.appspot.com/473801/diff/5001/6007#newcode39 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteObjectComparisons.java:39: public void visitJumpInsn(int opcode, Label label) { This is shocking enough to be worth a comment, that reference equality always requires a jump instruction. It's pretty surprising that code like this: boolean eq = (a == b); turns into something involve jumps. http://gwt-code-reviews.appspot.com/473801/diff/5001/6010 File dev/core/src/com/google/gwt/dev/shell/rewrite/SingleJsoImplSupport.java (right): http://gwt-code-reviews.appspot.com/473801/diff/5001/6010#newcode46 dev/core/src/com/google/gwt/dev/shell/rewrite/SingleJsoImplSupport.java:46: if (o == null) { o can never be null based on the single caller. http://gwt-code-reviews.appspot.com/473801/diff/5001/6010#newcode50 dev/core/src/com/google/gwt/dev/shell/rewrite/SingleJsoImplSupport.java:50: if (Object.class == jsoOrIntfType) { can't be Object either, because then desiredType.isAssignableFrom(jsoType) http://gwt-code-reviews.appspot.com/473801/diff/5001/6010#newcode54 dev/core/src/com/google/gwt/dev/shell/rewrite/SingleJsoImplSupport.java:54: if (jsoOrIntfType.isInstance(o)) { pretty sure this will never be true, either http://gwt-code-reviews.appspot.com/473801/diff/5001/6010#newcode63 dev/core/src/com/google/gwt/dev/shell/rewrite/SingleJsoImplSupport.java:63: return cast(o, jsoOrIntfType, targetJsoType); if (targetJsoType != null) return rewrap(..) http://gwt-code-reviews.appspot.com/473801/diff/5001/6010#newcode97
[gwt-contrib] [google-web-toolkit] r8202 committed - JsParserException better error reporting....
Revision: 8202 Author: sco...@google.com Date: Fri May 21 13:07:23 2010 Log: JsParserException better error reporting. http://gwt-code-reviews.appspot.com/546801/show Review by: spoon http://code.google.com/p/google-web-toolkit/source/detail?r=8202 Added: /branches/2.1/dev/core/test/com/google/gwt/dev/js/JsParserTest.java Modified: /branches/2.1/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java /branches/2.1/dev/core/src/com/google/gwt/dev/cfg/ModuleDefSchema.java /branches/2.1/dev/core/src/com/google/gwt/dev/javac/JsniCollector.java /branches/2.1/dev/core/src/com/google/gwt/dev/js/JsParser.java /branches/2.1/dev/core/src/com/google/gwt/dev/js/JsParserException.java /branches/2.1/dev/core/test/com/google/gwt/dev/javac/JsniCheckerTest.java /branches/2.1/dev/core/test/com/google/gwt/dev/javac/JsniCollectorTest.java === --- /dev/null +++ /branches/2.1/dev/core/test/com/google/gwt/dev/js/JsParserTest.java Fri May 21 13:07:23 2010 @@ -0,0 +1,92 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev.js; + +import com.google.gwt.dev.jjs.SourceInfo; +import com.google.gwt.dev.js.ast.JsBlock; +import com.google.gwt.dev.js.ast.JsProgram; + +import junit.framework.TestCase; + +import java.io.IOException; +import java.io.StringReader; + +/** + * Tests {...@link JsParser}. + */ +public class JsParserTest extends TestCase { + + public class Result { + +private String source; +private JsParserException exception; + +public Result(JsBlock jsBlock) { + this.source = jsBlock.toSource().replaceAll(\\s+, ); +} + +public Result(JsParserException e) { + this.exception = e; +} + +public void into(String expected) throws JsParserException { + if (exception != null) { +throw exception; + } + assertEquals(expected, source); +} + +public void error(String expectedMsg) { + assertNotNull(No JsParserException was thrown, exception); + assertEquals(expectedMsg, exception.getMessage()); +} + } + + public void testBasic() throws JsParserException { +parse(foo).into(foo; ); +parse( foo ).into(foo; ); +parse(foo()).into(foo(); ); +parse(foo(); bar()).into(foo(); bar(); ); +parse(window.alert('3' + 3)).into(window.alert('3' + 3); ); +parse({ foo() }).into({ foo(); } ); + } + + public void testParseErrors() { +parse(1a2b).error( +test.js(1): missing ; before statement\n 1a2b\n ^); +parse(foo().error(test.js(1): syntax error\n \n ^); +parse(+).error(test.js(1): syntax error\n \n ^); +parse()).error(test.js(1): syntax error\n )\n -^); +parse(}).error(test.js(1): syntax error\n }\n -^); +parse(foo();\n}).error(test.js(2): syntax error\n }\n -^); +parse(foo();\nbar;\n}).error(test.js(3): syntax error\n }\n -^); + } + + private Result parse(String js) { +try { + JsProgram program = new JsProgram(); + SourceInfo rootSourceInfo = program.createSourceInfo(1, test.js); + JsBlock block = program.getGlobalBlock(); + JsParser.parseInto(rootSourceInfo, program.getScope(), block, + new StringReader(js)); + return new Result(block); +} catch (IOException e) { + throw new RuntimeException(Unexpected error reading in-memory stream, e); +} catch (JsParserException e) { + return new Result(e); +} + } +} === --- /branches/2.1/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java Wed Mar 3 09:01:30 2010 +++ /branches/2.1/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java Fri May 21 13:07:23 2010 @@ -415,12 +415,11 @@ funcName.setObfuscatable(false); try { - SourceInfo sourceInfo = jsProgram.createSourceInfoSynthetic( - StandardLinkerContext.class, Linker-derived JS); + SourceInfo sourceInfo = jsProgram.createSourceInfo(1, + StandardLinkerContext.optimizeJavaScript); JsParser.parseInto(sourceInfo, topScope, jsProgram.getGlobalBlock(), r); } catch (IOException e) { - logger.log(TreeLogger.ERROR, Unable to parse JavaScript, e); - throw new UnableToCompleteException(); + throw new RuntimeException(Unexpected error reading in-memory stream, e); } catch (JsParserException e) { logger.log(TreeLogger.ERROR, Unable to parse
[gwt-contrib] Fixes pathological slowness in remote UI logger (GPE) (issue550801)
Reviewers: rdayal, jat, mmendez, Description: Before: all logging to remote UI occurred in a synchronous, blocking manner. After: except for creating top-level loggers, all sub-branches and log events happen asynchronously and are flushed on a background thread. Please review this at http://gwt-code-reviews.appspot.com/550801/show Affected files: M dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java M dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java M dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java M dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java A dev/core/src/com/google/gwt/dev/util/Callback.java M dev/core/test/com/google/gwt/dev/shell/remoteui/MessageTransportTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes pathological slowness in remote UI logger (GPE) (issue550801)
This is definitely something that Rajeev should look at since I didn't have much to do with this part of it. On a relatively superficial look everything looks ok, but it seems like there should be tests that explicitly cover all the cases of trying to log branches/messages to a logger before the top logger has come back across the wire. http://gwt-code-reviews.appspot.com/550801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors