Working with a SuggestBox
I am working on a MVP+Event Bus Architecture. I have a SuggestBox declared in a view, I want presenter to fetch list of suggestion by an RPC call. However the SuggestBox only seems to take MultiWordSuggestoracle in its constructor. And no way to add it later in presenter. :| As an Alternative I also tried creating a Textbox in view and wrapping it up as a Suggestbox later in Presenter. Then adding the suggest box to the view but this approach dosent work and no widget shows on the view. What could be a possible work around? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WVl6VjNid29Cc2dK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ignoring unresolvable annotation type
with this libray you solve this problem, in my POJO´s i put some annotations (for other reasons) and I haven´t problems. Try it, and tell us. Greetings. 2011/6/1 randasin r4nd7...@gmail.com I don't plan to use or check the annotation in GWT context so I am ok if GWT ignores it. MyObject is still compiled and I can use it in Async requests, right? The reason I have the annotation is the classes are also used in another web service project, which utilizes the annotation. Just wondered if there is way to get rid of the warning. On Jun 1, 4:24 pm, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: As you know, GWT is not pure Java, so you can´t use some things. One way to solve these problem is including a library for reflection (see gwt-ent in google). 2011/6/1 randasin r4nd7...@gmail.com I have one annotation and one object. com.example.model.shared.MyAnnotation com.example.model.shared.MyObject MyObject is declared with MyAnnotation: @MyAnnotation public class MyObject { ... } When I compile, I am getting this warning [java]Resolving com.example.model.shared.MyObject [java] Found type 'com.example.model.shared.MyObject' [java] [WARN] Ignoring unresolvable annotation type com.example.model.shared.MyAnnotation The compilation still succeeded, but I wonder what side effects are there? How do I resolve this warning? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SuggestBox not showing Suggestion
I have a view with a TextBox, In my presenter I populate the suggestion list with an RPC call and wrap TextBox in a SuggestionBox. The Suggestion box is not showing any suggestion. Code goes like-- citysuggest=new SuggestBox(cityoracle,display.getCityBox());//wrapping in textbox+passing MultiWordSuggestOracle refrence ((Display) display.asWidget()).getVerticalPanel().insert(citysuggest,1); //Inserting the SuggestBox in view System.err.println(citysuggest.isSuggestionListShowing()); // This shows false What could be the issue? I have many widgets in my view. There seems no space unless the suggestionlist pops over other Labels and SuggestionBoxes. Can that be an issue? Whats the way out? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WW9JdFZ1Mk5STThK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hierachy of autobean for state serialization
Hm, I am just looking for a way to enocde and persist (webstore) state (some POJO properties) on the client. I have difficulties to see see how the RequestFactory will help me here as my intention is that it is for client server communication. However, it ought to be possible (at least, it has to do serialization to put the data on the wire). As I understand autobeans, they are that part of the bindery framework that is used for this purpose (amongst all by the request factory itself). That's why I am trying to use them here. Regards, panam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Massive increase in compile time with GWT 2.3
Hello, In fact I have exactly the same problem than Dennis. We migrate our application from GWT 2.0 to 2.3 and th ecompilation time has increased about 40%. My problem is not how to optimize the compilation time but why this huge difference between GWT versions. Thank's On 19 mai, 18:30, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 19 May 2011 00:37, googelybear googelyb...@gmail.com wrote: This build I am trying to optimize is compiled on our build server by the continuous integration tool (hudson in our case triggered after every commit). It is mainly used to run unit tests and for general testing by the developers to get instant feedback (well, it used to do that when we started). It is not a production build. But I don't like to take too many things out, e.g. take out browsers then you can no longer test it on different browsers and your feedback cycle - the timeuntil you notice something doesn't work after you implemented it - gets longer). For the production build then it is absolutely OK to take longer. In general, I don't think it is a good idea to have one build for (many) different purposes. For unit tests you don't need all browsers so pick one and stick with it. In fact, for unit tests you don't need any browser. :-) Your unit test build can and should be very fast. This should be the most stripped down version you can think of. Mind you, it would be even better if you broke up your app into separate modules so that all the unit testing is done in the small, fast module builds. The second build would be for integration testing. For your automated integration testing you don't need more than one browser either. (Unless, of course, you have a very advanced setup testing multiple browsers.) Run this build once or twice a day at a specifictime(say lunchtimeand dinnertime). (The specifictimeis so that people know about it and can try to make sure their change is (or is not) included.) If the automated integration test build is successful then kick off the full build for all browsers. This need only happen once a day or even once a week. This build is then used for manual testing. It should be auto deployed to some QA/test environment. Most (test/QA) people don't like working with a moving target (for obvious reasons), hence the build once a week suggestion. Then, if QA says this build is good, promote it to production; no need for another build. I.e. assuming you follow the best practice of not including your environment configuration in the WAR. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox MVP problem
facing the same problem. what should be the best way around? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZWgyTjRMZ2VGSjRK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox MVP problem
I am trying to make a TextBox in the view and wrap it in Suggestbox in presenter. However my suggestbox wont show any suggestion. :( why isnt a set method availaible? :| -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/d2tLZ3FKZ1NTbXNK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hosting for GWT projects
Hi, I started with my first GWT project. I am using MySQL as the database. Can someone (preferably from India) please tell me which is the best hosting service provider for my website in GWT with quite a good uptime and which will support the GWT war file and the MySQL database with unlimited space. Can someone please help me with this? Regards, Sachin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox not showing Suggestion
The problem is with -- MultiWordSuggestOracle cityoracle=new MultiWordSuggestOracle(); cityoracle.addAll(citylist); The addAll() method fails to add Cities name from the ArrayListString citylist which is Strange, also using a loop to manually add String from the list using add() method fails. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NUxBYl9EU1RORVlK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Performance Differences IE 8 Vs FF 3.x
With such numbers (1 list box has 4000 elements and one suggestion box has 7000 elements), the culprit is undoubtedly IE, and you can't do anything about it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aFlNSEJocHJWZmtK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Performance Differences IE 8 Vs FF 3.x
Thomas - is it due rendering engine of IE 8 versus that of FF or Chrome - which shows such difference in terms of response time ? Mittal On Jun 2, 6:04 am, Thomas Broyer t.bro...@gmail.com wrote: With such numbers (1 list box has 4000 elements and one suggestion box has 7000 elements), the culprit is undoubtedly IE, and you can't do anything about it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: get Session values in client side
Make a service that provide this data and access via GWT-RPC for example. 2011/6/1 Rama Krishna ramakrishna...@gmail.com Hi I have to access the server side session values in GWT. plz suggest me How can I access? Thanks.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reflection Class Generator
I am very interessed on it. May you send the project to do a look to the code? regards Nagin Kothari On Wed, Jun 1, 2011 at 8:10 PM, Honza Rames rame...@gmail.com wrote: Hi, from what I can tell GWT doesn't support reflection at all in client side (JS translatable) code. Just a few simple features like getting class name (but I can't really call that reflection can I ;-) ). I have been experimenting with reflection in client side code though, and with a lot of success I must say :-). I'm planning to share the code on Google Code when I feel its ready, I'm currently testing it on business application I'm working on and then we'll see. If you (or anybody else) would like to give it a try, I might be able to create some package and share this with you (or maybe create the Google Code project right away). There is similar framework (don't remember the name but can be found by Google ;-) ), which didn't really didn't do the job for me because it was pretty difficult to generate the reflection information that is needed (please correct me if I got that wrong). My approach uses GWT generators and annotations to specify which packages and which classes should participate in reflection information generation. I'm supporting similar functionality that java Class gives you with some modifications, but you can obtain annotations, get/set fields and even call public methods and create new instance in reflective way (but you need to be careful on what info you add because it could greatly enlarge your resulting JS code). I also have unit tests (of course) for bunch of stuff but it would require a lot of cleanup I guess. So if anyone is interested just leave a message ;-) -- Honza Rames On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Can somebody the function about de class Generator and all the similar classes which is contained int he packpage com.google.gwt.core.ext, it´s used for deferred binding? Maybe if I want use reflection in my app, I must use these classes?? -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Massive increase in compile time with GWT 2.3
Because GWT 2.3.0 include support to IE9, so you have another permutation. Juan 2011/6/2 Twentyseven ebarthel...@gmail.com Hello, In fact I have exactly the same problem than Dennis. We migrate our application from GWT 2.0 to 2.3 and th ecompilation time has increased about 40%. My problem is not how to optimize the compilation time but why this huge difference between GWT versions. Thank's On 19 mai, 18:30, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 19 May 2011 00:37, googelybear googelyb...@gmail.com wrote: This build I am trying to optimize is compiled on our build server by the continuous integration tool (hudson in our case triggered after every commit). It is mainly used to run unit tests and for general testing by the developers to get instant feedback (well, it used to do that when we started). It is not a production build. But I don't like to take too many things out, e.g. take out browsers then you can no longer test it on different browsers and your feedback cycle - the timeuntil you notice something doesn't work after you implemented it - gets longer). For the production build then it is absolutely OK to take longer. In general, I don't think it is a good idea to have one build for (many) different purposes. For unit tests you don't need all browsers so pick one and stick with it. In fact, for unit tests you don't need any browser. :-) Your unit test build can and should be very fast. This should be the most stripped down version you can think of. Mind you, it would be even better if you broke up your app into separate modules so that all the unit testing is done in the small, fast module builds. The second build would be for integration testing. For your automated integration testing you don't need more than one browser either. (Unless, of course, you have a very advanced setup testing multiple browsers.) Run this build once or twice a day at a specifictime(say lunchtimeand dinnertime). (The specifictimeis so that people know about it and can try to make sure their change is (or is not) included.) If the automated integration test build is successful then kick off the full build for all browsers. This need only happen once a day or even once a week. This build is then used for manual testing. It should be auto deployed to some QA/test environment. Most (test/QA) people don't like working with a moving target (for obvious reasons), hence the build once a week suggestion. Then, if QA says this build is good, promote it to production; no need for another build. I.e. assuming you follow the best practice of not including your environment configuration in the WAR. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reflection Class Generator
+1 to share :) 2011/6/2 Nagin Kothari naginkoth...@gmail.com I am very interessed on it. May you send the project to do a look to the code? regards Nagin Kothari On Wed, Jun 1, 2011 at 8:10 PM, Honza Rames rame...@gmail.com wrote: Hi, from what I can tell GWT doesn't support reflection at all in client side (JS translatable) code. Just a few simple features like getting class name (but I can't really call that reflection can I ;-) ). I have been experimenting with reflection in client side code though, and with a lot of success I must say :-). I'm planning to share the code on Google Code when I feel its ready, I'm currently testing it on business application I'm working on and then we'll see. If you (or anybody else) would like to give it a try, I might be able to create some package and share this with you (or maybe create the Google Code project right away). There is similar framework (don't remember the name but can be found by Google ;-) ), which didn't really didn't do the job for me because it was pretty difficult to generate the reflection information that is needed (please correct me if I got that wrong). My approach uses GWT generators and annotations to specify which packages and which classes should participate in reflection information generation. I'm supporting similar functionality that java Class gives you with some modifications, but you can obtain annotations, get/set fields and even call public methods and create new instance in reflective way (but you need to be careful on what info you add because it could greatly enlarge your resulting JS code). I also have unit tests (of course) for bunch of stuff but it would require a lot of cleanup I guess. So if anyone is interested just leave a message ;-) -- Honza Rames On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Can somebody the function about de class Generator and all the similar classes which is contained int he packpage com.google.gwt.core.ext, it´s used for deferred binding? Maybe if I want use reflection in my app, I must use these classes?? -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reflection Class Generator
http://code.google.com/p/gwt-ent/ http://code.google.com/p/gwt-ent/Maybe it can help. 2011/6/2 Juan Pablo Gardella gardellajuanpa...@gmail.com +1 to share :) 2011/6/2 Nagin Kothari naginkoth...@gmail.com I am very interessed on it. May you send the project to do a look to the code? regards Nagin Kothari On Wed, Jun 1, 2011 at 8:10 PM, Honza Rames rame...@gmail.com wrote: Hi, from what I can tell GWT doesn't support reflection at all in client side (JS translatable) code. Just a few simple features like getting class name (but I can't really call that reflection can I ;-) ). I have been experimenting with reflection in client side code though, and with a lot of success I must say :-). I'm planning to share the code on Google Code when I feel its ready, I'm currently testing it on business application I'm working on and then we'll see. If you (or anybody else) would like to give it a try, I might be able to create some package and share this with you (or maybe create the Google Code project right away). There is similar framework (don't remember the name but can be found by Google ;-) ), which didn't really didn't do the job for me because it was pretty difficult to generate the reflection information that is needed (please correct me if I got that wrong). My approach uses GWT generators and annotations to specify which packages and which classes should participate in reflection information generation. I'm supporting similar functionality that java Class gives you with some modifications, but you can obtain annotations, get/set fields and even call public methods and create new instance in reflective way (but you need to be careful on what info you add because it could greatly enlarge your resulting JS code). I also have unit tests (of course) for bunch of stuff but it would require a lot of cleanup I guess. So if anyone is interested just leave a message ;-) -- Honza Rames On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Can somebody the function about de class Generator and all the similar classes which is contained int he packpage com.google.gwt.core.ext, it´s used for deferred binding? Maybe if I want use reflection in my app, I must use these classes?? -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Performance Differences IE 8 Vs FF 3.x
Are you are putting 4,000 items in a ListBox? Thats a lot of data to show on the client. Even scrolling becomes difficult at that point. Alternatively, can you use a CellList with paging to break up the items into smaller chunks? Thanks, John LaBanca jlaba...@google.com On Thu, Jun 2, 2011 at 6:44 AM, Mittal mitt...@gmail.com wrote: Thomas - is it due rendering engine of IE 8 versus that of FF or Chrome - which shows such difference in terms of response time ? Mittal On Jun 2, 6:04 am, Thomas Broyer t.bro...@gmail.com wrote: With such numbers (1 list box has 4000 elements and one suggestion box has 7000 elements), the culprit is undoubtedly IE, and you can't do anything about it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Datepicker with multiselect
Hi Erik, yes it very useful for us! Is it possible to select random days ? 17.05.2011, в 16:59, Erik Uzureau написал(а): Hello Dmitry, We built a date picker that can handle the selection of date ranges (for the hospitality industry). We basically forked the generic GWT one to add the support for multi-select and the range display. It's not the most optimised code in the world but it gets the job done You can see it live running here: https://demo.reztrip.com/ We were thinking about taking the code and open sourcing it. Would this be useful to you? Others? Erik Uzureau On Thu, May 5, 2011 at 16:39, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: See multiselect calendar in jquery and see gwtquery (jquery ported to GWT). You can try with this to integrate to your application. 2011/5/5 Dmitry Tikhomirov chani.l...@gmail.com Hi all, Does anyone know any Datepicker with multiselect support. I need ability to select several dates. Thanks ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hierachy of autobean for state serialization
On Jun 2, 2011 3:48 AM, Panam pandem...@googlemail.com wrote: Hm, I am just looking for a way to enocde and persist (webstore) state (some POJO properties) on the client. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/shared/RequestFactory.html#getSerializer(com.google.gwt.requestfactory.shared.ProxyStore) I have difficulties to see see how the RequestFactory will help me here as my intention is that it is for client server communication. I think you should read the link I posted, that's what RequestFactory is used for As I understand autobeans, they are that part of the bindery framework that is used for this purpose (amongst all by the request factory itself). That's why I am trying to use them here. I don't think autobeans are meant to be used directly by end users but by proxy in other GWT features like requestfactory -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reflection Class Generator
OK, I'm making some preparations to release it on Google Code. I'll post all the info there (I mean what it can and cannot do and why some things are little bit different from java reflection API). Hopefully I'll manage to do this during the weekend... -- Honza Rames On 2 čvn, 13:07, Nagin Kothari naginkoth...@gmail.com wrote: I am very interessed on it. May you send the project to do a look to the code? regards Nagin Kothari On Wed, Jun 1, 2011 at 8:10 PM, Honza Rames rame...@gmail.com wrote: Hi, from what I can tell GWT doesn't support reflection at all in client side (JS translatable) code. Just a few simple features like getting class name (but I can't really call that reflection can I ;-) ). I have been experimenting with reflection in client side code though, and with a lot of success I must say :-). I'm planning to share the code on Google Code when I feel its ready, I'm currently testing it on business application I'm working on and then we'll see. If you (or anybody else) would like to give it a try, I might be able to create some package and share this with you (or maybe create the Google Code project right away). There is similar framework (don't remember the name but can be found by Google ;-) ), which didn't really didn't do the job for me because it was pretty difficult to generate the reflection information that is needed (please correct me if I got that wrong). My approach uses GWT generators and annotations to specify which packages and which classes should participate in reflection information generation. I'm supporting similar functionality that java Class gives you with some modifications, but you can obtain annotations, get/set fields and even call public methods and create new instance in reflective way (but you need to be careful on what info you add because it could greatly enlarge your resulting JS code). I also have unit tests (of course) for bunch of stuff but it would require a lot of cleanup I guess. So if anyone is interested just leave a message ;-) -- Honza Rames On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Can somebody the function about de class Generator and all the similar classes which is contained int he packpage com.google.gwt.core.ext, it´s used for deferred binding? Maybe if I want use reflection in my app, I must use these classes?? -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
facebook style suggest box or select box
Hi I'm searching for a multivalued select box or suggest box in gwt. like facebook's mail, is there any gwt library that does that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: facebook style suggest box or select box
Yes there's a library that permits to do that natively: http://code.google.com/p/advanced-suggest-select-box/ It also permits to have icons and handles other aspects (like a strict mode to work like a select box still proposing suggestions on typing, have other filtering algorithm, etc... Best regards, Zied Hamdi On Jun 2, 4:09 pm, Zied Hamdi - http://www.larueacote.fr; zhamdi.i...@gmail.com wrote: Hi I'm searching for a multivalued selectboxorsuggestboxin gwt. likefacebook'smail, is there any gwt library that does that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Layout Showcase
Does anyone know where I can get that information or for what I need to send email to ask? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cannot see label added by clickHandler
HI, I have built a test gui that shows up correctly. I tried to dynamically add some widgets to a panel, but I could not see them. So I simplified the code to add a label to a panel when I click a button. My component, that the is build via uiBinder, contains the following two methods: public void open() { if(p1 == null) { p1 = new FlowPanel(); splitPanel.add(p1); } p1.add(new Label(LABEL)); } @UiHandler(addMenu) void handleClick(ClickEvent e) { // send an event that calls open(), just to see what happens AppControler.eventBus().fireEvent(new OpenedMenuEvent()); // call open directly open(); } What happens in the fist line of handleClick is that the event sent via the bus correctly calls the open() method, but the label is not added to the panel. The direct call to open() of the second line works: I can see the label. Finally If I call open() from another component I get no errors but the label does not show up. This behaviour puzzles me, especially because even when the added label does no show up the code executes regularly (I stepped through it with the debugger) and the same three lines of code are executed, only called from different places. I am stuck, because I need to add ui components dinamically, but I have this strange problem and it looks like I cannot decouple my components. Any idea? Thanks in advance Francesco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
for some reason my custom AppEngine/Android project is using com.cloudtasks.shared.TaskRequest not my custom namespace.
Even though I setup my project with it's own namespace and ran the RPC Service to generate the shared and service code. I searched for com.cloudtasks.shared in my project with no luck. Why is it still using that namespace and causing my server to exception out? It seems like it's hardcoded somewhere? My TaskRequest.java is below the exception Initializing AppEngine server Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed /home/chbfiv/workspace/taskhack-AppEngine/war/ WEB-INF/appengine-web.xml Successfully processed /home/chbfiv/workspace/taskhack-AppEngine/war/ WEB-INF/web.xml The server is running at http://localhost:/ [ERROR] Could not find class file for com/cloudtasks/shared/ TaskRequest [ERROR] com.cloudtasks.shared.TaskRequest is not a RequestContext [ERROR] The RequestContext type com.cloudtasks.shared.TaskRequest did not pass validation [ERROR] Unexpected error com.google.web.bindery.requestfactory.server.UnexpectedException: The RequestContext type com.cloudtasks.shared.TaskRequest did not pass validation at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.die(ServiceLayerDecorator.java: 212) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveRequestContextMethod(ResolverServiceLayer.java: 155) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestContextMethod(ServiceLayerDecorator.java: 164) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestContextMethod(ServiceLayerDecorator.java: 164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) at java.lang.reflect.Method.invoke(Method.java:616) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(ServiceLayerCache.java: 213) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveRequestContextMethod(ServiceLayerCache.java: 181) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java: 418) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 214) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 124) at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java: 118) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152)
Re: get Session values in client side
Retrieve the information on the server side and pass it to the client side. 2011/6/1 Rama Krishna ramakrishna...@gmail.com Hi I have to access the server side session values in GWT. plz suggest me How can I access? Thanks.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Renato Gonçalves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
500 non-HTTP request or response in Equinox
Hello! I am deploying a GWT application on Equinox! I have developed a Spring framework (Spring Dynamic Modules) in Equinox to run bundles. Well, when I run GWT application I get first html page. However if I click a button to call server, the server reply with 500 non-HTTP request or response. The trace is: HTTP ERROR: 500/h2prenon-HTTP request or response/pre pRequestURI=/ZB_app/zbapp/app/ph3Caused by:/ h3prejavax.servlet.ServletException: non-HTTP request or response at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java: 206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:450) Spring includes package javax.servlet and I import such package. Could someone help me please?? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 500 non-HTTP request or response in Equinox
Are you package servlet-api jar in your war? 2011/6/2 Jose Luis Hernandez jose.hernande...@gmail.com Hello! I am deploying a GWT application on Equinox! I have developed a Spring framework (Spring Dynamic Modules) in Equinox to run bundles. Well, when I run GWT application I get first html page. However if I click a button to call server, the server reply with 500 non-HTTP request or response. The trace is: HTTP ERROR: 500/h2prenon-HTTP request or response/pre pRequestURI=/ZB_app/zbapp/app/ph3Caused by:/ h3prejavax.servlet.ServletException: non-HTTP request or response at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java: 206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:450) Spring includes package javax.servlet and I import such package. Could someone help me please?? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
redundant remove call with HandlerManager
I'm getting an exception trying to remove a HandlerManager. Although it may not be set, I don't understand this exception because I'm trapping the exception, even testing for a null HandlerManager. What's wrong? Can't this sort of error be trapped. The error is in this method: public static void cancelWindowClosingLogoff() { try { if (windowClosingHandler != null) windowClosingHandler.removeHandler(); } catch (Exception e) { ; // probably never been set } } The stack trace, up to windowClosingHandler.removeHandler() above is: Uncaught exception: java.lang.AssertionError: redundant remove call at com.google.web.bindery.event.shared.SimpleEventBus.doRemoveNow(SimpleEventBus.java: 217) at com.google.web.bindery.event.shared.SimpleEventBus.doRemove(SimpleEventBus.java: 107) at com.google.gwt.event.shared.HandlerManager $Bus.doRemove(HandlerManager.java:42) at com.google.web.bindery.event.shared.SimpleEventBus $1.removeHandler(SimpleEventBus.java:163) at com.google.gwt.event.shared.LegacyHandlerWrapper.removeHandler(LegacyHandlerWrapper.java: 26) ... I'm running GWT 2.3. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: redundant remove call with HandlerManager
An AssertionError is a Throwable but not an Exception: http://download.oracle.com/javase/6/docs/api/java/lang/AssertionError.html Anyway, you shouldn't catch the exception, you should rather make sure it doesn't happen. For instance, whenever you removeHandler(), you could null the variable, so the next time you won't try to call removeHandler() a second time on the same HandlerRegistration. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WDdGNktKeXlOZ1FK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hierachy of autobean for state serialization
If I understand correctly, you want to persist/retrieve objects in the client side. If there are not too many classes, you can define your own format like classId versionId binaryConvertedField1 binaryConvertedField2 ... If your classes have collections or cross references or circular references, the above approach woefully falls short. With the classId, you can achieve polymorphism. If the local storage does not permit binary data, you may have to encode it as String. J.Ganesan www.DataStoreGwt.com On Jun 2, 12:48 pm, Panam pandem...@googlemail.com wrote: Hm, I am just looking for a way to enocde and persist (webstore) state (some POJO properties) on the client. I have difficulties to see see how the RequestFactory will help me here as my intention is that it is for client server communication. However, it ought to be possible (at least, it has to do serialization to put the data on the wire). As I understand autobeans, they are that part of the bindery framework that is used for this purpose (amongst all by the request factory itself). That's why I am trying to use them here. Regards, panam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: redundant remove call with HandlerManager
Doh! Oh yeah. Thanks. On Jun 2, 11:51 am, Thomas Broyer t.bro...@gmail.com wrote: An AssertionError is a Throwable but not an Exception:http://download.oracle.com/javase/6/docs/api/java/lang/AssertionError... Anyway, you shouldn't catch the exception, you should rather make sure it doesn't happen. For instance, whenever you removeHandler(), you could null the variable, so the next time you won't try to call removeHandler() a second time on the same HandlerRegistration. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 500 non-HTTP request or response in Equinox
Yes! I have created another custom bundle which includes servlet-api library. After that, I import the bundle in my war. On Jun 2, 4:54 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you package servlet-api jar in your war? 2011/6/2 Jose Luis Hernandez jose.hernande...@gmail.com Hello! I am deploying a GWT application on Equinox! I have developed a Spring framework (Spring Dynamic Modules) in Equinox to run bundles. Well, when I run GWT application I get first html page. However if I click a button to call server, the server reply with 500 non-HTTP request or response. The trace is: HTTP ERROR: 500/h2prenon-HTTP request or response/pre pRequestURI=/ZB_app/zbapp/app/ph3Caused by:/ h3prejavax.servlet.ServletException: non-HTTP request or response at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCol lection.java: 206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:450) Spring includes package javax.servlet and I import such package. Could someone help me please?? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hosting for GWT projects
Have you considered trying Amazon Elastic Beanstalk and RDS? Elastic Beanstalk will load balance your war and RDS is essentially hosted MySQL AWS has a free tier that will let you dev your low volume app without the upfront investment. On Thu, Jun 2, 2011 at 2:49 AM, sachin sreenivasan sachin.sreenivasa...@gmail.com wrote: Hi, I started with my first GWT project. I am using MySQL as the database. Can someone (preferably from India) please tell me which is the best hosting service provider for my website in GWT with quite a good uptime and which will support the GWT war file and the MySQL database with unlimited space. Can someone please help me with this? Regards, Sachin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 500 non-HTTP request or response in Equinox
Remove servlet-api and test. I suppose Equinox have this jar. 2011/6/2 Jose Luis Hernandez jose.hernande...@gmail.com Yes! I have created another custom bundle which includes servlet-api library. After that, I import the bundle in my war. On Jun 2, 4:54 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Are you package servlet-api jar in your war? 2011/6/2 Jose Luis Hernandez jose.hernande...@gmail.com Hello! I am deploying a GWT application on Equinox! I have developed a Spring framework (Spring Dynamic Modules) in Equinox to run bundles. Well, when I run GWT application I get first html page. However if I click a button to call server, the server reply with 500 non-HTTP request or response. The trace is: HTTP ERROR: 500/h2prenon-HTTP request or response/pre pRequestURI=/ZB_app/zbapp/app/ph3Caused by:/ h3prejavax.servlet.ServletException: non-HTTP request or response at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCol lection.java: 206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:450) Spring includes package javax.servlet and I import such package. Could someone help me please?? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Update data provider list in a celltable after a search
I think you're almost there. It looks like you're trying to use a ListDataProvider, but you're also calling setRowCount() and setRowData() which you don't need to do when using a ListDataProvider. In terms of sorting, your ListHandler is configured to act on the same list that the ListDataProvider uses, which is what I've found to work. The trick comes when updating the list being displayed. You can't just call ListDataProvider.setList() because there's no setList() on ListHandler (I have no idea why not). Instead, you have to call ListDataProvider.getList().clear; ListDataProvider.getList().addAll(newData); Finally, be sure to call CellTable.getColumnSortList().push(column) when updating the data to reflect the initial sort order of the data. I'm only just figuring all of this out myself, so if this doesn't work or if anyone has other suggestions, please let me know. -Brian On May 15, 3:33 pm, Celinio cel...@gmail.com wrote: hey, i'm thinking that i might need to proceed differently since what i want is to display new data. http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html Do i need to create a subclass of AsyncDataProviderhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...and implement onRangeChanged(HasData)http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...? Any ideas ? Thanks for helping. On Sat, May 14, 2011 at 11:31 PM, Celinio cel...@gmail.com wrote: Hi, I have this app where the user arrives to a page where at the top there is a search panel with several textboxes (search criterias). At the bottom of the page there is a celltable which displays the search results. The first time the user arrives to the page, the celltable is filled with rows from an initial search. So let's say the initial search gives 14 rows. Then the user performs a research. The celltable is then updated with the search results. Let's say that returns 2 rows. The problem is that if the user attempts to SORT the columns, then the celltable displays 10 rows (PAGE_SIZE) and i can see that the rows come from the initial search. I use MVP so here is the code for the VIEW and the PRESENTER. In the presenter, the method being called to perform the search is onRechercheClicked(...). As you can see in the PRESENTER, i use the demandeTable.setRowData(0, demandes); method to add the list. Does anyone have any idea ? Thanks for helping. Code for the view : 1. package com.ft.v.gestion.presentation.client.mvp.view.impl; 2. 3. import java.util.ArrayList; 4. import java.util.Comparator; 5. import java.util.Date; 6. import java.util.HashMap; 7. import java.util.List; 8. import java.util.Map; 9. 10. import com.ft.voltage.demande.model.DemandeBean; 11. import com.ft.v.gestion.presentation.client.GwtApplication; 12. import com.ft.v.gestion.presentation.client.mvp.presenter.ListPresenter; 13. import com.ft.v.gestion.presentation.client.mvp.view.ListView; 14. import com.ft.v.gestion.presentation.client.ui.RecherchePanel; 15. import com.ft.v.gestion.presentation.client.ui.SimpleHasFeedback; 16. import com.google.gwt.cell.client.ClickableTextCell; 17. import com.google.gwt.cell.client.FieldUpdater; 18. import com.google.gwt.core.client.GWT; 19. import com.google.gwt.event.dom.client.ClickEvent; 20. import com.google.gwt.event.dom.client.ClickHandler; 21. import com.google.gwt.i18n.client.DateTimeFormat; 22. import com.google.gwt.safehtml.shared.SafeHtml; 23. import com.google.gwt.safehtml.shared.SafeHtmlBuilder; 24. import com.google.gwt.text.shared.AbstractSafeHtmlRenderer; 25. import com.google.gwt.text.shared.SafeHtmlRenderer; 26. import com.google.gwt.user.cellview.client.CellTable; 27. import com.google.gwt.user.cellview.client.Column; 28. import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler; 29. import com.google.gwt.user.cellview.client.SimplePager; 30. import com.google.gwt.user.cellview.client.SimplePager.TextLocation ; 31. import com.google.gwt.user.cellview.client.TextColumn; 32. import com.google.gwt.user.client.ui.Composite; 33. import com.google.gwt.user.client.ui.FlowPanel; 34. import com.google.gwt.user.client.ui.HTML; 35. import com.google.gwt.user.client.ui.ScrollPanel; 36. import com.google.gwt.user.client.ui.Widget; 37. import com.google.gwt.view.client.ListDataProvider; 38. import com.google.gwt.view.client.Range; 39. import com.google.gwt.view.client.RangeChangeEvent; 40. import com.google.gwt.view.client.RangeChangeEvent.Handler; 41. 42. public class DemandesListViewImpl extends Composite implementsListView DemandeBean { 43. 44. private RecherchePanel recherchePanel = new RecherchePanel( ); 45. 46. 47.
GWT Servlet access (dev mode)
Hi i'm trying to access a simple servlet from within GWT (dev mode): The basic idea is to get the simple response from the servlet and then show it to GWT client side. I think I'm missing something here or have misconfigured the code, I presume in the RequestBuilder part or in the url-pattern. I'm always getting 404 response. Can anyone help? Cheers, Xybrek SayHelloServlet.java package com.mycompany.server; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class SayHelloServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(Hello!!!); } } ServletDemo.java package com.mycompany.client public class ServletDemo implements EntryPoint { .. public void onModuleLoad() { ... makeServletCall(); ... } .. public void makeServletCall() { String url = GWT.getHostPageBaseURL() + sayHello;; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); try { builder.sendRequest(null, new RequestCallback(){ public void onError(Request request, Throwable exception) { Window.alert(Error (+ exception +)); } public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { Window.alert(the string: + response.getText()); } else { // Handle the error. Can get the status text from response.getStatusText() Window.alert( Connected with error(maybe): + response.getText()); } }}); } catch (Exception e) { GWT.log(e.toString()); Window.alert(Whoosps + e.toString()); } } ... } Here's the web.xml in the war folder: web.xml web-app ... servlet servlet-namesayHelloServlet/servlet-name servlet-classcom.mycompany.server.SayHelloServlet/servlet-class /servlet servlet-mapping servlet-namesayHelloServlet/servlet-name url-pattern/mycompany/sayHello/url-pattern /servlet-mapping ... /web-app -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Google APIs Support for GWT Developers
*(Cross-posted from the gwt-google-apis forum)* At Google I/O last month, the Google APIs team introduced a couple exciting new technologies to make Google's APIs easier to consume. The first was the Google APIs Discovery Servicehttp://www.google.com/events/io/2011/sessions/building-custom-client-libraries-for-google-apis.html, that lists and describes some of Google's new APIs. The second was a series of generated Java libraries to communicate with these APIshttp://code.google.com/p/google-api-java-client/wiki/Setup#Generated_libraries_for_Google_APIs, built on the Discovery Service, designed to work with lots of standard Java environments, including App Engine and Android. Today, I have the pleasure of announcing that, in addition to generated libraries for standard Java environments, we are also releasing libraries specifically optimized for GWT, as part of the Google API Libraries for GWT (GALGWT) project. The available services currently include: - Books API - Buzz API - Latitude API - Moderator API - Prediction API - Tasks API - URL Shortener API (goo.gl) - ...and many more - ...and even more coming soon! These libraries are designed and optimized for the GWT platform, and make requests directly from the browser, without requiring you to write any server-side code. They are built on GWT's RequestFactoryhttp://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.htmlinfrastructure, and so should look and feel very familiar to anyone who has used RequestFactory in a GWT application before, but without having to write the server-side component -- Google's APIs are the server-side component -- no middle man! You can check out the full list of supported services and some sample applications at the Samples pagehttp://code.google.com/p/gwt-google-apis/wiki/GoogleAPIsSamples, or learn how to get started by reading the documentationhttp://code.google.com/p/gwt-google-apis/wiki/GoogleAPIsGettingStarted . These libraries are alpha libraries, and are presented so that we can gather feedback about them to improve them further. They are under active development and may change in breaking ways in the future. If you use these libraries, please let us know what you think in the GALGWT forumhttp://groups.google.com/group/GWT-Google-Apis, and file bugs and feature requests in the Issue Trackerhttp://code.google.com/p/gwt-google-apis/issues/list. We're hoping to continually improve the quality and stability of the libraries over time, and your feedback is important in achieving that goal. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cGYyOGU2eGZVcFVK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT servlet access
Hi i'm trying to access a simple servlet from within GWT (dev mode): The basic idea is to get the simple response from the servlet and then show it to GWT client side. I think I'm missing something here or have misconfigured the code, I presume in the RequestBuilder part or in the url-pattern. I'm always getting 404 response. Can anyone help? Cheers, Ybrek SayHelloServlet.java package com.mycompany.server; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class SayHelloServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(Hello!!!); } } ServletDemo.java package com.mycompany.client public class ServletDemo implements EntryPoint { .. public void onModuleLoad() { ... makeServletCall(); ... } .. public void makeServletCall() { String url = GWT.getHostPageBaseURL() + sayHello;; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); try { builder.sendRequest(null, new RequestCallback(){ public void onError(Request request, Throwable exception) { Window.alert(Error (+ exception +)); } public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { Window.alert(the string: + response.getText()); } else { // Handle the error. Can get the status text from response.getStatusText() Window.alert( Connected with error(maybe): + response.getText()); } }}); } catch (Exception e) { GWT.log(e.toString()); Window.alert(Whoosps + e.toString()); } } ... } Here's the web.xml in the war folder: web.xml web-app ... servlet servlet-namesayHelloServlet/servlet-name servlet-classcom.mycompany.server.SayHelloServlet/servlet- class /servlet servlet-mapping servlet-namesayHelloServlet/servlet-name url-pattern/mycompany/sayHello/url-pattern /servlet-mapping ... /web-app -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Eclipse plugin
Hello there, iam developing whit gwt and gwt plug in for ecplise and when i restart the server (usually 2 or 3 times after) i always get this err [SPAM] [proyecto] - Invoke native method @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/ lang/Object;Ljava/lang/Object;) [ERROR] [proyecto] - exception thrown [ERROR] [proyecto] - Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...) 14:15:21.423 [ERROR] [proyecto] exception thrown java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java: 1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.extjs.gxt.ui.client.widget.treepanel.TreePanel.lt;initgt; (TreePanel.java:273) at com.liondev.Proyecto.client.Desktop.View.Desktop.lt;initgt; (Desktop.java:79) at com.liondev.Proyecto.client.Login.Controller.LoginController $2.onSuccess(LoginController.java:126) at com.liondev.Proyecto.client.Login.Controller.LoginController $2.onSuccess(LoginController.java:1) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 232) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) i tryyed to increse the memory but dont know why i always get this err thank you for you r help -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
help
dear sir I have downloaded a open source code,and build it with maven,I get a problem with gxt-2.1.1.jar [INFO][ERROR] Errors in 'jar:file:/C:/Documents%20and%20Settings/Administrator/.m2/repository/com/extjs/gxt/2.1.1/gxt-2.1.1.jar!/com/extjs/gxt/ui/client/event/Events.java' [INFO] [ERROR] Line 548: Event.ONPASTE cannot be resolved [INFO] [ERROR] Line 766: Event.ONPASTE cannot be resolved and I get a answer The problem is with the gxt-2.1.1 jar file that you are using. The problem is that the organization that develops gxt, delivered two versions of their jar file for that release, one that works with gwt-1.x and one that works with gwt-2.x. The problem is that they didn't differentiate this in the name of the jar file so the version of gxt-2.1.1 that you are using assumes that there is an Event.ONPASTE in the gwt library that was defined in gwt-2.0 going forward. Since we are still using gwt-1.7.1, you are running into problems. but I don`t how to compile the Events.java and upgrade it into the gxt-2.1.1 jar in the C:\Documents and Settings\Administrator\.m2\repository\com\extjs\gxt\2.1.1 there is one import command I really have no idea to add which jar file to the javac classpath.?Is there anyone who can help? import com.google.gwt.user.client.Event; 从网易163邮箱发来的超大附件 Events.java (16.74K, 2011年6月18日 0:04 到期) 在线预览 |下载 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse plugin
Is a java.lang.OutOfMemoryError: *PermGen space *error. Increase PermGen spacehttp://www.brokenbuild.com/blog/2006/08/04/java-jvm-gc-permgen-and-memory-options/ . 2011/6/2 Daniel Mauricio Patino León ceo.lion@gmail.com Hello there, iam developing whit gwt and gwt plug in for ecplise and when i restart the server (usually 2 or 3 times after) i always get this err [SPAM] [proyecto] - Invoke native method @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/ lang/Object;Ljava/lang/Object;) [ERROR] [proyecto] - exception thrown [ERROR] [proyecto] - Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...) 14:15:21.423 [ERROR] [proyecto] exception thrown java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java: 1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.extjs.gxt.ui.client.widget.treepanel.TreePanel.lt;initgt; (TreePanel.java:273) at com.liondev.Proyecto.client.Desktop.View.Desktop.lt;initgt; (Desktop.java:79) at com.liondev.Proyecto.client.Login.Controller.LoginController $2.onSuccess(LoginController.java:126) at com.liondev.Proyecto.client.Login.Controller.LoginController $2.onSuccess(LoginController.java:1) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 232) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) i tryyed to increse the memory but dont know why i always get this err thank you for you r help -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Strange bug with Editor and context.create() (With code example)
When submitting RequestContext with a new EntityProxy I get error Autobean is frozen but when editing an existing proxy no error. I also get two EntityChangeEvent's when submitting the context for the newly created entity. So I have searched for a while and I believe this may be an issue with having a ValueListBox subeditor and creating a new EntityProxy. I have two functions that use the same editor. I have tried multiple things including making sure I am not reusing EditorDriver, Editor or RequestContext. 15:13:51.332 [ERROR] [virtualFactory] Uncaught exception escaped java.lang.IllegalStateException: The AutoBean has been frozen at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.checkFrozen(AbstractAutoBean.java: 195) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java: 270) at sun.reflect.GeneratedMethodAccessor524.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) at java.lang.reflect.Method.invoke(Method.java:613) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) /** This function throws Autobean frozen exeption and I see two EntitiProxyChange events when this fires. The function is successful though but I am wondering if there is something I am doing wrong */ private void showAddAccountView() { UserEditor editor = new UserEditor(); UserEditorDriver driver = GWT.create(UserEditorDriver.class); driver.initialize(editor); editor.setDriver(driver); UserRequest request = clientFactory.daoRequestFactory().userRequest(); UserProxy editable = request.edit(request.create(UserProxy.class)); request.saveAndReturn(editable).with(driver.getPaths()); driver.edit(editable, request); DialogBox db = new DialogBox(); db.setAutoHideEnabled(true); db.setAnimationEnabled(true); db.setGlassEnabled(true); db.setWidget(editor); db.center(); } /** This function has no problems when firing context as it is editing an already created EntitiyProxy */ private void onAccountSelected(SelectionChangeEvent event) { UserEditor editor = new UserEditor(); UserEditorDriver driver = GWT.create(UserEditorDriver.class); driver.initialize(editor); editor.setDriver(driver); UserRequest request = clientFactory.daoRequestFactory().userRequest(); UserProxy editable = request.edit(selectionModel.getSelectedObject()); request.saveAndReturn(editable).with(driver.getPaths()); driver.edit(editable, request); accountEditorPanel.setWidget(editor); } --- Editor View. public class UserEditor extends Composite implements EditorUserProxy { @UiTemplate(templates/UserEditor.ui.xml) interface Binder extends UiBinderWidget, UserEditor { } @UiField TextBox name; @UiField TextBox email; @UiField (provided=true) ValueListBoxUserRole role = new ValueListBoxUserRole(new AbstractRendererUserRole() { @Override public String render(UserRole object) { return object == null ? : object.name(); } }); @UiField Button submit; private RequestFactoryEditorDriverUserProxy, UserEditor driver; public UserEditor() { initWidget(GWT.Bindercreate(Binder.class).createAndBindUi(this)); role.setAcceptableValues(Arrays.asList(UserRole.values())); } @UiHandler(submit) void onClick(ClickEvent event) { UserRequest request = (UserRequest) driver.flush(); // Check for errors if (driver.hasErrors()) { ListEditorError errors = driver.getErrors(); for (EditorError error : errors) { Logger.getLogger(UserEditor).info(Errors occurred in user editor + error.getMessage()); } return; } request.fire(); } public void setDriver(RequestFactoryEditorDriverUserProxy, UserEditor driver) { this.driver = driver; } } Thank you in advance for your assistance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT servlet access
404 means not found try to print out your request-url first to see if it matches host:port/mycompany/sayHello or not. i think it will not match, your request url will also include your gwt-module-name in the path On Thu, Jun 2, 2011 at 8:15 PM, Ybrek xyb...@gmail.com wrote: Hi i'm trying to access a simple servlet from within GWT (dev mode): The basic idea is to get the simple response from the servlet and then show it to GWT client side. I think I'm missing something here or have misconfigured the code, I presume in the RequestBuilder part or in the url-pattern. I'm always getting 404 response. Can anyone help? Cheers, Ybrek SayHelloServlet.java package com.mycompany.server; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class SayHelloServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(Hello!!!); } } ServletDemo.java package com.mycompany.client public class ServletDemo implements EntryPoint { .. public void onModuleLoad() { ... makeServletCall(); ... } .. public void makeServletCall() { String url = GWT.getHostPageBaseURL() + sayHello;; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); try { builder.sendRequest(null, new RequestCallback(){ public void onError(Request request, Throwable exception) { Window.alert(Error (+ exception +)); } public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { Window.alert(the string: + response.getText()); } else { // Handle the error. Can get the status text from response.getStatusText() Window.alert( Connected with error(maybe): + response.getText()); } }}); } catch (Exception e) { GWT.log(e.toString()); Window.alert(Whoosps + e.toString()); } } ... } Here's the web.xml in the war folder: web.xml web-app ... servlet servlet-namesayHelloServlet/servlet-name servlet-classcom.mycompany.server.SayHelloServlet/servlet- class /servlet servlet-mapping servlet-namesayHelloServlet/servlet-name url-pattern/mycompany/sayHello/url-pattern /servlet-mapping ... /web-app -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
combine GWT application from several modules coming from JARs or OSGI bundles
I need a web UI with pages like Info, Support, etc. That's easy. In addition, I have some plugins with their own editors, which need to be shown in the same web UI. It's something similar to Extensions page shown in Google Chrome: every extension has an Options link, which can contain any editor the extension wants. So, my main application does not know upfront how many plugins and editors it has. All it knows is how to call the plugin's showEditor() method. (this is how it's currently implemented in my Eclipse-based desktop app, which I'm trying to port to web) I'm wondering if GWT is applicable for this kind of applications. So far looks that GWT applications are monolithic and all pages / panels need to be referenced in the common gwt.xml file, which means I can't configure the distributive to include only plugin1 and plugin2 or only plugin 2 and plugin 3 - I have to always include everything since it's referenced in the common xml file. Any ideas how to use modularity with GWT so that UI panels can come from some modules/plugins? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cVRCcmdib0s3dlFK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Development Mode quit unexpectedly while using libjava.jnilib plugin
Jeff Larsen larsenje@... writes: You're right, it is the JDK. I believe the current workaround is to use openjdk. I faced the same issue on my brand new MBP shipped with JDK 1.6.0_24. I managed to find a workaround by installing a preview version of JDK 1.6.0_25. You must have a developer account on connect.apple.com (I think it is free of charge). You can find the packaging at this address: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/download?path=%2FJava%2Fjava_for_mac_os_x_developer_preview_10m3406a9m3406a%2Fjava_for_mac_os_x_10.6_update_5_dp10m3415.dmgwosid=am2afNAAnRFD3MPUc6cQA7SFaLv Regards Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Database and GWT
Are you using AppEngine? Given you mention Objectify, I am assuming you are. If that is the case, take a look at using RequestFactory with Objectify. Objectify is much lighter weight than JDO etc (faster startups) - and so many of the posts on the AppEngine developer sites are questions about problems with JDO/JPA. So much easier to use. Also it takes care of a lot of the memcache stuff for you. RequestFactory has advantages over GWT RPC as you can 1/ easily use it with Android devices(using eclipse plugins Android Connected Web Application feature) 2/ you only use an interfaces on the client - no more worrying about whether your DTO's use classes that can't be used on GWT, Android and AppEngine 3/ it only sends diffs of your updated entities - saving on bandwidth Take a look at this even if you don't do anything with Android - was a real eye opener for me. http://www.youtube.com/watch?v=M7SxNNC429U and also this one on Objectify/Request factory http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/ On Jun 2, 12:55 pm, J.Ganesan j.gane...@datastoregwt.com wrote: You may use the emulated JRE (http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html ) to model relationships. Specifically, you can use ArrayList (one-to- many) and HashMap (many-to-many). J.Ganesanwww.DataStoreGwt.com On Jun 1, 11:34 pm, purni iyer purni.i...@gmail.com wrote: Thnks for the replies.I used the serializable objects i.e objects on shared side.But found many difficulties implementing them.As in I am unable to set relationship one to many between my objects.I need suggestion with same On Jun 1, 11:29 pm, Barry Ard b...@ualberta.ca wrote: I found that EodSQL gave me the best bang for my buck (time invested vs usefulness). Download fromhttp://java.net/projects/eodsql/downloads and read tutorial.html in the docs directory. See the developers bloghttp://lemnik.wordpress.com/?s=eodsql t Good luck, Barry On Jun 1, 12:14 pm, purni iyer purni.i...@gmail.com wrote: hello, Can any one suggest me which method of applying database with GWT is the best.I have few options JDO JSON Objectifiers Please suggest Purnima -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Aw: Re: GWT 2.3 RequestFactory problem
Eric, I was stuck on this for a couple of days... Thanks a lot for the help If my thing ever becomes a commercial success, keep this email as your IOU :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/amUtUTE1ajdsZ0VK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Strange bug with Editor and context.create() (With code example)
UserProxy editable = request.edit(request.create(UserProxy.class)); That's your problem right there. You don't call RequestContext#edit() on the proxy that's returned from RequestContext#create On Thu, Jun 2, 2011 at 4:13 PM, chris chris.hins...@gmail.com wrote: When submitting RequestContext with a new EntityProxy I get error Autobean is frozen but when editing an existing proxy no error. I also get two EntityChangeEvent's when submitting the context for the newly created entity. So I have searched for a while and I believe this may be an issue with having a ValueListBox subeditor and creating a new EntityProxy. I have two functions that use the same editor. I have tried multiple things including making sure I am not reusing EditorDriver, Editor or RequestContext. 15:13:51.332 [ERROR] [virtualFactory] Uncaught exception escaped java.lang.IllegalStateException: The AutoBean has been frozen at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.checkFrozen(AbstractAutoBean.java: 195) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java: 270) at sun.reflect.GeneratedMethodAccessor524.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) at java.lang.reflect.Method.invoke(Method.java:613) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) /** This function throws Autobean frozen exeption and I see two EntitiProxyChange events when this fires. The function is successful though but I am wondering if there is something I am doing wrong */ private void showAddAccountView() { UserEditor editor = new UserEditor(); UserEditorDriver driver = GWT.create(UserEditorDriver.class); driver.initialize(editor); editor.setDriver(driver); UserRequest request = clientFactory.daoRequestFactory().userRequest(); UserProxy editable = request.edit(request.create(UserProxy.class)); request.saveAndReturn(editable).with(driver.getPaths()); driver.edit(editable, request); DialogBox db = new DialogBox(); db.setAutoHideEnabled(true); db.setAnimationEnabled(true); db.setGlassEnabled(true); db.setWidget(editor); db.center(); } /** This function has no problems when firing context as it is editing an already created EntitiyProxy */ private void onAccountSelected(SelectionChangeEvent event) { UserEditor editor = new UserEditor(); UserEditorDriver driver = GWT.create(UserEditorDriver.class); driver.initialize(editor); editor.setDriver(driver); UserRequest request = clientFactory.daoRequestFactory().userRequest(); UserProxy editable = request.edit(selectionModel.getSelectedObject()); request.saveAndReturn(editable).with(driver.getPaths()); driver.edit(editable, request); accountEditorPanel.setWidget(editor); } --- Editor View. public class UserEditor extends Composite implements EditorUserProxy { @UiTemplate(templates/UserEditor.ui.xml) interface Binder extends UiBinderWidget, UserEditor { } @UiField TextBox name; @UiField TextBox email; @UiField (provided=true) ValueListBoxUserRole role = new ValueListBoxUserRole(new AbstractRendererUserRole() { @Override public String render(UserRole object) { return object == null ? : object.name(); } }); @UiField Button submit; private RequestFactoryEditorDriverUserProxy, UserEditor driver; public UserEditor() { initWidget(GWT.Bindercreate(Binder.class).createAndBindUi(this)); role.setAcceptableValues(Arrays.asList(UserRole.values())); } @UiHandler(submit) void onClick(ClickEvent event) { UserRequest request = (UserRequest) driver.flush(); // Check for errors if (driver.hasErrors()) { ListEditorError errors = driver.getErrors(); for (EditorError error : errors) { Logger.getLogger(UserEditor).info(Errors occurred in user editor + error.getMessage()); } return; } request.fire(); } public void setDriver(RequestFactoryEditorDriverUserProxy, UserEditor driver) { this.driver = driver; } } Thank you in advance for your assistance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,
Re: combine GWT application from several modules coming from JARs or OSGI bundles
+1 to who know a manner to resolve this 2011/6/2 Alexey Skor als...@gmail.com I need a web UI with pages like Info, Support, etc. That's easy. In addition, I have some plugins with their own editors, which need to be shown in the same web UI. It's something similar to Extensions page shown in Google Chrome: every extension has an Options link, which can contain any editor the extension wants. So, my main application does not know upfront how many plugins and editors it has. All it knows is how to call the plugin's showEditor() method. (this is how it's currently implemented in my Eclipse-based desktop app, which I'm trying to port to web) I'm wondering if GWT is applicable for this kind of applications. So far looks that GWT applications are monolithic and all pages / panels need to be referenced in the common gwt.xml file, which means I can't configure the distributive to include only plugin1 and plugin2 or only plugin 2 and plugin 3 - I have to always include everything since it's referenced in the common xml file. Any ideas how to use modularity with GWT so that UI panels can come from some modules/plugins? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cVRCcmdib0s3dlFK. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Performance Differences IE 8 Vs FF 3.x
Screen also has real estate issue - I dont think I can use CellList but its good suggestion John ! I was thinking -- instead of fetching all the data and setting into suggestion box (oracle etc..) - fetch the data by making RPC calls when user enters few characters of data and set it into suggestion box but it could make application chatty ! Mittal On Jun 2, 9:00 am, John LaBanca jlaba...@google.com wrote: Are you are putting 4,000 items in a ListBox? Thats a lot of data to show on the client. Even scrolling becomes difficult at that point. Alternatively, can you use a CellList with paging to break up the items into smaller chunks? Thanks, John LaBanca jlaba...@google.com On Thu, Jun 2, 2011 at 6:44 AM, Mittal mitt...@gmail.com wrote: Thomas - is it due rendering engine of IE 8 versus that of FF or Chrome - which shows such difference in terms of response time ? Mittal On Jun 2, 6:04 am, Thomas Broyer t.bro...@gmail.com wrote: With such numbers (1 list box has 4000 elements and one suggestion box has 7000 elements), the culprit is undoubtedly IE, and you can't do anything about it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Announce: gwt-voices 2.1.0 released -- sound for your apps
There's a new version of gwt-voices ready for downloadhttp://code.google.com/p/gwt-voices/wiki/GettingStarted. I'd love to get your feedback on this release, so I can remove the * ReleaseCandidate* tag and replace it with a shiny new *Featured* tag. Why would you want to use GWT http://code.google.com/p/forplay/ to play sounds you ask? Well, you might need sound effects when slinging birds through the air http://chrome.angrybirds.com/. It's been a while, so the release noteshttp://code.google.com/p/gwt-voices/wiki/ReleaseNoteshave a bit more to say than usual: -- What's new in gwt-voices-2.1.0.jar - Bug fixes - Prevent NullPointerException in non-HTML5 browsers - Catch and ignore setCurrentTime(0) exceptions on IE9 - Fixed volume/balance/panning during Flash playback - Prevent data: URIs from trying to use Flash, which doesn't like them - Restore MIDI playback. Thanks ornello! - Workaround Chrome's inability to play the same audio twice: issues 71323 http://code.google.com/p/chromium/issues/detail?id=71323 and 75725 http://code.google.com/p/chromium/issues/detail?id=75725 - Restore support for Flash MP3 playback in IE (was broken in gwt-voices 2.0.0) - New in this release - Add ability to loop sounds via Sound#setLooping(boolean) - Sound#play() now returns a boolean to indicate whether gwt-voices believes it was able to play the sound; it returns false when the sound system is unavailable or has run out of available channels - Flash plugin triggers also with audio/mpeg; codecs=MP3, not just audio/mpeg - For the time being, prefer Flash over HTML5 audio for audio/mpeg and audio/mpeg; codecs=MP3 MIME Types, due to poor HTML5 audio reliability - Require at least Flash 9 (previously 8) to trigger Flash playback - Added ie9 user.agent property support for GWT 2.3 to avoid those pesky warnings - Added HTML5 favicon to demo site - HTML5 playback provides PlaybackCompleteEvents (requires GWT 2.4 and later) - You can set an optional URL parameter gwt-voices to either html5 or flash, to indicate a runtime preference for MP3 files, which is overridden by SoundController#setPreferredSoundType() - New (deprecated) SoundController?http://code.google.com/p/gwt-voices/w/edit/SoundController#getPreferredSoundType(), which may be removed without warning in a future release - Other changes in this release - Using AS3 with mxmlc instead of AS2 with mtasc compiler - For compatibility testing, demo shows both HTML5 and Flash for audio/mpeg MIME types - Now require Java 1.6 Enjoy -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
Just a few comments on the JSNI part. I was curious about what a PotentialElement would be, but I haven't followed how IsRenderable work so I really don't have any opinion on the rest of this proposal. http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode42 user/src/com/google/gwt/user/client/ui/PotentialElement.java:42: e = {}; var e = {}; otherwise 'e' will be global (and e.__gwt_finishBuild=null won't be what you're expecting it to be) http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode43 user/src/com/google/gwt/user/client/ui/PotentialElement.java:43: e.style = {}; Why not: return { style: {}, setAttribute: function(name, value) { this[name] = value; }, __gwt_finishBuild = function() { this.__gwt_finishBuild = null; return o...@com.google.gwt.user.client.ui.UIObject::finishBuild()(); } }; http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode45 user/src/com/google/gwt/user/client/ui/PotentialElement.java:45: e[name] = value; Any reason to use 'e' rather than 'this'? http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode58 user/src/com/google/gwt/user/client/ui/PotentialElement.java:58: return (PotentialElement) o; o.PotentialElementcast() ? http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Creates a delegate for CompilationResult for use by third party linkers. (issue1451808)
LGTM http://gwt-code-reviews.appspot.com/1451808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
Many thanks for the comments, tbroyer, ptal. http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode42 user/src/com/google/gwt/user/client/ui/PotentialElement.java:42: e = {}; On 2011/06/02 10:00:32, tbroyer wrote: var e = {}; otherwise 'e' will be global (and e.__gwt_finishBuild=null won't be what you're expecting it to be) Done. http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode43 user/src/com/google/gwt/user/client/ui/PotentialElement.java:43: e.style = {}; On 2011/06/02 10:00:32, tbroyer wrote: Why not: return { style: {}, setAttribute: function(name, value) { this[name] = value; }, __gwt_finishBuild = function() { this.__gwt_finishBuild = null; return o...@com.google.gwt.user.client.ui.UIObject::finishBuild()(); } }; I had totally forgotten this syntax even existed. Thanks! http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode45 user/src/com/google/gwt/user/client/ui/PotentialElement.java:45: e[name] = value; On 2011/06/02 10:00:32, tbroyer wrote: Any reason to use 'e' rather than 'this'? Done. http://gwt-code-reviews.appspot.com/1450810/diff/1/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode58 user/src/com/google/gwt/user/client/ui/PotentialElement.java:58: return (PotentialElement) o; On 2011/06/02 10:00:32, tbroyer wrote: o.PotentialElementcast() ? Done. http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)
http://gwt-code-reviews.appspot.com/1447812/diff/1/tools/api-checker/config/gwt23_24userApi.conf File tools/api-checker/config/gwt23_24userApi.conf (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/tools/api-checker/config/gwt23_24userApi.conf#newcode155 tools/api-checker/config/gwt23_24userApi.conf:155: com.google.gwt.user.client.ui.impl.ClippedImageImpl::adjust(Lcom/google/gwt/dom/client/Element;Ljava/lang/String;) MISSING Instead of all of these exceptions for ClippedImageImpl, you can exclude com.google.gwt.user.client.ui.impl from api checks. We don't make any guarantees about the API of impl classes. http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/resources/client/DataResource.java File user/src/com/google/gwt/resources/client/DataResource.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/resources/client/DataResource.java#newcode66 user/src/com/google/gwt/resources/client/DataResource.java:66: * will be an absolute URL. Should this be deprecated like ImageResource? http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java File user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode305 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:305: // not a fatal error. Why isn't this a fatal error? Using a SafeUri in the middle of a URL attribute seems just as bad as the above case, and using it outside of the URL context seems like a dev mistake. http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode432 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:432: if (isSafeUri(parameterType)) { Is it safe to use safeUri in a text context? Seems like a mistake at the least. http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java File user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java#newcode32 user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java:32: public class SafeUriHostedModeUtils { Should this class be package protected? It looks like an impl class, but its public in a non-impl package, which makes it look like anyone can use it. http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java#newcode39 user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java:39: * RFC 3987bis Web Addresses/a Will this look correct in javadoc? You might need to exceed the 100 line limit here. http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java#newcode54 user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java:54: public static final String FORCE_CHECK_VALID_URI = com.google.gwt.safehtml.ForceCheckValidUri; Can you add a comment explaining how this is set? http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java File user/src/com/google/gwt/safehtml/shared/UriUtils.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java#newcode209 user/src/com/google/gwt/safehtml/shared/UriUtils.java:209: * safe!/strong This method worries me. When I saw the name, I assumed it was the equivalent of fromString(). Anyone who looks at the method name without reading the JavaDoc might assume the same. I suggest we remove the method and let users manage unsafe URIs. That forces the user to make the tough decisions, whether they sanitize the URI, or call fromTrustedString() even if the URI isn't trusted. http://gwt-code-reviews.appspot.com/1447812/diff/1/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java File user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java (left): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java#oldcode42 user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java:42: private static class TestLoadListener implements LoadListener { Don't remove this. Its actually used in a commented out test. In theory the issue has been fixed, so I'll take a look at re-enabling the test. http://gwt-code-reviews.appspot.com/1447812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)
http://gwt-code-reviews.appspot.com/1447812/diff/1/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java File user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java (left): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java#oldcode42 user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java:42: private static class TestLoadListener implements LoadListener { On 2011/06/02 13:47:05, jlabanca wrote: Don't remove this. Its actually used in a commented out test. In theory the issue has been fixed, so I'll take a look at re-enabling the test. Ignore this comment. TestLoadListener isn't used in the commented out method either. You can remove it. http://gwt-code-reviews.appspot.com/1447812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
LGTM http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java#newcode64 user/src/com/google/gwt/user/client/DOM.java:64: parent.appendChild(PotentialElement.as(child).finishBuild()); Add a comment that if the Element is not a PotentialElement, finishBuild returns the Element itself. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java File user/src/com/google/gwt/user/client/ui/RenderablePanel.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode200 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:200: + render itself (e.g. after adding it to a panel)); add a space before render http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) (issue1449810)
On 2011/06/01 22:05:56, conroy wrote: On 2011/06/01 21:14:56, codefu wrote: On 2011/06/01 21:11:48, codefu wrote: Included are the binary files: gwt-dev-plugin.crx gwt-dev-plugin.xpi gwt-dev-plugin.dmg gwt-dev-plugin-x86.msi gwt-dev-plugin-x64.msi While you're tweaking the Chrome DevModeOptions, I think it would be useful to have labels for each of the input text boxes since it's not clear that they map to host + codeserver SGTM http://gwt-code-reviews.appspot.com/1449810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
Thanks, John. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java#newcode64 user/src/com/google/gwt/user/client/DOM.java:64: parent.appendChild(PotentialElement.as(child).finishBuild()); On 2011/06/02 14:04:48, jlabanca wrote: Add a comment that if the Element is not a PotentialElement, finishBuild returns the Element itself. Done. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java File user/src/com/google/gwt/user/client/ui/RenderablePanel.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode200 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:200: + render itself (e.g. after adding it to a panel)); On 2011/06/02 14:04:48, jlabanca wrote: add a space before render Done. http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) (issue1449810)
On 2011/06/01 21:11:48, codefu wrote: Included are the binary files: gwt-dev-plugin.crx gwt-dev-plugin.xpi gwt-dev-plugin.dmg gwt-dev-plugin-x86.msi gwt-dev-plugin-x64.msi http://gwt-code-reviews.appspot.com/1449810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) (issue1449810)
Reviewers: jat, conroy, fabiomfv, Description: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) -Chrome Tweak: old entries will show localhost for codeserver Please review this at http://gwt-code-reviews.appspot.com/1449810/ Affected files: M plugins/ie/installer/oophm.wxs M plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java M plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json Index: plugins/ie/installer/oophm.wxs === --- plugins/ie/installer/oophm.wxs (revision 10251) +++ plugins/ie/installer/oophm.wxs (working copy) @@ -12,7 +12,7 @@ /Fragment Fragment ComponentGroup Id=oophmDll -Component Win64=$(var.win64Flag) Id=cmpC5076456A3EE2DC3FC2683246BE38AD6 Directory=dir315E0C50682DFB472927FE1254A22F6A Guid=FA1A9445-6468-4AF2-9132-8089DBE4AA91 +Component Win64=$(var.win64Flag) Id=cmpC5076456A3EE2DC3FC2683246BE38AD6 Directory=dir315E0C50682DFB472927FE1254A22F6A Guid=66F951FF-F3CE-4C41-92EC-886F3A985ADF File Id=filEF78EFE99C26E3436EC9C8852A85BE88 KeyPath=yes Source=$(var.binDir)\oophm.dll TypeLib Id={9259F105-BE55-4BF6-B7CE-D0AA878C1BA6} Description=oophm 1.0 Type Library HelpDirectory=dir315E0C50682DFB472927FE1254A22F6A Language=0 MajorVersion=1 MinorVersion=0 AppId Description=oophm Id={F9365E53-5A14-47F3-BF1D-10CAAB815309} Index: plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java === --- plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java (revision 10251) +++ plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java (working copy) @@ -182,7 +182,7 @@ savedHosts.insertRow(numRows); savedHosts.setText(numRows, col++, names[0]); -savedHosts.setText(numRows, col++, names.length 0 ? names[1] +savedHosts.setText(numRows, col++, names.length 1 ? names[1] : localhost); savedHosts.setText(numRows, col++, newHost.include() ? Include : Exclude); Index: plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json === --- plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json (revision 10251) +++ plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json (working copy) @@ -1,6 +1,6 @@ { name: GWT Developer Plugin, - version: 1.0.9738, + version: 1.0.10242, description: A plugin to enable debugging with GWT's Development Mode, update_url: https://dl-ssl.google.com/gwt/plugins/chrome/updates.xml;, icons: { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add a way to disable image inlining on a per-image basis. (issue1451809)
Reviewers: rjrjr, Description: Add a way to disable image inlining on a per-image basis. Patch by: bobv Review by: rjrjr Please review this at http://gwt-code-reviews.appspot.com/1451809/ Affected files: M user/src/com/google/gwt/resources/client/ImageResource.java M user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java M user/test/com/google/gwt/resources/client/ImageResourceTest.java Index: user/src/com/google/gwt/resources/client/ImageResource.java === --- user/src/com/google/gwt/resources/client/ImageResource.java (revision 10245) +++ user/src/com/google/gwt/resources/client/ImageResource.java (working copy) @@ -54,6 +54,14 @@ * ratio of the image will be maintained. */ int height() default -1; + +/** + * Set to {@code true} to require the ImageResource to be downloaded as a + * separate resource at runtime. Specifically, this will disable the use of + * {@code data:} URLs or other bundling optimizations for the image. This + * can be used for infrequently-displayed images. + */ +boolean preventInlining() default false; /** * This option affects the image bundling optimization to allow the image to Index: user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java === --- user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java (revision 10245) +++ user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java (working copy) @@ -191,9 +191,11 @@ * bytes should be associated with. */ static class BundleKey extends StringKey { -private static String key(ResourceContext context, -ImageResourceDeclaration image) { - if (image.getRepeatStyle() == RepeatStyle.Both) { +private static String key(ImageResourceDeclaration image, boolean isExternal) { + if (isExternal) { +return External: + image.get(); + } + if (image.isPreventInlining() || image.getRepeatStyle() == RepeatStyle.Both) { return Unbundled: + image.get(); } return Arranged: + image.getRepeatStyle().toString(); @@ -201,13 +203,8 @@ private final RepeatStyle repeatStyle; -public BundleKey(ImageResourceDeclaration image) { - super(External: + image.get()); - this.repeatStyle = image.getRepeatStyle(); -} - -public BundleKey(ResourceContext context, ImageResourceDeclaration image) { - super(key(context, image)); +public BundleKey(ImageResourceDeclaration image, boolean isExternal) { + super(key(image, isExternal)); this.repeatStyle = image.getRepeatStyle(); } @@ -314,7 +311,7 @@ String.class.getCanonicalName()); String contentsExpression = context.deploy( - localized.getUrl(), null, false); + localized.getUrl(), null, image.isPreventInlining()); normalContentsFieldName = fields.define(stringType, externalImage, contentsExpression, true, true); @@ -326,7 +323,7 @@ byte[] rtlData = ImageBundleBuilder.toPng(logger, rect); String rtlContentsUrlExpression = context.deploy(image.getName() -+ _rtl.png, image/png, rtlData, false); ++ _rtl.png, image/png, rtlData, image.isPreventInlining()); rtlContentsFieldName = fields.define(stringType, externalImage_rtl, rtlContentsUrlExpression, true, true); } @@ -383,6 +380,10 @@ public boolean isFlipRtl() { return options == null ? false : options.flipRtl(); +} + +public boolean isPreventInlining() { + return options == null ? false : options.preventInlining(); } } @@ -474,7 +475,7 @@ sw.println('' + name + \,); ImageResourceDeclaration image = new ImageResourceDeclaration(method); -DisplayedImage bundle = getImage(context, image); +DisplayedImage bundle = getImage(image); ImageRect rect = bundle.getImageRect(image); assert rect != null : No ImageRect ever computed for + name; @@ -542,10 +543,13 @@ LocalizedImage localizedImage; ImageRect rect; try { - BundledImage bundledImage = (BundledImage) getImage(context, image); + BundledImage bundledImage = (BundledImage) getImage(image); localizedImage = bundledImage.addImage(logger, context, image); rect = bundledImage.getImageRect(image); displayed = bundledImage; + if (image.isPreventInlining()) { +cannotBundle = true; + } } catch (CannotBundleImageException e) { cannotBundle = true; localizedImage = e.getLocalizedImage(); @@ -587,7 +591,7 @@ } ExternalImage externalImage = new ExternalImage(image, localizedImage, rect); - shared.externalImages.put(new BundleKey(image), externalImage); + shared.externalImages.put(new BundleKey(image, true), externalImage); displayed =
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
On 2011/06/02 14:38:55, rdcastro wrote: Thanks, John. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java#newcode64 user/src/com/google/gwt/user/client/DOM.java:64: parent.appendChild(PotentialElement.as(child).finishBuild()); On 2011/06/02 14:04:48, jlabanca wrote: Add a comment that if the Element is not a PotentialElement, finishBuild returns the Element itself. Done. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java File user/src/com/google/gwt/user/client/ui/RenderablePanel.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode200 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:200: + render itself (e.g. after adding it to a panel)); On 2011/06/02 14:04:48, jlabanca wrote: add a space before render Done. I don't think Patch Set 3 contains your most recent changes. http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
Now it went through :-) On Thu, Jun 2, 2011 at 11:59 AM, jlaba...@google.com wrote: On 2011/06/02 14:38:55, rdcastro wrote: Thanks, John. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java#newcode64 user/src/com/google/gwt/user/client/DOM.java:64: parent.appendChild(PotentialElement.as(child).finishBuild()); On 2011/06/02 14:04:48, jlabanca wrote: Add a comment that if the Element is not a PotentialElement, finishBuild returns the Element itself. Done. http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java File user/src/com/google/gwt/user/client/ui/RenderablePanel.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode200 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:200: + render itself (e.g. after adding it to a panel)); On 2011/06/02 14:04:48, jlabanca wrote: add a space before render Done. I don't think Patch Set 3 contains your most recent changes. http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
LGTM http://gwt-code-reviews.appspot.com/1450810/diff/6002/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6002/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode47 user/src/com/google/gwt/user/client/ui/PotentialElement.java:47: return o...@com.google.gwt.user.client.ui.UIObject::finishBuild()(); Does referencing o here create a circular reference between PotentialElement and UiObject that leads to a memory leak in IE? I think the answer is no, because PotentialElement isn't really a native Element, and the IE memory leak is specific to circular references between native Elements and logical objects. Can anyone verify? http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10266 committed - Creates a delegate for CompilationResult for use by third party linker...
Revision: 10266 Author: zun...@google.com Date: Thu Jun 2 02:53:59 2011 Log: Creates a delegate for CompilationResult for use by third party linkers. Review at http://gwt-code-reviews.appspot.com/1451808 http://code.google.com/p/google-web-toolkit/source/detail?r=10266 Added: /trunk/dev/core/src/com/google/gwt/core/ext/linker/DelegatingCompilationResult.java === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/DelegatingCompilationResult.java Thu Jun 2 02:53:59 2011 @@ -0,0 +1,76 @@ +/* + * Copyright 2011 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.core.ext.linker; + +import com.google.gwt.core.ext.Linker; + +import java.util.SortedMap; +import java.util.SortedSet; + +/** + * A delegate for {@link CompilationResult} intended for third party linkers + * that want to modify a compilation result. Extending this class should insulate + * against future changes to the CompilationResult type. + */ +public class DelegatingCompilationResult extends CompilationResult { + private final CompilationResult delegate; + + public DelegatingCompilationResult(Class? extends Linker linkerType, + CompilationResult compilationResult) { +super(linkerType); +this.delegate = compilationResult; + } + + @Override + public String[] getJavaScript() { +return delegate.getJavaScript(); + } + + @Override + public int getPermutationId() { +return delegate.getPermutationId(); + } + + @Override + public SortedSetSortedMapSelectionProperty, String getPropertyMap() { +return delegate.getPropertyMap(); + } + + @Override + public SoftPermutation[] getSoftPermutations() { +return delegate.getSoftPermutations(); + } + + @Override + public StatementRanges[] getStatementRanges() { +return delegate.getStatementRanges(); + } + + @Override + public String getStrongName() { +return delegate.getStrongName(); + } + + @Override + public SymbolData[] getSymbolMap() { +return delegate.getSymbolMap(); + } + + @Override + public String toString() { +return delegate.toString(); + } +} -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
On Thu, Jun 2, 2011 at 8:16 AM, jlaba...@google.com wrote: LGTM http://gwt-code-reviews.appspot.com/1450810/diff/6002/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/6002/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode47 user/src/com/google/gwt/user/client/ui/PotentialElement.java:47: return o...@com.google.gwt.user.client.ui.UIObject::finishBuild()(); Does referencing o here create a circular reference between PotentialElement and UiObject that leads to a memory leak in IE? I think the answer is no, because PotentialElement isn't really a native Element, and the IE memory leak is specific to circular references between native Elements and logical objects. Can anyone verify? I had the same reaction. Everything I found on the issue was specific to dom objects. http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add a way to disable image inlining on a per-image basis. (issue1451809)
LGTM http://gwt-code-reviews.appspot.com/1451809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Adds some more docs to TypeTightener and MethodCallTightener (issue1447814)
Reviewers: scottb, jbrosenberg, Description: Adds some more docs to TypeTightener and MethodCallTightener Please review this at http://gwt-code-reviews.appspot.com/1447814/ Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java M dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java Index: dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java === --- dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java (revision 10251) +++ dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java (working copy) @@ -35,6 +35,17 @@ * * This is possible because the qualifier might have been tightened by * {@link com.google.gwt.dev.jjs.impl.TypeTightener}. + * + * For example, given the code: + * + * List foo = new ArrayListString(); + * + * foo.add(bar); + * + * The type of foo is tightened by TypeTightener from type List to be of type + * ArrayList. This means that MethodCallTightener can analyze the polymorphic + * call List.add() on foo and tighten it to the more specific ArrayList.add() + * */ public class MethodCallTightener { /** Index: dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java === --- dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java (revision 10251) +++ dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java (working copy) @@ -71,6 +71,25 @@ * types can be inferred for locals, fields, parameters, and method return * types. We also optimize dynamic casts and instanceof operations. * + * Examples: + * + * This declaration of variable foo: + * + * final List foo = new ArrayListString(); + * + * can be tightened from List to ArrayList because no type other than ArrayList + * can ever assigned to foo. + * + * The return value of the method bar: + * + * CollectionString bar() { return new LinkedHashSetString; } + * + * can be tightened from CollectionString to LinkedHashSetString since it + * will never return any other type. + * + * By working in conjunction with {@link MethodCallTightener}, Type tightening can + * eliminate generating run-time dispatch code for polymorphic methods. + * * Type flow occurs automatically in most JExpressions. But locals, fields, * parameters, and method return types serve as way points where type * information is fixed based on the declared type. Type tightening can be done -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds some more docs to TypeTightener and MethodCallTightener (issue1447814)
I just thought I'd try to capture some of the information from our discussion last night in the comments of these two classes. http://gwt-code-reviews.appspot.com/1447814/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds some more docs to TypeTightener and MethodCallTightener (issue1447814)
LGTM w/nits http://gwt-code-reviews.appspot.com/1447814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java File dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java (right): http://gwt-code-reviews.appspot.com/1447814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java#newcode40 dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java:40: * Add the usual javadoc tags here for the indenting/code, etc., e.g. use pre{@code...}.../pre http://gwt-code-reviews.appspot.com/1447814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java File dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java (right): http://gwt-code-reviews.appspot.com/1447814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java#newcode77 dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java:77: * use the javadoc tags here for code: pre{@code.}/pre http://gwt-code-reviews.appspot.com/1447814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java#newcode80 dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java:80: * can be tightened from List to ArrayList because no type other than ArrayList s/can ever assigned/can ever be assigned http://gwt-code-reviews.appspot.com/1447814/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UnifyAst (issue1451804)
http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JClassType.java File dev/core/src/com/google/gwt/dev/jjs/ast/JClassType.java (left): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JClassType.java#oldcode90 dev/core/src/com/google/gwt/dev/jjs/ast/JClassType.java:90: * Right, since there's no avoiding having a setter for AST stitching. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JField.java File dev/core/src/com/google/gwt/dev/jjs/ast/JField.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JField.java#newcode178 dev/core/src/com/google/gwt/dev/jjs/ast/JField.java:178: boolean replaces(JField originalField) { On 2011/06/02 01:16:50, jbrosenberg wrote: parens around clause for better readability/formatting Done. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JFieldRef.java File dev/core/src/com/google/gwt/dev/jjs/ast/JFieldRef.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JFieldRef.java#newcode103 dev/core/src/com/google/gwt/dev/jjs/ast/JFieldRef.java:103: public void resolve(JField newField) { Except that target would require a cast. :( http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java File dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java#newcode316 dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java:316: assert returnType.replaces(this.returnType); On 2011/06/02 01:16:50, jbrosenberg wrote: overrides is not a param here, is this still relevant? Done. It was a leftover. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java#newcode437 dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java:437: boolean replaces(JMethod originalMethod) { On 2011/06/02 01:16:50, jbrosenberg wrote: parens around clause for readability Done. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java File dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java#newcode29 dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java:29: if (newElement instanceof JType) { There's no point, it'll just throw a ClassCastException with more information if it's wrong. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java#newcode84 dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java:84: /** On 2011/06/02 01:16:50, jbrosenberg wrote: s/references/reference Done. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JReferenceType.java File dev/core/src/com/google/gwt/dev/jjs/ast/JReferenceType.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JReferenceType.java#newcode76 dev/core/src/com/google/gwt/dev/jjs/ast/JReferenceType.java:76: public boolean replaces(JType originalType) { The ClassCastException is better http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JType.java File dev/core/src/com/google/gwt/dev/jjs/ast/JType.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/ast/JType.java#newcode87 dev/core/src/com/google/gwt/dev/jjs/ast/JType.java:87: boolean replaces(JType originalType) { On 2011/06/02 01:16:50, jbrosenberg wrote: might read/format more clearly if you add parens around the clause Done. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java File dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#newcode488 dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:488: /** It won't resolve since dev doesn't depend on user directly. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode2760 dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:2760: 'x' is for experiemental, it'll be gone shortly. http://gwt-code-reviews.appspot.com/1451804/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java File dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java (right):
[gwt-contrib] Re: Re-implement runAsync to improve code size. (issue1442807)
LGTM, just commenting nits. http://gwt-code-reviews.appspot.com/1442807/diff/1065/dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java File dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java (right): http://gwt-code-reviews.appspot.com/1442807/diff/1065/dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java#newcode49 dev/core/src/com/google/gwt/dev/jjs/impl/MethodCallTightener.java:49: if (x.isVolatile() || !x.canBePolymorphic()) { Update comment to account for the x.isVolatile() check? http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/ast/JMethodCall.java File dev/core/src/com/google/gwt/dev/jjs/ast/JMethodCall.java (right): http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/ast/JMethodCall.java#newcode34 dev/core/src/com/google/gwt/dev/jjs/ast/JMethodCall.java:34: */ thanks for the docs. http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/ast/JRunAsync.java File dev/core/src/com/google/gwt/dev/jjs/ast/JRunAsync.java (right): http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/ast/JRunAsync.java#newcode98 dev/core/src/com/google/gwt/dev/jjs/ast/JRunAsync.java:98: * Explcitly traverse the onSuccessCall. This comment doesn't really tell us much more than the code itself. The bug that led to this code was tricky - maybe add a bit more explanation? http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java (right): http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode371 dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:371: * Magic magic magic: don't allow code flow from the AsyncFragmentLoader (again, not magic...) http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java File dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java (right): http://gwt-code-reviews.appspot.com/1442807/diff/6025/dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java#newcode66 dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java:66: * Magic magic magic: don't optimizations on the calls from from don't optimizations == don't run tightening optimizations I don't think the term 'magic' is appropriate. I think the code below can be explained through science and reason. For example, you could just add another sentence or two to explain why tightening optimizations might defeat code splitting. http://gwt-code-reviews.appspot.com/1442807/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UnifyAst (issue1451804)
LGTM w/TODO: testing. Not sure if it will be easy to create test cases, where you have it stitch together multiple ast's, etc., but I think this is complicated enough we should figure out a way to do it. http://gwt-code-reviews.appspot.com/1451804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UnifyAst (issue1451804)
LGTM, aside from magic http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java File dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java#newcode58 dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java:58: // TODO: replace with BinaryName.toSourceName(type.getName())? On 2011/06/01 23:02:29, scottb wrote: I'd rather not including anything in this change that I can avoid, the TODO was already there, I'm just making the method accessible. (snicker) http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java File dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode465 dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:465: private static final SetString MAGIC_METHOD_CALLS = new LinkedHashSetString(Arrays.asList( On 2011/06/01 23:02:29, scottb wrote: I suppose it's six of one, half a dozen of the other. I guess I tend to think of built-ins as the code gen types in com.google.gwt.lang. I loosely use the term 'magic' for things that the compiler has to have truly specialized support for. I feel strongly that magic is the wrong terminology. I see the term magic used throughout the code to indicate that something unexpected is going on. IMHO, this is like saying this is something that can't be understood or is difficult to understand. But here that isn't really the case. I suggest 'built-in' because we aren't inventing something new here, it is a commonly understood concept. http://www.google.com/search?q=built-in+programming http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode504 dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:504: JDeclaredType type = program.getFromTypeMap(rootType); On 2011/06/01 23:02:29, scottb wrote: The incoming root types are by source name, whereas searchForType is by binary name. Updated a couple of variable names to make this more clear. clearer now, thanks. http://gwt-code-reviews.appspot.com/1451804/diff/1055/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode478 dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:478: private final JsProgram jsProgram; thanks. http://gwt-code-reviews.appspot.com/1451804/diff/1055/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode606 dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:606: } Why not create a constant JMethodBody.EMPTY for this case? Might shave a bit of memory. http://gwt-code-reviews.appspot.com/1451804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
LGTM with these doc changes. http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/DOM.java#newcode57 user/src/com/google/gwt/user/client/DOM.java:57: * {@link PotentialElement#finishBuild} method is called and then returned and then should be and the http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/DOM.java#newcode63 user/src/com/google/gwt/user/client/DOM.java:63: public static void appendChild(Element parent, Element child) { assert ! PotentialElement.is(parent) : Cannot append to a PotentialElement; http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode21 user/src/com/google/gwt/user/client/ui/PotentialElement.java:21: /** * EXPERIMENTAL and subject to change. Do not use this in production code. * p http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/UIObject.java File user/src/com/google/gwt/user/client/ui/UIObject.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/UIObject.java#newcode808 user/src/com/google/gwt/user/client/ui/UIObject.java:808: /** I'd still like this to be inlined. http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/UIObject.java#newcode895 user/src/com/google/gwt/user/client/ui/UIObject.java:895: protected Element finishBuild() { How about we rename this method resolvePotentialElement. /** * EXPERIMENTAL and subject to change. Do not use this in production code. * p * To be overridden by {@link IsRenderable} subclasses that initialize themselves by by calling * codesetElement(PotentialElement.build(this))/code. * p * The receiver must: * ul * li create a real {@link Element} to replace its {@link PotentialElement} * li call {@link #setElement()} with the new Element * li and return the new Element * /ul * p * This method is called when the receiver's element is about to be * added to a parent node, as a side effect of {@link DOM#appendChild}. * p * Note that this method is normally called only on the top element * of an IsRenderable tree. Children instead will receive {@link * IsRenderable#render} and {@link IsRenderable#wrap}. * * @see PotentialElement * @see IsRenderable */ http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) (issue1449810)
http://gwt-code-reviews.appspot.com/1449810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) (issue1449810)
On 2011/06/01 22:05:56, conroy wrote: On 2011/06/01 21:14:56, codefu wrote: On 2011/06/01 21:11:48, codefu wrote: Included are the binary files: gwt-dev-plugin.crx gwt-dev-plugin.xpi gwt-dev-plugin.dmg gwt-dev-plugin-x86.msi gwt-dev-plugin-x64.msi While you're tweaking the Chrome DevModeOptions, I think it would be useful to have labels for each of the input text boxes since it's not clear that they map to host + codeserver Done! http://gwt-code-reviews.appspot.com/1449810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds some more docs to TypeTightener and MethodCallTightener (issue1447814)
http://gwt-code-reviews.appspot.com/1447814/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) (issue1449810)
LGTM http://gwt-code-reviews.appspot.com/1449810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)
http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java File user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#newcode305 user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java:305: // not a fatal error. On 2011/06/02 13:47:05, jlabanca wrote: Why isn't this a fatal error? Using a SafeUri in the middle of a URL attribute seems just as bad as the above case, and using it outside of the URL context seems like a dev mistake. I think I agree; we should treat this analogous to the SafeStyles case above. Thomas, ok with you to make that change? http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java File user/src/com/google/gwt/safehtml/shared/UriUtils.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java#newcode209 user/src/com/google/gwt/safehtml/shared/UriUtils.java:209: * safe!/strong On 2011/06/02 13:47:05, jlabanca wrote: This method worries me. When I saw the name, I assumed it was the equivalent of fromString(). Anyone who looks at the method name without reading the JavaDoc might assume the same. I suggest we remove the method and let users manage unsafe URIs. That forces the user to make the tough decisions, whether they sanitize the URI, or call fromTrustedString() even if the URI isn't trusted. This method is intended for use in places where a string we don't know anything about needs to be turned into a SafeUri in a legacy-API situation. For instance in this CL, the Image class has been refactored to use SafeUri internally. However, it retains the Image(String uri) constructor, which uses this method to turn the string into a SafeUri to call the Image(SafeUri uri) constructor with. I'd prefer that we don't use the fromTrustedString method in those situations: Use of that method is essentially an assertion by the programmer that they can ensure from context that the argument satisfies the SafeUri contract. In the Image(String) case, this is not so. I agree that the name isn't scary enough though. Perhaps, unsafeCastFromUntrustedString or something like that? http://gwt-code-reviews.appspot.com/1447812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UnifyAst (issue1451804)
http://gwt-code-reviews.appspot.com/1451804/diff/1055/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java File dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/1055/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode606 dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:606: clinit.setBody(new JMethodBody(SourceOrigin.UNKNOWN)); HmmmI'd think it would cause issues if multiple classes shared the exact same method body (even if it's empty). Some will want to prune it, others won't, etc. clinits can synthetically have calls to super() inserted in them, so they aren't all equivalent, in this case. http://gwt-code-reviews.appspot.com/1451804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: cleanups to soyc HTML report generation code. (issue1447811)
(please close the code review after you submit it - thanks) http://gwt-code-reviews.appspot.com/1447811/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)
http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java File user/src/com/google/gwt/safehtml/shared/UriUtils.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java#newcode209 user/src/com/google/gwt/safehtml/shared/UriUtils.java:209: * safe!/strong unsafeCastFromUntrustedString() is better. Can we also deprecate the method? Use code should always be able to use one of the other methods. Only library code (GWT and libraries based on GWT) have the legacy support problem. On 2011/06/02 17:45:16, xtof wrote: On 2011/06/02 13:47:05, jlabanca wrote: This method worries me. When I saw the name, I assumed it was the equivalent of fromString(). Anyone who looks at the method name without reading the JavaDoc might assume the same. I suggest we remove the method and let users manage unsafe URIs. That forces the user to make the tough decisions, whether they sanitize the URI, or call fromTrustedString() even if the URI isn't trusted. This method is intended for use in places where a string we don't know anything about needs to be turned into a SafeUri in a legacy-API situation. For instance in this CL, the Image class has been refactored to use SafeUri internally. However, it retains the Image(String uri) constructor, which uses this method to turn the string into a SafeUri to call the Image(SafeUri uri) constructor with. I'd prefer that we don't use the fromTrustedString method in those situations: Use of that method is essentially an assertion by the programmer that they can ensure from context that the argument satisfies the SafeUri contract. In the Image(String) case, this is not so. I agree that the name isn't scary enough though. Perhaps, unsafeCastFromUntrustedString or something like that? http://gwt-code-reviews.appspot.com/1447812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UnifyAst (issue1451804)
http://gwt-code-reviews.appspot.com/1451804/diff/1055/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java File dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java (right): http://gwt-code-reviews.appspot.com/1451804/diff/1055/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode606 dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:606: clinit.setBody(new JMethodBody(SourceOrigin.UNKNOWN)); On 2011/06/02 17:50:03, jbrosenberg wrote: HmmmI'd think it would cause issues if multiple classes shared the exact same method body (even if it's empty). Some will want to prune it, others won't, etc. clinits can synthetically have calls to super() inserted in them, so they aren't all equivalent, in this case. Is that a problem even if the methods aren't live? http://gwt-code-reviews.appspot.com/1451804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)
On Thu, Jun 2, 2011 at 10:51, jlaba...@google.com wrote: http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java File user/src/com/google/gwt/safehtml/shared/UriUtils.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java#newcode209 user/src/com/google/gwt/safehtml/shared/UriUtils.java:209: * safe!/strong unsafeCastFromUntrustedString() is better. Can we also deprecate the method? Sounds good. Should I also deprecate methods that call this method (e.g. Image(String))? That would seem to make sense... Use code should always be able to use one of the other methods. Only library code (GWT and libraries based on GWT) have the legacy support problem. On 2011/06/02 17:45:16, xtof wrote: On 2011/06/02 13:47:05, jlabanca wrote: This method worries me. When I saw the name, I assumed it was the equivalent of fromString(). Anyone who looks at the method name without reading the JavaDoc might assume the same. I suggest we remove the method and let users manage unsafe URIs. That forces the user to make the tough decisions, whether they sanitize the URI, or call fromTrustedString() even if the URI isn't trusted. This method is intended for use in places where a string we don't know anything about needs to be turned into a SafeUri in a legacy-API situation. For instance in this CL, the Image class has been refactored to use SafeUri internally. However, it retains the Image(String uri) constructor, which uses this method to turn the string into a SafeUri to call the Image(SafeUri uri) constructor with. I'd prefer that we don't use the fromTrustedString method in those situations: Use of that method is essentially an assertion by the programmer that they can ensure from context that the argument satisfies the SafeUri contract. In the Image(String) case, this is not so. I agree that the name isn't scary enough though. Perhaps, unsafeCastFromUntrustedString or something like that? http://gwt-code-reviews.appspot.com/1447812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)
On 2011/06/02 17:59:40, xtof wrote: On Thu, Jun 2, 2011 at 10:51, mailto:jlaba...@google.com wrote: http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java File user/src/com/google/gwt/safehtml/shared/UriUtils.java (right): http://gwt-code-reviews.appspot.com/1447812/diff/1/user/src/com/google/gwt/safehtml/shared/UriUtils.java#newcode209 user/src/com/google/gwt/safehtml/shared/UriUtils.java:209: * safe!/strong unsafeCastFromUntrustedString() is better. Can we also deprecate the method? Sounds good. Should I also deprecate methods that call this method (e.g. Image(String))? That would seem to make sense... Agreed. Use code should always be able to use one of the other methods. Only library code (GWT and libraries based on GWT) have the legacy support problem. On 2011/06/02 17:45:16, xtof wrote: On 2011/06/02 13:47:05, jlabanca wrote: This method worries me. When I saw the name, I assumed it was the equivalent of fromString(). Anyone who looks at the method name without reading the JavaDoc might assume the same. I suggest we remove the method and let users manage unsafe URIs. That forces the user to make the tough decisions, whether they sanitize the URI, or call fromTrustedString() even if the URI isn't trusted. This method is intended for use in places where a string we don't know anything about needs to be turned into a SafeUri in a legacy-API situation. For instance in this CL, the Image class has been refactored to use SafeUri internally. However, it retains the Image(String uri) constructor, which uses this method to turn the string into a SafeUri to call the Image(SafeUri uri) constructor with. I'd prefer that we don't use the fromTrustedString method in those situations: Use of that method is essentially an assertion by the programmer that they can ensure from context that the argument satisfies the SafeUri contract. In the Image(String) case, this is not so. I agree that the name isn't scary enough though. Perhaps, unsafeCastFromUntrustedString or something like that? http://gwt-code-reviews.appspot.com/1447812/ http://gwt-code-reviews.appspot.com/1447812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Creates a delegate for CompilationResult for use by third party linkers. (issue1451808)
LGTM On 2011/06/02 12:37:54, bobv wrote: LGTM http://gwt-code-reviews.appspot.com/1451808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10267 committed - Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(...
Revision: 10267 Author: cod...@google.com Date: Thu Jun 2 08:06:45 2011 Log: Install files for version 1.0.10242 (Chrome,FFx,Safari) and 1.2.10242(IEx) -Chrome Tweak: old entries will show localhost for codeserver Review at http://gwt-code-reviews.appspot.com/1449810 http://code.google.com/p/google-web-toolkit/source/detail?r=10267 Modified: /trunk/plugins/ie/installer/oophm.wxs /trunk/plugins/ie/prebuilt/gwt-dev-plugin-x64.msi /trunk/plugins/ie/prebuilt/gwt-dev-plugin-x86.msi /trunk/plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java /trunk/plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.ui.xml /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json /trunk/plugins/npapi/prebuilt/gwt-dev-plugin.crx /trunk/plugins/webkit/prebuilt/gwt-dev-plugin.dmg /trunk/plugins/xpcom/prebuilt/gwt-dev-plugin.xpi === --- /trunk/plugins/ie/installer/oophm.wxs Mon Jan 24 08:49:19 2011 +++ /trunk/plugins/ie/installer/oophm.wxs Thu Jun 2 08:06:45 2011 @@ -12,7 +12,7 @@ /Fragment Fragment ComponentGroup Id=oophmDll -Component Win64=$(var.win64Flag) Id=cmpC5076456A3EE2DC3FC2683246BE38AD6 Directory=dir315E0C50682DFB472927FE1254A22F6A Guid=FA1A9445-6468-4AF2-9132-8089DBE4AA91 +Component Win64=$(var.win64Flag) Id=cmpC5076456A3EE2DC3FC2683246BE38AD6 Directory=dir315E0C50682DFB472927FE1254A22F6A Guid=66F951FF-F3CE-4C41-92EC-886F3A985ADF File Id=filEF78EFE99C26E3436EC9C8852A85BE88 KeyPath=yes Source=$(var.binDir)\oophm.dll TypeLib Id={9259F105-BE55-4BF6-B7CE-D0AA878C1BA6} Description=oophm 1.0 Type Library HelpDirectory=dir315E0C50682DFB472927FE1254A22F6A Language=0 MajorVersion=1 MinorVersion=0 AppId Description=oophm Id={F9365E53-5A14-47F3-BF1D-10CAAB815309} === --- /trunk/plugins/ie/prebuilt/gwt-dev-plugin-x64.msi Tue May 31 10:15:12 2011 +++ /trunk/plugins/ie/prebuilt/gwt-dev-plugin-x64.msi Thu Jun 2 08:06:45 2011 Binary file, no diff available. === --- /trunk/plugins/ie/prebuilt/gwt-dev-plugin-x86.msi Tue May 31 10:15:12 2011 +++ /trunk/plugins/ie/prebuilt/gwt-dev-plugin-x86.msi Thu Jun 2 08:06:45 2011 Binary file, no diff available. === --- /trunk/plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java Tue May 31 10:15:12 2011 +++ /trunk/plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java Thu Jun 2 08:06:45 2011 @@ -182,7 +182,7 @@ savedHosts.insertRow(numRows); savedHosts.setText(numRows, col++, names[0]); -savedHosts.setText(numRows, col++, names.length 0 ? names[1] +savedHosts.setText(numRows, col++, names.length 1 ? names[1] : localhost); savedHosts.setText(numRows, col++, newHost.include() ? Include : Exclude); === --- /trunk/plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.ui.xml Tue May 31 10:15:12 2011 +++ /trunk/plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.ui.xml Thu Jun 2 08:06:45 2011 @@ -34,22 +34,38 @@ but do not include any you do not trust./g:Label g:Label ui:field=errorMessage styleName={res.css.errorMessage}/ - div - div style=float:left + + g:Grid + g:row + g:customCell + g:Label styleName={res.css.important}Web server/g:Label + /g:customCell + g:customCell + g:Label styleName={res.css.important}Code server/g:Label + /g:customCell + /g:row + g:row + g:customCell g:TextBox ui:field=hostname styleName={res.css.textBox} / + /g:customCell + + g:customCell g:TextBox ui:field=codeserver styleName={res.css.textBox} / + /g:customCell + + g:customCell g:Button styleName={res.css.important} ui:field=addBtnAdd/g:Button - /div - div style=float:left - div - g:RadioButton name=include
[gwt-contrib] [google-web-toolkit] r10268 committed - Add a way to disable image inlining on a per-image basis....
Revision: 10268 Author: b...@google.com Date: Thu Jun 2 08:17:15 2011 Log: Add a way to disable image inlining on a per-image basis. Patch by: bobv Review by: rjrjr Review at http://gwt-code-reviews.appspot.com/1451809 http://code.google.com/p/google-web-toolkit/source/detail?r=10268 Modified: /trunk/user/src/com/google/gwt/resources/client/ImageResource.java /trunk/user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java /trunk/user/test/com/google/gwt/resources/client/ImageResourceTest.java === --- /trunk/user/src/com/google/gwt/resources/client/ImageResource.java Mon Jun 7 08:08:40 2010 +++ /trunk/user/src/com/google/gwt/resources/client/ImageResource.java Thu Jun 2 08:17:15 2011 @@ -55,6 +55,14 @@ */ int height() default -1; +/** + * Set to {@code true} to require the ImageResource to be downloaded as a + * separate resource at runtime. Specifically, this will disable the use of + * {@code data:} URLs or other bundling optimizations for the image. This + * can be used for infrequently-displayed images. + */ +boolean preventInlining() default false; + /** * This option affects the image bundling optimization to allow the image to * be used with the {@link CssResource} {@code @sprite} rule where === --- /trunk/user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java Tue Apr 26 08:02:24 2011 +++ /trunk/user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java Thu Jun 2 08:17:15 2011 @@ -191,9 +191,11 @@ * bytes should be associated with. */ static class BundleKey extends StringKey { -private static String key(ResourceContext context, -ImageResourceDeclaration image) { - if (image.getRepeatStyle() == RepeatStyle.Both) { +private static String key(ImageResourceDeclaration image, boolean isExternal) { + if (isExternal) { +return External: + image.get(); + } + if (image.isPreventInlining() || image.getRepeatStyle() == RepeatStyle.Both) { return Unbundled: + image.get(); } return Arranged: + image.getRepeatStyle().toString(); @@ -201,15 +203,10 @@ private final RepeatStyle repeatStyle; -public BundleKey(ImageResourceDeclaration image) { - super(External: + image.get()); +public BundleKey(ImageResourceDeclaration image, boolean isExternal) { + super(key(image, isExternal)); this.repeatStyle = image.getRepeatStyle(); } - -public BundleKey(ResourceContext context, ImageResourceDeclaration image) { - super(key(context, image)); - this.repeatStyle = image.getRepeatStyle(); -} public RepeatStyle getRepeatStyle() { return repeatStyle; @@ -314,7 +311,7 @@ String.class.getCanonicalName()); String contentsExpression = context.deploy( - localized.getUrl(), null, false); + localized.getUrl(), null, image.isPreventInlining()); normalContentsFieldName = fields.define(stringType, externalImage, contentsExpression, true, true); @@ -326,7 +323,7 @@ byte[] rtlData = ImageBundleBuilder.toPng(logger, rect); String rtlContentsUrlExpression = context.deploy(image.getName() -+ _rtl.png, image/png, rtlData, false); ++ _rtl.png, image/png, rtlData, image.isPreventInlining()); rtlContentsFieldName = fields.define(stringType, externalImage_rtl, rtlContentsUrlExpression, true, true); } @@ -384,6 +381,10 @@ public boolean isFlipRtl() { return options == null ? false : options.flipRtl(); } + +public boolean isPreventInlining() { + return options == null ? false : options.preventInlining(); +} } /** @@ -474,7 +475,7 @@ sw.println('' + name + \,); ImageResourceDeclaration image = new ImageResourceDeclaration(method); -DisplayedImage bundle = getImage(context, image); +DisplayedImage bundle = getImage(image); ImageRect rect = bundle.getImageRect(image); assert rect != null : No ImageRect ever computed for + name; @@ -542,10 +543,13 @@ LocalizedImage localizedImage; ImageRect rect; try { - BundledImage bundledImage = (BundledImage) getImage(context, image); + BundledImage bundledImage = (BundledImage) getImage(image); localizedImage = bundledImage.addImage(logger, context, image); rect = bundledImage.getImageRect(image); displayed = bundledImage; + if (image.isPreventInlining()) { +cannotBundle = true; + } } catch (CannotBundleImageException e) { cannotBundle = true; localizedImage = e.getLocalizedImage(); @@ -587,7 +591,7 @@ } ExternalImage externalImage = new ExternalImage(image, localizedImage, rect); - shared.externalImages.put(new BundleKey(image), externalImage); +
[gwt-contrib] [google-web-toolkit] r10269 committed - A SupportValidation class to make it easy to define a RPC method...
Revision: 10269 Author: gwt.mirror...@gmail.com Date: Thu Jun 2 11:48:07 2011 Log: A SupportValidation class to make it easy to define a RPC method so Hibernate ConstraintViolations are allowed to be serialized. Review at http://gwt-code-reviews.appspot.com/1443810 http://code.google.com/p/google-web-toolkit/source/detail?r=10269 Added: /trunk/user/src/org/hibernate/validator/engine/ValidationSupport.java Modified: /trunk/user/src/org/hibernate/validator/HibernateValidator.gwt.xml === --- /dev/null +++ /trunk/user/src/org/hibernate/validator/engine/ValidationSupport.java Thu Jun 2 11:48:07 2011 @@ -0,0 +1,50 @@ +/* + * Copyright 2011 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 org.hibernate.validator.engine; + +import com.google.gwt.user.client.rpc.IsSerializable; + +import java.util.HashSet; + +/** + * Exposes Hibernate Validator Implementation Classes so they can be serialized. + * p + * Create a dummy method like the following in your RemoteService + * + * pre + * org.hibernate.validator.engine.ValidationSupport dummy(); + * /pre + * + * The following classes are included. + * ul + * li{@link ConstraintViolationImpl}/li + * li{@link PathImpl}/li + * li{@link HashSet}/li + * /ul + * + */ +public class ValidationSupport implements IsSerializable { + + @SuppressWarnings(unused) + private ConstraintViolationImpl? constraintViolationImpl; + + @SuppressWarnings(unused) + private PathImpl pathIpml; + + @SuppressWarnings(unused) + private HashSet? hashSet; +} === --- /trunk/user/src/org/hibernate/validator/HibernateValidator.gwt.xml Thu Apr 14 08:22:41 2011 +++ /trunk/user/src/org/hibernate/validator/HibernateValidator.gwt.xml Thu Jun 2 11:48:07 2011 @@ -11,6 +11,7 @@ /source source path=engine include name=ConstraintViolationImpl*.java/ +include name=ValidationSupport.java/ include name=NodeImpl.java/ include name=PathImpl*.java/ /source -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
LGTM http://gwt-code-reviews.appspot.com/1450810/diff/5006/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/5006/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode65 user/src/com/google/gwt/user/client/ui/PotentialElement.java:65: * Cast an {@link Element} to be used as a PotentialElement. Assert that the given {@link JavaScriptObject} is a PotentialElement and automatically typecast it. http://gwt-code-reviews.appspot.com/1450810/diff/5006/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode67 user/src/com/google/gwt/user/client/ui/PotentialElement.java:67: public static PotentialElement as(JavaScriptObject o) { assert is(o); http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)
http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/DOM.java#newcode57 user/src/com/google/gwt/user/client/DOM.java:57: * {@link PotentialElement#finishBuild} method is called and then returned On 2011/06/02 17:12:30, rjrjr wrote: and then should be and the Done. http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/DOM.java#newcode63 user/src/com/google/gwt/user/client/DOM.java:63: public static void appendChild(Element parent, Element child) { On 2011/06/02 17:12:30, rjrjr wrote: assert ! PotentialElement.is(parent) : Cannot append to a PotentialElement; Done. http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/PotentialElement.java File user/src/com/google/gwt/user/client/ui/PotentialElement.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/PotentialElement.java#newcode21 user/src/com/google/gwt/user/client/ui/PotentialElement.java:21: /** On 2011/06/02 17:12:30, rjrjr wrote: * EXPERIMENTAL and subject to change. Do not use this in production code. * p Done. http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/UIObject.java File user/src/com/google/gwt/user/client/ui/UIObject.java (right): http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/UIObject.java#newcode808 user/src/com/google/gwt/user/client/ui/UIObject.java:808: /** On 2011/06/02 17:12:30, rjrjr wrote: I'd still like this to be inlined. Done. http://gwt-code-reviews.appspot.com/1450810/diff/3008/user/src/com/google/gwt/user/client/ui/UIObject.java#newcode895 user/src/com/google/gwt/user/client/ui/UIObject.java:895: protected Element finishBuild() { On 2011/06/02 17:12:30, rjrjr wrote: How about we rename this method resolvePotentialElement. /** * EXPERIMENTAL and subject to change. Do not use this in production code. * p * To be overridden by {@link IsRenderable} subclasses that initialize themselves by by calling * codesetElement(PotentialElement.build(this))/code. * p * The receiver must: * ul * li create a real {@link Element} to replace its {@link PotentialElement} * li call {@link #setElement()} with the new Element * li and return the new Element * /ul * p * This method is called when the receiver's element is about to be * added to a parent node, as a side effect of {@link DOM#appendChild}. * p * Note that this method is normally called only on the top element * of an IsRenderable tree. Children instead will receive {@link * IsRenderable#render} and {@link IsRenderable#wrap}. * * @see PotentialElement * @see IsRenderable */ Done. http://gwt-code-reviews.appspot.com/1450810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Google APIs Support for GWT Developers
*(Cross-posted from the gwt-google-apis forum)* At Google I/O last month, the Google APIs team introduced a couple exciting new technologies to make Google's APIs easier to consume. The first was the Google APIs Discovery Servicehttp://www.google.com/events/io/2011/sessions/building-custom-client-libraries-for-google-apis.html, that lists and describes some of Google's new APIs. The second was a series of generated Java libraries to communicate with these APIshttp://code.google.com/p/google-api-java-client/wiki/Setup#Generated_libraries_for_Google_APIs, built on the Discovery Service, designed to work with lots of standard Java environments, including App Engine and Android. Today, I have the pleasure of announcing that, in addition to generated libraries for standard Java environments, we are also releasing libraries specifically optimized for GWT, as part of the Google API Libraries for GWT (GALGWT) project. The available services currently include: - Books API - Buzz API - Latitude API - Moderator API - Prediction API - Tasks API - URL Shortener API (goo.gl) - ...and many more - ...and even more coming soon! These libraries are designed and optimized for the GWT platform, and make requests directly from the browser, without requiring you to write any server-side code. They are built on GWT's RequestFactoryhttp://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.htmlinfrastructure, and so should look and feel very familiar to anyone who has used RequestFactory in a GWT application before, but without having to write the server-side component -- Google's APIs are the server-side component -- no middle man! You can check out the full list of supported services and some sample applications at the Samples pagehttp://code.google.com/p/gwt-google-apis/wiki/GoogleAPIsSamples, or learn how to get started by reading the documentationhttp://code.google.com/p/gwt-google-apis/wiki/GoogleAPIsGettingStarted . These libraries are alpha libraries, and are presented so that we can gather feedback about them to improve them further. They are under active development and may change in breaking ways in the future. If you use these libraries, please let us know what you think in the GALGWT forumhttp://groups.google.com/group/GWT-Google-Apis, and file bugs and feature requests in the Issue Trackerhttp://code.google.com/p/gwt-google-apis/issues/list. We're hoping to continually improve the quality and stability of the libraries over time, and your feedback is important in achieving that goal. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors