Re: Tutorial Request: Glassfish / Eclipse / GWT - With Hot Deploy
No, you have to recompile you GWT code and you ANT's sync task to have some kind of hot deploy behavior. You can limit compilation time by focusing only on the browser you are interested in Example: Sample.gwt.xml : set-property name=user.agent value=ie8 / extend-property name='locale' values='en' / set-property-fallback name='locale' value='en' / set-property name='locale' value='en' / On May 18, 4:43 am, CodeMonkey chriscaspane...@gmail.com wrote: Hey Cretz, Thanks for the response. I kind of have this working. I created a Dynamic Web Project in Eclipse, then went into the Project Properties, and added the Google Web Tool Kit. After that I noticed it would hot deploy with the EAR file (WAR inside the EAR) if and ONLY IF I hit the Complie Button onthe GWT Toolbar. This really isn't that ideal. When working with JSF 2.0 and RichFaces the javascript didn't need to really compile. By the nature of design the GWT framework needs to compile JS code based of of written Java code; which takes a little bit of time. However, this is why GWT has it's own Development Mode. I can crank up the Development Mode and run real time with hot deploy on the built in Jetty Server. Now that being said; I was wondering if there is a way to run the development mode ON the Glassfish v3 container without having to click the Compile button on the Eclipse GWT Toolbar? Thanks, Chris On May 17, 1:27 pm, cretz chad.r...@gmail.com wrote: Looks like you can deploy as normal (I use ANT's sync after my build) then just touch a top-level .reload file in your WAR. On May 15, 1:36 pm, CodeMonkey chriscaspane...@gmail.com wrote: Hey guys, I'm new to this forum and was wondering if anyone had a good tutorial on how to setup a new project in Eclipse that uses Glassfish v3 and GWT with Hot Deploy. Any links or learning tools would be appreciated. Thanks, Chris -- You received 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.-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Avoid nested events in DisclosurePanel
I'm having some difficulties with a DisclosurePanel, and could use some help. In the header of the DisclusorePanel have a link that and what happens when i click that link is that both the link's and the DisclosurePanel's onClick event is fired. Is there a way to suppress the DisclosurePanel's event only when it comes from the link? That is, when you press the link, only the link's onClick is fired, and if you click anywhere else on the DisclosurePanel header the normal DisclosurePanel event is fired. -Michael Heide Christensen -- You received 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: Vaadin or GWT designer
http://h2g2java.blessedgeek.com/2010/05/vaadin.html http://h2g2java.blessedgeek.com/2010/05/using-vaadin-with-google-app-engine.html Vaadin is very attractive and manageable. With Vaadin you do not have to worry about RPC. You can declare objects and classes and presume their visibility would spread across the whole web app - whereas, in pure GWT, you have to propagate objects through RPC. In Vaadin, if the propagation of the visibility of an object crosses the server-client line, Vaadin communication takes care of that for you. As long as those classes implements Serializable. It is quit difficult to do mash-ups with Vaadin. It does not provide any means for its client to communicate with a server outside its own box. This because the server dictates the behaviour of the client. Vaadin projects a skeletal client using GWT widgets. Those GWT widgets are dysfunctional on their own. They need the server to fill themselves up with behaviour and appearances. So if you want to communicate with Yahoo or OpenId, you cannot do it thro the client. So if your 3rd party app requires you to submit a web form with a callback, you have to send the form thro the server and and have the server process the callback. This is very bad for OAuth and OpenId, which requires client- side authentication. I am not aware of any mechanism where server-side Vaadin would facilitate client-to-3rdparty server authentication. In fact, does OAuth or OpenId even allows that? You know, authentication tunnelling. As a browser-user, I should be rather uncomfortable with authentication tunnelling if that were possible. A number of Vaadin enthusiasts have projected the idea that it is very simple to deploy plain old GWT widgets in Vaadin, simply wrapping them with a Vaadin widgetset, which involves motions on both the client and the server. Vaadin has a very rich set of widgets so you almost never need to deploy any plain old GWT widget. If you do, it means that widget is so complex that you should pay Vaadin to do it for you. SmartGWT and all the other yucks - they require eyebrow-sweating precision and skill and their stability toggles like a switch. Or, even have bait-and-switch mutating open-source licensing. They ever refuse to behave properly in the presence of GWT. Vaadin is very stable, dependable and robust. Vaadin is very maintainable, usable and programmable as long as your app is a single-self-service application. I had an application which uses objectify on the GWT servlet. I attempted to convert it to Vaadin and had to wrap it around a widgetset. Poof! The line between client and server in Vaadin is so blur that widgetset compilation asks for the source-code of javax.persistence to continue compiling the widgetset successfully. So I find plain old GWT so much more customisable, controllable, programmable and comprehensive. Once you understand RPC - it's a breeze. It's an advantage having a clear and hard line drawn between client and server. Vaadin's blurring this line is elegant but it constraints my freedom of movement by having too many constraints. They do everythng for you and won't allow any loose ends untied for you to choose your own way of tying your shoelaces. -- You received 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: OOPHM too slow
Guess what! I transferred my GWT app to the Vista 64 on the other side of the dualbooted machine but running 32bit Chrome (no such thing as a 64bit chrome currently), which requires a 32 bit jvm to run oophm. The GWT compilation was a breeze, comparatively. Wow 20 seconds versus 5 - 10 minutes on the same quad core system!? Then I read, there is some extraneous statement sticking around 64 bit oophm making it wait for a long time (waiting for what I cannot remember). Why is it so easy to have that extraneous statement removed in 32 bit oophm but not in the 64 bit? I am thinking very hard that nobody probably would bother to answer this question. In the mean time, I'll try to debugging the app on 32bit Firefox on a 64bit ubuntu. I am reading people doing all sorts of acrobatics to get this extraneous statement removed by rebuilding the 64 bit oophm themselves from scratch. (Yet I could not find anyone who has successfully rebuilt 64bit oomph kind enough to share it online so that lazy people like me won't have to do it myself). I am not about to waste my time on such acrobatics. Just debug on 32 bit browser is fine with me. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Classname table in generated JS
well i was getting more into this issue, and i figured out the the whole string table is 180Kb and most of it is just needed. using the -XdisableClassMetada flag reduced the code by 35Kb, ie still like 8% of the whole project. additionally the -XdisableCastChecking flag reduced the code by 8Kb more, so at the end i am saving 10%!! the things i thought was a css class name lookup table was just a list of (mostly obfuscated) class names, i just got confused by the external class names. My point was that this particular feature is a performance issue and in no way a security issue. sure, i understand, still to carry 40Kb+ of data for nothing is not good... thanks Michael On May 17, 10:26 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: ... it is 100% server-side where to use reflection is ok. Correct. I was only trying to say its worthless to think of obfuscation as a security measure, because there are several ways to bypass it, syncproxy being one of them. My point was that this particular feature is a performance issue and in no way a security issue. --Sri On 18 May 2010 01:35, mmoossen mmoos...@gmail.com wrote: Hi again! btw, i checked the synproxy project, which looks interesting but as i understood it is 100% server-side where to use reflection is ok. thanks for sharing Michael On May 17, 4:09 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Could somebody please explain to me why this is needed? AFAIK, this wasn't always the case. Issue 370http://code.google.com/p/google-web-toolkit/issues/detail?id=370 has some information on why this was introduced. The class name are required so that you can use the getClass() method on an object. As Olivier pointed out, there is a way to disable this behavior. All google websites I have seen disable class names. You can take a look at orkut or wave for example. I believe it isn't being done by default because it could break some websites that depend on classnames. If you don't depend on getClass(), then you could benefit from the optimization that -XdisableClassMetada provides. That said, there are other ways to extract out information about classes and methods. For example, it is possible to extract the complete signature of a RPC method and reverse engineer the RemoteService interface, such that you can use a library like syncproxy http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/to make RPC calls to any server. So, treat -XdisableClassMetada as a way to improve performance, and not as a way to completely obfuscate all class and method names. --Sri On 17 May 2010 18:15, Olivier Monaco olivier.mon...@free.fr wrote: Hi, Maybe it's about this : http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptim. .. Olivier On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote: Dear all! i just found this:http://degwt.googlecode.com and i was really surprised to actually find a classname table in the generated production js code. i know that the rpc classes and methods are used (which i do not like very much, but that is another story). but i do not see any need for a general classname table, i mean every single class even enums are listed there. additionally there seems to be also a kind of lookup table for style names!!? could somebody please explain to me why this is needed? i mean all this data is taking about 180Kb of 500Kb of my production cache files, and i would really like to know what is the idea behind that... Thanks Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to
Re: JPA + HIBERNATE+SPRING+GWT
I believe by default there are performence implications by using Gilead, and i am not too sure how reliable Gilead is. So i am stuck and finding it difficult to make a call. Thanks Soma G -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: JPA + HIBERNATE+SPRING+GWT
From DTO, Dozer to Gilead you have the choice: http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html You can also use you own filter as described in the book Pro Web 2.0 Application Development with GWT : http://code.google.com/p/tocollege-net/source/browse/ProGWT/trunk/src/main/java/com/apress/progwt/server/gwt/HibernateFilter.java On May 18, 9:34 am, soma Gurram ssgur...@gmail.com wrote: I believe by default there are performence implications by using Gilead, and i am not too sure how reliable Gilead is. So i am stuck and finding it difficult to make a call. Thanks Soma G -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
accents problem
I've a problem when i try to print accents.My application parse a csv file with the persons(first-lastName).Some having like Véronique,Benoît,... With Eclipse, doing click-droit, 'properties', 'Resources', i change to iso-8859-1.It's the same for firefox but never doing. I've a printing with a question mark inside a little square. Thanks for your request -- You received 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: Loading text alongside image inside a ComboBox
Yes, this it's easy to do it. Just use the Smart GWT library. See an example of having a Combobox with an image inside of it: http://www.smartclient.com/smartgwt/showcase/#multi_select_combobox_category On 17 mayo, 20:44, fomba collins fomba_coll...@yahoo.com wrote: Hello, it may be simple but I don´t know how to do it. I want to put the names of countries alongside their flags inside a ComboBox. Can someone help me on how to do it? reggards -- You received 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.
DialogBox glass panel incorrectly scrolls in Chrome (with fixed position HTML header)
I'm using GWT 2.0.3 and the latest dev Chrome (v6). I have a site with a piece of header HTML set to position:fixed but with the main body scrolling. The scroll bar is down the whole site, not just the body - the body scrolls underneath the header part. When I create a DialogBox with glassEnabled=true, if I scroll the base of the glass panel is exposed as the panel is not resized/redrawn correctly. The same code works fine in FF3.6, IE7 and IE8. Any ideas? I don't want to change the layout of the site at all. Is this just a GWT bug? -- You received 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.
Want explaination for MapWidget.addMapZoomEndHandler
In the reference it says This event is fired when a map type is added to the map.? What does that mean? Can I just say the event will be fired when the Zoom action ends? also want a confirmation for MapWidget.addMapMoveEndHandler. The reference says This event is fired when the change of the map view ends. . This means either move or zoom will trigger the event? thanks, Xia Weizhong -- You received 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.
Translated Google Web Toolkit 2.0 New Features in Russian
Published translation of the document Google Web Toolkit 2.0 New Features on the Russian language at http://gocha.org/drupal/?q=node/120. The translation is close to the original as possible, waiting for your comments. Thanks. Kamnev Georgiy. Опубликован перевод документа Google Web Toolkit 2.0 Новые возможности на русский язык по адресу http://gocha.org/drupal/?q=node/120. Перевод был приближен к оригиналу, на сколько это возможно, жду ваших комментариев. Спасибо! Камнев Георгий. -- You received 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: accents problem
Hi, with your problem description being a bit vague, there are a few points where you might be going wrong: 1) The encoding of the file you're reading - you said you changed it to iso-8859-1, which might be fine - you can check if it displays correctly in e.g. Eclipse. However, when working with GWT I would suggest always working with UTF-8 if possible to avoid most encoding problems 2) I guess you're reading the file on the server. It will quite probably run using UTF-8 as default encoding, which you can check e.g. with System.getProperty(file.encoding). The encoding when reading the file needs to match the encoding of the file itself, you can specify that in your InputStreamReader's (or however you read the file) constructor. 3) The encoding of data coming from the server needs to match the content-type meta tag in your app's HTML page Hth, Matt On 18 Mai, 10:46, laurent bagno_laur...@hotmail.com wrote: I've a problem when i try to print accents.My application parse a csv file with the persons(first-lastName).Some having like Véronique,Benoît,... With Eclipse, doing click-droit, 'properties', 'Resources', i change to iso-8859-1.It's the same for firefox but never doing. I've a printing with a question mark inside a little square. Thanks for your request -- You received 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: Want explaination for MapWidget.addMapZoomEndHandler
On Tue, May 18, 2010 at 5:17 AM, xia xwz7...@gmail.com wrote: In the reference it says This event is fired when a map type is added to the map.? What does that mean? Can I just say the event will be fired when the Zoom action ends? Oops, sorry, that is a typo. also want a confirmation for MapWidget.addMapMoveEndHandler. The reference says This event is fired when the change of the map view ends. . This means either move or zoom will trigger the event? Judging from posts on the Google Maps API group, there are many situations that can cause the moveend() event to fire. Here's one post: https://groups.google.com/group/google-maps-api/browse_thread/thread/fa4f97e0399f9432/829ca0d7b7509ed8?lnk=gstq=moveend#829ca0d7b7509ed8 These GWT bindings simply wrap the behavior of the Maps JavaScript API, so for more details on this subject, I'd look on that group (just be careful to follow the posting guidelines!) https://groups.google.com/group/google-maps-api/browse_thread/thread/fa4f97e0399f9432/829ca0d7b7509ed8?lnk=gstq=moveend#829ca0d7b7509ed8 thanks, Xia Weizhong -- You received 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. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received 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 Compiler 2.0 Changes
I really hope someone can shed some light on the issue I'm having. I've run the compile step in debug mode and able getting the following output. I gather that GWT is including the IdentityHashMap, LinkedHashMap, HashMap, and TreeMap because of the MapString, String define of the field scores. What I don't understand is why Googles own GWT classes are listed in error for being serializable. Any thoughts, or suggestions would be greatly appreciated. [java] private java.util.Mapjava.lang.String, java.lang.String scores [java] java.util.Mapjava.lang.String, java.lang.String [java] Finding possibly instantiable subtypes [java] java.util.IdentityHashMapK, V might be instantiable [java] java.util.LinkedHashMapK, V might be instantiable [java] java.util.HashMapK, V might be instantiable [java] java.util.TreeMapK, V might be instantiable [java] Verifying instantiability [java] java.util.IdentityHashMapjava.lang.String, java.lang.String [java] Checking parameters of 'java.util.IdentityHashMapjava.lang.String, java.lang.String' [java] Checking type argument 0 of type 'java.util.IdentityHashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Ignoring type argument 1 of type 'java.util.IdentityHashMapK, V' because it is not exposed in this or any subtype [java] Analyzing the fields of type 'java.util.IdentityHashMapjava.lang.String, java.lang.String' that qualify for serialization [java] private K exposeKey [java] private K exposeValue [java] Is instantiable [java] java.util.LinkedHashMapjava.lang.String, java.lang.String [java] Checking parameters of 'java.util.LinkedHashMapjava.lang.String, java.lang.String' [java] Checking type argument 0 of type 'java.util.LinkedHashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Checking type argument 1 of type 'java.util.LinkedHashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Checking parameters of 'java.util.HashMapjava.lang.String, java.lang.String' [java] Checking type argument 0 of type 'java.util.HashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Checking type argument 1 of type 'java.util.HashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Analyzing the fields of type 'java.util.HashMapjava.lang.String, java.lang.String' that qualify for serialization [java] private K exposeKey [java] private V exposeValue [java] Analyzing the fields of type 'java.util.LinkedHashMapjava.lang.String, java.lang.String' that qualify for serialization [java] Is instantiable [java] java.util.HashMapjava.lang.String, java.lang.String [java] Checking parameters of 'java.util.HashMapjava.lang.String, java.lang.String' [java] Checking type argument 0 of type 'java.util.HashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Checking type argument 1 of type 'java.util.HashMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Analyzing the fields of type 'java.util.HashMapjava.lang.String, java.lang.String' that qualify for serialization [java] private K exposeKey [java] private V exposeValue [java] Is instantiable [java] java.util.TreeMapjava.lang.String, java.lang.String [java] Checking parameters of 'java.util.TreeMapjava.lang.String, java.lang.String' [java] Checking type argument 0 of type 'java.util.TreeMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Checking type argument 1 of type 'java.util.TreeMapK, V' because it is directly exposed in this type or in one of its subtypes [java] Analyzing the fields of type 'java.util.TreeMapjava.lang.String, java.lang.String' that qualify for serialization [java] private java.util.Comparator? super K cmp [java] private K exposeKeyType [java] private V exposeValueType [java] private int size [java] Is instantiable [java] private java.util.Mapjava.lang.Long, java.lang.String statuses [java] private boolean isProgressiveOrder [java] private boolean isPrintCard [java] private boolean isScoring [java] private boolean isReseller [java]
[ANN] Smart GWT 2.2 Released
Hi, Smart GWT 2.2 has just been released. Release Announcement : http://www.jroller.com/sjivan/entry/smart_gwt_2_2_released Download : http://code.google.com/p/smartgwt/downloads/list Showcase Demo : http://www.smartclient.com/smartgwt/showcase/ The key features of this release are : * Selenium Support * Support for the prototype pattern to set global defaults without creating a separate hierarchy of subclasses This is explained in more detail in the release announcement * DateRangeItem, MiniDateRangeItem and Relative Date support for DynamicForm * Dropdown multi-selects * Javadoc enhancements : Over 200 API's have an overview and relevant Showcase sample in the @see link of the API docs * Numerous other fixes and enhancements. The complete release notes can be found here : herehttp://www.smartclient.com/smartgwt/release_notes.html#2_2 * Several new Showcase samples Suggestions and feedback welcome. Thanks, Sanjiv -- You received 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 Compiler 2.0 Changes
On 18 mai, 14:26, Adam ambr...@gmail.com wrote: I really hope someone can shed some light on the issue I'm having. I've run the compile step in debug mode and able getting the following output. I gather that GWT is including the IdentityHashMap, LinkedHashMap, HashMap, and TreeMap because of the MapString, String define of the field scores. What I don't understand is why Googles own GWT classes are listed in error for being serializable. See http://code.google.com/p/google-web-toolkit/issues/detail?id=4438 -- You received 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.
Remote storage of preferences in the cloud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a server-less (client-side code only) app for which I want to store a few user preferences: total data is a few hundred bytes. Right now I'm storing these in cookies, which works fine, but of course don't work if the user runs my app from a different computer. I could add remote storage of preferences by adding a server backend, implementing a login system, user management, etc etc but I really don't want to do that. Are there any existing cloud services that would me to store this data in the account the user already has with, for example, Google Docs? I see that Docs has an API, but it's HTTP-based and so is going to be difficult to use from GWT. What else can I look at? - -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ } │ --- Conway's Game Of Life, in one line of APL -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvylrQACgkQf9E0noFvlzhY+ACg0Sj0QRM2gbtFF99imtJcGAqK FLcAnRCh3E8KKT3qGhojqP19nHP2Udj6 =iVLT -END PGP SIGNATURE- -- You received 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.
Adding CSS style dynamically
Hello. I have some odd situation where I need to add the style attributes dynamically/programmatically depending on what the saved data is. In short, instead of defining the css style definitions in the file and reference them, I need to create those per Widget, depending on the data. I tried to use DOM.setElementProperty, but it doesn't seem to work properly. It doesn't set the background or the foreground, and the absolute positioning also gets screwed up. Can anyone share your tips/insights on how I can achieve this? private void setStyle(Element dom, ScreenElement e) { DOM.setElementProperty(dom, position, absolute); DOM.setElementProperty(dom, top, e.getYpos() + px); DOM.setElementProperty(dom, left, e.getXpos() + px); DOM.setElementProperty(dom, height, e.getHeight() + px); DOM.setElementProperty(dom, width, e.getWidth() + px); DOM.setElementProperty(dom, fontSize, e.getFontSize() + pt); DOM.setElementProperty(dom, fontFamily, e.getFontFamily()); DOM.setElementProperty(dom, backgroundColor, e.getBackColor()); DOM.setElementProperty(dom, color, e.getForeColor()); if (e.isFontStyleUnderline()) { DOM.setElementProperty(dom, textDecoration, underlined); } else { DOM.setElementProperty(dom, textDecoration, normal); } if (e.isFontStyleItalic()) { DOM.setElementProperty(dom, fontStyle, italic); } else { DOM.setElementProperty(dom, fontStyle, normal); } if (e.isFontStyleBold()) { DOM.setElementProperty(dom, fontWeight, bold); } else { DOM.setElementProperty(dom, fontWeight, normal); } } -- You received 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.
flextable resize
hello, Is it possible to modify the columns size of a flextable with my mouse? 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 at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Loading text alongside image inside a ComboBox
Hi, gwt core does not support a widget called combobox. It supports a widget called listbox which looks like combobox. the base for a html based combobox-like widget is select. The items itself are option You can give the option additional content aka an image using css. However, the gwt listbox api does not give you access to the option items. Maybe you build a select/option structure with ui-binder and assign it to gwt listbox you could use a widget library supporting a combobox like widget. However, I would disadvice from javascript libraries which are just wrappers (like smartGWT). When you like to use a real gwt widget library you may consider GWT mosaic. Stefan Bachert http://gwtworld.de On 17 Mai, 14:44, fomba collins fomba_coll...@yahoo.com wrote: Hello, it may be simple but I don´t know how to do it. I want to put the names of countries alongside their flags inside a ComboBox. Can someone help me on how to do it? reggards -- You received 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: Loading text alongside image inside a ComboBox
I'm actually using the javascript wrapper EXT Gwt. There there is a comboBox widget. But it would appear it does not support images inside a comboBox. I understand that Ext issues are to be discussed on this forum. Just excuss me!! --- On Tue, 5/18/10, Stefan Bachert stefanbach...@yahoo.de wrote: From: Stefan Bachert stefanbach...@yahoo.de Subject: Re: Loading text alongside image inside a ComboBox To: Google Web Toolkit google-web-toolkit@googlegroups.com Date: Tuesday, May 18, 2010, 7:26 AM Hi, gwt core does not support a widget called combobox. It supports a widget called listbox which looks like combobox. the base for a html based combobox-like widget is select. The items itself are option You can give the option additional content aka an image using css. However, the gwt listbox api does not give you access to the option items. Maybe you build a select/option structure with ui-binder and assign it to gwt listbox you could use a widget library supporting a combobox like widget. However, I would disadvice from javascript libraries which are just wrappers (like smartGWT). When you like to use a real gwt widget library you may consider GWT mosaic. Stefan Bachert http://gwtworld.de On 17 Mai, 14:44, fomba collins fomba_coll...@yahoo.com wrote: Hello, it may be simple but I don´t know how to do it. I want to put the names of countries alongside their flags inside a ComboBox. Can someone help me on how to do it? reggards -- You received 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. -- You received 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 HashCodeBuilder and EqualsBuilder (Apache Commons) with GWT
For anyone interested in using Apache Commons Lang's HashCodeBuilder and EqualsBuilder in a GWT project, there is now an open source, GWT- friendly implementation available at http://gwt-hashcode-equals.googlecode.com . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cannot read property 'DataTable' of undefined
Hi I am trying to use the visualization toolkit along with gwt and I am having the following error com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'DataTable' of undefined I have inherited the module and also loaded the module by calling VisualizationUtils.loadVisualizationApi(onLoadCallback, LineChart.PACKAGE); I was wondering why I could be getting this error, thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: TabLayoutPanel with scroll buttons
I'm trying to use this with UIBinder but getting issues telling me that I am missing required attributes barUnit, barHeight etc. Has anybody got this working with UIBinder? You received 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.
StackLayoutPanel, insert new items
When I am using StackLayoutPanel in GWT2.0.3 I get serious troubles when using insert method to add new items to a StackLayoutPanel. After inserting a new item, the item is not inserted on the place I proposed, but it will be added instead. Additional after inserting a new item the clickHandler seems also to be confused, as a different item is displayed, when I click on a header. Has anyone else expirienced this? I raised issue 4926 for this, just in case ;) Cheers, Manic -- You received 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: About Date object in GWT
Apologies if this message is duplicated... I thought I sent it earlier this morning but it seems to have not gone through for some reason If you look at the code in the com.google.gwt.user.datepicker.client package, you'll see that the gwt developers themselves use these deprecated Date methods throughout their code. They suppress the warnings using: @SuppressWarnings(/* Required to use Date API in gwt */ {deprecation}) which to me is a green light to use it yourself if I've ever seen one. I think the idea is that since the gwt implementation of java.util.Date is based on the JavaScript Date object, it actually is OK to use them. Of course, you still have to be wary of timezones: Date today = new Date(); Window.alert(today.getHour()); ...will output different values in Tokio than in Chicago. On May 17, 1:57 am, aditya sanas 007aditya.b...@gmail.com wrote: Ignore deprecation warning u have only one option on client side i.e. Date() object from java.util so user getYear(),getMonth() etc. methods for getting hrs minutes secs and year -- Aditya On Mon, May 17, 2010 at 12:20 PM, Sabbir leo.sh...@gmail.com wrote: and how about reading the years, months, day, hour, minutes and seconds from the date object? On May 15, 6:13 am, Sabbir leo.sh...@gmail.com wrote: the methods inDateobjecat as getTime, getHour, etc are deprecated ones. And in GWT calendarobjectis not allowed. so how do set thedateobjectin GWT??? -- You received 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.
return type image from server
Hi, i'm trying to return an image (com.google.gwt.user.client.ui.Image) from the gwt server, of course i cannot since it is not a serializable object. this image is fetched from a URL, but i cannot fetch it directly from the client since this image needs to be registered in the session of the GWT-server - image servlet, if i fetch it from the client it will be registered in the client session with the image servlet. is there a way to transfer the image from the server back to the client (by converting to byte array and back maybe)? 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 at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: About Date object in GWT
If you look at the files in the com.google.gwt.user.datepicker.client package[1], you can take a tip from the google guys themselves -- they use all these deprecated java.util.Date functions all over the place. Each method that uses them they prefix with: @SuppressWarnings(/* Required to use Date API in gwt */ {deprecation}) to avoid the deprecation warnings. There was a thread somewhere where one of the actual gwt team members commented on this. If I remember correctly, the basic point was that the gwt implementation of java.util.Date is based on the JavaScript Date object, and so using those methods is OK. the one thing you have to be careful of is timezone sensitivity. Date today = new Date(); Window.alert(today.getHour()); ...for example, will be different in Frankfurt than in New York [1] http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/user/datepicker/client/ On May 17, 1:57 am, aditya sanas 007aditya.b...@gmail.com wrote: Ignore deprecation warning u have only one option on client side i.e. Date() object from java.util so user getYear(),getMonth() etc. methods for getting hrs minutes secs and year -- Aditya On Mon, May 17, 2010 at 12:20 PM, Sabbir leo.sh...@gmail.com wrote: and how about reading the years, months, day, hour, minutes and seconds from the date object? On May 15, 6:13 am, Sabbir leo.sh...@gmail.com wrote: the methods inDateobjecat as getTime, getHour, etc are deprecated ones. And in GWT calendarobjectis not allowed. so how do set thedateobjectin GWT??? -- You received 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.
HTTP GET changed to OPTIONS
I'm finding a strange situation where an HTTP GET gets changed to OPTIONS, and I receive nothing from my GET. I'm working on an application where I'll be working with various CRUD operations via REST calls to my local server. Right now I'm just writing the GET and finding that my response has no data and a status of 0. I learn from the log that the GET has been changed to HTTP OPTIONS. Any clue why, and what I can do to fix it? I think what I need to do is a common and straightforward thing; surely other people have run into this? This is my code: public class RESTClient { public static void doGET(String strLoginName, String strLoginPassword, String strURL, RequestCallback callback) throws RequestException { RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(strURL)); // Authorization:auth-type=mii-basic,login-name=root,login- password=root builder.setHeader(Authorization, auth-type=\mii-basic\,login- name=\ + strLoginName +\,login-password=\+strLoginPassword + \); builder.setTimeoutMillis(2000); builder.sendRequest(null, callback); } } It's invoked from my main class thus: private final String m_kstrJSONAcctURL = http://127.0.0.1:8080/v1/ authsrvc/accounts/myAccount.json; ... RESTClient.doGET(root, root, m_kstrJSONAcctURL, new RequestCallback() { public void onError(Request request, Throwable exception) { ... // We never get here } public void onResponseReceived(Request request, Response response) { // Here we find our response status is 0 } }); So note that we're running with two different ports. The REST service uses Jetty and is on port 8080, while my caller uses the debugger's Apache and is on port . Any ideas? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 file on server with a pattern
Hello, I'd like to know if it's possible with GWT to get files on server but without known their names but with a pattern (like menus*.xml for example). I did this with success but that need to know the file name to get RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET, fileName.xml); try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(final Request request, final Throwable exception) { } public void onResponseReceived(final Request request, final Response response) { String text = response.getText(); //Do anything } }); } catch (RequestException ex) { } But i don't know if I can get all the files matching to my pattern or maybe get the list of file name and test my pattern for each of them. Thank you for your time. (and sorry for my english) -- You received 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: accents problem
You will have to do some kind of conversion using table below before using any text with accentuation. á = \u00e1 à = \u00e0 â = \u00e2 ã = \u00e3 ä = \u00e4 Á = \u00c1 À = \u00c0 Â = \u00c2 Ã = \u00c3 Ä = \u00c4 é = \u00e9 è = \u00e8 ê = \u00ea ê = \u00ea É = \u00c9 È = \u00c8 Ê = \u00ca Ë = \u00cb í = \u00ed ì = \u00ec î = \u00ee ï = \u00ef Í = \u00cd Ì = \u00cc Î = \u00ce Ï = \u00cf ó = \u00f3 ò = \u00f2 ô = \u00f4 õ = \u00f5 ö = \u00f6 Ó = \u00d3 Ò = \u00d2 Ô = \u00d4 Õ = \u00d5 Ö = \u00d6 ú = \u00fa ù = \u00f9 û = \u00fb ü = \u00fc Ú = \u00da Ù = \u00d9 Û = \u00db ç = \u00e7 Ç = \u00c7 ñ = \u00f1 Ñ = \u00d1 = \u0026 ' = \u0027 Hope this helps. * Taken from http://programandosemcafeina.blogspot.com/2007/04/caracteres-especiais-representados-em.html On Tue, May 18, 2010 at 7:40 AM, Matt mydevmailingli...@gmail.com wrote: Hi, with your problem description being a bit vague, there are a few points where you might be going wrong: 1) The encoding of the file you're reading - you said you changed it to iso-8859-1, which might be fine - you can check if it displays correctly in e.g. Eclipse. However, when working with GWT I would suggest always working with UTF-8 if possible to avoid most encoding problems 2) I guess you're reading the file on the server. It will quite probably run using UTF-8 as default encoding, which you can check e.g. with System.getProperty(file.encoding). The encoding when reading the file needs to match the encoding of the file itself, you can specify that in your InputStreamReader's (or however you read the file) constructor. 3) The encoding of data coming from the server needs to match the content-type meta tag in your app's HTML page Hth, Matt On 18 Mai, 10:46, laurent bagno_laur...@hotmail.com wrote: I've a problem when i try to print accents.My application parse a csv file with the persons(first-lastName).Some having like Véronique,Benoît,... With Eclipse, doing click-droit, 'properties', 'Resources', i change to iso-8859-1.It's the same for firefox but never doing. I've a printing with a question mark inside a little square. Thanks for your request -- You received 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.
Integrating GWT with an Existing Spring/Hibernate Web Application
Hi all, After a basic evaluation and successfully building a simple prototype with a GWT/Spring/Hibernate , I am considering integrating GWT with an existing Spring/Hibernate Web Application. The existing web application is a fairly large enterprise application that is built on top of a Spring/Hibernate stack. The motivation of integrating GWT to this web application is to provide a rich UI while at the same time leveraging on the functionalities that we already have within the existing application. I would like to hear experiences of those of you out there who has tried integrate GWT to an existing large Java web application. What were your experiences and whether there were any major issues? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 + php + mysql = confusion?
Every time I learn something new I want to make as much applications as possible just to test myself and become a bit more experienced. I want to make a simple flex table binded to a database via php. I have already a php script reading my whole database and parsing it into json format. The flex table is filled with editable text boxes and as you type it sends the changes to the php scripts and updates the database. But because everything is asynchronous in gwt I have a change that the instruction to update the database filed name to jan arrives sooner then the instruction to make it ja so that fields get as value ja instead of jan with I want to achieve. Can somebody help me out with this? I would also appreciate some tips to make an application like this.(my native language isn't English so I am sorry if this is practically filled with spelling mistakes the spelchecker didn't corrected) -- You received 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: JSNI - uncaught exception: java.lang.ClassCastException - What am I doing wrong?
Nevermind. Solved it :) It was described in the FAQhttp://code.google.com/webtoolkit/doc/1.6/FAQ_Client.html#Why_doesn't_the_bridge_call_to_my_JSNI_method_work_in_onclick . On Tue, May 18, 2010 at 9:30 AM, bftanase bftan...@gmail.com wrote: Hey guys. Can someone take a look at this small PoC and let me know what am I doing wrong? package org.makita.receivinginspection.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.RootPanel; public class MainEntryPointTest implements EntryPoint{ public void onModuleLoad() { createJSFunction(); HTML html = new HTML(a href='#' onclick='editTest(1)' Click me /a); RootPanel.get().add(html); } public void openEditWindow(int testId){ com.google.gwt.user.client.Window.alert(Test id: + testId); } public native void createJSFunction()/*-{ $wnd.editTest = function(testId){ th...@org.makita.receivinginspection.client.mainentrypointtest ::openEditWindow(I) (testId); return false; } }-*/; I get a JS error: uncaught exception: java.lang.ClassCastException. I believe it has something to do with some cast... but where? I also tried the openEditWindow method without parameters and still the same : ( 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 at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Compilation Issue
Hi, I am facing problem while GWT compilation. I am using ANT build file in which i run 'build' target. when execution comes to 'gwtc' target the compilation sometimes stop or somtime it compiles successfully. Can anyone please tell me what i am doing wrong ? I am using GWT2.0 -- You received 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.
internationalization questions
(I just send this a second time, because I have the feeling, that Google Groups don't send my first message) Hello guys, there are three (open) questions about the internationalization of GWT, I have: 1) Is it a (huge) performance issue, to use only Messages for constant and parameterized text, where usually would use both Messages and Constants? 2) Is there a way to specify the original text in the source code, whose translations can then be specified somewhere? (e.g. Translate(Hello) in the source code and than in a properties file for e.g. spanish: Hello = ¡Hola!) 3) Do you know any translation-tools, which generate the properties and interfaces for you? Thanks in Advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 file on server with name template.
Hi, I'm trying to get many files from the server but the problem is I don't know their name, the only thing I know is the template of their name (menus.*.xml). I build a requestbuilder to get a file but this method needs the really name of the file. So i am searching a way to get file matching with my pattern or just get the list of name file on server to compare with my pattern. I hope you understand my problem. Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 parametrize in selenium RC using java script?
Hi, I am struggling with parametrization problem. Actually, we r using selenium RC and generate the script in java. We want to parametrize the 'Login' functionality having input 'Username' and 'Password'. Can u please help me, as i stuck here for last two days? -- You received 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 IE Bug affecting RichTextArea, TextBox, etc.
Hello, I am at a loss that I can only reproduce with IE8 (both XP and Win7). I would greatly appreciate any assistance. I have a GWT 2.0 application that has several DialogBoxes containing text boxes, buttons, etc. Everything works fine in Firefox, Chrome, etc. In one DialogBox, I have a TabPanel with three Tabpanels. One of the tabs has a RichTextArea. The first time I edit text in the TextAreas, everything is fine. The second or third time, the text area locks up. The TextArea takes no focus and does not allow editing. Buttons still work. I can close my DialogBox and open a completely unrelated DialogBox with a simple TextBox. This TextBox suddenly does not work either. Once the application goes into the no focus, no edit state for Text Entry Widgets, there is no return. No Text Controls work. Buttons, Menus, popup windows work fine though. In Dev and Production mode, no errors or exceptions are being thrown. I read in some older postings (2008) that TabPanels have trouble containing TextAreas. So, I removed the TextAreas from the TabPanel. The problem was not fixed by not having TextAreas in Tab Panels. My hope is that someone out there has experienced this problem. Please let me know if any workarounds exist. Thank you! Brett -- You received 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.
Programmatically set meta tag in GWT
Hi, I have been digging around for an answer on this but cannot find a solution. I basically want to set the some http-equiv attribute in a meta tag to some value based on the user's browser agent. Since it is a conditional thing, I cannot do it statically in the entry html file. I assume I can do that somehow in the EntryPoint class, but I just don't know how. GWT has a MetaElement class, which has a setHttpEquiv function. So I assume this is possible somehow, but I cannot figure out how I can get to the MetaElement in the first place. Any help will be really appreciated. Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Question about servlets and concurrency
I'm developing a multiplayer game with GWT. The question is in my servletImpl, what happens when more than one user try to use it? I think, that servletImpl locks until the first user action finish, and then execute the second user action. My idea is to put one servlet for each table of the game, how can I perform this on gwt? Excuse for my english. Estoy desarrollando un juego en GWT. La cuestión es, la implementación del servlet, se estará ejecutando una sola vez en el servidor, por lo tanto, se bloqueará cuando alguien haga una llamada, hasta que esta finalice, debería crear un servlet por cada mesa de juego por ejemplo? Y en lo que seria el portal donde estan las diferentes mesas a escoger, etc, poner un servlet por cada usuario que se me conecte? Saludos y gracias -- You received 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.
JSNI - uncaught exception: java.lang.ClassCastException - What am I doing wrong?
Hey guys. Can someone take a look at this small PoC and let me know what am I doing wrong? package org.makita.receivinginspection.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.RootPanel; public class MainEntryPointTest implements EntryPoint{ public void onModuleLoad() { createJSFunction(); HTML html = new HTML(a href='#' onclick='editTest(1)' Click me /a); RootPanel.get().add(html); } public void openEditWindow(int testId){ com.google.gwt.user.client.Window.alert(Test id: + testId); } public native void createJSFunction()/*-{ $wnd.editTest = function(testId){ th...@org.makita.receivinginspection.client.mainentrypointtest::openEditWindow(I) (testId); return false; } }-*/; I get a JS error: uncaught exception: java.lang.ClassCastException. I believe it has something to do with some cast... but where? I also tried the openEditWindow method without parameters and still the same : ( 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 at http://groups.google.com/group/google-web-toolkit?hl=en.
internationalization
Hello guys, there are three (open) questions about the internationalization of GWT, I have: 1) Is it a (huge) performance issue, to use only Messages for constant and parameterized text, where usually would use both Messages and Constants? 2) Is there a way to specify the original text in the source code, whose translations can then be specified somewhere? (e.g. Translate(Hello) in the source code and than in a properties file for e.g. spanish: Hello = ¡Hola!) 3) Do you know any translation-tools, which generate the properties and interfaces for you? Thanks in Advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Problem with production mode
Hello, I just installed GWT and eclipse and started the example as described in Set up Eclipse. It worked fine (including the RPC) in development mode but not so much in production mode. The Chrome browser seems to have problems loading the javascript components (the text field and the send button don't load) while firefox has no problem loading these two but gets the default error message for a failed RPC. (An error occurred while attempting to contact the server) I didn't edit the example, so it has to be a problem with my setup. I would really appreciate any help... regards philio -- You received 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: accents problem
Hello Laurent, Did you check : - eclipse workspace settings (UTF-8 vs ISO)? - JVM file encoding ? - Apache (if used) default caracter encoding ? what's the response/request header encoding ? Is your trouble only on your csv file ? On 18 mai, 10:46, laurent bagno_laur...@hotmail.com wrote: I've a problem when i try to print accents.My application parse a csv file with the persons(first-lastName).Some having like Véronique,Benoît,... With Eclipse, doing click-droit, 'properties', 'Resources', i change to iso-8859-1.It's the same for firefox but never doing. I've a printing with a question mark inside a little square. Thanks for your request -- You received 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.
Why Asynchronous?
Hi! I need to know the exact reason why classes that's gonna be transfered from server side to client side must implements Serializable? It's written everywhere that they had to implement Serializable but never explain why??? Thank you.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Why Asynchronous?
Why Asynchronous? On Tue, May 18, 2010 at 6:57 PM, Emeric Heneffe emeric.hene...@gmail.comwrote: Hi! I need to know the exact reason why classes that's gonna be transfered from server side to client side must implements Serializable? It's written everywhere that they had to implement Serializable but never explain why??? Thank you.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 Retrieve the Service Method Name?
I am looking for a way to retrieve the Service Method name for a given RPC Service Call. I would prefer a solution that is more precise than parsing through the request content via RPCServletUtils.readContentAsUtf8(request). 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 at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: About Date object in GWT
If you look at some of the files in the com.google.gwt.user.datepicker.client[1], you'll see that the gwt developers themselves are freely using these deprecated java.util.Date methods. To avoid the java warnings, they put a @SuppressWarnings() at the head of any method that uses them (or sometimes the entire class) @SuppressWarnings(/* Required to use Date API in gwt */ {deprecation}) I think the argument here is that the GWT implementation of java.util.Date is based on the JavaScript Date object, and therefore it's OK to use those methods. You still have to be wary of timezone issues, though. For example: Date today = new Date(); Window.alert(today.getHour()); ...will show different values if you are in Amsterdam or in Mexico City. Erik [1] http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/user/datepicker/client/ On May 17, 1:57 am, aditya sanas 007aditya.b...@gmail.com wrote: Ignore deprecation warning u have only one option on client side i.e. Date() object from java.util so user getYear(),getMonth() etc. methods for getting hrs minutes secs and year -- Aditya On Mon, May 17, 2010 at 12:20 PM, Sabbir leo.sh...@gmail.com wrote: and how about reading the years, months, day, hour, minutes and seconds from the date object? On May 15, 6:13 am, Sabbir leo.sh...@gmail.com wrote: the methods inDateobjecat as getTime, getHour, etc are deprecated ones. And in GWT calendarobjectis not allowed. so how do set thedateobjectin GWT??? -- You received 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.
Re: return type image from server
Try this. import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { String getImage(String name) throws IllegalArgumentException; }// end GreetingService ## /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void getImage(String input, AsyncCallbackString callback) throws IllegalArgumentException; }// end GreetingServiceAsync ## package testes.gwt.server; import java.io.FileInputStream; import sun.misc.BASE64Encoder; import testes.gwt.client.GreetingService; import com.google.gwt.user.server.rpc.RemoteServiceServlet; /** * The server side implementation of the RPC service. */ public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private static final long serialVersionUID = -7242788956943039085L; public String getImage(String input) throws IllegalArgumentException { try { BASE64Encoder base64Encoder = new BASE64Encoder(); FileInputStream fileInputStream = new FileInputStream(myImage); byte[] buffer = new byte[fileInputStream.available()]; StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(data:image/png;base64,); fileInputStream.read(buffer); stringBuilder.append(base64Encoder.encode(buffer)); return stringBuilder.toString(); } catch (Exception e) { e.printStackTrace(); }// end catch return null; }// end getImage }// end GreetingServiceImpl ## public void onFailure(Throwable caught) {} public void onSuccess(String result) { if (!img.isVisible()) img.setVisible(true); img.getElement().setPropertyObject(src, result); } // end onSuccess -- Professor Vagner O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E ALÉ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.
TabLayoutPanel ie problem
Hello, everybody! I try to create layout with two TabLayoutPanel widgets. (One's tab is the parent for another) This is the code. It works fine in chrome. But in IE inner TabLayoutPanel's tab takes whole window. It looks like it's parent (LayoutPanel) doesn't exist. Any ideas how to fix it? Thank you, Andrey g:TabLayoutPanel barUnit='PX' barHeight='20' g:tab g:header size='7' bTop HTML/b header /g:header g:Labelable/g:Label /g:tab g:tab g:header size='7' one more /g:header g:LayoutPanel g:layer left='0' width='20em' g:Labelthis is label/g:Label /g:layer g:layer left='20em' right='0' g:TabLayoutPanel barUnit='PX' barHeight='20' g:tab g:header size='7' bHTML/b header /g:header g:LabelOne more label/g:Label /g:tab /g:TabLayoutPanel /g:layer /g:LayoutPanel /g:tab /g:TabLayoutPanel -- You received 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 + php + mysql = confusion?
Always when I learn something new I make as much as possible applications to test myself and to get a little bit better. The goal of my current project is to have a flextable filled with records from a mysql database you can edit and as you are typing it gets submitted into the database. the back end is written in php and the client-server communication is via json. the problem is that I want to be everything asynchronous to have better end user experience. but I've read that because its asynchronous I can not be sure if when I send packet a before packet b a will sooner arrive. now when you edit the database and type lol the update command lo can arrive later then lol, you get the problem,... how can I solve this problem? Can someone give me some hints how he would do this project, I am still experimenting/studying. English isn't my native language so I am sorry if this is full of spelling mistakes. I posted this text already but it seemed to have disappeared: I can't find it with search,... Am I dubbelposting now? -- You received 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 + php + mysql = confusion?
Don't worry, I have it... twice :) Christian On Tue, May 18, 2010 at 2:37 PM, dino dinos...@gmail.com wrote: Always when I learn something new I make as much as possible applications to test myself and to get a little bit better. The goal of my current project is to have a flextable filled with records from a mysql database you can edit and as you are typing it gets submitted into the database. the back end is written in php and the client-server communication is via json. the problem is that I want to be everything asynchronous to have better end user experience. but I've read that because its asynchronous I can not be sure if when I send packet a before packet b a will sooner arrive. now when you edit the database and type lol the update command lo can arrive later then lol, you get the problem,... how can I solve this problem? Can someone give me some hints how he would do this project, I am still experimenting/studying. English isn't my native language so I am sorry if this is full of spelling mistakes. I posted this text already but it seemed to have disappeared: I can't find it with search,... Am I dubbelposting now? -- You received 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: GWT Sprite adds height attribute in the style class
I have also used the sprite mechanism but without success on IE6/7 when it came to background with sprite-image. Here is the related issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4521 and I think it describes the same problem mentioned by Thomas. All we can do for now is star it .. On May 18, 1:28 am, Thomas Broyer t.bro...@gmail.com wrote: On 17 mai, 10:40, Tobias Herrmann t.herrm...@alkacon.com wrote: Hi there, I have to disagree with Thomas. You only need to be aware that the @sprite will set these dimensions. You can override this by setting the height or width yourself in the CSS rule where the @sprite is used. Like this: @sprite div.imageClass{ gwt-image: yourImage; height: auto; width: 10px; } In this case, no other height and width properties will be set by gwt. Doing it this way, you can still take advantage of the improved performance the gwt sprite mechanism provides. ...but in IE6/7 you might see other images from the sprite image (other browsers all use data: URLs, unless you tell them to not inline the resources) -- You received 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: Fail to open the GWT application when deployed on TomCat
Did you do a GWT compile? Your war directory should contain a bunch (depending on the # of permutations) of *.cache.html files, which are the actual GWT app compiled to JavaScript. See here: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideJavaToJavaScriptCompilerfor more info. kathrin On Sun, May 16, 2010 at 2:08 PM, scheiner uri.schei...@gmail.com wrote: Hi all, I am a GWT-newbie and I have encountered the following problem: I am using intelliJ for development. when I run the application from intelliJ (using the JETTY-based GWT development mode) everything is fine. I tried to move my application to my TomCat server and when I tried to open the URL (without development mode) I got the 'The GWT module may need to be (re)compiled' message. When I add the gwt.codesvr=127.0.0.1:9997, everything works. This is how the tomcat webapps\Graph directory looks: 1. I took the compiled classes from the 'IntelliJIdea90\system\gwt \server.server55fdbcb4\GWTGraph.39caa101\run\www' and put it under 'classes' directory (ordered in the 'public', 'server', 'client' sub- directories) 2. The 'web-inf' directory contains the proper web.xml file 3. The 'lib' directory contains the gwt jars 4.The root directory of the application (webapps\Graph) contain these files * rpc file * clear.cache.gif *Graph.css *Graph.html *Graph.nocache.js *hosted.html Is there something I miss? I read some posts about the problem and I recompiled all the classes once again but it didn't fix the problem. 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.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: gwt + php + mysql = confusion?
Response from GWT RPC is asynchronous. Asynchrony (condition of being asynchronous), is a desirable form of communication between browser and server because it allows avoiding your web page from becoming unresponsive while waiting for the response from the server. Therefore, you have to take steps to synchronize or ensure sequence integrity by either - rewriting your server-side to manage sequencing - or setting up a buffer on your client-side - or a combination of both. If the request sequence from the browser is cell5-cell10-cell2, you could ensure that the server side would not send the response in the sequence cell2-cell5-cell10 but in the sequence cell5-cell10-cell2. You also need to manage the time-outs. What if cell5 request is very complex calculation requiring the server 5 minutes to complete, whereas cell2 and cell10 requires only milliseconds? I am also curious why you would not let cell2 be displayed first while waiting for cell5, even though cell2 was requested last? If there is a dependency cell2 has on cell5, then that dependency should be resolved at the server side as much as possible. If there is no dependency, I don't see any good reason not to display it first. You could disable it from being edited while waiting for cell5. If you do not wish write code for all this complexity, you should abandon php code on the server side and use for example Vaadin (vaadin.com) to manage it for you. I know there are other session- managed framework for ajax but I find that vaadin is the most robust and closest to GWT. I am sure that must be session-managed php frameworks somewhere out there, too, but I am unfamiliar with php to make any recommendations. -- You received 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: Why Asynchronous?
Why asynchronous? This is a classic examination question in data communications. Why serializable? - another classic examination question. Classic - meaning that the professors in data communication would want to ensure you understand them before they would like you to be given a piece of paper to pass through the pearly gates of their academic institutions to make your contributions to the data engineering world. Asynchronous == Remember the days of pure JSP and HTML pages and absence of AJAX? You would have a page with multiple cells. Your user would need to fill up the page cells, click on submit. Then the page blanks off for a while. Sometimes it is longer than a while. Sometimes, you need to send an intervening page to say, server still processing, please be patient. We used to ask, why couldn't we just send the request out without refreshing the page. Why can't the web page be allowed to continue to function while waiting for the response? For example, for a page displaying the price trend of a stock, when a request is sent to the server to refresh the stock price, I would like to continue being able to zoom in and out of the chart of its historical prices. In the old days, we would click on a submit button, the screen blanks off and we go get a cup of coffee and then the browser relents to display the page when the server finally sends its response. So asynchrony is a desirable condition, not a disadvantage. You may ask, why can't the browser display the response as soon as possible rather than wait asynchronously. The browser not displaying as soon as possible is not the fault of asynchrony. It is the fault of slow servers and faulty data cables - that we use asynchrony as a compensatory measure. If you don't like asynchrony, you could revert back to the old days of a blanked screen waiting for the server to respond. Or spend a lot of money upgrading your servers and data cabling. Serializable Imagine Moses and the Red sea. Let us say that the angel opened up the a passage in the Red sea to allow only a single file of people to pass through. The Pharaoh's army is behind pursuing the Israelites and Moses has to make sure his people get across to the other side of the sea as quickly as possible. So the Israelites are now assembled according to tribe, and then by clan, and then by family. They stick together in that hierarchy. But the passage across the sea allows only one person row of people. So Moses has to break the tribes, clans and families up and marshal them into a single row of people. And then on the other side, he has to ensure they are able to reassemble them back into their tribe, clan and family hierarchy. You wouldn't want Moses faced with the situation of a child, on reaching the other side, crying where is my mummy and daddy?, would you? There is a data communication channel between your browser (where you might be sitting in a cafe in Ougadougou) and the server (sitting somewhere in Mumbai). You might not be aware of that if you are on development mode where your browser, server and Eclipse sits on the same machine, wondering why can't they just pass objects to each other by sharing the computer's memory. But you are developing for a remote- to-remote situation where the data lines, in theory, require you to send your objects in a serial manner. By implementing Serializable, you are telling the data communication channel where to find the disassembling/serializing routines and then where to find the reassembly/deserializing routines for your object.Most classes already come with serializing/deserializing routines so you only need to implement Serializable, otherwise you would need to write the serializer/deserializer. If you are developing using the Google Plugin for Eclipse, you need to turn the GAE option off if you are not developing for GAE. When you develop for GAE, or any cloudified environment, your application needs its sessions to be allowed to shift from server to server across the world. That is how the cloud owner would like to optimise their resources and the response of your application. In order to facilitate that kind of shift, your objects need to be serializable. -- You received 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 + php + mysql = confusion?
@christian goudreau thank you very much :) @blessed geek I find more often a server with php support then servlets support. my host doesn't support servlets but I'll consider it. because I only have to transfer plain text and not any serious calculations on the server side, its not a problem I'll encounter for explaining it better: at startup my applications does a get request on all.php witch parses every record in my database in one json chunk. on client side I parse the json string and fill it into textboxes in a flextable. while you are typing in the textboxes from the flextable filled with records he updates the database. so when you type a an event gets triggered, a post request build up and sended to the server. when you then type b(making the textbox contain ab) it again builds a command an posts it in the database. but because of my requests are asynchronously I have little chance the ab update command arrives sooner and making the result in my database a. how can I bypass it? -- You received 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 access static variable on remoteService?
Yes, you could set and get session attributes to store any data, as long as the you wish to share the data within the same session. But what if, the data need to be shared across session? What if your application needs to be robust so that in case the session died due to power outage and the user needs to pick the session up back where it abruptly terminated? So you might prefer to store your data in a database with fields [session id, object name, object value]. If your object is complex, then you would need to use JDO or JPA to model it for presentation to the database. On May 17, 8:25 am, Saurabh saurabhjo...@gmail.com wrote: Could you expand a little on what you mean by persistence repository where the actual data would reside? Would this be along the lines of storing the data in the session object? -- You received 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: internationalization
On 17 mai, 12:14, Joschua cit_corperat...@gmx.net wrote: Hello guys, there are three (open) questions about the internationalization of GWT, I have: 1) Is it a (huge) performance issue, to use only Messages for constant and parameterized text, where usually would use both Messages and Constants? No. Constants in Messages are finally compiled to the exact same code as if they were in a Constants. The real difference is that Messages is limited to Strings. 2) Is there a way to specify the original text in the source code, whose translations can then be specified somewhere? (e.g. Translate(Hello) in the source code and than in a properties file for e.g. spanish: Hello = ¡Hola!) Only using the @DefaultXxxValue or @DefaultMessage annotations 3) Do you know any translation-tools, which generate the properties and interfaces for you? You'd generally create the interfaces on the go, adding methods while you need a new constant. Then, compiling your app with the -gen argument will create the corresponding *.properties file that you can now translate,using any tool you like (I don't use any but I know there exists some) or give to translators (we're generating an Excel file that we give to our customer, one column per language, and generate the *.properties back when translated) -- You received 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: HTTP GET changed to OPTIONS
On 17 mai, 20:33, Seven Corners she...@shelahhorvitz.com wrote: I'm finding a strange situation where an HTTP GET gets changed to OPTIONS, and I receive nothing from my GET. I'm working on an application where I'll be working with various CRUD operations via REST calls to my local server. Right now I'm just writing the GET and finding that my response has no data and a status of 0. I learn from the log that the GET has been changed to HTTP OPTIONS. Any clue why, and what I can do to fix it? http://www.w3.org/TR/cors/#cross-origin-request-with-preflight0 I think what I need to do is a common and straightforward thing; surely other people have run into this? With most browsers until last year, it would have failed, because of the same origin policy. Nowadays, all modern browsers (with the notable exception of IE) implement CORS, but older versions still don't. (t should be noted that IE8 supports CORS but you have to use a special XDomainRequest instead of XMLHttpRequest, and GWT isn't designed with cross-origin requests in view so it won't use XDomainRequest) -- You received 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 + php + mysql = confusion?
I don't understand why you would face a problem. Isn't your json response like this { cell5:bigtoe, cell12:smalltoe } so that, you know which cell to update when the response comes back. And you might even consider a similar param-value pair json structure when the client sends the request to the server. The client would send the server the name-value pair, so that the server knows what param name it is processing and then responds to the client with a similar name-value pair structure so that the client knows where to place the answers. You should study the structural flexibilities of json to exploit it to carry sufficient information to process that information. If a simple structure is insufficient, deepen the depth of information, like: { cell5: { datetime: 123435465, status: old value: no eye deer, }, cell9: { datetime: 123438444, status: stale value: bad eye deer, } } Or, if you wish to save network traffic, just use arrays, knowing the sequence is [datetime, status, value]. { cell1: [123435465, old, no eye deer], cell9: [123438444, stale, bad eye deer] } Therefore, you would have to use a proper json parser in php, capable of converting json to data structure, to do effective work on a web app. I prefer to use Java on both client and server side with GWT RPC. I could have a data structure (serializable of course) class Cell{ int row, column; String value; } And the GWT compiler would facilitate the alignment of this data structure on both sides. The data structure I usually use for non tabular data is interface ParameterValues implements RemoteService{ MapString, String getValues(MapString, String paramReq); } which is equivalent to a json name-value pair structure. On May 18, 1:54 pm, dino dinos...@gmail.com wrote: for explaining it better: at startup my applications does a get request on all.php witch parses every record in my database in one json chunk. on client side I parse the json string and fill it into textboxes in a flextable. while you are typing in the textboxes from the flextable filled with records he updates the database. so when you type a an event gets triggered, a post request build up and sended to the server. when you then type b(making the textbox contain ab) it again builds a command an posts it in the database. but because of my requests are asynchronously I have little chance the ab update command arrives sooner and making the result in my database a. how can I bypass it? -- You received 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: Question about servlets and concurrency
On 17 mai, 16:40, pianista beethovenor...@gmail.com wrote: I'm developing a multiplayer game with GWT. The question is in my servletImpl, what happens when more than one user try to use it? I think, that servletImpl locks until the first user action finish, and then execute the second user action. Only if your method is synchronized, but I wouldn't do this as it would hurt performances of your app as soon as there are more than a few concurrent users. By default they just execute concurrently, in different threads. -- You received 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: Why Asynchronous?
Thank you for answers.. everything is ok now... Regards On 18 mai, 22:43, Blessed Geek blessedg...@gmail.com wrote: Why asynchronous? This is a classic examination question in data communications. Why serializable? - another classic examination question. Classic - meaning that the professors in data communication would want to ensure you understand them before they would like you to be given a piece of paper to pass through the pearly gates of their academic institutions to make your contributions to the data engineering world. Asynchronous == Remember the days of pure JSP and HTML pages and absence of AJAX? You would have a page with multiple cells. Your user would need to fill up the page cells, click on submit. Then the page blanks off for a while. Sometimes it is longer than a while. Sometimes, you need to send an intervening page to say, server still processing, please be patient. We used to ask, why couldn't we just send the request out without refreshing the page. Why can't the web page be allowed to continue to function while waiting for the response? For example, for a page displaying the price trend of a stock, when a request is sent to the server to refresh the stock price, I would like to continue being able to zoom in and out of the chart of its historical prices. In the old days, we would click on a submit button, the screen blanks off and we go get a cup of coffee and then the browser relents to display the page when the server finally sends its response. So asynchrony is a desirable condition, not a disadvantage. You may ask, why can't the browser display the response as soon as possible rather than wait asynchronously. The browser not displaying as soon as possible is not the fault of asynchrony. It is the fault of slow servers and faulty data cables - that we use asynchrony as a compensatory measure. If you don't like asynchrony, you could revert back to the old days of a blanked screen waiting for the server to respond. Or spend a lot of money upgrading your servers and data cabling. Serializable Imagine Moses and the Red sea. Let us say that the angel opened up the a passage in the Red sea to allow only a single file of people to pass through. The Pharaoh's army is behind pursuing the Israelites and Moses has to make sure his people get across to the other side of the sea as quickly as possible. So the Israelites are now assembled according to tribe, and then by clan, and then by family. They stick together in that hierarchy. But the passage across the sea allows only one person row of people. So Moses has to break the tribes, clans and families up and marshal them into a single row of people. And then on the other side, he has to ensure they are able to reassemble them back into their tribe, clan and family hierarchy. You wouldn't want Moses faced with the situation of a child, on reaching the other side, crying where is my mummy and daddy?, would you? There is a data communication channel between your browser (where you might be sitting in a cafe in Ougadougou) and the server (sitting somewhere in Mumbai). You might not be aware of that if you are on development mode where your browser, server and Eclipse sits on the same machine, wondering why can't they just pass objects to each other by sharing the computer's memory. But you are developing for a remote- to-remote situation where the data lines, in theory, require you to send your objects in a serial manner. By implementing Serializable, you are telling the data communication channel where to find the disassembling/serializing routines and then where to find the reassembly/deserializing routines for your object.Most classes already come with serializing/deserializing routines so you only need to implement Serializable, otherwise you would need to write the serializer/deserializer. If you are developing using the Google Plugin for Eclipse, you need to turn the GAE option off if you are not developing for GAE. When you develop for GAE, or any cloudified environment, your application needs its sessions to be allowed to shift from server to server across the world. That is how the cloud owner would like to optimise their resources and the response of your application. In order to facilitate that kind of shift, your objects need to be serializable. -- You received 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
UserService.getCurrentUser() is not working for me
Hi there: I am a beginner of GWT. The problem I am having is I couldn't get Google account authentication. I simply added UserService.getCurrentUser() to the default project trying to return the user name trough RPC call but it didn't work. I tried upload the project to GAE and the result is the same. Anyone knows why this is happening? Thanks,. Xi Zhang -- You received 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 IE Bug affecting RichTextArea, TextBox, etc.
Problem: The problem is a result of a RichTextArea being embedded in a TabPanel. To Reproduce: In IE8, add a RichTextArea to a TabPanel. Navigate to the Tab containing a RichTextArea. Leave the Tab without Focusing on the RichTextArea. The entire app enters a state where TextBoxes, TextAreas, and RichTextAreas cannot get focus. Solution: Set Focus on the RichTextArea when the TabPanel is opened. If the RichTextArea is in the first tab, then a Timer that sets Focus after some short delay will generate the focus event. Focusing on the RichTextArea enables the application to remain in a working state. Thanks, Brett On Mon, May 17, 2010 at 10:14 PM, Brett S. brett.h.shel...@gmail.comwrote: Hello, I am at a loss that I can only reproduce with IE8 (both XP and Win7). I would greatly appreciate any assistance. I have a GWT 2.0 application that has several DialogBoxes containing text boxes, buttons, etc. Everything works fine in Firefox, Chrome, etc. In one DialogBox, I have a TabPanel with three Tabpanels. One of the tabs has a RichTextArea. The first time I edit text in the TextAreas, everything is fine. The second or third time, the text area locks up. The TextArea takes no focus and does not allow editing. Buttons still work. I can close my DialogBox and open a completely unrelated DialogBox with a simple TextBox. This TextBox suddenly does not work either. Once the application goes into the no focus, no edit state for Text Entry Widgets, there is no return. No Text Controls work. Buttons, Menus, popup windows work fine though. In Dev and Production mode, no errors or exceptions are being thrown. I read in some older postings (2008) that TabPanels have trouble containing TextAreas. So, I removed the TextAreas from the TabPanel. The problem was not fixed by not having TextAreas in Tab Panels. My hope is that someone out there has experienced this problem. Please let me know if any workarounds exist. Thank you! Brett -- You received 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: TabLayoutPanel ie problem
Might be this bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=4694can=5 The workaround should work for you. On May 18, 12:28 pm, ailinykh ailin...@gmail.com wrote: Hello, everybody! I try to create layout with two TabLayoutPanel widgets. (One's tab is the parent for another) This is the code. It works fine in chrome. But in IE inner TabLayoutPanel's tab takes whole window. It looks like it's parent (LayoutPanel) doesn't exist. Any ideas how to fix it? Thank you, Andrey g:TabLayoutPanel barUnit='PX' barHeight='20' g:tab g:header size='7' bTop HTML/b header /g:header g:Labelable/g:Label /g:tab g:tab g:header size='7' one more /g:header g:LayoutPanel g:layer left='0' width='20em' g:Labelthis is label/g:Label /g:layer g:layer left='20em' right='0' g:TabLayoutPanel barUnit='PX' barHeight='20' g:tab g:header size='7' bHTML/b header /g:header g:LabelOne more label/g:Label /g:tab /g:TabLayoutPanel /g:layer /g:LayoutPanel /g:tab /g:TabLayoutPanel -- You received 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: return type image from server
I don't think it is possible to create an image using base64 encoded data. Even if it were possible, you don't want to do it for a lot of reasons, namely a) RPC uses POST, which is not easily cacheable b) Its a waste of bandwidh. RPC and base64 both have their overheads c) You have to deal with the asynchronous nature of RPC d) Its non-intuitive, and a lot more work i cannot fetch it directly from the client since this image needs to be registered in the session of the GWT-server - image servlet, if i fetch it from the client it will be registered in the client session with the image servlet. Could you explain this statement? It looks to me you are confused with the concept of sessions. Serving images via a servlet is a pretty standard technique, you need to better explain your problems with that approach. --Sri On 18 May 2010 23:57, Professor Vagner professorvag...@javaneses.comwrote: Try this. import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { String getImage(String name) throws IllegalArgumentException; }// end GreetingService ## /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void getImage(String input, AsyncCallbackString callback) throws IllegalArgumentException; }// end GreetingServiceAsync ## package testes.gwt.server; import java.io.FileInputStream; import sun.misc.BASE64Encoder; import testes.gwt.client.GreetingService; import com.google.gwt.user.server.rpc.RemoteServiceServlet; /** * The server side implementation of the RPC service. */ public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private static final long serialVersionUID = -7242788956943039085L; public String getImage(String input) throws IllegalArgumentException { try { BASE64Encoder base64Encoder = new BASE64Encoder(); FileInputStream fileInputStream = new FileInputStream(myImage); byte[] buffer = new byte[fileInputStream.available()]; StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(data:image/png;base64,); fileInputStream.read(buffer); stringBuilder.append(base64Encoder.encode(buffer)); return stringBuilder.toString(); } catch (Exception e) { e.printStackTrace(); }// end catch return null; }// end getImage }// end GreetingServiceImpl ## public void onFailure(Throwable caught) {} public void onSuccess(String result) { if (!img.isVisible()) img.setVisible(true); img.getElement().setPropertyObject(src, result); } // end onSuccess -- Professor Vagner O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E ALÉ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.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: GWT Compilation Issue
Mate Its a bit hard to tell with no details, like perhaps the exception, the messages or something from the log, at the very least something. As you probably already know there are a million things that can go wrong, you havent given us any clues or pointers. hth On May 18, 9:55 pm, Muhammad Zeeshan muhammad.zeeshan...@gmail.com wrote: Hi, I am facing problem while GWT compilation. I am using ANT build file in which i run 'build' target. when execution comes to 'gwtc' target the compilation sometimes stop or somtime it compiles successfully. Can anyone please tell me what i am doing wrong ? I am using GWT2.0 -- You received 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: TabLayoutPanel ie problem
Yes, this is it. If I call forceLayout() on LayoutPanel when parent tab is selected everything looks good. Thank you very much! Andrey On May 18, 8:49 pm, kozura koz...@gmail.com wrote: Might be this bug:http://code.google.com/p/google-web-toolkit/issues/detail?id=4694can=5 The workaround should work for you. On May 18, 12:28 pm, ailinykh ailin...@gmail.com wrote: Hello, everybody! I try to create layout with two TabLayoutPanel widgets. (One's tab is the parent for another) This is the code. It works fine in chrome. But in IE inner TabLayoutPanel's tab takes whole window. It looks like it's parent (LayoutPanel) doesn't exist. Any ideas how to fix it? Thank you, Andrey g:TabLayoutPanel barUnit='PX' barHeight='20' g:tab g:header size='7' bTop HTML/b header /g:header g:Labelable/g:Label /g:tab g:tab g:header size='7' one more /g:header g:LayoutPanel g:layer left='0' width='20em' g:Labelthis is label/g:Label /g:layer g:layer left='20em' right='0' g:TabLayoutPanel barUnit='PX' barHeight='20' g:tab g:header size='7' bHTML/b header /g:header g:LabelOne more label/g:Label /g:tab /g:TabLayoutPanel /g:layer /g:LayoutPanel /g:tab /g:TabLayoutPanel -- You received 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 Formpanel and multipart
On the server side, how to get the params sent on form submit? getParameterMap() should give me all the form params, correct? How do I get the file, I am running it on Google App Engine.. Hence I cannot use any disk writing classes. Thanks On May 17, 2:10 pm, noob_boy acharya@gmail.com wrote: Hi, I am trying to run the FormPanel example which exists along with the javadoc. After form submission, no data is available on the server side. But, if I remove ENCODING_MULTIPART and set it to URLENCODED, I get the data for all fields except FIleUpload field. Any tips on how to debug this issue? 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.
[gwt-contrib] 1.3.1 gwt-maven-plugin in 2.1.0 M1 ??
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
[gwt-contrib] Re: 1.3.1 gwt-maven-plugin in 2.1.0 M1 ??
I also notice the POM used to publish GWT artifacts is limited to required data, but does not include what is expected for a valid artifact to be deployed on maven central (license, SCM url, mailing lists...) and can be used by various tools (including m2eclipse) to help developers. Maybe they have just been generated using a mvn deploy:deploy-file ? Cheers, Nicolas 2010/5/18 nicolas de loof nicolas.del...@gmail.com 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
[gwt-contrib] Re: 1.3.1 gwt-maven-plugin in 2.1.0 M1 ??
On 18 mai, 14:14, nicolas de loof nicolas.del...@gmail.com wrote: I also notice the POM used to publish GWT artifacts is limited to required data, but does not include what is expected for a valid artifact to be deployed on maven central (license, SCM url, mailing lists...) and can be used by various tools (including m2eclipse) to help developers. Maybe they have just been generated using a mvn deploy:deploy-file ? I don't know Maven, but I'd say they've been generated using mvn install:install-file from this script: http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/scripts/maven_script.sh -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8174 committed - Use cursors for expense report list search queries...
Revision: 8174 Author: r...@google.com Date: Tue May 18 06:37:32 2010 Log: Use cursors for expense report list search queries Fix checkstyle warnings http://code.google.com/p/google-web-toolkit/source/detail?r=8174 Added: /branches/2.1/user/src/com/google/gwt/user/cellview/client/simplePagerFastForward.png /branches/2.1/user/src/com/google/gwt/user/cellview/client/simplePagerFastForwardDisabled.png Modified: /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/Touch.java /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/TouchEvent.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseList.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/server/ReportGenerator.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Report.java /branches/2.1/user/src/com/google/gwt/cell/client/Cell.java /branches/2.1/user/src/com/google/gwt/user/cellview/client/AbstractPager.java /branches/2.1/user/src/com/google/gwt/user/cellview/client/SimplePager.java === --- /dev/null +++ /branches/2.1/user/src/com/google/gwt/user/cellview/client/simplePagerFastForward.png Tue May 18 06:37:32 2010 Binary file, no diff available. === --- /dev/null +++ /branches/2.1/user/src/com/google/gwt/user/cellview/client/simplePagerFastForwardDisabled.png Tue May 18 06:37:32 2010 @@ -0,0 +1,14 @@ +â°PNG + + +IHDR rP6ÃgAMA ÃÃÃOX2tEXtSoftware Adobe ImageReadyqÃe IDATxìTÃJÃP ¤ ¤ º Q *¨ A7â¢HðSô ü ¿Ã_p +¢â÷¢è®øÃîÃ4M çÃiäºñââºÃ´Ã srfîÃâ¢\ÃÂ¥ ½ÃêõúZµZuÃå²[*â¢Ã kÃ{ñHâ!IaâB«Ã*ZâEÃf3 Ãd2âÃf)â¢J Ã¥r¹§0â¢ÃÂ¥FgâbÂ¥R ⺠uOÃY!à þa| D Ãa Ã...@9+£| /à â! ¦iÅ 0Å Ão1ðÃûW,\ø çà 2ä +1 î®éôü: ~¼¿¥«âºÃ»NHž¯mà !«Ãjâº0¦Ãév2ù÷ùñJ{à ¹bö} ½ÃáÃI â ?D q¼k|â±ÃÃZ +vvv©Ã°©å¶ÆhËUÃ7 jXmEà ³{Hž⡠OÃ. ¨csèøè0â â½ø +Yâ U â çQW MQ5Ãu=Å;#L¶ ø +ÃéT4à ÃaZÃW â¢ââ +aë ¢å¥ aÆ?N xâCPÃÃ.HdPcâS3416 ¨à ŸÅ¦ÃèpðA +š¦i i'T3Ãà +,Ã!M n£iââIGË ÂªÂªÃ«L¶ ëMVvÃâ³8îú û +à +âºKìMl°Ã¶¢(ä7º «à 5ìø ü|¢Ãà à +ÅÃÃë#Ã¡Æ Ã Ã¤â à =¯ â{Âà ÿïH$û¯ñ#à ÃÃSh »ÃÃIEND®B`â === --- /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/Touch.java Fri May 14 08:28:05 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/Touch.java Tue May 18 06:37:32 2010 @@ -19,7 +19,7 @@ import com.google.gwt.dom.client.EventTarget; /** - * TODO: doc + * TODO: doc. */ public class Touch extends JavaScriptObject { === --- /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/TouchEvent.java Fri May 14 08:28:05 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/TouchEvent.java Tue May 18 06:37:32 2010 @@ -19,7 +19,7 @@ import com.google.gwt.dom.client.NativeEvent; /** - * TODO: doc + * TODO: doc. */ public class TouchEvent extends NativeEvent { === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseList.java Thu May 13 11:35:58 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseList.java Tue May 18 06:37:32 2010 @@ -441,6 +441,9 @@ } searchBox.resetDefaultText(); searchRegExp = null; + +// Go to the first page of the newly-sorted results +pager.firstPage(); requestReports(false); } }); @@ -601,6 +604,7 @@ refreshTimer.schedule(REFRESH_INTERVAL); } }; + requestFactory.reportRequest().findReportEntriesBySearch(employeeId, dept, startsWith, orderBy, range.getStart(), range.getLength()).forProperties( reportColumns).to(lastDataReceiver).fire(); === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java Fri May 14 13:11:53 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java Tue May 18 06:37:32 2010 @@ -40,7 +40,6 @@ import java.util.Collections; import java.util.List; - /** * Application for browsing the entities of the Expenses app. */ @@ -55,7 +54,6 @@ final PlaceControllerScaffoldPlace placeController = new PlaceControllerScaffoldPlace( eventBus); - /* Top level UI */ final ScaffoldShell shell = new ScaffoldShell(); === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/server/ReportGenerator.java Fri May 14 13:11:53 2010 +++
[gwt-contrib] Re: Adds a mobile-friendly drag-scroll implementation. (issue530801)
We should definitely consider how we're going to bring gesture/touch events into the existing event framework. I went ahead and wrote this the simple way because it will only ever need to work on mobile webkit browsers, which all safely support addEventListener() and don't leak memory. Le 14 mai 2010 15:07, cromwell...@gmail.com a écrit : Joel, I think post I/O perhaps we should add touch events support to dispatchEvent() rather than call addEventListener directly, so you'd be able to invoke sinkEvents(Event.TOUCH_EVENTS);. I did this for my apps and have working code. http://gwt-code-reviews.appspot.com/530801/diff/1/9 File /bikeshed/src/com/google/gwt/mobile/client/TouchHandler.java (right): http://gwt-code-reviews.appspot.com/530801/diff/1/9#newcode57 /bikeshed/src/com/google/gwt/mobile/client/TouchHandler.java:57: }, capture); Memory leak? http://gwt-code-reviews.appspot.com/530801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 3415 and other Date/Time parsing issues. (issue534801)
Will the test run if it is not in a test suite (I18NSuite, perhaps)? http://gwt-code-reviews.appspot.com/534801/diff/1/2 File user/src/com/google/gwt/i18n/client/impl/DateRecord.java (right): http://gwt-code-reviews.appspot.com/534801/diff/1/2#newcode102 user/src/com/google/gwt/i18n/client/impl/DateRecord.java:102: Date defaultCenturyStart = new Date(); Adding an overridable protected getCurrentDate() (or something like that) to allow mocking the current date may help testing this part of the code. http://gwt-code-reviews.appspot.com/534801/diff/1/2#newcode221 user/src/com/google/gwt/i18n/client/impl/DateRecord.java:221: // HBJ date.setTime(date.getTime() + this.tzOffset * 60 * 1000); Remove comment http://gwt-code-reviews.appspot.com/534801/diff/1/3 File user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java (right): http://gwt-code-reviews.appspot.com/534801/diff/1/3#newcode38 user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java:38: Date date = new Date(); Good thing we will not be around in 2040!... well, may be we will. Can we make these tests independent from the current date? http://gwt-code-reviews.appspot.com/534801/diff/1/3#newcode41 user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java:41: assertEquals(60, date.getYear()); Add tests for the corner cases (+19, +20, -80 and -81) http://gwt-code-reviews.appspot.com/534801/diff/1/3#newcode63 user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java:63: Date date = new Date(); See above. http://gwt-code-reviews.appspot.com/534801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 3415 and other Date/Time parsing issues. (issue534801)
I18NSuite is updated, but that file is included in another change so it isn't listed here. All it does is add an entry for DateRecordTest. http://gwt-code-reviews.appspot.com/534801/diff/1/2 File user/src/com/google/gwt/i18n/client/impl/DateRecord.java (right): http://gwt-code-reviews.appspot.com/534801/diff/1/2#newcode102 user/src/com/google/gwt/i18n/client/impl/DateRecord.java:102: Date defaultCenturyStart = new Date(); On 2010/05/18 18:22:34, rchandia wrote: Adding an overridable protected getCurrentDate() (or something like that) to allow mocking the current date may help testing this part of the code. Done. http://gwt-code-reviews.appspot.com/534801/diff/1/2#newcode221 user/src/com/google/gwt/i18n/client/impl/DateRecord.java:221: // HBJ date.setTime(date.getTime() + this.tzOffset * 60 * 1000); On 2010/05/18 18:22:34, rchandia wrote: Remove comment Done. http://gwt-code-reviews.appspot.com/534801/diff/1/3 File user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java (right): http://gwt-code-reviews.appspot.com/534801/diff/1/3#newcode38 user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java:38: Date date = new Date(); On 2010/05/18 18:22:34, rchandia wrote: Good thing we will not be around in 2040!... well, may be we will. Can we make these tests independent from the current date? Done. http://gwt-code-reviews.appspot.com/534801/diff/1/3#newcode41 user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java:41: assertEquals(60, date.getYear()); On 2010/05/18 18:22:34, rchandia wrote: Add tests for the corner cases (+19, +20, -80 and -81) Done. http://gwt-code-reviews.appspot.com/534801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 3415 and other Date/Time parsing issues. (issue534801)
http://gwt-code-reviews.appspot.com/534801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 3415 and other Date/Time parsing issues. (issue534801)
http://gwt-code-reviews.appspot.com/534801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8175 committed - Add package.html files for cellview packages and fix a tag error...
Revision: 8175 Author: r...@google.com Date: Tue May 18 09:17:42 2010 Log: Add package.html files for cellview packages and fix a tag error Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8175 Added: /branches/2.1/user/src/com/google/gwt/cell/client/package.html /branches/2.1/user/src/com/google/gwt/user/cellview/client/package.html /branches/2.1/user/src/com/google/gwt/view/client/package.html Modified: /branches/2.1/user/src/com/google/gwt/user/cellview/client/CellTable.java === --- /dev/null +++ /branches/2.1/user/src/com/google/gwt/cell/client/package.html Tue May 18 09:17:42 2010 @@ -0,0 +1,38 @@ +html +body +pStandard {...@link com.google.gwt.cell.client.Cell} subclasses used by the +...@link com.google.gwt.user.cellview.client cellview} widgets. The available +cell types are: +ul +li{...@link com.google.gwt.cell.client.Cell Cell} - the main interfaceli +li{...@link com.google.gwt.cell.client.AbstractCell AbstractCell} - a convenience implementation for subclassing/li +li{...@link com.google.gwt.cell.client.ActionCell ActionCell} - a Button that responds to mouse clicks via a +...@link com.google.gwt.cell.client.ActionCell.Delegate Delegate} interface/li +li{...@link com.google.gwt.cell.client.ButtonCell ButtonCell} - a cell that displays a button with custom text/li +li{...@link com.google.gwt.cell.client.CheckboxCell CheckboxCell} - a cell that display sa checkbox/li +li{...@link com.google.gwt.cell.client.ClickableTextCell ClickableTextCell} - HTML text that responds to mouse clicks/li +li{...@link com.google.gwt.cell.client.CompositeCell CompositeCell} - a cell that wraps other cells/li +li{...@link com.google.gwt.cell.client.CurrencyCell CurrencyCell} - a cell that displays a currency value (NOTE: does not + currently perform any localization)/li +li{...@link com.google.gwt.cell.client.DateCell DateCell} - a cell displays a date (NOTE: does not currently perform +any localization)/li +li{...@link com.google.gwt.cell.client.DatePickerCell DatePickerCell} - a cell that displays a date and allows editing +using a {...@link com.google.gwt.user.datepicker.client.DatePicker DatePicker} +widget/li +li{...@link com.google.gwt.cell.client.IconCellDecorator IconCellDecorator} - a cell that adds an icon to another cell/li +li{...@link com.google.gwt.cell.client.EditTextCell EditTextCell} - a cell that displays editable text/li +li{...@link com.google.gwt.cell.client.SelectionCell SelectionCell} - a cell that displays a drop-down list/li +li{...@link com.google.gwt.cell.client.TextCell TextCell} - a cell that displays HTML text/li +li{...@link com.google.gwt.cell.client.TextInputCell TextInputCell} - a cell that provides text input/li +ul +/p + +pIn addition to cells, this package provides the following interfaces: +ul +li{...@link com.google.gwt.cell.client.HasCell HasCell}/li +li{...@link com.google.gwt.cell.client.ValueUpdater ValueUpdater}/li +li{...@link com.google.gwt.cell.client.FieldUpdater FieldUpdater}/li +/ul +/p +/body +/html === --- /dev/null +++ /branches/2.1/user/src/com/google/gwt/user/cellview/client/package.html Tue May 18 09:17:42 2010 @@ -0,0 +1,25 @@ +html +body +pThe cellview widget set. The current widgets include: + +ul +li{...@link com.google.gwt.user.cellview.client.CellList CellList} - a simple vertical list of items, rendered by a common +...@link com.google.gwt.cell.client.Cell Cell}/li +li{...@link com.google.gwt.user.cellview.client.CellTable CellTable} - a table in which each {...@link com.google.gwt.user.cellview.client.Column Column} is rendered by a +common Cell. The table may have headers and footers defined by the +...@link com.google.gwt.user.cellview.client.Header Header} class. The {...@link com.google.gwt.user.cellview.client.IdentityColumn IdentityColumn}, {...@link com.google.gwt.user.cellview.client.TextColumn TextColumn}, and +...@link com.google.gwt.user.cellview.client.TextHeader TextHeader} classes are provided for convenience./li +li{...@link com.google.gwt.user.cellview.client.CellTree CellTree} - a tree in which all the children of a node are rendered +by a common cell./li +li{...@link com.google.gwt.user.cellview.client.CellBrowser CellBrowser} - a tree in which tree levels are displayed +horizontally, with only a single node per level open at a time./li +/ul +/p +p +CellTable supports the notion of paging, which may be controlled by a +...@link com.google.gwt.view.client.PagingListView.Pager Pager} such as +...@link com.google.gwt.user.cellview.client.SimplePager SimplePager}, {...@link com.google.gwt.user.cellview.client.PageSizePager PageSizePager}, or a user-defined subclass of +...@link com.google.gwt.user.cellview.client.AbstractPager AbstractPager}. +/p +/body +/html === --- /dev/null +++
[gwt-contrib] [google-web-toolkit] r8176 committed - Add package javadoc for c.g.g.logging.client....
Revision: 8176 Author: j...@google.com Date: Tue May 18 09:22:38 2010 Log: Add package javadoc for c.g.g.logging.client. Patch by: jat Review by: rice http://code.google.com/p/google-web-toolkit/source/detail?r=8176 Added: /branches/2.1/user/src/com/google/gwt/logging/client/package.html === --- /dev/null +++ /branches/2.1/user/src/com/google/gwt/logging/client/package.html Tue May 18 09:22:38 2010 @@ -0,0 +1,5 @@ +html +body +Log handlers and related classes for java.util.logging support in GWT. +/body +/html -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 3415 and other Date/Time parsing issues. (issue534801)
LGTM http://gwt-code-reviews.appspot.com/534801/diff/15001/16002 File user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java (right): http://gwt-code-reviews.appspot.com/534801/diff/15001/16002#newcode76 user/test/com/google/gwt/i18n/client/impl/DateRecordTest.java:76: Date date = new Date(); Would something like date = getMockDate(final int tzoffset) overriding getTimezoneOffset() help testing specific timezones? Although I agree that very, very few people would have a system with say, GMT +15 min. http://gwt-code-reviews.appspot.com/534801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Have IE's DOMImpl invoke its event dispatching function via a (issue543801)
Reviewers: jgw, Description: Have IE's DOMImpl invoke its event dispatching function via a round-trip through the window object. That way, the only reference from DOM objects into GWT's code is on the window object, a place IE is careful to clean up when the browser navigates to a new page. This fixes a problem where the cross-site linker on IE could lead to memory leaking across page refreshes. Please review this at http://gwt-code-reviews.appspot.com/543801/show Affected files: M user/src/com/google/gwt/user/client/impl/DOMImplTrident.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixes a memory leak on IE with the cross-site fragment loading strategy. (issue544801)
Reviewers: jgw, jlabanca, Description: Fixes a memory leak on IE with the cross-site fragment loading strategy. Now the callbacks on script tags are removed when they are invoked. Please review this at http://gwt-code-reviews.appspot.com/544801/show Affected files: M user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java Index: user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java === --- user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java (revision 8109) +++ user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java (working copy) @@ -60,6 +60,18 @@ Code download terminated); /** + * Clear callbacks on script objects. This is important on IE 6 and 7 to + * prevent a memory leak. If the callbacks aren't cleared, there is a cyclical + * chain of references between the script tag and the function callback, and + * IE 6/7 can't garbage collect them. + */ + @SuppressWarnings(unused) + private static native void clearCallbacks(JavaScriptObject script) /*-{ +var nop = new Function(''); +script.onerror = script.onload = script.onreadystatechange = nop; + }-*/; + + /** * Clear the success callback for fragment codefragment/code. */ @SuppressWarnings(unused) @@ -88,8 +100,9 @@ return; } var head = document.getElementsByTagName('head').item(0); + @com.google.gwt.core.client.impl.CrossSiteLoadingStrategy::clearOnSuccess(*)(fragment); + @com.google.gwt.core.client.impl.CrossSiteLoadingStrategy::clearCallbacks(*)(tag); head.removeChild(tag); - @com.google.gwt.core.client.impl.CrossSiteLoadingStrategy::clearOnSuccess(*)(fragment); loadfinishedhandl...@com.google.gwt.core.client.impl.asyncfragmentloader.loadterminatedhandler::loadTerminated(*)( exception); } @@ -99,8 +112,9 @@ JavaScriptObject tag) /*-{ return function(code) { var head = document.getElementsByTagName('head').item(0); + @com.google.gwt.core.client.impl.CrossSiteLoadingStrategy::clearOnSuccess(*)(fragment); + @com.google.gwt.core.client.impl.CrossSiteLoadingStrategy::clearCallbacks(*)(tag); head.removeChild(tag); - @com.google.gwt.core.client.impl.CrossSiteLoadingStrategy::clearOnSuccess(*)(fragment); __gwtModuleFunction.installCode(code); } }-*/; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Have IE's DOMImpl invoke its event dispatching function via a (issue543801)
This is ready for review. http://gwt-code-reviews.appspot.com/543801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes a memory leak on IE with the cross-site fragment loading strategy. (issue544801)
This is ready for review. It's a tiny patch, and either of you would seem appropriate to me. Joel, this is a simpler memory leak than the one in the other patch I sent you. John, you recently reviewed a similar change to this class having to do with handling on-load and on-error events. http://gwt-code-reviews.appspot.com/544801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] RFC: Localized Date/Time formatting
Current GWT supports localized date/time formatting by providing predefined and localized patterns derived from Unicode CLDR data, accessible through DateFormat.get{Full,Long,Medium,Short}{Date,Time}Format(). However, these cover only a small range of the sort of formatting you would like to be able to perform. For example, DatePicker hard-codes format patterns d and MMM for its needs, yet that means they don't get properly localized. Another complication is there is no guidance on formatting a combined date/time value, as the order and connecting text differs between locales, and there is no guidance as to what the customary format for a locale is when you don't have specific needs. CLDR has since added additional formats, named by the information that is provided by them. So for example, format yMMM maps to MMM, y in English, but MMM y in German and MMMl y'x'G in French. However, there are a lot of possible variations, and not all locales define the same set. ICU4J includes a DateTimePatternGeneratorhttp://icu-project.org/apiref/icu4j/index.html?com/ibm/icu/text/DateTimePatternGenerator.htmlwhich takes a pattern skeleton and chooses/modifies the locale-specific pattern to best match what is requested. I propose improving GWT's date/time formatting abilities in the following ways: - create a new DateTimeFormatInfo interface to replace DateTimeFormatConstants - a default implementation DefaultDateTimeFormatInfo provides reasonable defaults and is useful for mocking - DateTimeFormatConstants would still be accepted by DateTimeFormatand would be wrapped by an adapter - it will clean up some issues with DateTimeFormatConstants that make it hard to extend, like having an array of date and time formats and defining return values of numeric fields as strings - localized implementations will have some set of common formats defined, processing the patterns as DateTimePatternGenerator would at the time the CLDR data is imported to GWT - DateTimeFormat will have new static getters for the additional common formats. The exact set is TBD, but something like: - DateTimeFormat getFormatDay() - DateTimeFormat.getFormatMonthDayAbbrev() - DateTimeFormat.getFormatYearMonthDayFull() - ... - This is chosen over having an enum passed into a getPredefinedFormat(PredefinedFormat) method for efficiency reasons, though perhaps improved enum optimizations will make that viable - add a new CustomDateTimeFormat interface which can be GWT.create'd to get localized patterns at compile time - example: public MyFormatters extends CustomDateTimeFormat { public static final MyFormatters INSTANCE = GWT.create(MyFormatters.class); @Pattern(yMMM) // or MMM, y etc, doesn't matter String yearMonthAbbrev(); @Pattern(M/d/y hh:mm:ss) // again, what matters is the included fields and their sizes, not the order or separator characters DateTimeFormat timestamp(); } dtf = DateTimeFormat.getInstance(MyFormatters.INSTANCE.yearMonthAbbrev()); dtf.format(date); dtf = MyFormatters.INSTANCE.timestamp(); ... - These patterns would still be processed at compile time and avoid runtime overhead - Returning DateTimeFormat will allow future optimizations that don't even parse the resulting pattern at runtime and reduce boilerplate code at the callsite, though may not be appropriate for all uses - extend Messages support to allow specifying a pattern skeleton rather than a pattern to be used directly, something like: - @DefaultMessage(Your order will ship on {0,localizedDate,M/d/y}) - This will be processed at compile time as well - Maybe we want to just rewrite all patterns supplied in date formats in Messages, but that would be a breaking change which would have to be carefully weighed Comments? -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8178 committed - Added an AppCacheWarmer that warms the AppEngine cache so that subsequ...
Revision: 8178 Author: gwt.mirror...@gmail.com Date: Tue May 18 14:43:14 2010 Log: Added an AppCacheWarmer that warms the AppEngine cache so that subsequent requests do not suffer from a cold startup. Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8178 Added: /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/AppCacheWarmer.java Modified: /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml === --- /dev/null +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/AppCacheWarmer.java Tue May 18 14:43:14 2010 @@ -0,0 +1,383 @@ +/* + * 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.sample.expenses.server; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * Warm an App-Engine App. + */ +public class AppCacheWarmer { + + static class CountEmployees extends RequestObject { +CountEmployees() { + super(COUNT_EMPLOYEES, new String[0]); +} + } + + static class CountEmployeesByDepartment extends RequestObject { +CountEmployeesByDepartment(String department) { + super(COUNT_EMPLOYEES_BY_DEPARTMENT, new String[] {department}); +} + } + + static class CountReports extends RequestObject { +CountReports() { + super(COUNT_REPORTS, new String[0]); +} + } + + static class CountReportsBySearch extends RequestObject { +CountReportsBySearch(long reporterKey, String department, String startsWith) { + super(COUNT_REPORTS_BY_SEARCH, new String[] { + reporterKey + , department, startsWith}); +} + } + + static class FindAllEmployees extends RequestObject { +FindAllEmployees() { + super(FIND_ALL_EMPLOYEES, new String[0]); +} + } + + static class FindAllExpenses extends RequestObject { +FindAllExpenses() { + super(FIND_ALL_EXPENSES, new String[0]); +} + } + + static class FindAllReports extends RequestObject { +FindAllReports() { + super(FIND_ALL_REPORTS, new String[0]); +} + } + + static class FindEmployeeEntries extends RequestObject { +FindEmployeeEntries(int firstResult, int maxResults) { + super(FIND_EMPLOYEE_ENTRIES, new String[] { + + firstResult, + maxResults}); +} + } + + static class FindEmployeeEntriesByDepartment extends RequestObject { +FindEmployeeEntriesByDepartment(String department, int firstResult, +int maxResults) { + super(FIND_EMPLOYEE_ENTRIES_BY_DEPARTMENT, new String[] { + department, + firstResult, + maxResults}); +} + } + + static class FindExpense extends RequestObject { +FindExpense(String id) { + super(FIND_EXPENSE, new String[] {id}); +} + } + + static class FindExpensesByReport extends RequestObject { +FindExpensesByReport(String reportId) { + super(FIND_EXPENSES_BY_REPORT, new String[] {reportId}); +} + } + + static class FindReport extends RequestObject { +FindReport(String id) { + super(FIND_REPORT, new String[] {id}); +} + } + + static class FindReportEntries extends RequestObject { +FindReportEntries(int firstResult, int maxResults) { + super(FIND_REPORT_ENTRIES, new String[] { + + firstResult, + maxResults}); +} + } + + static class FindReportEntriesBySearch extends RequestObject { +FindReportEntriesBySearch(Long employeeId, String department, +String startsWith, String orderBy, int firstResult, int maxResults) { + super(FIND_REPORT_ENTRIES_BY_SEARCH, new String[] { + + employeeId, department, startsWith, orderBy, + firstResult, + + maxResults}); +} + } + + static class FindReportsByEmployee extends RequestObject { +FindReportsByEmployee(Long id) { + super(FIND_REPORTS_BY_EMPLOYEE, new String[] { + id}); +} + } + + /* + * Each subclass of the RequestObject represents a type of post request. + */ + static class RequestObject { +static int fetchedRequests = 0; +final String operation; +final String parameters[]; + +RequestObject(String operation, String parameters[]) {
[gwt-contrib] [google-web-toolkit] r8179 committed - More demo tweaks:...
Revision: 8179 Author: j...@google.com Date: Tue May 18 15:39:24 2010 Log: More demo tweaks: - Fixed subtle field-shadowing bug in Momentum. - Changed mobile apps to no longer try to use synthetic scrolling (too many problems on some devices). - Removed body margin styles from common.css (was getting injected on mobile and causing layout problems). Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8179 Modified: /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/Momentum.java /branches/2.1/bikeshed/src/com/google/gwt/sample/bikeshed/style/client/common.css /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobile.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.ui.xml /branches/2.1/bikeshed/war/Expenses.html /branches/2.1/bikeshed/war/Scaffold.html === --- /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/Momentum.java Fri May 14 13:11:53 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/mobile/client/Momentum.java Tue May 18 15:39:24 2010 @@ -221,7 +221,7 @@ currentOffset = new Point(initialOffset); previousOffset = new Point(initialOffset); -velocity = adjustInitialVelocity(velocity); +this.velocity = adjustInitialVelocity(velocity); if (isVelocityAboveThreshold(MIN_START_VELOCITY)) { decelerating = true; === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/bikeshed/style/client/common.css Fri May 14 12:19:05 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/bikeshed/style/client/common.css Tue May 18 15:39:24 2010 @@ -1,10 +1,4 @@ /* global */ -body { - color: black; - margin: 8px; - margin-top: 3px; -} - body, table, td { font-family: Arial, sans-serif; font-weight: light; === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobile.java Fri May 14 08:28:05 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobile.java Tue May 18 15:39:24 2010 @@ -19,7 +19,7 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.event.shared.HandlerManager; import com.google.gwt.sample.expenses.gwt.request.ExpensesRequestFactory; -import com.google.gwt.user.client.ui.RootLayoutPanel; +import com.google.gwt.user.client.ui.RootPanel; /** * Entry point for the mobile version of the Expenses app. @@ -66,6 +66,6 @@ final ExpensesMobileShell shell = new ExpensesMobileShell(eventBus, requestFactory); -RootLayoutPanel.get().add(shell); +RootPanel.get().add(shell); } } === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.java Mon May 17 08:10:09 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.java Tue May 18 15:39:24 2010 @@ -19,15 +19,15 @@ import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.shared.HandlerManager; -import com.google.gwt.mobile.client.MobileScrollPanel; import com.google.gwt.sample.expenses.gwt.request.ExpenseRecord; import com.google.gwt.sample.expenses.gwt.request.ExpensesRequestFactory; import com.google.gwt.sample.expenses.gwt.request.ReportRecord; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; +import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HTML; -import com.google.gwt.user.client.ui.ResizeComposite; +import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Widget; import java.util.ArrayList; @@ -35,12 +35,12 @@ /** * TODO. */ -public class ExpensesMobileShell extends ResizeComposite { +public class ExpensesMobileShell extends Composite { interface ShellUiBinder extends UiBinderWidget, ExpensesMobileShell { } private static ShellUiBinder BINDER = GWT.create(ShellUiBinder.class); - @UiField MobileScrollPanel container; + @UiField SimplePanel container; @UiField HTML backButton, addButton, refreshButton, customButton; @UiField Element titleSpan; @@ -194,7 +194,6 @@ } container.add(page.asWidget()); -container.setScrollTop(0); titleSpan.setInnerText(page.getPageTitle()); backButton.setVisible(pages.size() 1); === --- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.ui.xml Fri May 14 08:28:05 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.ui.xml Tue May 18 15:39:24 2010 @@ -6,21 +6,14 @@ ui:style field='mobile'
[gwt-contrib] [google-web-toolkit] r8180 committed - Bumped up version number, and added auth on appEngine....
Revision: 8180 Author: amitman...@google.com Date: Tue May 18 17:22:30 2010 Log: Bumped up version number, and added auth on appEngine. Review by: knor...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8180 Modified: /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml /branches/2.1/bikeshed/war/WEB-INF/web.xml === --- /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml Tue May 18 14:43:14 2010 +++ /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml Tue May 18 17:22:30 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 - version24/version + version27/version static-files include path=**.nocache.* expiration=1s/ include path=**.cache.html expiration=365d/ === --- /branches/2.1/bikeshed/war/WEB-INF/web.xml Sun May 16 05:11:07 2010 +++ /branches/2.1/bikeshed/war/WEB-INF/web.xml Tue May 18 17:22:30 2010 @@ -129,16 +129,14 @@ /security-constraint !-- Require login. -- -!-- security-constraint web-resource-collection web-resource-nameAccess/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint - role-name*/role-name + role-nameadmin/role-name /auth-constraint /security-constraint --- /web-app -- http://groups.google.com/group/Google-Web-Toolkit-Contributors