Re: New Project Start up in GWT 2.0
To keep the code clean and cohesive, I suggest you should consider developing your app with MVP pattern (consider using gwt-platformhttp://code.google.com/p/gwt-platform/). For a summary of different optimizations you could apply, watch some of the Google I/O 2010 GWT sessions by Ray Ryan and Ray Cromwell. Nabeel On Sun, Jul 25, 2010 at 3:55 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi, I am going to develop a new travel portal for online flight ticket booking services. I would use gwt 2.0 with uibinder. My concern is the speed of the application. I would be searching multiple airlines data and then display in my portal. So the web service call / assync call back should be very very fast. Kindly suggest the best practices relevent to my need. Also let me know which 3rd party components framework would be better to use and book available for gwt 2.0 to have deep knowledge. Thanks Deepak -- You received 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-gadgets and maven
Ok So I will try the noredist jar and give a feedback as soon as possible. Thanks On 23 juil, 15:45, Eric Ayers zun...@google.com wrote: I think you should be using the noredist version but that doesn't explain the JavaScript errors you mentioned in the original message. On Jul 23, 2010 9:27 AM, yoann.per...@gmail.com yoann.per...@gmail.com wrote: Ok ... but I already add the latest gwt-gadgets (and its dependencies: gwt-ajaxloader) into my own maven repository. Here is the deployed POMs: 1) gwt-ajaxloader ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http:// maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.google.gwt.google-apis/groupId artifactIdgwt-ajaxloader/artifactId version1.1.0/version packagingjar/packaging /project 2) gwt-gadgets project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http:// maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.google.gwt.google-apis/groupId artifactIdgwt-gadgets/artifactId namegwt-gadgets/name version1.2.0/version dependencies dependency groupIdcom.google.gwt.google-apis/groupId artifactIdgwt-ajaxloader/artifactId version1.1.0/version /dependency /dependencies /project Note that I use the gwt-gadgets.jar instead of the gwt-gadgets- noredist.jar... Is there something missing in the jar files or maybe in my POMs ? Thanks. On 21 juil, 17:00, Eric Ayers zun...@google.com wrote: Unfortunately, the latestgwt-gadgetsrelease hasn't been pushed to Maven. We're working on it. On Wed, Jul 21, 2010 at 5:29 AM, yoann.per...@gmail.com yoann.per...@gmail.com wrote: Hi, I'm trying to develop a simple gadget usinggwt-gadgets, Eclipse and Maven. If i follow the procedure described in thegwt-gadgetsGetting started page (http://code.google.com/p/gwt-google-apis/wiki/ GadgetsGettingStarted), my ga... For more options, visit this group athttp:// 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... -- You received 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: introducing a marketplace for GWT components associated projects
Wow this is nice! keep it up! On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote: Hi, I'm a huge fan of GWT and the only problem I have with it is not really a problem with GWT but with the fact that there isn't a centralized place for registering component and associated tools AFAIK. I have created an application to do this which is available athttp://gwtmarketplace.appspot.com This project is open-source and the project and source code is available at:http://code.google.com/p/gwtmarketplace/. I encourage everyone who has a product related to GWT to register it so it easier for folks like myself to see what is available and be able to comment on and rate these products. I would certainly appreciate if the GWT folks would link tohttp://gwtmarketplace.appspot.comto make it easier for people to see. Also, any feedback would certainly be appreciated. Thanks, Joe http://gwtmarketplace.appspot.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.
subversive checkout as
Hi, I have a Web Toolkit project in subversion ... till now 1 person-team ... now I've tried to configure a second workspace on a separate workstation ... As plugin in eclipse I use subversive ... till now, I haven't found a way to checkout the project. My workaround is: - Creating a new Web Application Project with the name of the existing project - Close this Project - In Filesystem override it with Data from productive Workstation - Reopen Projekt and refesh it - Team ... Share Project I think there must be a better way! Any hints? -Juergen- -- You received 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.
Persistent class ... does not seem to have been enhanced .. Error??
Hi @ all, as you can see (topic) I get strange errors, when runnig my GWT/GAE projects. The error message is: Persistent class myClass does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output. has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class. The thing is, to give more background information, I have 2 projects. One project includes the whole UI (gwt/gae), and the service interface. The other project (JavaProject) includes the service- implementation and the persistent-class-definitions. I believe, the problem is, that the datanucleus-enhance doesn´t know, where the persistent classes are. Don´t know if this is correct? Does anybody had a similar error? Any ideas how I can solve this problem? Thanks, Alex -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: No source code is available for type org.cementj.base.ApplicationException; did you forget to inherit a required module?
Hi Jana, the thing is: The gwt-compiler needs the java-code of all classes you want to need in your client-side (gwt) code. The compiler needs the code, because it parses java to javascript. So if you want to use external jars, than you must be sure, that the source-code is available. If you are using Eclipse, you can attach source to the jars in the build path. If you don´t have the source-code of the jar, you can´t use this library in the client. If you need the library for services, just use the jar only on the server-side, there, you don´t need to know the source-code of used jars. Be sure that you have a copy of the jar in the war/WEB-INF/lib/ folder, or it throws: classBotFound-Exception. Greets Alex On 23 Jul., 07:27, jana janani.thulasi...@gmail.com wrote: Hi, I am new To GWT , and using GWT in my project., i hav two user defined Exception which extends ApplicationException(present in client Package), and i hav added the corresponding Jar file into the Project libraries.. In Client Package , methods in the Interface throws user defined ExceptionAnd while compiling i get this error No source code is available for type org.cementj.base.ApplicationException; did you forget to inherit a required module? Kindly help me ,.. how to solve this error.. Regards, Jana -- You received 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: Intercepting a paste from the clipboard
The code by Jim Douglas does exactly what I need. OnPaste is triggered also for pastes via the context menu. OnChange is not good for me, because I need to recognize as soon as the user has typed a word, so I need to track live the charaters being entered (entered maybe through a paste). Thanks a lot! -- You received 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.
TabPanel within TabPanel styling
My app's layout consists of a TapPanel, which holds another TabPanel. I'd like to have the two TabPanels look differently. Following the GWT tutorial on applying styles I did the following: TabPanel innerTabPanel= new TabPanel(); //carriersTabPanel.setSize(100%, 100%); innerTabPanel.addStyleName(inner-tabPanel); .gwt-TabPanel .inner-tabPanel{ width: 100%; height: 100%; } This, however, did not have any effect whatsoever. Then I tried the following, but that didn't work either: .inner-tabPanel{ width: 100%; height: 100%; } So how I can style the two panels separately? -- You received 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.
First GWT question: DockLayoutPanel and presenter/views
Hello, I've been investigating GWT recently and want to start writing with it. This is my first question on here, so pardon my ignorance. I had just got my head around presenters and views. I then tried out the Mail application that ships with 2.0.4 Eclipse plugin and this looks really good. Looking at the source code though, I cannot see any presenters or views and wonder if when using DockLayoutPanel (as the Mail application does), would one also use presenters and views? If so, how would they be used with the DockLayoutPanel? What portion of the DockViewPanel would a view represent? Thanks, Pete -- You received 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: TabPanel within TabPanel styling
try to use setSyleName instead addStyleName -- Aditya On Sun, Jul 25, 2010 at 9:00 PM, mobilekid mobilek...@googlemail.comwrote: My app's layout consists of a TapPanel, which holds another TabPanel. I'd like to have the two TabPanels look differently. Following the GWT tutorial on applying styles I did the following: TabPanel innerTabPanel= new TabPanel(); //carriersTabPanel.setSize(100%, 100%); innerTabPanel.addStyleName(inner-tabPanel); .gwt-TabPanel .inner-tabPanel{ width: 100%; height: 100%; } This, however, did not have any effect whatsoever. Then I tried the following, but that didn't work either: .inner-tabPanel{ width: 100%; height: 100%; } So how I can style the two panels separately? -- You received 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: introducing a marketplace for GWT components associated projects
Great idea Joe, I was missing something like this for a long time. But the categorization is little bit confusing me. What is the difference between Libraries and Frameworks, or Tools. Wouldn't it be better to cover some specific domains in the categories? Like UI widgets, RPC, security, MVP, etc ? Thank you again. Peter On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote: Wow this is nice! keep it up! On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote: Hi, I'm a huge fan of GWT and the only problem I have with it is not really a problem with GWT but with the fact that there isn't a centralized place for registering component and associated tools AFAIK. I have created an application to do this which is available athttp://gwtmarketplace.appspot.com This project is open-source and the project and source code is available at:http://code.google.com/p/gwtmarketplace/. I encourage everyone who has a product related to GWT to register it so it easier for folks like myself to see what is available and be able to comment on and rate these products. I would certainly appreciate if the GWT folks would link tohttp://gwtmarketplace.appspot.comtomake it easier for people to see. Also, any feedback would certainly be appreciated. Thanks, Joe http://gwtmarketplace.appspot.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.
Popup Panel that follows the page
Hi, In my app I have a calendar. When you click on the date I have a pop up panel that popups on the date that shows different options (add birthday, add appt, etc). How I have it right now the pop up shows where it should if the scroll bar is at the top. But if you scroll down the pop up does not show up in the right place. It seems the popup panel is attached to a particular place on the screen not a particular place in the panels. Is there a good way to anchor the pop up panel to a particular widget? Is there a better way of doing this? An example of what I would ideally want is the popup (for contact info) in gmail when you hover over a person in the chat panel on the left. It always pops up next to the user name that you hovered over. I would also like it to go away if you move the mouse away (instead of click like a popup) but I could do without that. Thanks for the help, Michael Herman -- You received 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: Css Calendar using GWT
Seems not working for me in FF, I'm not able to click on the date in the calendar. Is there any official project site? Peter On 25. Júl, 23:39 h., dodo dard keratonj...@gmail.com wrote: Hello, I would like to present my new gwt-application, css-calendar. If you know zen garden, the idea of my application is the same. I'm hoping that people will join to my cause and share their css design through this application. And I would like also your opinion of this application. You can test it in :http://css-calendar.appspot.com/ 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.
Re: New Project Start up in GWT 2.0
If you want to use UIBinder, then you will have problems with 3rd party component libraries. No component library has official support for UIBinder (ExtGWT, SmartGWT, ...), but smartGWT has one project which solves this, but it is not an official one (http://code.google.com/p/uibinding-smartgwt/). So, if you want to use UIBinder just go with core GWT widgets with custom CSS styles. MVP is very good practice, but the best practices are changing from year to year :). Google guys are implementing in this time the Actions (ActionManager) pattern using RequestFactory ... and everything will be managable/generated by Spring Roo. I'm the old school ... i'm still using MVP with GIN and event bus, but the choise is yours. Peter On 26. Júl, 08:13 h., Nabeel Ali Memon nabeelalime...@gmail.com wrote: To keep the code clean and cohesive, I suggest you should consider developing your app with MVP pattern (consider using gwt-platformhttp://code.google.com/p/gwt-platform/). For a summary of different optimizations you could apply, watch some of the Google I/O 2010 GWT sessions by Ray Ryan and Ray Cromwell. Nabeel On Sun, Jul 25, 2010 at 3:55 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi, I am going to develop a new travel portal for online flight ticket booking services. I would use gwt 2.0 with uibinder. My concern is the speed of the application. I would be searching multiple airlines data and then display in my portal. So the web service call / assync call back should be very very fast. Kindly suggest the best practices relevent to my need. Also let me know which 3rd party components framework would be better to use and book available for gwt 2.0 to have deep knowledge. Thanks Deepak -- You received 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: Class implements IsSerializable does not show up in all RPCRequest.serializationPolicy
Maybe the code snippet will helps. Do you have default constructor for serialization purposes? Is your custom exception listed in service method definition? Peter On 24. Júl, 17:34 h., citress citr...@gmail.com wrote: Hi, GWT version: 2.0.0 My understanding of the serialization policy is that if a Class implements IsSerializable, it will be part of GWT's serialization policy whitelist. I created a custom, runtime exception that implements IsSerializable. This runtime exception shows up in the serialization policy of one RPCRequest method, but not in another. Both methods do not declare the exception in their method declarations. Why can this exception be serialized in one RPC method call but not in another? Is implementing the IsSerializable interface alone not enough to make the class part of the serialization policy? 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.
Re: How to create a GWT Library?
Just inspire by the existing GWT libraries. Sources are opensourced ;) Better libraries/frameworks has also documentation how to build them. Maven will simplify this a lot. One example: http://code.google.com/p/acris/source/browse/#svn/trunk http://code.google.com/p/acris/wiki/HowTo Peter On 23. Júl, 20:06 h., cokol eplisc...@googlemail.com wrote: hi.its fairly easy to do.just google for a gwt module howto On Jul 23, 6:14 pm, nacho vela.igna...@gmail.com wrote: Hi, i'm looking some info about how to create and package my own gwt's lib. Does anyone know where can i find some tuto? -- You received 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: Another Ajax Crawling question, is #! acceptable rather then just #! ?
Sorry, I'm a little confused too. When googlebot sees www.example.com?mykey=myvalue#!myhistorytoken , it'll turn it into www.example.com?mykey=myvalue_escaped_fragment_=myhistorytoken . Can you give an example (complete fake URLs, like I did above) to illustrate the problem you're seeing? That would be helpful. Thanks, kathrin Short answer is I don't think you should use #!. On Sat, Jul 24, 2010 at 12:27 PM, darkflame darkfl...@gmail.com wrote: Thanks, Sorry if its not clear, but I am actually talking about all of those things. PHP is my back end which is generating the static pages. GWT is what my site is coded in. Its completely dynamic and makes extensive use of # tokens to store and retrieve its states. I'm attempting to get my side Ajax crawl-able using this guide; http://code.google.com/web/ajaxcrawling/docs/getting-started.html This guide states to replace the normal #anything style history tokens with #!anything tokens instead. Note the additional ! When google's crawler is requesting these pages it swaps the #! for ?_escapedfragment_=, allowing the server to generate a static page using the query string. This is all laid out in googles guide. However, the formating of this ?_escapedfragment_= does not allow php to process the key/value pairs in the query string as it normally could. PHP can normally read of key value pairs from the query string using its $_GET[] command. However, under this system ?_escapedfragment_= in the url requested prevents the first key value pair being read. (as the parser now sees _escapedfragment_ as its own key, and the first true key as its *value*). Thus, in order to use PHP with Google's system for making Ajax crawlable, I was querying if GWT user's should add to their new history token format, rather then just !. So the new tokens become #! rather then just #!. This is a little confusing, but I think it should be understandable for anyone who knows both PHP as well as GWT. (or at least, has used extensive historytokens/states in their web design). Finally, I mentioned the Webmaster tools Fetch as Googlebot as thats what I'm using to test if my site is indeed browse-able by google's bot. Its not yet possible to use it to test completely for this sort of functionality, however. So some of this work is a little blind. On Jul 24, 6:08 pm, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, when others are as confused as me than you will get no qualified answer You are talking about PHP, url, google and sometimes it sounds that you are talking about Google Webmaster Tools. ( != GWT = Google Webtool Kit) Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 23 Jul., 15:59, darkflame darkfl...@gmail.com wrote: (of course, Id have to code my gwt java to remove the from the history string before processing) On Jul 23, 3:54 pm, darkflame darkfl...@gmail.com wrote: Ive noticed that if I change my links to just #! google interprets them as; _escaped_fragment_= Which is how its documented. However, this means a php $_GET command cant read the first key/value listed. So; $_GET['DisplayReview'] returns as empty if the url is, say, ? _escaped_fragment_=DisplayReview=123 If, however, I use #! on my Javascript, then google will instead call; _escaped_fragment_= and $_GET['DisplayReview'] returns the correct value. Is this acceptable? Should this be standard practice for those using php to generate the static pages? The alternative seems to be manually parsing the whole query string rather then using $_GET[], but that seems rather messy. Note; I'm making some assumptions about how google replaces the #!, as the Fetch as Robot utility doesn't seem to do it yet. -- You received 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: Places, Activities, and bookmarking History
Take a look on this http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/c47e97bdfb904928/cc9bfd4c123a1f36?show_docid=cc9bfd4c123a1f36 On 22. Júl, 21:22 h., Jason Thrasher jasonthras...@gmail.com wrote: Digging around in 2.1.M2's Places and Activities, I'd like to start implementing some bookmarking features based on History tokens. Where can I go to learn about GWT's roadmap for this, and possibly some hints at sample code? (maybe somewhere in the bikeshed that I haven't looked?) thanks, Jason -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Popup Panel that follows the page
Hi Michael, Concerning the location of your popup (extending PopupPanel) on the screen, you can specify the position by using setPopupPosition. You can then place it whenever you want, relatively to the browser window (like the example given in the javadoc for PopupPanel), but also relatively to the element that caused the popup to appear (see for example http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mail/src/com/google/gwt/sample/mail/client/Contacts.java in the Mail example, very to similar to gmail). Never needed to hide it when you move the mouse away, but I guess you could register a MouseOutHandler to your popup and hide it then. -- Tanguy 2010/7/26 Michael mrher...@gmail.com Hi, In my app I have a calendar. When you click on the date I have a pop up panel that popups on the date that shows different options (add birthday, add appt, etc). How I have it right now the pop up shows where it should if the scroll bar is at the top. But if you scroll down the pop up does not show up in the right place. It seems the popup panel is attached to a particular place on the screen not a particular place in the panels. Is there a good way to anchor the pop up panel to a particular widget? Is there a better way of doing this? An example of what I would ideally want is the popup (for contact info) in gmail when you hover over a person in the chat panel on the left. It always pops up next to the user name that you hovered over. I would also like it to go away if you move the mouse away (instead of click like a popup) but I could do without that. Thanks for the help, Michael Herman -- You received 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.
Unable to add the GWT plugin into eclipse 3.6
hi, I am not able to add the GWT plugin into eclipse 3.6. The url i am using is http://dl.google.com/eclipse/plugin/3.6 and when I select Plugin and SDK and Click on Next it fails with the error Cannot complete the install because one or more required items could not be found. Software being installed: Google App Engine Java SDK 1.3.5 1.3.5.v201006301309 Any ideas whats going wrong here. Thanks Nabhonil -- You received 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.
Setting up a maven based gwt project without using gwt-maven-plugin
Hi all, The following is a little scheme I came up with for configuring a maven based gwt project. I specifically wanted to avoid using gwt- maven-plugin as I've had some issues with it. It feels a bit redundant too. The example pom below is for an experimentation project that uses gwt, the incubator and commons-io. The project layout uses the maven standard /src/main/webapp for the exploded war and not /war as google's gwt eclipse plugin does. To achieve this maven is configured to output class files in /src/main/webapp/WEB-INF/classes and not under /target. The clean plugin is also pointed to same output locations so that mvn clean works. The pom defines two profiles. One is the dev profile ( active by default ) which also depends on the gwt-dev artifact for dev mode, etc. The second is the web profile which is used for running the gwt compiler ( for example by calling mvn -Pweb install ). The web profile uses maven-antrun-plugin and ant's java task to run the gwt compiler. A trivial bit of javascript is used to determine the processor count on the current machine and so it's possible to pass the optimal - localWorkers setting to the gwt compiler. An ide launch configuration for dev mode would need to: * use com.google.gwt.dev.DevMode as main class * add src/main/java and src/main/resources to the classpath * add something like - agentlib:jdwp=transport=dt_socket,address=1025,server=y,suspend=n to the VM args to allow connecting a debugger to the web app * use something like this for the main class's arguments: -war src/main/webapp -startupUrl /index.html -codeServerPort 1026 -port 1027 com.example.TestGWT.TestGWT If setting this up in, say, eclipse feels like too much clicking, it's possible to achieve the same effect from a linux shell by: running once: cp=`mvn dependency:build-classpath | grep -E '^[^[]'`; running every time you want to start dev mode: ava -agentlib:jdwp=transport=dt_socket,address=1025,server=y,suspend=n -Xms256m -Xmx512m -Xss50M -XX:PermSize=128m -XX:MaxPermSize=192m -cp $cp:src/main/java:src/main/resources com.google.gwt.dev.DevMode -war src/main/webapp -startupUrl /index.html -codeServerPort 1026 -port 1027 com.example.TestGWT.TestGWT The entire pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http:// maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.example/groupId artifactIdTestGWT/artifactId packagingjar/packaging version0.0.1-SNAPSHOT/version nameTestGWT/name properties project.build.sourceEncodingUTF-8/ project.build.sourceEncoding gwtVersion2.0.4/gwtVersion gwtIncubatorVersion20100204-r1747/gwtIncubatorVersion maven.test.skiptrue/maven.test.skip /properties build outputDirectory${basedir}/src/main/webapp/WEB-INF/classes/ outputDirectory testOutputDirectory${basedir}/src/main/webapp/WEB-INF/ classes/testOutputDirectory resources resource directory${basedir}/src/main/java/directory /resource resource directory${basedir}/src/test/java/directory /resource resource directory${basedir}/src/main/resources/directory /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target /configuration /plugin plugin artifactIdmaven-clean-plugin/artifactId configuration filesets fileset directorysrc/main/webapp/ com.example.TestGWT/directory /fileset fileset directorysrc/main/webapp/WEB-INF/ classes/directory /fileset fileset directorysrc/main/webapp/WEB-INF/lib/ directory /fileset /filesets /configuration /plugin /plugins /build dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-incubator/artifactId version${gwtIncubatorVersion}/version /dependency dependency
GWT Incubator ScrollTable row navigation/selection using keyboard
Hi All, I am trying to use GWT Incubator's (Paging)ScrollTable for a keyboard centric application. It is important to be able to navigate between rows in a Table via the Keyboard (up/down) buttons. I understand that the table can have a RowSelectionPolicy, but can the selection be done with a keyboard? An example of what I am looking for can be found at http://demo.vaadin.com/sampler#TableKeyboardNavigation Your help is much appreciated. Thanks, Dinesh. -- You received 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: First GWT question: DockLayoutPanel and presenter/views
Hi Pete, The Mail application from the samples doesn't follow the MVP pattern and its separation between views and presenters. I suggest you read the articles from the blog about mvp ( http://code.google.com/webtoolkit/articles/mvp-architecture.html), which include an example similar to Mail (a Contact application). Concerning DockLayoutPanel, it would be part of the view in an application following MVP (as it defines how your application will look like). Hope this helps -- Tanguy 2010/7/25 PeteUK newbar...@gmail.com Hello, I've been investigating GWT recently and want to start writing with it. This is my first question on here, so pardon my ignorance. I had just got my head around presenters and views. I then tried out the Mail application that ships with 2.0.4 Eclipse plugin and this looks really good. Looking at the source code though, I cannot see any presenters or views and wonder if when using DockLayoutPanel (as the Mail application does), would one also use presenters and views? If so, how would they be used with the DockLayoutPanel? What portion of the DockViewPanel would a view represent? Thanks, Pete -- You received 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: uibinder @import url..
can you give example how to use styleInjector replace of @import? i'm refering to http://code.google.com/p/google-web-toolkit/wiki/StyleInjector and try put @Source(http://fonts.googleapis.com/css?family=Lobster;); but eclipse prompt for error. any example? -- You received 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: jQuery with GWT
GQuery is compatible with GWT 2.0.3 ? Breno Gomes 2010/5/7 Paul Brown pb0...@gmail.com The amazing Cromwellian kicked GQuery off but I think he's a bit strapped for time at the moment. Check out his Google IO 2009 presentation on the topic. http://www.youtube.com/watch?v=sl5em1UPuoI On 7 May 2010 15:48, Tapas Adhikary tapas4...@gmail.com wrote: Thanks Daniel . Look like , somebody have already started writing the API to integrate both. I would be more interested to know , if anybody have started using the GwtQuery in their project and what's their opinion. Thanks again. - Tapas On Fri, May 7, 2010 at 11:08 AM, daniel d.brelov...@googlemail.com wrote: http://code.google... -- You received 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: Unable to add the GWT plugin into eclipse 3.6
Hi: What's your baseline Eclipse install (JavaEE, C/C++...) I've been using Java EE On Mon, Jul 26, 2010 at 4:49 AM, Nabhonil nabho...@gmail.com wrote: hi, I am not able to add the GWT plugin into eclipse 3.6. The url i am using is http://dl.google.com/eclipse/plugin/3.6 and when I select Plugin and SDK and Click on Next it fails with the error Cannot complete the install because one or more required items could not be found. Software being installed: Google App Engine Java SDK 1.3.5 1.3.5.v201006301309 Any ideas whats going wrong here. Thanks Nabhonil -- You received 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: subversive checkout as
Make sure you have all the Eclipse files in Subversion. The Eclipse files (.project, .setup, .launch) are filtered out from the Project Explorer view. You shouldn't have to create a 2nd workspace. The advantage of a 2nd workspace is that you can easily dispose of it and start over. I think there may be some issues getting the plugin to recognize an imported GWT project, but they may have been resolved with a recent GPE version. All that aside: did you try New - Other - SVN - Checkout Projects From SVN On Mon, Jul 26, 2010 at 1:36 AM, jsaar duddelfud...@googlemail.com wrote: Hi, I have a Web Toolkit project in subversion ... till now 1 person-team ... now I've tried to configure a second workspace on a separate workstation ... As plugin in eclipse I use subversive ... till now, I haven't found a way to checkout the project. My workaround is: - Creating a new Web Application Project with the name of the existing project - Close this Project - In Filesystem override it with Data from productive Workstation - Reopen Projekt and refesh it - Team ... Share Project I think there must be a better way! Any hints? -Juergen- -- You received 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: jQuery with GWT
Ok, it's. 2010/7/26 Breno Gomes breno.gomesfernan...@gmail.com GQuery is compatible with GWT 2.0.3 ? Breno Gomes 2010/5/7 Paul Brown pb0...@gmail.com The amazing Cromwellian kicked GQuery off but I think he's a bit strapped for time at the moment. Check out his Google IO 2009 presentation on the topic. http://www.youtube.com/watch?v=sl5em1UPuoI On 7 May 2010 15:48, Tapas Adhikary tapas4...@gmail.com wrote: Thanks Daniel . Look like , somebody have already started writing the API to integrate both. I would be more interested to know , if anybody have started using the GwtQuery in their project and what's their opinion. Thanks again. - Tapas On Fri, May 7, 2010 at 11:08 AM, daniel d.brelov...@googlemail.com wrote: http://code.google... -- You received 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: Can you use GWT with the spring framework (spring mvc)?
This thread may be useful to you. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/01b44891878f204d/fb35afa10b924833?lnk=raot On Jul 20, 11:19 pm, Gitted sahmed1...@gmail.com wrote: Can you use GWT with the spring framework (spring mvc)? -- You received 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: HTML5 Offline GWT APP
Yeah, that's definitely possible to do. You need to use a Linker to build the manifest at the end. There was a Linkers talk at Google I/O that discussed building an HTML 5 manifest Linker: http://code.google.com/events/io/2010/sessions/gwt-linkers-webworkers-extensions.html. You could also pull it out of the Speed Tracer source. -- Arthur Kalmenson On Fri, Jul 23, 2010 at 8:40 AM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to build a offline gwt app using HTML5 cache manifest and local storage, but to do that, i need to build the manifest file listing all the GWT generated files, right? Can i do this during the compile process or is it better to do this in a shell script? Thanks, Julio -- You received 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.
Google Web Toolkit JavaScript Vs hand Crafted JavaScript benchmark
Hey everyone I am really interested in GWT for a project I am working at the moement. The main benefit for me is the fact that I don't have to write JavaScript which I really dislike, but then I was thinking would the code produced by GWT be slower then hand crafted JavaScript so I ran a benchmark, the results of which I posted here http://bit.ly/cxo4dS some very interesting results when running it on the iphone. -- You received 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: TabPanel within TabPanel styling
Hi, for some reason using the percentage didn't work, but using px worked, so try something like width: 800px. Hope that helps. Musab On Jul 25, 7:30 pm, mobilekid mobilek...@googlemail.com wrote: My app's layout consists of a TapPanel, which holds another TabPanel. I'd like to have the two TabPanels look differently. Following the GWT tutorial on applying styles I did the following: TabPanel innerTabPanel= new TabPanel(); //carriersTabPanel.setSize(100%, 100%); innerTabPanel.addStyleName(inner-tabPanel); .gwt-TabPanel .inner-tabPanel{ width: 100%; height: 100%;} This, however, did not have any effect whatsoever. Then I tried the following, but that didn't work either: .inner-tabPanel{ width: 100%; height: 100%; } So how I can style the two panels separately? -- You received 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 service to manage your wine cellar on line
You are kindly invited to try out a new GWT based service that I am launching. www.cellamea.eu With this service, you can manage the inventory of your wine cellar on line. The database with wines does not contain much data yet, but I hope that this will change as the service gets used more. Some more technical information about the service in general and the use of GWT in particular. 1. MVP The client side follows the MVP pattern (though not using a general eventbus). Model : Value objects carry the attributes of the domain objects. The value objects are defined in XML schemas (with some restrictions, but supporting the majority of data types defined in XML schemas, XML schema includes and extends). The java implementation is generated using an XSLT transformation (similar to JAXB). The interface of the value objects have the following methods: * getters * setters : using basic types or using String. * adders : for repeating members * validate : XML schema facets can be used to define syntax validation rules for the value objects (min lengths, max lengths, min occurs, max occurs, min value, max value, total digits, fractional digits). Java code is generated that verifies these rules and throws an exception with a identification of which fields have which errors. * toXML : marshalling into XML This implementation can be used on client and server side. Unmarshallers are also generated to instantiate a value object, starting from the XML representation. Unmarshallers for client and server are generated(GWT has its own XML parser and DOM interface definition, hence the unmarshallers cannot be identical) The model is locale insensitive, i.e. it uses standard representations for date, time, numbers,... Presenter : the presenter is implemented in two parts - ServiceController : responsibilities *interact with server, *retrieve value objects from the view and set value objects in the view. - InteractionController : responsibilities * translate events from the view into method calls on the ServiceController * steer the page flow in the view, based on events received from the ServiceController (e.g. show the correct view, display exceptions, display or hide overlays to simulate a synchronous interaction,...). This split allows to reuse InteractionController for common interaction patterns (for example search, list, detail page sequences). View : The view is also made up of several classes - Application views : these are traditional windows, for example for search criteria, entry screens, list screen with search results, etc. The application views are responsible for the locale manipulations. - Glue classes (sorry for this rather high level name, I could not come up with something better) : starting point to put everything together * create presenter classes and application views and glue everything together * show correct application view on request of the InteractionController These glue classes lend themselves very well to code splitting as they are the entry point to the instantiation of the Presenter classes and the Application views. 2. Deployment Static files and java script are deployed on an Apache 2 server. This allows to do some URL rewriting, for example to add locale in the query string. Server side follows the SOA principles, (authentication service, reference data service, static data service, cellar management service, inquiry service,...). Each service provides several commands (e.g. createCellar, applyDelivery, ...) The services are deployed as servlets on Tomcat 5.5. Database is MySQL. Development and testing is done on Windows, production deployment on a virtual Linux server. RPC uses the GWT RPC implementation but very restricted, i.e. all service calls have a signature of the following type: String serviceCommand(String requestXML) throws ServiceException (where serviceCommand is of course the actual name of the command). The strings are XML representations of request and reply objects. These are defined and generated using the same mechanism as the value objects from the model. Marshalling into XML and unmarshalling from XML are straightforward calls of the generated methods. So I only use the scaffolding of the GWT servlet and the handling of exceptions, not the GWT serialization of the paramaters. The site is only accessible over SSL to assure the confidentiality of the data. Cache-control header is set to public for the cacheable js files to incite the browsers to cache them (works on Chrome, IE8 and FF3) 3. Authentication Support for OpenID in general withs specific flavours for using your Google or Yahoo mail account. Also support for email address and password. You can use multiple authentication mechanisms for the same user. 4. Localisation The service is available in English, Dutch and French. You can define application level codes as XML schema enumerations and use these types in your ValueObjects. These
Writing a JS library in GWT?
I've done quite a bit of searching to find any information about this, but it seems that people are more concerned with writing GWT libraries to keep in GWT before compilation. I would like to write the libraries I frequently use in my projects in GWT, then compile and expose them to hand-written Javascript. I have several issues with the way GWT seems to handle what I want to do: 1) Bootstrapping. I understand that the iframe loading method is highly efficient for large codebases so as to make the page non- blocking, but for a small library bootstrapping is overkill. To test, I tried writing my TableGenerator library (a 7kb handwritten non- minified library) in GWT. The result was a 6 kb deferred binding loader file (table.nocache.js) and 4 permutations of compiled JS weighing in at 20-30kb each. Which brings me to issue #2 2) For compiling the code, GWT seems to produce LARGER codebases. Fast, yes, but how does 3-5kb of source result in 20-30kb of compiled javascript? Is there a way to crop out all the unnecessary cruft GWT seems to think I need? 3) I would prefer to not have a bootloader - I anticipate the compiled form of my code is going to be smaller than the bootstrap code and would rather it just be loaded. Is there a compilation option to disable permutations and output (obviously more to handle different implementations) code that works in all browsers? Sincerely, Scott Rabin -- You received 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.
Multiple remote service implementations
Hi there! Since GWT creates the binding with the server using: GWT.create(Interface) What if I have several services implementations for the same interface? Is it possible to handle? Regards -- You received 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: First GWT question: DockLayoutPanel and presenter/views
Hi Tanguy, Thanks for the reply. I had read the blog link you posted (and part II). In the Contact application, the *entire* application area is initially taken up with the contacts list. When a contact is chosen for editing (or the Add button pressed), the *entire* area is replaced by the edit contact view. I see the DockLayoutPanel as being different to this. Let's assume the Mail application was to be changed to be a bit more Outlook like. The change being a calendar option that could be chosen from the left hand side (where Mailboxes, Tasks, and Contacts are). When that calendar is chosen, you don't want the entire application area to be replaced, you'd just want the two split windows in the centre area to be replaced by a big calendar. I am wondering how that would be orchestrated within the application? Would MVP be used here, and if so, how? Thanks, Pete On 26 July, 14:59, Tanguy Le Barzic tanguy.lebar...@gmail.com wrote: Hi Pete, The Mail application from the samples doesn't follow the MVP pattern and its separation between views and presenters. I suggest you read the articles from the blog about mvp (http://code.google.com/webtoolkit/articles/mvp-architecture.html), which include an example similar to Mail (a Contact application). Concerning DockLayoutPanel, it would be part of the view in an application following MVP (as it defines how your application will look like). Hope this helps -- Tanguy 2010/7/25 PeteUK newbar...@gmail.com Hello, I've been investigating GWT recently and want to start writing with it. This is my first question on here, so pardon my ignorance. I had just got my head around presenters and views. I then tried out the Mail application that ships with 2.0.4 Eclipse plugin and this looks really good. Looking at the source code though, I cannot see any presenters or views and wonder if when using DockLayoutPanel (as the Mail application does), would one also use presenters and views? If so, how would they be used with the DockLayoutPanel? What portion of the DockViewPanel would a view represent? Thanks, Pete -- You received 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: Unable to add the GWT plugin into eclipse 3.6
Also, is that the full set of errors? Are you able to scroll down and see if any more errors are listed there? On Mon, Jul 26, 2010 at 10:21 AM, Jeff Chimene jchim...@gmail.com wrote: Hi: What's your baseline Eclipse install (JavaEE, C/C++...) I've been using Java EE On Mon, Jul 26, 2010 at 4:49 AM, Nabhonil nabho...@gmail.com wrote: hi, I am not able to add the GWT plugin into eclipse 3.6. The url i am using is http://dl.google.com/eclipse/plugin/3.6 and when I select Plugin and SDK and Click on Next it fails with the error Cannot complete the install because one or more required items could not be found. Software being installed: Google App Engine Java SDK 1.3.5 1.3.5.v201006301309 Any ideas whats going wrong here. Thanks Nabhonil -- You received 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.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: uibinder @import url..
This is an external stylesheet and cannot be used with the @import annotation. As I said before, you will have to either download the css and include it with your module or add it to the gwt.xml file. On Jul 26, 8:02 am, asianCoolz second.co...@gmail.com wrote: can you give example how to use styleInjector replace of @import? i'm refering tohttp://code.google.com/p/google-web-toolkit/wiki/StyleInjector and try put @Source(http://fonts.googleapis.com/css?family=Lobster;); but eclipse prompt for error. any example? -- You received 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: First GWT question: DockLayoutPanel and presenter/views
I have done exactly that for an application. There's no reason you cannot have a view, with a corresponding presenter, that contains two views that have their own presenters. You can even use UiBinder to put those two views within the higher level view. So your DockLayoutPanel might be your base widget for your higher level view, and you might have MyWestView to the west and MyCenterView to the right. Then it's just a matter of binding the presenters to the instances of the views the higher level view references. On Jul 26, 11:02 am, PeteUK newbar...@gmail.com wrote: Hi Tanguy, Thanks for the reply. I had read the blog link you posted (and part II). In the Contact application, the *entire* application area is initially taken up with the contacts list. When a contact is chosen for editing (or the Add button pressed), the *entire* area is replaced by the edit contact view. I see the DockLayoutPanel as being different to this. Let's assume the Mail application was to be changed to be a bit more Outlook like. The change being a calendar option that could be chosen from the left hand side (where Mailboxes, Tasks, and Contacts are). When that calendar is chosen, you don't want the entire application area to be replaced, you'd just want the two split windows in the centre area to be replaced by a big calendar. I am wondering how that would be orchestrated within the application? Would MVP be used here, and if so, how? Thanks, Pete On 26 July, 14:59, Tanguy Le Barzic tanguy.lebar...@gmail.com wrote: Hi Pete, The Mail application from the samples doesn't follow the MVP pattern and its separation between views and presenters. I suggest you read the articles from the blog about mvp (http://code.google.com/webtoolkit/articles/mvp-architecture.html), which include an example similar to Mail (a Contact application). Concerning DockLayoutPanel, it would be part of the view in an application following MVP (as it defines how your application will look like). Hope this helps -- Tanguy 2010/7/25 PeteUK newbar...@gmail.com Hello, I've been investigating GWT recently and want to start writing with it. This is my first question on here, so pardon my ignorance. I had just got my head around presenters and views. I then tried out the Mail application that ships with 2.0.4 Eclipse plugin and this looks really good. Looking at the source code though, I cannot see any presenters or views and wonder if when using DockLayoutPanel (as the Mail application does), would one also use presenters and views? If so, how would they be used with the DockLayoutPanel? What portion of the DockViewPanel would a view represent? Thanks, Pete -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabPanel within TabPanel styling
you can also use css dom selectors that would style the gwt-tabPanel classes differently if they are the child of another gwt-tabPanel On Jul 25, 9:30 am, mobilekid mobilek...@googlemail.com wrote: My app's layout consists of a TapPanel, which holds another TabPanel. I'd like to have the two TabPanels look differently. Following the GWT tutorial on applying styles I did the following: TabPanel innerTabPanel= new TabPanel(); //carriersTabPanel.setSize(100%, 100%); innerTabPanel.addStyleName(inner-tabPanel); .gwt-TabPanel .inner-tabPanel{ width: 100%; height: 100%;} This, however, did not have any effect whatsoever. Then I tried the following, but that didn't work either: .inner-tabPanel{ width: 100%; height: 100%; } So how I can style the two panels separately? -- You received 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.
Strange Mail from group 'islam'
After having posted a question to GWT ... Has anynone had problems of thos kind? -- You received 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: Creating a separate GWT servlet page
What would I need to do in web.xml to instantiate other entry-point classes? Right now, mine looks like thus: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-namerpcServlet/servlet-name servlet-classserver.RPCCoreServiceImpl/servlet-class /servlet servlet-mapping servlet-namerpcServlet/servlet-name url-pattern/web_app/rpcService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileWebApp.html/welcome-file /welcome-file-list /web-app Would I just add something like this: !-- Servlets -- servlet servlet-nameadminServlet/servlet-name servlet-classclient.AdminPanel/servlet-class /servlet servlet-mapping servlet-nameadminServlet/servlet-name url-pattern/web_app/adminPanel/url-pattern /servlet-mapping And would I add entry point onModuleLoad in my AdminPanel.java? On Jul 23, 5:30 pm, mkh mike.hana...@gmail.com wrote: You can certainly define multiple modules in one web app. I use Intellij IDEA, and this is as simple as hitting Alt-Insert and picking GWT/ Module. The downside of doing this is the GWT compile time goes up directly with the number of modules since each is processed independently. On Jul 23, 2:45 pm, Irving Ruan irvingr...@gmail.com wrote: Sorry if that sounded confusing. Hopefully, this puts it in a perspective that can be understood: HTML-Entry Point class associations -- Module1.html - Module1:EntryPoint.class, Module2.html - Module2:EntryPoint.class Would it be possible to create something like that, where you can have two separate projects or something and load two different entry point classes? Is there some easier way to achieve this without segregating it into two different projects and combining the output? The security party isn't really important as of this moment - but onto the previous issue: in order to keep it in one project, would I need to modify my web.xml to include different modules for each new .html page/entry point class? -I. On Jul 23, 6:37 am, mkh mike.hana...@gmail.com wrote: The notion of pages in a GWT app for someone experiences with a traditional web app (for example, a JSF based app) is definitely a bit confusing. The basic scheme of displaying different panels (in the same page) is the GWT approach, but how would you handle the situation where the admin section of the app needs to be protected by a security constraint requiring the user to login before that portion of the app is available? In JSF this is straight forward, based on the path. But with GWT to have another path you would need to have another module with another host page... On Jul 23, 4:06 am, cokol eplisc...@googlemail.com wrote: what you mean by page? so you mean not actually an entry point or screen but rather a usual HTML page? then just write your .jsp , like adminPage.jsp. Or if you really want to write a panel with much HTML try using UiBinder. and remember - there is no page in GWT applications, however, you can combile html pages with GWT written UI. So if you want to design a second gwt-screen you just do so by createing a new panel (adminPanel) and just make in visible in the onClick() event of your menu or the trigger button. On 22 Jul., 21:28, Irving Ruan irvingr...@gmail.com wrote: Hello, Right now, I have my main web app displaying just fine on the page when I run it through Eclipse GWT plugin. When I navigate tohttp://127.0.0.1:/WebApp.html?gwt.codesvr=127.0.0.1:9997 I see my main page. Now, I want to add an admin page where special users can edit stuff, which basically necessitates that I need another page view. While I do know how to create UIs, my problem is that I'm not sure how to instantiate the page in my web.xml or WebApp.gwt.xml. Here's what my web.xml contains: web-app !-- Servlets -- servlet servlet-namerpcServlet/servlet-name servlet-classcom.app.server.RPCCoreServiceImpl/servlet-class /servlet servlet-mapping servlet-namerpcServlet/servlet-name url-pattern/webapp/rpcService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileWebApp.html/welcome-file /welcome-file-list /web-app What would I need to change in my web.xml or WebApp.gwt.xml to be able to instantiate a class, such as AdminPanel.java, as a page I can navigate to and see? How would I be able to map that to my local URLhttp://127.0.0.1:/WebApp.html?gwt.codesvr=127.0.0.1:9997 Thanks in advance, Irving -- You received this message because you are subscribed to the Google Groups
Re: Writing a JS library in GWT?
First, let me start by saying that people are already writing javascript libraries using GWT and have been for some time. Ray Cromwell created the GWT exporter library for this exact purpose for his own usage and open sourced it. While bootloaders seem expensive it is the only way to deliver the most efficient code to the client. There is no possible way for code size to grow when compiled because if you go far enough every method will eventually make it to a JSNI method, so what you are missing in your calculations is all the code supplied by google and the small overhead code involved with the bootloader. However, there is a linker available to create only one output, but in order for this to work the compilation must result in only one permutation, which is almost impossible unless you know the browser your client will be using. You asked: Is there a way to crop out all the unnecessary cruft GWT seems to think I need?. You can write your own linker if you feel that you know better than google when it comes to the bootloader, but as far as the compiled code itself; the GWT compiler has very aggressive dead code elimination, so any output code will be used at some point. On Jul 26, 9:21 am, S Rabin scottra...@gmail.com wrote: I've done quite a bit of searching to find any information about this, but it seems that people are more concerned with writing GWT libraries to keep in GWT before compilation. I would like to write the libraries I frequently use in my projects in GWT, then compile and expose them to hand-written Javascript. I have several issues with the way GWT seems to handle what I want to do: 1) Bootstrapping. I understand that the iframe loading method is highly efficient for large codebases so as to make the page non- blocking, but for a small library bootstrapping is overkill. To test, I tried writing my TableGenerator library (a 7kb handwritten non- minified library) in GWT. The result was a 6 kb deferred binding loader file (table.nocache.js) and 4 permutations of compiled JS weighing in at 20-30kb each. Which brings me to issue #2 2) For compiling the code, GWT seems to produce LARGER codebases. Fast, yes, but how does 3-5kb of source result in 20-30kb of compiled javascript? Is there a way to crop out all the unnecessary cruft GWT seems to think I need? 3) I would prefer to not have a bootloader - I anticipate the compiled form of my code is going to be smaller than the bootstrap code and would rather it just be loaded. Is there a compilation option to disable permutations and output (obviously more to handle different implementations) code that works in all browsers? Sincerely, Scott Rabin -- You received 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: First GWT question: DockLayoutPanel and presenter/views
Dane, Thanks for your response. I have probably been thinking too rigidly about the presenter/view paradigm and concluding that presenter/view is 1) for the top level of the application only and 2) only 1 instantiation of a presenter/view at any one time. Now I see that it can be as fragmented as you want it to be. I shall experiment... Thanks, Pete On 26 July, 17:23, dane.molotok dane.molo...@gmail.com wrote: I have done exactly that for an application. There's no reason you cannot have a view, with a corresponding presenter, that contains two views that have their own presenters. You can even use UiBinder to put those two views within the higher level view. So your DockLayoutPanel might be your base widget for your higher level view, and you might have MyWestView to the west and MyCenterView to the right. Then it's just a matter of binding the presenters to the instances of the views the higher level view references. On Jul 26, 11:02 am, PeteUK newbar...@gmail.com wrote: Hi Tanguy, Thanks for the reply. I had read the blog link you posted (and part II). In the Contact application, the *entire* application area is initially taken up with the contacts list. When a contact is chosen for editing (or the Add button pressed), the *entire* area is replaced by the edit contact view. I see the DockLayoutPanel as being different to this. Let's assume the Mail application was to be changed to be a bit more Outlook like. The change being a calendar option that could be chosen from the left hand side (where Mailboxes, Tasks, and Contacts are). When that calendar is chosen, you don't want the entire application area to be replaced, you'd just want the two split windows in the centre area to be replaced by a big calendar. I am wondering how that would be orchestrated within the application? Would MVP be used here, and if so, how? Thanks, Pete On 26 July, 14:59, Tanguy Le Barzic tanguy.lebar...@gmail.com wrote: Hi Pete, The Mail application from the samples doesn't follow the MVP pattern and its separation between views and presenters. I suggest you read the articles from the blog about mvp (http://code.google.com/webtoolkit/articles/mvp-architecture.html), which include an example similar to Mail (a Contact application). Concerning DockLayoutPanel, it would be part of the view in an application following MVP (as it defines how your application will look like). Hope this helps -- Tanguy 2010/7/25 PeteUK newbar...@gmail.com Hello, I've been investigating GWT recently and want to start writing with it. This is my first question on here, so pardon my ignorance. I had just got my head around presenters and views. I then tried out the Mail application that ships with 2.0.4 Eclipse plugin and this looks really good. Looking at the source code though, I cannot see any presenters or views and wonder if when using DockLayoutPanel (as the Mail application does), would one also use presenters and views? If so, how would they be used with the DockLayoutPanel? What portion of the DockViewPanel would a view represent? Thanks, Pete -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Strange Mail from group 'islam'
No, i've never been hit by spam due to signing up with gwt mailing list :) Nabeel On Mon, Jul 26, 2010 at 9:39 PM, jsaar duddelfud...@googlemail.com wrote: After having posted a question to GWT ... Has anynone had problems of thos kind? -- You received 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.
Displaying google maps with IE7
I've recently run into the following rather bewildering issue where maps display fine in all browsers but IE6 and IE7. My GWT 2.0.4 client app is using GWT maps API 1.1 jar (against maps API 2). The maps API loads ok, but IE6 and IE7 won't display the map widget content - no errors thrown. Interestingly, when the user agent is pinned to ie8 in the module file then maps will display fine even on IE7. Has anyone run into this before? -- You received 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 the Eclipse plugin to install a previous version of GWT
Hi, I'm going to be using a tool in GWT that is built against GWT 1.7. Is it possible to use the Eclipse plugin to install a previous version of GWT? I uncheckd Show only the latest version, but stil the only thing I could see was GWT 2.0.4. TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT HIBERNATE ECLIPSE
Hello I am testing a gwt project using rpc to comunicate with the server, using hibernate and postgres, Everything compiles okey but when I run it as a Web Aplicacation it says the following error: 21:41:22.992 [ERROR] [hiberpost] Errors in 'file:/Users/Sebastian/ Documents/workspace/hiberpost/src/com/uls/client/Hiberpost.java' 21:41:23.107 [ERROR] [hiberpost] Line 47: No source code is available for type com.hiber.pregunta; did you forget to inherit a required module? Note that if I run things as a java aplication everything works... Well I will atach my eclipse project ..., I hope someone can help me ... the file can be downloaded here http://www.2shared.com/file/HLbCuBi1/hiberpost.html 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.
What changed in 2.0?
It's really interesting looking at the GWT Docs. I can go here: http://code.google.com/webtoolkit/previousdocs.html and see the release notes for previous versions. I can go here: http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html and find out what's coming with 2.1 Where do I go to find out what changed from 1.7 to 2.0? TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What changed in 2.0?
This is a high level overview, but it's a starting point: http://googlewebtoolkit.blogspot.com/2009/12/introducing-google-web-toolkit-20-now.html http://en.wikipedia.org/wiki/Google_Web_Toolkit#GWT_2.0 On Jul 26, 9:45 am, Greg Dougherty dougherty.greg...@mayo.edu wrote: It's really interesting looking at the GWT Docs. I can go here: http://code.google.com/webtoolkit/previousdocs.html and see the release notes for previous versions. I can go here: http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html and find out what's coming with 2.1 Where do I go to find out what changed from 1.7 to 2.0? TIA, Greg -- You received 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: Using the Eclipse plugin to install a previous version of GWT
On 07/26/2010 09:38 AM, Greg Dougherty wrote: Hi, I'm going to be using a tool in GWT that is built against GWT 1.7. Is it possible to use the Eclipse plugin to install a previous version of GWT? I uncheckd Show only the latest version, but stil the only thing I could see was GWT 2.0.4. TIA, Greg Hi Greg, Just download the GWT version you want, unpack it into a directory, and add the directory via the GPE as an alternate version. Be aware, though, that the GPE GWT 2.x compile command line arguments may not match GWT 1.7, so you might not be able to use the current Compile widget with 1.7 IOW, you might need a custom Eclipse Java launch to compile 1.7 -- You received 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: Multiple remote service implementations
I'm still looking for a solution for this. My problem, is that I'm creating a widget, and that widget relies on a remoteservice. But I have different service implementations, that must implement the same interface. One way I found of doiing this is having 2 interfaces that extend the same interface for instance: MyRemoteService1 extends WidgetInterface MyRemoteService2 extends WidgetInterface When using the widget, I pass the constructed service to its constructor: MyWidget m = new MyWidget(GWT.create(MyRemoteService1); MyWidget m2 = new MyWidget(GWT.create(MyRemoteService2); The problem with this, is that the view that contains my widget is going to have a dependency with the widget's service, and that should be bound only to it. So is there any way, to have several implementations of same interface to create a GWT service RPC? Regards On Jul 26, 12:59 pm, Vinicius Carvalho viniciusccarva...@gmail.com wrote: Hi there! Since GWT creates the binding with the server using: GWT.create(Interface) What if I have several services implementations for the same interface? Is it possible to handle? Regards -- You received 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: Does these books still compatible with the new GWT ?
Essential GWT: Building for the Web with Google Web Toolkit 2.0 is on Rough Cuts (Safari Books On-Line). Programmation GWT 2 : Développer des applications RIA et Ajax avec Google Web Toolkit is on http://www.amazon.fr. There's an e-book available on line and pages can be google-translated 1-by-1, but there is no complete English translation that I know of. On Jul 8, 8:41 pm, conrado conrado.buh...@gmail.com wrote: Hi, this is my first post to the group. Sorry for any mistakes. I'd like to emphasize, as stated above, that printedbooksare out- dated. I've gone through manybooksand they all cover the very basics of getting started with Appengine and GWT. I would like to point out that, even though in the 2009 Google IO, Google was already pushing for the MVP pattern, and all the other goodies that make enterprise grade applications (testing, declarative UI, i18n, etc.) are not covered in any of thebooksin great detail. In fact, most of thebooksfeel like a HOWTO, and not worth your money in my opinion. Just to get you started, I would suggest you go through the GWT session videos on the 2010 IO: http://code.google.com/events/io/2010/sessions.html I've made a little list of the things I've had to review (and am still in the process of doing so), to make a great application. Well tested -http://code.google.com/webtoolkit/articles/mvp-architecture.html#testing -http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... Secure SafeHTML -http://code.google.com/p/wave-protocol/ Monitored -http://code.google.com/p/gwt-log/ -http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions Scalable -http://code.google.com/webtoolkit/articles/mvp-architecture.html Bookmarfriendly - ? Crawlable -http://code.google.com/web/ajaxcrawling/docs/getting-started.html Localized -http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html This covers the background knowledge you need. But I would suggest you also pick up on Roo. Which, unfortunately, isn't shoved down our throats, and seems a little lacking in documentation at the moment. Good luck, Conrado. On Jul 8, 5:33 am, Rachmat Kukuh R. rku...@gmail.com wrote: I have a plan to buy thesebooks: 1. GWT in Practice [Manning, 2008] 2. Pro Web 2.0 Application Development with GWT (Pro) [Apress. 2008] 3. Beginning Google Web Toolkit [Apress, 2008] But, does thosebooksstill compatible with the new GWT ? Thx before! :) -- You received 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: HTML5 Offline GWT APP
Thanks Arthur, the linker works perfectly. I also made a servlet to add the text/cache-manifest content type and redirect to the generated manifest file. But i still can't use my app ofline. Is there any browser capable of debugging HTML5 offline cache? Know i have a error event, discovered using this script: http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/ But the response is coming correctly, but i don't know what i am doing wrong. Is there any deployable examples of this? I am using google plugin for eclipse and gae-java On Jul 26, 12:30 pm, Arthur Kalmenson arthur.k...@gmail.com wrote: Yeah, that's definitely possible to do. You need to use a Linker to build the manifest at the end. There was a Linkers talk at Google I/O that discussed building an HTML 5 manifest Linker:http://code.google.com/events/io/2010/sessions/gwt-linkers-webworkers You could also pull it out of the Speed Tracer source. -- Arthur Kalmenson On Fri, Jul 23, 2010 at 8:40 AM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to build a offline gwt app using HTML5 cache manifest and local storage, but to do that, i need to build the manifest file listing all the GWT generated files, right? Can i do this during the compile process or is it better to do this in a shell script? Thanks, Julio -- You received 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: Displaying google maps with IE7
First, make sure your hosted html page is set to standards mode. The first line should be something like: !doctype html On Mon, Jul 26, 2010 at 1:17 PM, George Georgovassilis g.georgovassi...@gmail.com wrote: I've recently run into the following rather bewildering issue where maps display fine in all browsers but IE6 and IE7. My GWT 2.0.4 client app is using GWT maps API 1.1 jar (against maps API 2). The maps API loads ok, but IE6 and IE7 won't display the map widget content - no errors thrown. Interestingly, when the user agent is pinned to ie8 in the module file then maps will display fine even on IE7. Has anyone run into this before? -- You received 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. -- 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.
GWT Client HTML Page and Server Services in separate war files
Hi, I'm new to GWT so I please excuse me for any primitive question... 1. We have our client generated HTML, JS in a separate war file - This war file is served from root context / 2. We have another war file which has server service components - This war file is served from context /bizlogic None of our transfer objects implement IsSerializable, but they do implement Serializable. It was working when both server and client were in the same war, but stops working when they are separated.. I am getting an exception saying Object not serialized for security reasons, since it does not implement IsSerializable. But when I make those objects implement IsSerializable it works perfectly fine. RemoteServiceServlet.java::loadSerializationPolicy() - It looks like module name and context path should match, but that's not the case with us. Is that a problem? any suggestion/advice on how to proceed. Thanks for your time.. -Gopi -- You received 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 Error Unable to find .gwt.xml
Hi Community, many of you know the following problem: ERROR] Unable to find 'uivers2/Uivers2.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Has anyone solved it? Could you please say me what I have to do? I imported the JAR of the newest incubator of gwt, I am working with gwt 2.04. Regrads, soeren -- You received 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.
Serialization problems
Hello there. We have our domain model files in a separate jar com.acme.model is the base package for it in our gwt.xml file we have source=model/ And everything was ok. We then add a new subfolder: search com.acme.model.search And all classes there implement java.io.Serializable just like the other model classes But now, we get com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be deserialized. When invoking the remote service. The odd part is that it never happened for the other classes that only implemented java.io.Serializable. I though that the source directive at the xml was recursive, do I need to add each package? Regardds -- You received 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: Strange Mail from group 'islam'
yes 2010/7/26 Nabeel Ali Memon nabeelalime...@gmail.com No, i've never been hit by spam due to signing up with gwt mailing list :) Nabeel On Mon, Jul 26, 2010 at 9:39 PM, jsaar duddelfud...@googlemail.comwrote: After having posted a question to GWT ... Has anynone had problems of thos kind? -- You received 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.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: Multiple remote service implementations
And why not in this way? WidgetInterfaceAsync widgetInterface1 = (WidgetInterfaceAsync) GWT.create(WidgetInterface.class); ServiceDefTarget endpoint = (ServiceDefTarget) widgetInterface1; endpoint.setServiceEntryPoint(/service1); WidgetInterfaceAsync widgetInterface2 = (WidgetInterfaceAsync) GWT.create(WidgetInterface.class); ServiceDefTarget endpoint = (ServiceDefTarget) widgetInterface2; endpoint.setServiceEntryPoint(/service2); Peter On 26. Júl, 20:04 h., Vinicius Carvalho viniciusccarva...@gmail.com wrote: I'm still looking for a solution for this. My problem, is that I'm creating a widget, and that widget relies on a remoteservice. But I have different service implementations, that must implement the same interface. One way I found of doiing this is having 2 interfaces that extend the same interface for instance: MyRemoteService1 extends WidgetInterface MyRemoteService2 extends WidgetInterface When using the widget, I pass the constructed service to its constructor: MyWidget m = new MyWidget(GWT.create(MyRemoteService1); MyWidget m2 = new MyWidget(GWT.create(MyRemoteService2); The problem with this, is that the view that contains my widget is going to have a dependency with the widget's service, and that should be bound only to it. So is there any way, to have several implementations of same interface to create a GWT service RPC? Regards On Jul 26, 12:59 pm, Vinicius Carvalho viniciusccarva...@gmail.com wrote: Hi there! Since GWT creates the binding with the server using: GWT.create(Interface) What if I have several services implementations for the same interface? Is it possible to handle? Regards -- You received 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 Error Unable to find .gwt.xml
This is a generic error and can be caused by many different things. 1) Malformed include in gwt.xml 2) Classpath issues 3) Malformed script tag in the head of the html file 4) Trying to use a non-GWT project I have also randomly seen this error in hosted mode and a Ctrl+F5 usually fixes it. This used to be a common occurrence before OOPHM with Eclipse and rename-to combined with an external server, so if you are using an older version of GWT(pre 2.0) I suggest updating. On Jul 26, 12:14 pm, Soeren B soeren.bueh...@googlemail.com wrote: Hi Community, many of you know the following problem: ERROR] Unable to find 'uivers2/Uivers2.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Has anyone solved it? Could you please say me what I have to do? I imported the JAR of the newest incubator of gwt, I am working with gwt 2.04. Regrads, soeren -- You received 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: Displaying google maps with IE7
Hello Eric, The page is in standards mode. How do I debug this? On Jul 26, 8:48 pm, Eric Ayers zun...@google.com wrote: First, make sure your hosted html page is set to standards mode. The first line should be something like: !doctype html On Mon, Jul 26, 2010 at 1:17 PM, George Georgovassilis g.georgovassi...@gmail.com wrote: I've recently run into the following rather bewildering issue where maps display fine in all browsers but IE6 and IE7. My GWT 2.0.4 client app is using GWT maps API 1.1 jar (against maps API 2). The maps API loads ok, but IE6 and IE7 won't display the map widget content - no errors thrown. Interestingly, when the user agent is pinned to ie8 in the module file then maps will display fine even on IE7. Has anyone run into this before? -- You received 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. -- 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.
GWT 2.1 how to customize style for TextColumn
Hello, Does anyone have a suggestion for the preferred way to customize a style for a given cell using a TextColumn with the new Data Presentation Widgets framework in GWT 2.1? Thanks, Ted -- You received 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: Using the Eclipse plugin to install a previous version of GWT
Hi Greg, Jeff is correct; even though you cannot download the GWT 1.7 SDK in bundled form, you can still download the zip file separately, unpack it, and then add the SDK to GPE using this method: http://code.google.com/eclipse/docs/using_sdks.html http://code.google.com/eclipse/docs/using_sdks.htmlThe compilation should work even when using GWT 1.7. Rajeev On Mon, Jul 26, 2010 at 1:39 PM, Jeff Chimene jchim...@gmail.com wrote: On 07/26/2010 09:38 AM, Greg Dougherty wrote: Hi, I'm going to be using a tool in GWT that is built against GWT 1.7. Is it possible to use the Eclipse plugin to install a previous version of GWT? I uncheckd Show only the latest version, but stil the only thing I could see was GWT 2.0.4. TIA, Greg Hi Greg, Just download the GWT version you want, unpack it into a directory, and add the directory via the GPE as an alternate version. Be aware, though, that the GPE GWT 2.x compile command line arguments may not match GWT 1.7, so you might not be able to use the current Compile widget with 1.7 IOW, you might need a custom Eclipse Java launch to compile 1.7 -- You received 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: What changed in 2.0?
Thanks. It would be nice if one or both of these were linking from the Documentation page. Greg On Jul 26, 12:31 pm, Jim Douglas jdoug...@basis.com wrote: This is a high level overview, but it's a starting point: http://googlewebtoolkit.blogspot.com/2009/12/introducing-google-web-t...http://en.wikipedia.org/wiki/Google_Web_Toolkit#GWT_2.0 On Jul 26, 9:45 am, Greg Dougherty dougherty.greg...@mayo.edu wrote: It's really interesting looking at the GWT Docs. I can go here: http://code.google.com/webtoolkit/previousdocs.html and see the release notes for previous versions. I can go here: http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html and find out what's coming with 2.1 Where do I go to find out what changed from 1.7 to 2.0? TIA, Greg -- You received 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 2.0 and SeaMonkey
(For those who don't know, SeaMonkey is pretty much the direct inheritor of Mozilla.) I prefer SeaMonkey to FireFox. Is there a GWT Developer Plugin for SeaMonkey? (Yes, I know this only matters for 2.0+. But eventually I will be using it.) TIA, GReg -- You received 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.
menuItem command create tab in tabPanel
hi In my application I have created a widget that contain a menubar and menuItem. I have also create another widget that contain a tabPanel. each off this object are instantiate separately. I don't know howto : When user click on menuItem i want to create a new tab I don't understand howto retrieve my tabPanel object for use : myTabPanel.add(widget) in menuBar widget class. 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.
XML Validation directly
I know that this is off topic for GWT, but if anyone knows of how to validate an XML file directly by using something like Apache Commons Validation, but without needing to create a bean or a form, I would appreciate knowing about it. Basically, we have XML files that we would like to validate directly out of XML, but using a validation in XML (in a seperate or the same file). The reason we want to do this is that during development we would like to have a very quick way of generating validation without needing to be constantly updating screens and forms, just change the XML (in one file or two, depending on what resources are out there). 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.
Re: Another Ajax Crawling question, is #! acceptable rather then just #! ?
Sorry for my late reply. Lets say I have a url like this; http://www.rateoholic.co.uk/main/Rateoholic_Frame.html#!SEARCHFOR=star%20warsTYPE=videogame Google Bot will turn it to this; http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_SEARCHFOR=star%20warsTYPE=videogame Correct? Now, in PHP you normally access the query string data by calls like $_GET[]. Only in this case if you call $_GET['SEARCHFOR'] you wont get the value star wars like you normally would, because google bot has added _escaped_fragment_ to the start of the key value. You could still get the other key/value pairs just fine following the sign, but the first one be visible in the normal way. See the problem? I've come up with some solutions, but they arn't that pretty. One way is to remove the _escaped_fragment_ from the start of the string and make my own parser for the key/value pairs. The other is to search for $_GET['_escaped_fragment_SEARCHFOR'] instead of SEARCHFOR. However, this results in the query string needing to be in a fixed order. (or testing for both _escaped_fragment_** and ** for every key I'm looking for). Its not a critical problem, as the first workaround works and am currently using it. But it does seem like there should be some nice method to be able to use PHP's query-string functions as intended. === Finally, one last thing; I cant work out any way to tell when my system is working or not. After a few days my #! results dont seem googlable...so can I assume it isn't working yet for some reason? (Ive submitted a sitemap thats parsed over ok...so I expected something..hmm..) Thanks, Thomas Wrobel On 26 July 2010 14:45, Katharina Probst kpro...@google.com wrote: Sorry, I'm a little confused too. When googlebot sees www.example.com?mykey=myvalue#!myhistorytoken , it'll turn it into www.example.com?mykey=myvalue_escaped_fragment_=myhistorytoken . Can you give an example (complete fake URLs, like I did above) to illustrate the problem you're seeing? That would be helpful. Thanks, kathrin Short answer is I don't think you should use #!. On Sat, Jul 24, 2010 at 12:27 PM, darkflame darkfl...@gmail.com wrote: Thanks, Sorry if its not clear, but I am actually talking about all of those things. PHP is my back end which is generating the static pages. GWT is what my site is coded in. Its completely dynamic and makes extensive use of # tokens to store and retrieve its states. I'm attempting to get my side Ajax crawl-able using this guide; http://code.google.com/web/ajaxcrawling/docs/getting-started.html This guide states to replace the normal #anything style history tokens with #!anything tokens instead. Note the additional ! When google's crawler is requesting these pages it swaps the #! for ?_escapedfragment_=, allowing the server to generate a static page using the query string. This is all laid out in googles guide. However, the formating of this ?_escapedfragment_= does not allow php to process the key/value pairs in the query string as it normally could. PHP can normally read of key value pairs from the query string using its $_GET[] command. However, under this system ?_escapedfragment_= in the url requested prevents the first key value pair being read. (as the parser now sees _escapedfragment_ as its own key, and the first true key as its *value*). Thus, in order to use PHP with Google's system for making Ajax crawlable, I was querying if GWT user's should add to their new history token format, rather then just !. So the new tokens become #! rather then just #!. This is a little confusing, but I think it should be understandable for anyone who knows both PHP as well as GWT. (or at least, has used extensive historytokens/states in their web design). Finally, I mentioned the Webmaster tools Fetch as Googlebot as thats what I'm using to test if my site is indeed browse-able by google's bot. Its not yet possible to use it to test completely for this sort of functionality, however. So some of this work is a little blind. On Jul 24, 6:08 pm, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, when others are as confused as me than you will get no qualified answer You are talking about PHP, url, google and sometimes it sounds that you are talking about Google Webmaster Tools. ( != GWT = Google Webtool Kit) Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 23 Jul., 15:59, darkflame darkfl...@gmail.com wrote: (of course, Id have to code my gwt java to remove the from the history string before processing) On Jul 23, 3:54 pm, darkflame darkfl...@gmail.com wrote: Ive noticed that if I change my links to just #! google interprets them as; _escaped_fragment_= Which is how its documented. However, this means a php $_GET command cant read the first key/value
Re: XML Validation directly
On 07/26/2010 04:09 PM, John Ivens wrote: I know that this is off topic for GWT, but if anyone knows of how to validate an XML file directly by using something like Apache Commons Validation, but without needing to create a bean or a form, I would appreciate knowing about it. Basically, we have XML files that we would like to validate directly out of XML, but using a validation in XML (in a seperate or the same file). The reason we want to do this is that during development we would like to have a very quick way of generating validation without needing to be constantly updating screens and forms, just change the XML (in one file or two, depending on what resources are out there). Thanks in advance... Any validating parser will do what you want. hint: the google search term is in this answer. -- You received 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.
Re: introducing a marketplace for GWT components associated projects
Thanks for the feedback Peter. I've made changes to the categories that you suggested. That definitely seems to make more sense. Joe On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote: Great idea Joe, I was missing something like this for a long time. But the categorization is little bit confusing me. What is the difference between Libraries and Frameworks, or Tools. Wouldn't it be better to cover some specific domains in the categories? Like UI widgets, RPC, security, MVP, etc ? Thank you again. Peter On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote: Wow this is nice! keep it up! On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote: Hi, I'm a huge fan of GWT and the only problem I have with it is not really a problem with GWT but with the fact that there isn't a centralized place for registering component and associated tools AFAIK. I have created an application to do this which is available athttp://gwtmarketplace.appspot.com This project is open-source and the project and source code is available at:http://code.google.com/p/gwtmarketplace/. I encourage everyone who has a product related to GWT to register it so it easier for folks like myself to see what is available and be able to comment on and rate these products. I would certainly appreciate if the GWT folks would link tohttp://gwtmarketplace.appspot.comtomakeit easier for people to see. Also, any feedback would certainly be appreciated. Thanks, Joe http://gwtmarketplace.appspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Add two new ClientBundle annotations: (issue714801)
Reviewers: robertvawter, Description: Add two new ClientBundle annotations: 1. @DoNotEmbed which allows a Resource to be designated as not embeddable 2. @MimeType(String) which allows a MIME Type to be specified for use in embedded resources Also allow MIME Types to contain double quotes as per RFC 4181, e.g. video/3gpp2; codecs=sevc, s263 Please review this at http://gwt-code-reviews.appspot.com/714801/show Affected files: M user/src/com/google/gwt/resources/client/ClientBundle.java M user/src/com/google/gwt/resources/ext/ResourceContext.java M user/src/com/google/gwt/resources/rebind/context/AbstractResourceContext.java M user/src/com/google/gwt/resources/rebind/context/InlineResourceContext.java M user/src/com/google/gwt/resources/rg/DataResourceGenerator.java M user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java M user/test/com/google/gwt/resources/ResourcesSuite.java A user/test/com/google/gwt/resources/client/ResourceDoNotEmbedTest.java A user/test/com/google/gwt/resources/client/ResourceMimeTypeTest.java M user/test/com/google/gwt/resources/rg/CssTestCase.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add two new ClientBundle annotations: (issue714801)
http://gwt-code-reviews.appspot.com/714801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8405 committed - Adds BinaryTypeBinding from JDT 3.4.2 in preparation for changes....
Revision: 8405 Author: to...@google.com Date: Thu Jul 22 05:27:33 2010 Log: Adds BinaryTypeBinding from JDT 3.4.2 in preparation for changes. Review by: sco...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8405 Added: /trunk/dev/core/src/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java === --- /dev/null +++ /trunk/dev/core/src/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java Thu Jul 22 05:27:33 2010 @@ -0,0 +1,1079 @@ +/*** + * Copyright (c) 2000, 2008 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + ***/ +package org.eclipse.jdt.internal.compiler.lookup; + +import java.util.ArrayList; + +import org.eclipse.jdt.core.compiler.CharOperation; +import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; +import org.eclipse.jdt.internal.compiler.env.*; +import org.eclipse.jdt.internal.compiler.impl.Constant; +import org.eclipse.jdt.internal.compiler.problem.AbortCompilation; +import org.eclipse.jdt.internal.compiler.util.SimpleLookupTable; + +/* +Not all fields defined by this type are initialized when it is created. +Some are initialized only when needed. + +Accessors have been provided for some public fields so all TypeBindings have the same API... +but access public fields directly whenever possible. +Non-public fields have accessors which should be used everywhere you expect the field to be initialized. + +null is NOT a valid value for a non-public field... it just means the field is not initialized. +*/ + +public class BinaryTypeBinding extends ReferenceBinding { + + // all of these fields are ONLY guaranteed to be initialized if accessed using their public accessor method + protected ReferenceBinding superclass; + protected ReferenceBinding enclosingType; + protected ReferenceBinding[] superInterfaces; + protected FieldBinding[] fields; + protected MethodBinding[] methods; + protected ReferenceBinding[] memberTypes; + protected TypeVariableBinding[] typeVariables; + + // For the link with the principle structure + protected LookupEnvironment environment; + + protected SimpleLookupTable storedAnnotations = null; // keys are this ReferenceBinding its fields and methods, value is an AnnotationHolder + +static Object convertMemberValue(Object binaryValue, LookupEnvironment env, char[][][] missingTypeNames) { + if (binaryValue == null) return null; + if (binaryValue instanceof Constant) + return binaryValue; + if (binaryValue instanceof ClassSignature) { + TypeBinding typeFromSignature = env.getTypeFromSignature(((ClassSignature) binaryValue).getTypeName(), 0, -1, false, null, missingTypeNames); + if (typeFromSignature.isBaseType()) { + return typeFromSignature; + } + return resolveType((ReferenceBinding) typeFromSignature, env, false); + } + if (binaryValue instanceof IBinaryAnnotation) + return createAnnotation((IBinaryAnnotation) binaryValue, env, missingTypeNames); + if (binaryValue instanceof EnumConstantSignature) { + EnumConstantSignature ref = (EnumConstantSignature) binaryValue; + ReferenceBinding enumType = (ReferenceBinding) env.getTypeFromSignature(ref.getTypeName(), 0, -1, false, null, missingTypeNames); + enumType = resolveType(enumType, env, false); + return enumType.getField(ref.getEnumConstantName(), false); + } + if (binaryValue instanceof Object[]) { + Object[] objects = (Object[]) binaryValue; + int length = objects.length; + if (length == 0) return objects; + Object[] values = new Object[length]; + for (int i = 0; i length; i++) + values[i] = convertMemberValue(objects[i], env, missingTypeNames); + return values; + } + + // should never reach here. + throw new IllegalStateException(); +} +static AnnotationBinding createAnnotation(IBinaryAnnotation annotationInfo, LookupEnvironment env, char[][][] missingTypeNames) { + IBinaryElementValuePair[] binaryPairs = annotationInfo.getElementValuePairs(); + int length = binaryPairs == null ? 0 : binaryPairs.length; + ElementValuePair[] pairs = length == 0 ? Binding.NO_ELEMENT_VALUE_PAIRS : new ElementValuePair[length]; + for (int i = 0; i length; i++) + pairs[i] = new
[gwt-contrib] [google-web-toolkit] r8406 committed - Fixing WindowImplIE.getQueryString to look for the first occurence of ...
Revision: 8406 Author: jlaba...@google.com Date: Thu Jul 22 12:01:10 2010 Log: Fixing WindowImplIE.getQueryString to look for the first occurence of a ? instead of the last. Similarly fixing WindowImplIE.getHash to look for the first occurence of # instead of the last. This makes IE consistent with the standards and other browsers. Review at http://gwt-code-reviews.appspot.com/709801 Review by: con...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8406 Modified: /trunk/user/src/com/google/gwt/user/client/impl/WindowImplIE.java === --- /trunk/user/src/com/google/gwt/user/client/impl/WindowImplIE.java Fri Oct 16 14:48:33 2009 +++ /trunk/user/src/com/google/gwt/user/client/impl/WindowImplIE.java Thu Jul 22 12:01:10 2010 @@ -59,7 +59,7 @@ @Override public native String getHash() /*-{ var href = $wnd.location.href; -var hashLoc = href.lastIndexOf(#); +var hashLoc = href.indexOf(#); return (hashLoc 0) ? href.substring(hashLoc) : ; }-*/; @@ -70,12 +70,12 @@ @Override public native String getQueryString() /*-{ var href = $wnd.location.href; -var hashLoc = href.lastIndexOf(#); +var hashLoc = href.indexOf(#); if (hashLoc = 0) { // strip off any hash first href = href.substring(0, hashLoc); } -var questionLoc = href.lastIndexOf(?); +var questionLoc = href.indexOf(?); return (questionLoc 0) ? href.substring(questionLoc) : ; }-*/; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds a class to log performance information in a format (issue707802)
On Fri, Jul 23, 2010 at 7:51 AM, zun...@google.com wrote: I agree that going back to static methods could save a little bit of typing, but nevertheless, it is a common pattern for a logging class (j.u.logging, log4j). Also, if it is keystrokes that bother you, you could save a lot of typing in the invocation with the following pattern: SpeedTracerLogging stl = SpeedTracerLogger.get(). stl.start(...); ... stl.end(...); That feels kind of cumbersome, since you already have to track the Event instance in order to end the right instance. - Go back to all static invocations and then have the test grab instances with new() or newInstance and use package protected methods with names that don't collide with start() and stop() like startImpl() stopImpl(). This doesn't feel right to me - it seems like the test is sneaking around under the covers of the API. It also guarantees a use of multple speedtracer loggers will require a major refactor. I'm actually most in favor of this approach, because the whole idea of speed tracer logging entails the idea of a singleton -- at least per thread. If we wanted to use multiple speed trace logs in the future, it seems almost certain to me that at least each thread would consistently use a single logger. Because of this idea of thread locality implicit in the API, that means we wouldn't need a major refactor. You could imagine: stl = SpeedTracerLogger.newLogger(outputFile); stl.setForThread(Thread.currentThread()); I might also argue that comparing this to j.u.logging or log4j is not the right comparison. Since this is for performance logging, a more apt comparison might be to the JProfiler APIhttp://resources.ej-technologies.com/jprofiler/help/doc/offline/javadoc/com/jprofiler/agent/Controller.html, which is a static API. Scott -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix external issue 5062 - DateTimeFormat#formatFractionalSeconds incorrect for date before 1970 ... (issue715801)
Reviewers: jat, Description: Fix external issue 5062 - DateTimeFormat#formatFractionalSeconds incorrect for date before 1970 with 0 fractionalSecond Please review this at http://gwt-code-reviews.appspot.com/715801/show Affected files: M user/src/com/google/gwt/i18n/client/DateTimeFormat.java M user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java Index: user/src/com/google/gwt/i18n/client/DateTimeFormat.java === --- user/src/com/google/gwt/i18n/client/DateTimeFormat.java (revision 8406) +++ user/src/com/google/gwt/i18n/client/DateTimeFormat.java (working copy) @@ -1254,6 +1254,9 @@ int value; if (time 0) { value = 1000 - (int) (-time % 1000); + if (value == 1000) { +value = 0; + } } else { value = (int) (time % 1000); } Index: user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java === --- user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java (revision 8406) +++ user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java (working copy) @@ -542,6 +542,9 @@ assertEquals(055, DateTimeFormat.getFormat(SSS).format(date, utc)); assertEquals(06, DateTimeFormat.getFormat(SS).format(date, utc)); assertEquals(1, DateTimeFormat.getFormat(S).format(date, utc)); + +date = new Date(midnight); +assertEquals(000, DateTimeFormat.getFormat(SSS).format(date, utc)); } public void testZeroPadYear() { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix external issue 5062 - DateTimeFormat#formatFractionalSeconds incorrect for date before 1970 ... (issue715801)
LGTM http://gwt-code-reviews.appspot.com/715801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Add ability to have more than one RequestFactory (issue653802)
Yes, that's a flat out bug. Would you mind filing a ticket against Roo, with component GWT? http://jira.springframework.org/secure/CreateIssue.jspa?pid=10340issuetype=1 On Thu, Jul 22, 2010 at 12:15 PM, pjulien pjul...@gmail.com wrote: I understand your point about EditorSupport but I still feel one issue was missed/dismissed in your reply. That is, the fact that we can't currently inherit records from other records right now because the getters are not re-generated in the leaf. Is this something that we can currently consider a bug? On Jul 22, 2:24 pm, Ray Ryan rj...@google.com wrote: Please don't get too attached to EditorSupport. It was a last minute hack without a lot of thought behind it. A ground-up rewrite is in progress. We'll share details soon. RequestFactory too is undergoing surgery, perhttps:// wave.google.com/wave/waveref/googlewave.com/w+WU4iAICkI Not that I want to discourage people from trying this out and giving us feedback! But please understand when we pull the rug out from under you. On Thu, Jul 22, 2010 at 11:18 AM, Pascal Patry i...@invalidip.com wrote: On Thursday, July 22, 2010 02:01:53 pm Ray Ryan wrote: Thanks for the patch! We just noticed this ourselves, and a broader patch should soon go in that includes this fix. Great.. are we going to be able to extend a RequestFactory with this patch? I described the issue there: http://code.google.com/p/google-web-toolkit/issues/detail?id=5134 We also have the same issues with the Record. We have one common Record for basic functions that we inherit from others. The problem here is that the Impl won't implement getters for the inherited types. http://code.google.com/p/google-web-toolkit/issues/detail?id=5136 We can always work around this by using get(obj.property) instead of the getters, but EditorSupport really try to use the getters to set the values in the UI. On Thu, Jul 22, 2010 at 7:59 AM, i...@invalidip.com wrote: Reviewers: , Description: When more than one RequestFactory is created, we are getting compiling errors because some of the records are not in the same package than the actual request factory. To fix this, we simply add all the imports to the RequestFactoryGenerator in order to know where to find these records. Please review this athttp:// gwt-code-reviews.appspot.com/653802/show Affected files: user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.ja va Index: user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.jav a === --- user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.jav a (revision 8401) +++ user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.jav a (working copy) @@ -315,6 +315,12 @@ f.addImport(interfaceType.getQualifiedSourceName()); f.addImport(Record.class.getName()); f.addImport(RecordSchema.class.getName()); + +for (JClassType publicRecordType : generatedRecordTypes) { +f.addImport(publicRecordType.getPackage().getName() + . + publicRecordType.getName()); +f.addImport(publicRecordType.getPackage().getName() + . + publicRecordType.getName() + Impl); +} + f.addImplementedInterface(interfaceType.getName()); f.addImplementedInterface(interfaceType.getName()); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Phasing in a new, unified linker
SGTM as far as process. Is the new linker designed to curtail extension, or to sanely encourage it? The existing primary linkers ended up getting extended in brittle ways. On Mon, Jul 26, 2010 at 12:06 PM, Lex Spoon sp...@google.com wrote: Joel, Miguel, GWTers, I am trying to phase in a new linker as the default GWT linker, and I could use some feedback on how that is accomplished. My first thought was to modify the cross-site linker in place, as was started by this patch: http://gwt-code-reviews.appspot.com/674802/show After further thought, though, the changes in that patch are simply not backward compatible. The most fundamental problem is that there are currently linkers extending the XSLinker class, and any major change to XSLinker will break these other ones. Additionally, the cross-site linker has $wnd==window, but that's no longer true in the unified linker. Both of these problems won't affect most apps, but an indeterminate few will be broken by simply committing the above patch. Here's an alternate phase-in plan that avoids the above two problems: 1. Make a new linker class and new linker name, so as not to disturb any code inheriting from our existing linkers. Commit the above patch under the new names. Anyone who can live without dev mode support can use it immediately. 2. Add development mode support to the new linker. 3. Redirect the std linker to the new one. We could add a deprecated iframe name for the iframe linker for anyone who desperately needs it. Note that people using the std linker must already be using $wnd in the necessary places. 4. Deprecate the iframe and xs linkers, and after a year or two remove them. Users of the cross-site linker will need to make sure they use $wnd in the right places before they change over. A benefit of this approach is that most apps use the std linker and will simply pick up the improvements without needing any changes. Updating people currently on the cross-site linker is trickier, but I don't see any way to get around the $wnd/window problem. Their code simply needs to be updated. -Lex -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8407 committed - Make the deRPC server code compatible with servlet filters that alter ...
Revision: 8407 Author: b...@google.com Date: Thu Jul 22 12:08:40 2010 Log: Make the deRPC server code compatible with servlet filters that alter the HTTP response after the RPC payload is created. Patch by: bobv Review by: tms http://code.google.com/p/google-web-toolkit/source/detail?r=8407 Modified: /trunk/user/src/com/google/gwt/rpc/server/RpcServlet.java /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java === --- /trunk/user/src/com/google/gwt/rpc/server/RpcServlet.java Wed Jul 21 07:51:31 2010 +++ /trunk/user/src/com/google/gwt/rpc/server/RpcServlet.java Thu Jul 22 12:08:40 2010 @@ -218,7 +218,6 @@ // Invoke the core dispatching logic, which returns the serialized result. processCall(clientOracle, requestPayload, out); -out.close(); if (DUMP_PAYLOAD) { byte[] bytes = ((ByteArrayOutputStream) out).toByteArray(); === --- /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java Mon Jun 7 09:38:44 2010 +++ /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java Thu Jul 22 12:08:40 2010 @@ -887,14 +887,6 @@ */ @Override public void finish() throws SerializationException { -if (finished) { - return; -} -try { - out.flush(); -} catch (IOException e) { - throw new SerializationException(Could not flush stream, e); -} finished = true; } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add basic logging to Scaffold app (issue651803)
LGTM with one nit http://gwt-code-reviews.appspot.com/651803/diff/3001/4001 File bikeshed/src/com/google/gwt/sample/expenses/gwt/Scaffold.gwt.xml (right): http://gwt-code-reviews.appspot.com/651803/diff/3001/4001#newcode28 bikeshed/src/com/google/gwt/sample/expenses/gwt/Scaffold.gwt.xml:28: than the system handler, so only that one is enabled for now -- Are all of these things really enabled by default? Not that I'm against including them here, they're great documentation, but I'm curious. http://gwt-code-reviews.appspot.com/651803/diff/3001/4002 File user/src/com/google/gwt/requestfactory/client/RequestFactoryLogHandler.java (right): http://gwt-code-reviews.appspot.com/651803/diff/3001/4002#newcode59 user/src/com/google/gwt/requestfactory/client/RequestFactoryLogHandler.java:59: setLevel(Level.INFO); How about providing an alternate constructor that accepts a Level argument, and make this comment its javadoc? http://gwt-code-reviews.appspot.com/651803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add basic logging to Scaffold app (issue651803)
LGTM http://gwt-code-reviews.appspot.com/651803/diff/3001/4001 File bikeshed/src/com/google/gwt/sample/expenses/gwt/Scaffold.gwt.xml (right): http://gwt-code-reviews.appspot.com/651803/diff/3001/4001#newcode28 bikeshed/src/com/google/gwt/sample/expenses/gwt/Scaffold.gwt.xml:28: than the system handler, so only that one is enabled for now -- Are all of these things really enabled by default? Not that I'm against including them here, they're great documentation, but I'm curious. http://gwt-code-reviews.appspot.com/651803/diff/3001/4002 File user/src/com/google/gwt/requestfactory/client/RequestFactoryLogHandler.java (right): http://gwt-code-reviews.appspot.com/651803/diff/3001/4002#newcode59 user/src/com/google/gwt/requestfactory/client/RequestFactoryLogHandler.java:59: setLevel(Level.INFO); How about providing an alternate constructor that accepts a Level argument, and make this comment its javadoc? http://gwt-code-reviews.appspot.com/651803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8409 committed - Rolls back r8394, allow RPC for unmodifiable collections, due...
Revision: 8409 Author: rj...@google.com Date: Fri Jul 23 07:41:23 2010 Log: Rolls back r8394, allow RPC for unmodifiable collections, due to increase in client size of unwitting clients, especially those that return special empty and singleton collections. http://code.google.com/p/google-web-toolkit/source/detail?r=8409 Modified: /trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java /trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/TreeSet_CustomFieldSerializer.java /trunk/user/super/com/google/gwt/emul/java/util/Collections.java /trunk/user/test/com/google/gwt/emultest/java/util/CollectionsTest.java /trunk/user/test/com/google/gwt/user/client/rpc/CollectionsTest.java /trunk/user/test/com/google/gwt/user/client/rpc/CollectionsTestService.java /trunk/user/test/com/google/gwt/user/client/rpc/CollectionsTestServiceAsync.java /trunk/user/test/com/google/gwt/user/client/rpc/TestSetFactory.java /trunk/user/test/com/google/gwt/user/client/rpc/TestSetValidator.java /trunk/user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java === --- /trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java Tue Jul 20 05:31:21 2010 +++ /trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java Fri Jul 23 07:41:23 2010 @@ -19,18 +19,9 @@ import com.google.gwt.user.client.rpc.SerializationStreamReader; import com.google.gwt.user.client.rpc.SerializationStreamWriter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; -import java.util.SortedMap; -import java.util.SortedSet; -import java.util.TreeMap; -import java.util.TreeSet; /** * Dummy class for nesting the custom serializer. @@ -131,210 +122,4 @@ streamWriter.writeObject(instance.get(0)); } } - - /** - * Custom field serializer for {...@link java.util.Collections$SingletonMap}. - */ - public static final class SingletonMap_CustomFieldSerializer { - -@SuppressWarnings({unused, unchecked}) -public static void deserialize(SerializationStreamReader streamReader, -Map instance) throws SerializationException { -} - -@SuppressWarnings(unchecked) -public static Map instantiate(SerializationStreamReader streamReader) -throws SerializationException { - Object key = streamReader.readObject(); - Object value = streamReader.readObject(); - return java.util.Collections.singletonMap(key, value); -} - -@SuppressWarnings(unchecked) -public static void serialize(SerializationStreamWriter streamWriter, -Map instance) throws SerializationException { - Map.Entry entry = (Map.Entry) instance.entrySet().iterator().next(); - streamWriter.writeObject(entry.getKey()); - streamWriter.writeObject(entry.getValue()); -} - } - - /** - * Custom field serializer for {...@link java.util.Collections$UnmodifiableCollection}. - */ - public static final class UnmodifiableCollection_CustomFieldSerializer { - -@SuppressWarnings({unused, unchecked}) -public static void deserialize(SerializationStreamReader streamReader, -Collection instance) throws SerializationException { -} - -@SuppressWarnings(unchecked) -public static Collection instantiate(SerializationStreamReader streamReader) -throws SerializationException { - Collection collection = new ArrayList(); - Collection_CustomFieldSerializerBase.deserialize(streamReader, collection); - return java.util.Collections.unmodifiableCollection(collection); -} - -@SuppressWarnings(unchecked) -public static void serialize(SerializationStreamWriter streamWriter, -Collection instance) throws SerializationException { - Collection_CustomFieldSerializerBase.serialize(streamWriter, instance); -} - } - - /** - * Custom field serializer for {...@link java.util.Collections$UnmodifiableList}. - */ - public static final class UnmodifiableList_CustomFieldSerializer { - -@SuppressWarnings({unused, unchecked}) -public static void deserialize(SerializationStreamReader streamReader, -List instance) throws SerializationException { -} - -@SuppressWarnings(unchecked) -public static List instantiate(SerializationStreamReader streamReader) -throws SerializationException { - ArrayList list = new ArrayList(); - Collection_CustomFieldSerializerBase.deserialize(streamReader, list); - return java.util.Collections.unmodifiableList(list); -} - -@SuppressWarnings(unchecked) -public static void serialize(SerializationStreamWriter streamWriter, -List instance) throws SerializationException { - Collection_CustomFieldSerializerBase.serialize(streamWriter, instance); -} - } - -
[gwt-contrib] [google-web-toolkit] r8410 committed - Modifies the cross-site linker to put its code in an iframe...
Revision: 8410 Author: sp...@google.com Date: Fri Jul 23 09:44:56 2010 Log: Modifies the cross-site linker to put its code in an iframe rather than a wrapper function. Review at http://gwt-code-reviews.appspot.com/674802 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8410 Deleted: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/HandleCrossFragmentReferences.java Modified: /trunk/dev/core/src/com/google/gwt/core/linker/XSLinker.java /trunk/dev/core/src/com/google/gwt/core/linker/XSTemplate.js /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java /trunk/user/src/com/google/gwt/core/CompilerParameters.gwt.xml /trunk/user/src/com/google/gwt/core/XSLinker.gwt.xml === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/HandleCrossFragmentReferences.java Mon Mar 29 05:13:55 2010 +++ /dev/null @@ -1,306 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the License); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ -package com.google.gwt.dev.jjs.impl; - -import com.google.gwt.core.ext.BadPropertyValueException; -import com.google.gwt.core.ext.PropertyOracle; -import com.google.gwt.core.ext.TreeLogger; -import com.google.gwt.dev.jjs.SourceInfo; -import com.google.gwt.dev.js.ast.JsBinaryOperation; -import com.google.gwt.dev.js.ast.JsBinaryOperator; -import com.google.gwt.dev.js.ast.JsContext; -import com.google.gwt.dev.js.ast.JsExpression; -import com.google.gwt.dev.js.ast.JsFunction; -import com.google.gwt.dev.js.ast.JsModVisitor; -import com.google.gwt.dev.js.ast.JsName; -import com.google.gwt.dev.js.ast.JsNameRef; -import com.google.gwt.dev.js.ast.JsObjectLiteral; -import com.google.gwt.dev.js.ast.JsProgram; -import com.google.gwt.dev.js.ast.JsStatement; -import com.google.gwt.dev.js.ast.JsVars; -import com.google.gwt.dev.js.ast.JsVisitor; -import com.google.gwt.dev.js.ast.JsVars.JsVar; - -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.Map; -import java.util.Set; -import java.util.Map.Entry; - -/** - * Rewrite JavaScript to better handle references from one code fragment to - * another. For any function defined off the initial download and accessed from - * a different island than the one it's defined on, predefine a variable in the - * initial download to hold its definition. - */ -public class HandleCrossFragmentReferences { - /** - * Find out which islands define and use each named function or variable. - * This visitor is not smart about which definitions and uses matter. It - * blindly records all of them. - */ - private class FindNameReferences extends JsVisitor { -MapJsName, SetInteger islandsDefining = new LinkedHashMapJsName, SetInteger(); -MapJsName, SetInteger islandsUsing = new LinkedHashMapJsName, SetInteger(); -private int currentIsland; - -@Override -public void endVisit(JsFunction x, JsContextJsExpression ctx) { - JsName name = x.getName(); - if (name != null) { -definitionSeen(name); - } -} - -@Override -public void endVisit(JsNameRef x, JsContextJsExpression ctx) { - if (x.getQualifier() == null) { -JsName name = x.getName(); -if (name != null) { - referenceSeen(name); -} - } -} - -@Override -public void endVisit(JsVars x, JsContextJsStatement ctx) { - for (JsVar var : x) { -JsName name = var.getName(); -if (name != null) { - definitionSeen(name); -} - } -} - -@Override -public boolean visit(JsProgram x, JsContextJsProgram ctx) { - for (int i = 0; i x.getFragmentCount(); i++) { -currentIsland = i; -accept(x.getFragmentBlock(i)); - } - - return false; -} - -private void definitionSeen(JsName name) { - /* - * Support multiple definitions, because local variables can reuse the - * same name. - */ - SetInteger defs = islandsDefining.get(name); - if (defs == null) { -defs = new LinkedHashSetInteger(); -islandsDefining.put(name, defs); - } - defs.add(currentIsland); -} - -private void referenceSeen(JsName name) { - SetInteger refs = islandsUsing.get(name); - if (refs == null) { -refs = new HashSetInteger(); -islandsUsing.put(name, refs); - } - refs.add(currentIsland); -}
Re: [gwt-contrib] Re: Using ValueStore without RequestFactory
Well needless to say, I'm looking forward to it. :-) On Jul 26, 2010, at 12:29 PM, Ray Ryan rj...@google.com wrote: Cell Tables are already all set for you, they're completely independent of RequestFactory et al. We're in the midst of a rewrite of EditorSupport that will make it independent of ValueStore et al, or at least easily severable. In parallel, we're working to pull ValueStore and Record out of the public api. Thanks for the $0.02, I couldn't agree more. rjrjr On Sat, Jul 24, 2010 at 7:28 PM, Jarrod Carlson jarrod.carl...@gmail.com wrote: Maybe I should rephrase my question. I have a REST service in place that serves JSON... you know, GET, PUT, POST... the lot. So I am not currently using any GWT RPC or RequestFactoryServlet mechanisms, nor do I have JPA-annotated beans in my project. The only thing I do have is a suite of JavaScriptObjects that model the responses from the server. I would like my UI views to be able to take advantage of new features like CellTables and EditorSupport - the goal being a reduction of boilerplate code in list-style views and better validation and form-checking in edit views. At a high level, how much work do I have cut out for myself to use these features? Since my server isn't using RequestFactoryServlet, it looks like I get no benefit from the RequestFactoryGenerator. So in addition to writing my own DeltaValueStore and Record implementations (since I can't use the provided or generated ones) I would also have to write my own RequestFactory implementation to take advantage of the AbstractRecordEditActivity. That seems like an awfully long way to go if my server isn't GWT-friendly. Just my $0.02. On Sat, Jul 24, 2010 at 2:55 PM, Jarrod Carlson jarrod.carl...@gmail.com wrote: I think it goes a bit deeper then that. EditorSupport depends on DeltaValueStore, which depends on Record. While Record is merely an interface, its provided implementation, RecordImpl, depends on RecordJsoImpl, all three of which imply that my Record (however it is implemented) has both id and version properties. I am pulling JSON data from an existing REST service, and neither of those properties exist. (my service uses uri as the identifier and does not currently support a version) So what I'm seeing is a potentially long, uphill battle to get any use out of EditorSupport. Meaning I will need to write my own DeltaValueStore and Record implementations. Am I wrong? Also, on the topic of Records, the provided implementation doesn't support nested properties on the native JSO. Take the following JSON from the server as an example: { uri: /users/bobjones, details: { firstName: Bob, lastName: Jones, email: b...@jones.com } } Since RecordJsoImpl uses the Property.name as a key on the underlying JavaScriptObject, there's no way to have a property on the UserRecord here that refers to the firstName property. I could create a UserDetailsRecord and model that as a Property of the UserRecord, but the details are not an independent object - they don't have an id or a version either. Is my use case something that's intended to be supported? On Wed, Jul 21, 2010 at 12:34 PM, Ray Ryan rj...@google.com wrote: It is definitely intended that the Editors (data bound widgets) will not require the RequestFactory. On Wed, Jul 21, 2010 at 6:38 AM, Thomas Broyer t.bro...@gmail.com wrote: On 20 juil, 03:15, jarrod jarrod.carl...@gmail.com wrote: I've spent some time looking through the new RequestFactory and ValueStore packages in GWT 2.1-M2. I am excited to see data binding and validation creeping into the core GWT code. However, I have a bit of a concern that the current implementation is too specific to JPA- based applications. Will it be possible to take advantage of the upcoming data-aware widgets without using RequestFactory? Which data-aware widgets are you thinking about? If it's the Cell-based widgets, then yes, absolutely; and without ValueStore either. If you're talking about EditorSupport, then it looks to me there's no dependency over RequestFactory either, only on DeltaValueStore, which is an interface so you're not bound to a specific implementation. AbstractRecordEditActivity has a dependency on RequestFactory, but it's just a helper base class; you can use EditorSupport within any view that implements RecordEditView, independently of AbstractRecordEditActivity. Last, but not least, AbstractRecordEditActivity has a dependency on RequestFactory only to retrieve a ValueStore/DeltaValueStore and make a syncRequest in the end in saveClicked; and again, RequestFactory is just an interface, so you could provide your own implementation and you could then use AbstractRecordEditFactory if you liked. Sure it'd be a bit of work, but it seems to me it's possible. --
Re: [gwt-contrib] Phasing in a new, unified linker
[+matt, who's one of the few people I know outside of Google creating custom linkers] I'm 100% on board with this as well. These things weren't all that carefully designed for extension from the beginning, so it's going to be difficult to make significant changes to them without breaking existing linker extensions. Having one true linker, except for fundamentally different cases (like Chrome and Firefox extensions) would be hugely convenient. Le 26 juillet 2010 12:37, Scott Blum sco...@google.com a écrit : SGTM as far as process. Is the new linker designed to curtail extension, or to sanely encourage it? The existing primary linkers ended up getting extended in brittle ways. On Mon, Jul 26, 2010 at 12:06 PM, Lex Spoon sp...@google.com wrote: Joel, Miguel, GWTers, I am trying to phase in a new linker as the default GWT linker, and I could use some feedback on how that is accomplished. My first thought was to modify the cross-site linker in place, as was started by this patch: http://gwt-code-reviews.appspot.com/674802/show After further thought, though, the changes in that patch are simply not backward compatible. The most fundamental problem is that there are currently linkers extending the XSLinker class, and any major change to XSLinker will break these other ones. Additionally, the cross-site linker has $wnd==window, but that's no longer true in the unified linker. Both of these problems won't affect most apps, but an indeterminate few will be broken by simply committing the above patch. Here's an alternate phase-in plan that avoids the above two problems: 1. Make a new linker class and new linker name, so as not to disturb any code inheriting from our existing linkers. Commit the above patch under the new names. Anyone who can live without dev mode support can use it immediately. 2. Add development mode support to the new linker. 3. Redirect the std linker to the new one. We could add a deprecated iframe name for the iframe linker for anyone who desperately needs it. Note that people using the std linker must already be using $wnd in the necessary places. 4. Deprecate the iframe and xs linkers, and after a year or two remove them. Users of the cross-site linker will need to make sure they use $wnd in the right places before they change over. A benefit of this approach is that most apps use the std linker and will simply pick up the improvements without needing any changes. Updating people currently on the cross-site linker is trickier, but I don't see any way to get around the $wnd/window problem. Their code simply needs to be updated. -Lex -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8411 committed - Add support for authentication...
Revision: 8411 Author: unn...@google.com Date: Fri Jul 23 10:49:57 2010 Log: Add support for authentication Review at http://gwt-code-reviews.appspot.com/706802 Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8411 Added: /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/UserInformationRecord.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/UserInformationRecordChanged.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/UserInformationRequest.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java /trunk/user/src/com/google/gwt/requestfactory/client/AuthenticationFailureHandler.java /trunk/user/src/com/google/gwt/requestfactory/client/LoginWidget.java /trunk/user/src/com/google/gwt/requestfactory/client/LoginWidget.ui.xml /trunk/user/src/com/google/gwt/requestfactory/server/UserInformationImpl.java /trunk/user/src/com/google/gwt/requestfactory/shared/UserInformation.java Modified: /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ScaffoldShell.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ScaffoldShell.ui.xml /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ExpensesRequestFactory.java /trunk/bikeshed/war/WEB-INF/web.xml /trunk/user/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java /trunk/user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java /trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java /trunk/user/src/com/google/gwt/requestfactory/shared/RequestEvent.java === --- /dev/null +++ /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/UserInformationRecord.java Fri Jul 23 10:49:57 2010 @@ -0,0 +1,45 @@ +/* + * 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.gwt.request; + +import com.google.gwt.requestfactory.shared.DataTransferObject; +import com.google.gwt.requestfactory.shared.UserInformation; +import com.google.gwt.sample.expenses.server.domain.GaeUserInformation; +import com.google.gwt.valuestore.shared.Property; +import com.google.gwt.valuestore.shared.Record; + +/** + * API Generated DTO interface based on + * {...@link com.google.gwt.sample.expenses.server.domain.GaeUserInformation}. + * p + * IRL this class will be generated by a JPA-savvy tool run before compilation. + */ +...@datatransferobject(GaeUserInformation.class) +public interface UserInformationRecord extends Record, UserInformation { + PropertyString email = +new PropertyString(email, Email, String.class); + PropertyString loginUrl = +new PropertyString(loginUrl, LoginUrl, String.class); + PropertyString logoutUrl = +new PropertyString(logoutUrl, LogoutUrl, String.class); + PropertyString name = +new PropertyString(name, Name, String.class); + + // Most of the actual getXxx calls come from the UserInformationProvider + // interface + +} === --- /dev/null +++ /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/UserInformationRecordChanged.java Fri Jul 23 10:49:57 2010 @@ -0,0 +1,55 @@ +/* + * 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.gwt.request; + +import com.google.gwt.event.shared.EventHandler; +import com.google.gwt.event.shared.GwtEvent; +import com.google.gwt.valuestore.shared.RecordChangedEvent; +import com.google.gwt.valuestore.shared.WriteOperation; + +/** + * API Generated event posted when the values of a {...@link UserInformationRecord} + * change. + * p + * IRL this class will be generated by a JPA-savvy tool run before compilation. + */ +public
[gwt-contrib] [google-web-toolkit] r8413 committed - Rolling back the cross-site linker using an iframe. It's not clear thi...
Revision: 8413 Author: sp...@google.com Date: Fri Jul 23 11:50:52 2010 Log: Rolling back the cross-site linker using an iframe. It's not clear this is a safe change for all apps. Review by: robertvaw...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8413 Added: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/HandleCrossFragmentReferences.java Modified: /trunk/dev/core/src/com/google/gwt/core/linker/XSLinker.java /trunk/dev/core/src/com/google/gwt/core/linker/XSTemplate.js /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java /trunk/user/src/com/google/gwt/core/CompilerParameters.gwt.xml /trunk/user/src/com/google/gwt/core/XSLinker.gwt.xml === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/HandleCrossFragmentReferences.java Fri Jul 23 11:50:52 2010 @@ -0,0 +1,306 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev.jjs.impl; + +import com.google.gwt.core.ext.BadPropertyValueException; +import com.google.gwt.core.ext.PropertyOracle; +import com.google.gwt.core.ext.TreeLogger; +import com.google.gwt.dev.jjs.SourceInfo; +import com.google.gwt.dev.js.ast.JsBinaryOperation; +import com.google.gwt.dev.js.ast.JsBinaryOperator; +import com.google.gwt.dev.js.ast.JsContext; +import com.google.gwt.dev.js.ast.JsExpression; +import com.google.gwt.dev.js.ast.JsFunction; +import com.google.gwt.dev.js.ast.JsModVisitor; +import com.google.gwt.dev.js.ast.JsName; +import com.google.gwt.dev.js.ast.JsNameRef; +import com.google.gwt.dev.js.ast.JsObjectLiteral; +import com.google.gwt.dev.js.ast.JsProgram; +import com.google.gwt.dev.js.ast.JsStatement; +import com.google.gwt.dev.js.ast.JsVars; +import com.google.gwt.dev.js.ast.JsVisitor; +import com.google.gwt.dev.js.ast.JsVars.JsVar; + +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.Map; +import java.util.Set; +import java.util.Map.Entry; + +/** + * Rewrite JavaScript to better handle references from one code fragment to + * another. For any function defined off the initial download and accessed from + * a different island than the one it's defined on, predefine a variable in the + * initial download to hold its definition. + */ +public class HandleCrossFragmentReferences { + /** + * Find out which islands define and use each named function or variable. + * This visitor is not smart about which definitions and uses matter. It + * blindly records all of them. + */ + private class FindNameReferences extends JsVisitor { +MapJsName, SetInteger islandsDefining = new LinkedHashMapJsName, SetInteger(); +MapJsName, SetInteger islandsUsing = new LinkedHashMapJsName, SetInteger(); +private int currentIsland; + +@Override +public void endVisit(JsFunction x, JsContextJsExpression ctx) { + JsName name = x.getName(); + if (name != null) { +definitionSeen(name); + } +} + +@Override +public void endVisit(JsNameRef x, JsContextJsExpression ctx) { + if (x.getQualifier() == null) { +JsName name = x.getName(); +if (name != null) { + referenceSeen(name); +} + } +} + +@Override +public void endVisit(JsVars x, JsContextJsStatement ctx) { + for (JsVar var : x) { +JsName name = var.getName(); +if (name != null) { + definitionSeen(name); +} + } +} + +@Override +public boolean visit(JsProgram x, JsContextJsProgram ctx) { + for (int i = 0; i x.getFragmentCount(); i++) { +currentIsland = i; +accept(x.getFragmentBlock(i)); + } + + return false; +} + +private void definitionSeen(JsName name) { + /* + * Support multiple definitions, because local variables can reuse the + * same name. + */ + SetInteger defs = islandsDefining.get(name); + if (defs == null) { +defs = new LinkedHashSetInteger(); +islandsDefining.put(name, defs); + } + defs.add(currentIsland); +} + +private void referenceSeen(JsName name) { + SetInteger refs = islandsUsing.get(name); + if (refs == null) { +refs = new HashSetInteger(); +islandsUsing.put(name, refs); + } + refs.add(currentIsland); +} + } + + /** + * Rewrite var
[gwt-contrib] [google-web-toolkit] r8415 committed - Fix external issue 5062 - DateTimeFormat#formatFractionalSeconds incor...
Revision: 8415 Author: gwt.mirror...@gmail.com Date: Mon Jul 26 11:12:39 2010 Log: Fix external issue 5062 - DateTimeFormat#formatFractionalSeconds incorrect for date before 1970 with 0 fractionalSecond Review at http://gwt-code-reviews.appspot.com/715801 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8415 Modified: /trunk/user/src/com/google/gwt/i18n/client/DateTimeFormat.java /trunk/user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java === --- /trunk/user/src/com/google/gwt/i18n/client/DateTimeFormat.java Fri Jun 25 07:49:33 2010 +++ /trunk/user/src/com/google/gwt/i18n/client/DateTimeFormat.java Mon Jul 26 11:12:39 2010 @@ -1254,6 +1254,9 @@ int value; if (time 0) { value = 1000 - (int) (-time % 1000); + if (value == 1000) { +value = 0; + } } else { value = (int) (time % 1000); } === --- /trunk/user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java Fri Jun 25 07:49:33 2010 +++ /trunk/user/test/com/google/gwt/i18n/client/DateTimeFormat_en_Test.java Mon Jul 26 11:12:39 2010 @@ -542,6 +542,9 @@ assertEquals(055, DateTimeFormat.getFormat(SSS).format(date, utc)); assertEquals(06, DateTimeFormat.getFormat(SS).format(date, utc)); assertEquals(1, DateTimeFormat.getFormat(S).format(date, utc)); + +date = new Date(midnight); +assertEquals(000, DateTimeFormat.getFormat(SSS).format(date, utc)); } public void testZeroPadYear() { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updated javadoc for Window#setStatus() (issue712801)
LGTM with one nit We don't update the copright date - it stays at the earliest year the file was opened, so in this case, it should stay 2008. On 2010/07/25 17:53:28, fredsa wrote: http://gwt-code-reviews.appspot.com/712801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add some missing ASM classes (issue699802)
Reviewers: scottb, Description: Add some missing ASM classes Review by: sco...@google.com Please review this at http://gwt-code-reviews.appspot.com/699802/show Affected files: A dev/core/src/com/google/gwt/dev/asm/commons/JSRInlinerAdapter.java A dev/core/src/com/google/gwt/dev/asm/tree/AbstractInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/AnnotationNode.java A dev/core/src/com/google/gwt/dev/asm/tree/ClassNode.java A dev/core/src/com/google/gwt/dev/asm/tree/FieldInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/FieldNode.java A dev/core/src/com/google/gwt/dev/asm/tree/FrameNode.java A dev/core/src/com/google/gwt/dev/asm/tree/IincInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/InnerClassNode.java A dev/core/src/com/google/gwt/dev/asm/tree/InsnList.java A dev/core/src/com/google/gwt/dev/asm/tree/InsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/IntInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/JumpInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/LabelNode.java A dev/core/src/com/google/gwt/dev/asm/tree/LdcInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/LineNumberNode.java A dev/core/src/com/google/gwt/dev/asm/tree/LocalVariableNode.java A dev/core/src/com/google/gwt/dev/asm/tree/LookupSwitchInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/MemberNode.java A dev/core/src/com/google/gwt/dev/asm/tree/MethodInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/MethodNode.java A dev/core/src/com/google/gwt/dev/asm/tree/MultiANewArrayInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/TableSwitchInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/TryCatchBlockNode.java A dev/core/src/com/google/gwt/dev/asm/tree/TypeInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/VarInsnNode.java A dev/core/src/com/google/gwt/dev/asm/tree/package.html -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixes a bug in the finally handling of doExecuteCommands which unilaterally squashes exceptions.... (issue699803)
Reviewers: robertvawter, mmendez, Description: Fixes a bug in the finally handling of doExecuteCommands which unilaterally squashes exceptions. (Early returns from a finally block via return statements or exceptions override pending exceptions). Please review this at http://gwt-code-reviews.appspot.com/699803/show Affected files: M user/src/com/google/gwt/user/client/CommandExecutor.java Index: user/src/com/google/gwt/user/client/CommandExecutor.java === --- user/src/com/google/gwt/user/client/CommandExecutor.java(revision 8400) +++ user/src/com/google/gwt/user/client/CommandExecutor.java(working copy) @@ -315,16 +315,10 @@ } finally { wasCanceled = iterator.wasRemoved(); - if (wasCanceled) { -/* - * The iterator may have already had its remove method called, if it - * has, then we need to exit without updating any state - */ -return; - } - - if (removeCommand) { -iterator.remove(); + if (!wasCanceled) { +if (removeCommand) { + iterator.remove(); +} } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Patch from Gustav Trede (gustav.tr...@gmail.com) (issue716801)
Reviewers: Dan Rice, Description: Patch from Gustav Trede (gustav.tr...@gmail.com) Improve concurrency handling in server-side RPC Please review this at http://gwt-code-reviews.appspot.com/716801/show Affected files: M dev/core/src/com/google/gwt/dev/util/HttpHeaders.java M user/src/com/google/gwt/rpc/server/RPC.java M user/src/com/google/gwt/rpc/server/RpcServlet.java M user/src/com/google/gwt/user/server/rpc/AbstractRemoteServiceServlet.java M user/src/com/google/gwt/user/server/rpc/RPC.java M user/src/com/google/gwt/user/server/rpc/RemoteServiceServlet.java A user/src/com/google/gwt/user/server/rpc/impl/ConcurrentReferenceHashMap.java M user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java M user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java M user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add basic logging to Scaffold app (issue651803)
http://gwt-code-reviews.appspot.com/651803/diff/3001/4001 File bikeshed/src/com/google/gwt/sample/expenses/gwt/Scaffold.gwt.xml (right): http://gwt-code-reviews.appspot.com/651803/diff/3001/4001#newcode28 bikeshed/src/com/google/gwt/sample/expenses/gwt/Scaffold.gwt.xml:28: than the system handler, so only that one is enabled for now -- On 2010/07/26 16:49:24, Ray Ryan wrote: Are all of these things really enabled by default? Not that I'm against including them here, they're great documentation, but I'm curious. simpleRemoteHandler and hasWidgetsHandler (the one ppl use to log to their own panel rather than the popup panel) are not on by default. However console, devMode, firebug and system and popup are on by default. In reality, console and firebug are essentially siblings - one works for firebug and the other works for things like firebug-lite, and I think Safari's JS debugging console. So - by default we log to stderr, DevMode, JsDebuggingConsoles (firebug + friends) and the super annoying popup. I think enough people use the first 3 to justify logging to all of them. For the popup, we've left in on by default so that if someone turns on logging, they definitely know it, and hopefully need to learn some absolute basics about configuring logging in order to turn it off (since not understanding logging configuration at all, or enabling it accidentally, is actually kind of bad) http://gwt-code-reviews.appspot.com/651803/diff/3001/4002 File user/src/com/google/gwt/requestfactory/client/RequestFactoryLogHandler.java (right): http://gwt-code-reviews.appspot.com/651803/diff/3001/4002#newcode59 user/src/com/google/gwt/requestfactory/client/RequestFactoryLogHandler.java:59: setLevel(Level.INFO); On 2010/07/26 16:49:24, Ray Ryan wrote: How about providing an alternate constructor that accepts a Level argument, and make this comment its javadoc? Done. http://gwt-code-reviews.appspot.com/651803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add some missing ASM classes (issue699802)
LGTM. Did we ever figure out why we're bundling this in as source instead of using the jars in tools? http://gwt-code-reviews.appspot.com/699802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add some missing ASM classes (issue699802)
No, I didn't investigate. Pretty sure this predates our use of jarjar though, so it may have had something to do with that. On Mon, Jul 26, 2010 at 4:38 PM, sco...@google.com wrote: LGTM. Did we ever figure out why we're bundling this in as source instead of using the jars in tools? http://gwt-code-reviews.appspot.com/699802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add basic logging to Scaffold app (issue651803)
http://gwt-code-reviews.appspot.com/651803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add basic logging to Scaffold app (issue651803)
LGTM http://gwt-code-reviews.appspot.com/651803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8416 committed - Fixes a bug in the finally handling of doExecuteCommands which unilate...
Revision: 8416 Author: to...@google.com Date: Mon Jul 26 13:13:54 2010 Log: Fixes a bug in the finally handling of doExecuteCommands which unilaterally squashes exceptions. (Early returns from a finally block via return statements or exceptions override pending exceptions). Review at http://gwt-code-reviews.appspot.com/699803 Review by: robertvaw...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8416 Modified: /trunk/user/src/com/google/gwt/user/client/CommandExecutor.java === --- /trunk/user/src/com/google/gwt/user/client/CommandExecutor.java Thu Nov 20 14:17:44 2008 +++ /trunk/user/src/com/google/gwt/user/client/CommandExecutor.java Mon Jul 26 13:13:54 2010 @@ -315,16 +315,10 @@ } finally { wasCanceled = iterator.wasRemoved(); - if (wasCanceled) { -/* - * The iterator may have already had its remove method called, if it - * has, then we need to exit without updating any state - */ -return; - } - - if (removeCommand) { -iterator.remove(); + if (!wasCanceled) { +if (removeCommand) { + iterator.remove(); +} } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors