Re: GWT Serialization ???
Hi, Thanks for our reply, well I was considering doing DTO but thought there were a better way to do it. I hoped someone had a better way. But Ok I getting to it creating my DTOs. Cheers, Jero On Mar 26, 6:20 pm, Jason Essington jason.essing...@gmail.com wrote: If you don't have access to the source for your hibernate objects, then you'll need to create DTOs (data transfer objects) that are essentially identical to your hibernate objects. You can then manually marshal the values, or use a bean mapping library such as Dozer to do the work automagically. I generally use this technique even when I have the source for my server side objects as most of my objects have information that is not appropriate to send to the client anyway. -jason On Mar 26, 2009, at 7:41 AM, jero wrote: Hi, I am new to GWT and I have been playing around with GWT. Now I want to retrieve via hibernate using a RemoteService call ths content from a database. I have already a jar (provided by the db guys) where the domain is reflected. The problem I have is when I use it I always receive serialization problems form some classes of the domain. I know that if I extend my entity classes wit IsSerializable than the serialization works fine and I have no problem. I have been reading around and found that if you add your class to the *.gwt.rpc file than this would to the trick, well for me it didn't work, still serialization problem. I googled and found the Gilead project (former hibernate4gwt), what I don't like is that I have to extend my entity classes, but I am not allowed I am not maintining the db classes. So I am a bit stuck and after googling for last few days I didn't manage to find a proper solution. How can I get rid of the serialization problem, any suggestions are welcome? Thanks, Jero --~--~-~--~~~---~--~~ You received 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: IE8 support ?
I did encounter an issue with IE8: http://code.google.com/p/google-web-toolkit/issues/detail?id=3329 I agree with the OP that some words from the GWT team on IE8 support would be welcome. On Mar 20, 10:51 am, alex.d alex.dukhov...@googlemail.com wrote: IE8has compatibility mode which allows you to emulate other IE versions. I just installedIE8and i'm testing it with my rather big application (approx. 1Mb obfuscated java-script code) and so far not even one problem WITHOUT compatibility mode. P.S. Using gwt 1.5.3 On 20 Mrz., 08:19, Ramas ram...@gmail.com wrote: SinceIE8is just released, may we have an official statement, whether support for it will be included in GWT 1.6, or will it be added to next versions of GWT ? Thank You ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Connecting to site 127.0.0.1
Have had this same issue - working on Netbeans 6.5 Restarting the IDE works but that's to long. I'll check out Lothars suggestion On Mar 27, 2:49 am, Roberts M. roberts.men...@gmail.com wrote: One workaround could be to change GWT port on every run, using command line option -port 8889 (e.g. making 10 scripts, each with different port). On Mar 24, 3:50 am, Sunny sunny...@gmail.com wrote: I have been using TCPView (http://technet.microsoft.com/en-us/ sysinternals/bb897437.aspx) and found that sometimes after closing a GWT instance, even though the java process has ended theres still a port in TIME_WAIT under a system process. All I can do is wait for it to finish waitingbut maybe this might give someone some hints. http://www.sunny.id.au/gwt/processes.jpg On Mar 9, 11:19 am, Ralph ralphchel...@gmail.com wrote: Having the same problem here. Isn't there a way to improve the script running the hosted. Like use a different port when is used, or close previous instance before opening a new one, or make sure that the previous run released the port before running a new instance. Hope someone has a solution. On Feb 15, 10:29 pm, sunny...@gmail.com sunny...@gmail.com wrote: This one has been bugging me for a while now, and I haven't seen anything around like this one. I have a Eclipse+Cypal Studio project that has grown to a reasonable size, and while testing I still use the GWT hosted mode to run. My machine doesn't have anything else running on port , but occasionally when I start the project, the hosted browser's status bar just says Connecting to site at 127.0.0.1 but nothing happens (browser window is blank). I'd have to close GWT and restart it for it to work (sometimes 5 or 6 times before it works). I have no clue what would be causing this or even where to start to look to try and fix it. This project uses Hibernate and GWT-Ext, if that helps at all. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: RPC Performance/Response Problem
No, i haven't tried that so far, i will do so and let you know if it's getting better. Maybe a List needs less time to be serialized and deserialized. Greetings, -Lord-67 On Mar 26, 6:27 pm, lukehashj bobwazn...@gmail.com wrote: Have you tried using a List instead of an array? On Mar 26, 2:46 am, -Lord-67 -lord...@web.de wrote: First of all: Hi to everyone! I'm new to GWT and just programming my first app. Since i've some experience in Java it's not a big problem, but in this case i am stuck and hopefully someone can help me. In my app i make a RPC: On server side i get some data out of a database and save it into an array of type String. Up to 10.000 Strings atm, later on maybe up to 50.000. It is no problem so far. The server is handling this really fast. I measured 5 RPCs with about 500 Strings each and it took less time than 200 milliseconds each (SQL Statement + creating the array). The problem now is: I have to wait 5 SECONDS to get the results of the RPC (the String[] created on the server) on the client side so i can do something with them. Regarding the overall time i measured, these 5 seconds are more than 75% of the time which my app needs. Is it possible that the serialization and deserialization takes that much time? I don't think so and i have no clue where this 5 seconds come from. If someone has any ideas, solutions, suggestions on this problem i would appreciate any help! Thanks in advance, -Lord-67 P.s.: Of course i searched for a solution for this problem for hours, if i somehow just typed the wrong keywords to get the fitting results, just let me know and post a link :-). --~--~-~--~~~---~--~~ You received 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: how to easily plug-in a mock remote service
Would this help? Mocking GWT Asynchronous Services (with JMock) http://www.jmock.org/gwt.html Note that this example doesn't even require a GWTTestCase, which means your tests will run much faster, but you won't get any of the JavaScript support offered by hosted mode. This might require restructuring your code a bit so you're not invoking any GWT library code that uses native JavaScript (e.g. widgets) or GWT.create(), but I've found having more of these fast tests helps keep my state of flow while coding. If you do have widgets in your test, you can also use GWTMockUtilities to mock those as well - assuming they get passed in as dependencies. Would this work for you? Dan On Mar 26, 10:20 am, denis56 denis.ergashb...@gmail.com wrote: Hello, I would like to unit test my application plugging a mock remote service implementation. As far as I know in version 1.5 that is being used, hosted mode uses servlet path=/myService class=test.myServiceImpl / line in module.gwt.xml file to refer to the right servlet. Who knows if if there is a programmable way so that in a junit set-up method one could specify that another (mock) service should be used, without having to replace the appropriate line in xml? 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 -~--~~~~--~~--~--~---
GWT 1.5.3 Compiler error with org.cobogw.gwt-1.2.2.jar file
All: I am receiving a compilation error stating that the source file for the classes I import from the org.cobogw.gwt-1.2.2.jar cannot be found. 1. I have the following lineinherits name='org.cobogw.gwt.user.User'/ in my project.gwt.xml file 2. org.cobogw.gwt-1.2.2.jar is in the classpath during compilation 3. Using an ant build script Any help would be greatly appreciated, thanks nick --~--~-~--~~~---~--~~ You received 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: RPC Performance/Response Problem
Hi Lord-67 I don't think your selection of data structure for the data transfer will make nuch material difference. Your observation that 500 strings works hunky dory, but 10,000 doesn't is pretty much my experience. The issue is divided into two parts: first the time taken to assemble, serialize and then deserialze the List of objects. Second the time taken to render the objects in a widget. You may not know this but it takes browsers an appreciable amount of time to render thousands of items - each one has to have a number of HTML boxes drawn for it. Test this yourself by making a simple test Tree created from some nested for loops on the client, and you will see that once you get up to 1500 or so TreeItems it starts to slow down noticably, and round about 5000 it takes seconds to draw. Note also different browsers give different performance in some situations, so you need to consider that too. Another important thing is that RPC is *much* slower in hosted mode than it is deployed in web mode (in case you haven't rumbled that yet). You can try two approaches to solve this: the classic lazy load, and the FastTree approach. In the lazy load approach you fetch only a screen full of items at a time (in a tree you would get just the top level items etc). next link fetches the next batch. This usually produces a response time from the user's perspective of 0.5s, which for them is a good as instant. Therefore although technically each page flip is slow (involving a fresh RPC call for each page) it is not perceived as such, the user does not have to wait seconds for the data to load. In the fast tree approach you fetch all the data in one RPC call, but only actually draw screen full at a time, using the full list as a backing model instead of making a fresh RPC call for each page. This makes navigating the items in the UI very fast once the data model is loaded because only the visible HTML boxes required are actually drawn, but you pay a pre-loading price up front in the big RPC call. Which is best depends largely on your application and user requirements and also on the precise time it takes to fetch the entire list over RPC. For example if your users will routinely want to sort, filter or search through a large data set in complex ways, then they will probably thank you for implementing the fast tree idea and be happy to wait maybe 2 or 3 seconds to fetch the all data up front because the subsequent operations will be much faster. On the other hand if a 1 item list is unusual, or they would normally only be interested in first page of two (typical for search results for example) then the classic lazy load is almost certainly best as it gives them a much quicker render of the first screen full. I'd say the first thing to do is to is to time your RPC call round trip separately from your screen render times to get a feel for the numbers, but do this in web mode either over web or on LAN, whichever is appropriate for your typical user, in a selection of popular browsers. regards gregor On Mar 27, 10:35 am, -Lord-67 -lord...@web.de wrote: No, i haven't tried that so far, i will do so and let you know if it's getting better. Maybe a List needs less time to be serialized and deserialized. Greetings, -Lord-67 On Mar 26, 6:27 pm, lukehashj bobwazn...@gmail.com wrote: Have you tried using a List instead of an array? On Mar 26, 2:46 am, -Lord-67 -lord...@web.de wrote: First of all: Hi to everyone! I'm new to GWT and just programming my first app. Since i've some experience in Java it's not a big problem, but in this case i am stuck and hopefully someone can help me. In my app i make a RPC: On server side i get some data out of a database and save it into an array of type String. Up to 10.000 Strings atm, later on maybe up to 50.000. It is no problem so far. The server is handling this really fast. I measured 5 RPCs with about 500 Strings each and it took less time than 200 milliseconds each (SQL Statement + creating the array). The problem now is: I have to wait 5 SECONDS to get the results of the RPC (the String[] created on the server) on the client side so i can do something with them. Regarding the overall time i measured, these 5 seconds are more than 75% of the time which my app needs. Is it possible that the serialization and deserialization takes that much time? I don't think so and i have no clue where this 5 seconds come from. If someone has any ideas, solutions, suggestions on this problem i would appreciate any help! Thanks in advance, -Lord-67 P.s.: Of course i searched for a solution for this problem for hours, if i somehow just typed the wrong keywords to get the fitting results, just let me know and post a link :-). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send
Theme changer
I have used themes shown in gwtext showcase, but it cann't reflect on firefox 3.x browser. Any solution. -- Vruddhi Shah Pyther Innovations Pvt. Ltd. Land line: 91 78 40074893 617, Devpath Complex C.G. Road, Ahmedabad India www.gwt4enterprise.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 -~--~~~~--~~--~--~---
DD property in dataview
Hello Everyone, Any one has idea how to make dataview elements draggable. I found code for it with ext js but I am not comfortable with js. so any one guide me how to implement it using gwt java code. -- Vruddhi Shah Pyther Innovations Pvt. Ltd. Land line: 91 78 40074893 617, Devpath Complex C.G. Road, Ahmedabad India www.gwt4enterprise.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 -~--~~~~--~~--~--~---
Re: RPC Performance/Response Problem
Hi gregor, thank you for this detailed answer. First: I'm not sure if i understood everything since english is not my first language as you might have noticed. Sorry if i misunderstood something, i do my best. You're right what belongs the selection of data structure. I tried that and it makes no difference using a String[] or a ListArray of Strings to use as return value for the RPC. I know that rendering thousands of items takes some time, but that's not what i do with the data. I already use a model like you described in FastTree. I just fetch all the data (in my case paths to images in a String[]) from the server via RPC and show the user just 10-50 pictures per page. I create only 10 images (100px*100px) + a paging menu (first tab) and 2 tables(grids with fix size) (second, third tab). In my opinion rendering these few items (say max. 50) is not the problem, right? The kind of model you described as LazyLoad is something i also thought of, but i liked the idea of waiting one time for about 3 seconds and working on this set without having to wait any more (this is what my users would like most). That's why i haven't tried it so far. I already measured the RPC call round trip time, think i haven't said that clearly enough in my first post: - Starting the RPC (sending search parameters via RPC to the server): (no time i could measure in ms - 0ms) - server gets data per SQL statement and puts it into a String[] (the return value of the RPC): This step takes less than 200 ms [i measured the time from the start of RPC on server until the last statement, before return myStringArray; ] - server serializes the data and sends it to client which deserializes it: This step takes about 5 SECONDS [i measured the time from sending the RPC to the server until i got the first answer on the client with onSuccess() and substracted the 200ms ] - client saves the data in a lokal String[] and uses some of them to load and render 10 pictures and 2 tables: This step takes 1.2 seconds [i measured the time from onSuccess() beginning to the end ] So i am no step forward so far, but: I think i didn't test it in web mode for a long time (why should i, everything was fine on hosted and on web mode in the beginning and hosted mode is much easier for a quick test) so i will try that and hope it solves the problem. I will tell you the results on monday since i am not working the next two days. Thanks all for the help so far! Greetings, -Lord-67 On Mar 27, 2:00 pm, gregor greg.power...@googlemail.com wrote: Hi Lord-67 I don't think your selection of data structure for the data transfer will make nuch material difference. Your observation that 500 strings works hunky dory, but 10,000 doesn't is pretty much my experience. The issue is divided into two parts: first the time taken to assemble, serialize and then deserialze the List of objects. Second the time taken to render the objects in a widget. You may not know this but it takes browsers an appreciable amount of time to render thousands of items - each one has to have a number of HTML boxes drawn for it. Test this yourself by making a simple test Tree created from some nested for loops on the client, and you will see that once you get up to 1500 or so TreeItems it starts to slow down noticably, and round about 5000 it takes seconds to draw. Note also different browsers give different performance in some situations, so you need to consider that too. Another important thing is that RPC is *much* slower in hosted mode than it is deployed in web mode (in case you haven't rumbled that yet). You can try two approaches to solve this: the classic lazy load, and the FastTree approach. In the lazy load approach you fetch only a screen full of items at a time (in a tree you would get just the top level items etc). next link fetches the next batch. This usually produces a response time from the user's perspective of 0.5s, which for them is a good as instant. Therefore although technically each page flip is slow (involving a fresh RPC call for each page) it is not perceived as such, the user does not have to wait seconds for the data to load. In the fast tree approach you fetch all the data in one RPC call, but only actually draw screen full at a time, using the full list as a backing model instead of making a fresh RPC call for each page. This makes navigating the items in the UI very fast once the data model is loaded because only the visible HTML boxes required are actually drawn, but you pay a pre-loading price up front in the big RPC call. Which is best depends largely on your application and user requirements and also on the precise time it takes to fetch the entire list over RPC. For example if your users will routinely want to sort, filter or search through a large data set in complex ways, then they will probably thank you for implementing the fast tree idea and be happy to wait maybe 2 or 3 seconds to fetch the all data up
the whitehouse gov gwt application
from ongwt.com, i saw this http://www.whitehouse.gov/OpenForQuestions/. apparently, it was from gwt application http://moderator.appspot.com/#16/e=1a26 i want to know what must i add in order to have something that look as decent as the above. CSS? sorry as i am new in web designing and web programming. many thanks, bryan --~--~-~--~~~---~--~~ You received 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: RPC Performance/Response Problem
On 26 mar, 09:46, -Lord-67 -lord...@web.de wrote: First of all: Hi to everyone! I'm new to GWT and just programming my first app. Since i've some experience in Java it's not a big problem, but in this case i am stuck and hopefully someone can help me. In my app i make a RPC: On server side i get some data out of a database and save it into an array of type String. Up to 10.000 Strings atm, later on maybe up to 50.000. It is no problem so far. The server is handling this really fast. I measured 5 RPCs with about 500 Strings each and it took less time than 200 milliseconds each (SQL Statement + creating the array). The problem now is: I have to wait 5 SECONDS to get the results of the RPC (the String[] created on the server) on the client side so i can do something with them. Regarding the overall time i measured, these 5 seconds are more than 75% of the time which my app needs. Is it possible that the serialization and deserialization takes that much time? I don't think so and i have no clue where this 5 seconds come from. If someone has any ideas, solutions, suggestions on this problem i would appreciate any help! Short answer: do not use GWT-RPC to transport a large amount of data. Longer answer: http://blog.flickr.net/en/2009/03/17/find-people-faster/ HTH --~--~-~--~~~---~--~~ You received 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: Announcing GWT 1.6 Release Candidate
Is there an approximate release date for 1.6? Like in April or not before christmas. I was unable to find such a page... On 18 Mrz., 21:32, Bruce Johnson br...@google.com wrote: Good news! Google Web Toolkit 1.6 RC is ready for you to download and try out: http://code.google.com/p/google-web-toolkit/downloads/list?q=1.6.2 For background on what's new in GWT 1.6, please see the still-in-progress doc: http://code.google.com/docreader/?p=google-web-toolkit-doc-1-6s=goog... as well as previous 1.6-related announcements: Announcing GWT 1.6 Milestone 1http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... and Announcing GWT 1.6 Milestone 2http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... For complete details, the GWT issue tracker has the full list of changes: http://code.google.com/p/google-web-toolkit/issues/list?can=2q=miles... We expect this to be a short RC cycle, so a more comprehensive blog post with an overview of the features in GWT 1.6 should be just around the corner. -- Bruce, on behalf of the GWT team --~--~-~--~~~---~--~~ You received 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: Problem with french special character in GWT
On 26 mar, 11:10, Sandeep sandip.pati...@gmail.com wrote: Hi, I have a simple GWT application which takes String and gives me reverse of the string. Problem here is that when i send the String to servlet and try to print it there ? is printed on tomcat instead of special characters for french. Same is happening with Russian characters. But i am getting correctly reversed string at client side when display result as a popup. Can any one explain me why is it behaving so? Your console (or log file) probably uses an encoding that doesn't support those characters. Will it get stored in database properly if i want to do so? It depends the encoding of the database. If you set it to UTF-8 or any other encoding capable of handling Unicode you shouldn't have any problem (same for your console/log file encoding) --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Drag Controller gives null object error in IE
Hi All, I am facing very weired problem in IE. I have two separate panels on one page. First panel has some records which are draggable and target is second panel Now the problem is when I drag any record and dropping it there itself after dragging very little, it gives an error 'com_google_gwt_user_client_ui_UIObject_element' is null or not an object I tried debugging it with Visual studio debugger but not able to get the exact place of problem. The debugger points it to last finally statement in following function. function com_google_gwt_user_client_CommandExecutor_ $doExecuteCommands__Lcom_google_gwt_user_client_CommandExecutor_2D(this $static, startTimeMillis){ var command, element, wasCanceled; wasCanceled = false; try { this$static.com_google_gwt_user_client_CommandExecutor_executing = true; this $static.com_google_gwt_user_client_CommandExecutor_iterator.com_google_gwt_user_client_CommandExecutor $CircularIterator_end = this $static.com_google_gwt_user_client_CommandExecutor_commands.java_util_ArrayList_size; com_google_gwt_user_client_Timer_ $schedule__Lcom_google_gwt_user_client_Timer_2I(this $static.com_google_gwt_user_client_CommandExecutor_cancellationTimer, 1); while (com_google_gwt_user_client_CommandExecutor$CircularIterator_ $hasNext__Lcom_google_gwt_user_client_CommandExecutor $CircularIterator_2(this $static.com_google_gwt_user_client_CommandExecutor_iterator)) { element = com_google_gwt_user_client_CommandExecutor $CircularIterator_$next__Lcom_google_gwt_user_client_CommandExecutor $CircularIterator_2(this $static.com_google_gwt_user_client_CommandExecutor_iterator); try { if (element == null) { return; } if (element != null com_google_gwt_lang_Cast_canCast__II (element.java_lang_Object_typeId$, 49)) { command = com_google_gwt_lang_Cast_dynamicCast__Ljava_lang_Object_2I(element, 49); command.execute__(); } else { } } finally { wasCanceled = this $static.com_google_gwt_user_client_CommandExecutor_iterator.com_google_gwt_user_client_CommandExecutor $CircularIterator_last == -1; if (wasCanceled) { return; } com_google_gwt_user_client_CommandExecutor$CircularIterator_ $remove__Lcom_google_gwt_user_client_CommandExecutor$CircularIterator_2 (this$static.com_google_gwt_user_client_CommandExecutor_iterator); } if ((new Date()).getTime() - startTimeMillis = 100) { return; } } } finally { if (!wasCanceled) { com_google_gwt_user_client_Timer_ $cancel__Lcom_google_gwt_user_client_Timer_2(this $static.com_google_gwt_user_client_CommandExecutor_cancellationTimer); this$static.com_google_gwt_user_client_CommandExecutor_executing = false; com_google_gwt_user_client_CommandExecutor_ $maybeStartExecutionTimer__Lcom_google_gwt_user_client_CommandExecutor_2 (this$static); } } } I have added PickupDragController like this. pickupDragController = new PickupDragController ( RootPanel.get(), false ); pickupDragController.setBehaviorDragProxy( true ); pickupDragController.setBehaviorDragStartSensitivity( 10 ); ProgramSettings.setDragController( pickupDragController ); Please let me know if anybody has any idea or solution to it. Thanks in advance - JaveD --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your classpath;
Hi, I have just started using GWT and i started with a very simple project i found in a book . When i execute it from the command prompt for the first time it's working fine. Then i try and import project to eclipse and while executing i get this error. [ERROR] Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? i have included gwt-dev-windows.jar and gwt-user.jar in the build path. After this now when i execute gwtasks-shell from command prompt i get this error [ERROR] Unable to load module entry point class com.apress.gwt.client.GWTasks java.lang.NullPointerException: null at com.apress.gwt.client.GWTasks.onModuleLoad(GWTasks.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:64) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:324) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$100 (BrowserWidgetIE6.java:19) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:45) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:98) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:199) [ERROR] Failure to load module 'com.apress.gwt.GWTasks' I am using gwt-windows-1.0.20 since i have jdk1.4 on this system . I would really appreciate if i could get any help . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 RPC problem..
Hi All, I am new to GWT. I am getting problem in calling the RPC methods. before I had problem with entity not mapped, it solved now but getting new problem that not returning any valued from *getOneByLoginAndPassword* method.. I get value from database but not *LoginImpl*.. gettting following error and source code given as well [WARN] StandardContext[]Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.mycompany.client.gwtinterfaces.Login.login(java.lang.String,java.lang.String)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:289) ..skip .. .. Caused by: java.lang.NullPointerException: null at com.mycompany.server.LoginImpl.login(LoginImpl.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:289) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) source Code is as follows.. *1.* *public class LoginImpl extends RemoteServiceServlet implements Login {* *public String login(String user, String password) {* System.out.println( user+user+ pass;+password); * UserLogin userLogin = new UserLoginsDb().getOneByLoginAndPassword(user, password)*; System.out.println(User is: +userLogin.login);* // Not getting any thing gives error* *}* *}* *2.* *public class UserLoginsDb extends GenericDbOperationsUserLogin {* public UserLogin *getOneByLoginAndPassword(String login, String password)* { try { * return new NativeSqlQueryExecutorUserLogin().executeSqlOneRow( select * from userlogin where login=:login and cryptedpassword=:password and isactive=1, new String[]{login,password}, new Object[]{login,password});* } catch (TooManyRowsException e) { // TODO Auto-generated catch block LogMain.error(e.getMessage()); return null; } } *}* * 3. public T executeSqlOneRow( String sql, String[] paramNames, Object[] paramValues) throws TooManyRowsException {* * ListT l=executeSql(sql,paramNames,paramValues);* if (l.size()==0) return null; // if (l.size()1) throw new TooManyRowsException(); System.out.println(excuteSQL one row +l.get(0)); * // I am getting object output here* System.out.println(excuteSQL one row +l.size()); * // I am getting object output here* return l.get(0); *}* *4.* @SuppressWarnings(unchecked) *public ListT executeSql(String sql, String[] paramNames, Object[] paramValues) {* Session sess = null; try { sess = HibernateUtil.getSessionWithTransaction(); Query query = sess.createSQLQuery(sql); if (paramNames != null) { for (int i = 0; i paramNames.length; i++) { query.setParameter(paramNames[i], paramValues[i]); } } ListT list = (ListT) query.list(); // here hibernate executes the query sess.close(); return list; } finally { if (sess != null) { if (sess.isOpen()) if (sess.getTransaction() != null) sess.getTransaction().rollback(); } } * }* Can anybody please tell where is the problem. Really don't understand why.. if anything more needed please let me know.. thx in advance. --~--~-~--~~~---~--~~ You received this message because you are
Re: Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your classpath;
If I were you, I'd use the latest stable version (1.5) or, since you are learning, the latest released version (1.6 which has major differences to 1.5) I don't think anyone here can really remember how version 1.0 works any more. You will need to get a more recent version of Java, too. Ian http://examples.roughian.com 2009/3/27 ritu6386 ritu0...@gmail.com Hi, I have just started using GWT and i started with a very simple project i found in a book . When i execute it from the command prompt for the first time it's working fine. Then i try and import project to eclipse and while executing i get this error. [ERROR] Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? i have included gwt-dev-windows.jar and gwt-user.jar in the build path. After this now when i execute gwtasks-shell from command prompt i get this error [ERROR] Unable to load module entry point class com.apress.gwt.client.GWTasks java.lang.NullPointerException: null at com.apress.gwt.client.GWTasks.onModuleLoad(GWTasks.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:64) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:324) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$100 (BrowserWidgetIE6.java:19) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:45) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:98) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:199) [ERROR] Failure to load module 'com.apress.gwt.GWTasks' I am using gwt-windows-1.0.20 since i have jdk1.4 on this system . I would really appreciate if i could get any help . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: the whitehouse gov gwt application
Yup. I find you need someone with a strong sense of aesthetics to design your layout your CSS. Then you use GWT to create their layout presto magico you've got a good looking site. Not as easy as it sounds unfortunately. On Fri, Mar 27, 2009 at 11:01 AM, ytbryan ytbr...@gmail.com wrote: from ongwt.com, i saw this http://www.whitehouse.gov/OpenForQuestions/. apparently, it was from gwt application http://moderator.appspot.com/#16/e=1a26 i want to know what must i add in order to have something that look as decent as the above. CSS? sorry as i am new in web designing and web programming. many thanks, bryan --~--~-~--~~~---~--~~ You received 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: Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your classpath;
Something on line 36 of GWTTask.java is null. If it isn't obvious from looking at your code what, exactly, is null, then you can set a breakpoint and run in debug mode (possible from the command line, but why make things difficult? Just use Eclipse or some other IDE). If you then can't figure out why whatever it is is null, post the relevant code. I'm going to take a wild guess and say you have something like RootPanel.get(foo).add(something) and there isn't an element with ID of foo in your HTML. But that is, again, simply a wild guess. On Fri, Mar 27, 2009 at 8:18 AM, ritu6386 ritu0...@gmail.com wrote: Hi, I have just started using GWT and i started with a very simple project i found in a book . When i execute it from the command prompt for the first time it's working fine. Then i try and import project to eclipse and while executing i get this error. [ERROR] Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? i have included gwt-dev-windows.jar and gwt-user.jar in the build path. After this now when i execute gwtasks-shell from command prompt i get this error [ERROR] Unable to load module entry point class com.apress.gwt.client.GWTasks java.lang.NullPointerException: null at com.apress.gwt.client.GWTasks.onModuleLoad(GWTasks.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:64) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:324) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$100 (BrowserWidgetIE6.java:19) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:45) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:98) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:199) [ERROR] Failure to load module 'com.apress.gwt.GWTasks' I am using gwt-windows-1.0.20 since i have jdk1.4 on this system . I would really appreciate if i could get any help . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
Communication from GWT Module (main application window) to new child Window and vice versa
Hi, I am creating a child Window using Window.oper(Url,...); I need: 1 - a handler of this child window to close it from my GWT module code 2 - In child window need a handler of GWT module (main application window) to call some functionality in main application Over here I think I need to get parent handler using window.handler from child window , get the gwt module div, and then call GWT Function. But I don't have any idea on how to do it as of now. Any suggestions, thoughts and sample will be appreciated. Thanks, Bakul. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Whats the GWT equivalent of urlencode?
I got data being recieved in my GWT program from a PHP function which is using urlencode(string) to encode the data. What do I need to do on the GWT to correctly decode this data? I tried just URL.decode(string) but this clearly isnt decodeing it correctly (slash's, for example, are still +%2F) What other decodeing functinos are there? Or should I change the php end to encode it differently? --~--~-~--~~~---~--~~ You received 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: Announcing GWT 1.6 Release Candidate
hi googelybear, We don't preannounce release dates (mostly because we're never sure ourselves... you never know what issues people might run into using the RC). Unofficially, it looks like things are in pretty good shape, so I would be surprised if we haven't shipped within the next month or so-- just don't hold me to that. :) Scott On Fri, Mar 27, 2009 at 11:21 AM, googelybear googelyb...@gmail.com wrote: Is there an approximate release date for 1.6? Like in April or not before christmas. I was unable to find such a page... On 18 Mrz., 21:32, Bruce Johnson br...@google.com wrote: Good news! Google Web Toolkit 1.6 RC is ready for you to download and try out: http://code.google.com/p/google-web-toolkit/downloads/list?q=1.6.2 For background on what's new in GWT 1.6, please see the still-in-progress doc: http://code.google.com/docreader/?p=google-web-toolkit-doc-1-6s=goog... as well as previous 1.6-related announcements: Announcing GWT 1.6 Milestone 1 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... and Announcing GWT 1.6 Milestone 2 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... For complete details, the GWT issue tracker has the full list of changes: http://code.google.com/p/google-web-toolkit/issues/list?can=2q=miles... We expect this to be a short RC cycle, so a more comprehensive blog post with an overview of the features in GWT 1.6 should be just around the corner. -- Bruce, on behalf of the GWT team --~--~-~--~~~---~--~~ You received 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: How to create a live suggestion box using GWT-Ext
Can you tell what you already have and where you're stuck ? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
dumb question... but driving me nuts
What is the GWT way doing the following? div divSomething/div divSomething2/div /div I don't want to create a HorizontalPanel, b/c i don't want tables. I can create a SimplePanel but then simple panel only takes one widget. I've tried the HTMLPanel and it will create the inner div's as siblings but what I need is inner div's to be Widget not Element objects. It just seems like there should be a way to add more than one thing to a SimplePanel or have another panel that uses a DIV as the parent structure and allows you to add --~--~-~--~~~---~--~~ You received 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: Whats the GWT equivalent of urlencode?
Its URL.encode(String) from the com.google.gwt.http.client package. --~--~-~--~~~---~--~~ You received 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: Whats the GWT equivalent of urlencode?
That was the one I tried already, it dosnt decode backslash's correctly. (that is +%2F isnt decoded) Thanks anyway. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 mel mpedzi...@stuart.iit.edu: Its URL.encode(String) from the com.google.gwt.http.client package. --~--~-~--~~~---~--~~ You received 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: dumb question... but driving me nuts
FlowPanel is a div, and Label is a div but with text in there. So you could do... FlowPanel wrapper = new FlowPanel(); wrapper.add(Something); wrapper.add(Something2); but what I think you want is more like... FlowPanel something1 = new FlowPanel(); FlowPanel something2 = new FlowPanel(); FlowPanel wrapper = new FlowPanel(); wrapper.add(something1); wrapper.add(something2); On Mar 27, 3:03 pm, JohnJ ufm...@gmail.com wrote: What is the GWT way doing the following? div divSomething/div divSomething2/div /div I don't want to create a HorizontalPanel, b/c i don't want tables. I can create a SimplePanel but then simple panel only takes one widget. I've tried the HTMLPanel and it will create the inner div's as siblings but what I need is inner div's to be Widget not Element objects. It just seems like there should be a way to add more than one thing to a SimplePanel or have another panel that uses a DIV as the parent structure and allows you to add --~--~-~--~~~---~--~~ You received 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: dumb question... but driving me nuts
FlowPanel is a div, and Label is a div but with text in there. So you could do... FlowPanel wrapper = new FlowPanel(); wrapper.add(new Label(Something)); wrapper.add(new Label(Something2)); but what I think you want is more like... FlowPanel something1 = new FlowPanel(); FlowPanel something2 = new FlowPanel(); FlowPanel wrapper = new FlowPanel(); wrapper.add(something1); wrapper.add(something2); On Mar 27, 3:03 pm, JohnJ ufm...@gmail.com wrote: What is the GWT way doing the following? div divSomething/div divSomething2/div /div I don't want to create a HorizontalPanel, b/c i don't want tables. I can create a SimplePanel but then simple panel only takes one widget. I've tried the HTMLPanel and it will create the inner div's as siblings but what I need is inner div's to be Widget not Element objects. It just seems like there should be a way to add more than one thing to a SimplePanel or have another panel that uses a DIV as the parent structure and allows you to add --~--~-~--~~~---~--~~ You received 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: Whats the GWT equivalent of urlencode?
Well, something is being encoded as 2F by php, and not being decoded. (along with a lot of other random changes) I'm most certainly not getting the same strings in/out with urlencode(String) on the php side and URL.decode(string) on the java side. My tests where just with random generated strings, I expected just to confirm it was the same, but it dosnt seem to be. I just want a guarantied way to communicate between php and gwt with preservation of *all* characters frankly. (as I may want to send encrypted strings, I dont want to worry about what characters I can use/not use in the encyption). ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 Ian Bambury ianbamb...@gmail.com: 2F is a forward slash which doesn't get encoded therefore doesn't need decoding 5C is the backslash which works OK for me Ian http://examples.roughian.com 2009/3/27 Thomas Wrobel darkfl...@gmail.com That was the one I tried already, it dosnt decode backslash's correctly. (that is +%2F isnt decoded) Thanks anyway. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 mel mpedzi...@stuart.iit.edu: Its URL.encode(String) from the com.google.gwt.http.client package. --~--~-~--~~~---~--~~ You received 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: Back Refresh button handling
You can not rely on this event being raised before the browser is closed. You can use the onunload=someJavascript() on your body tag and then some JSNI to call your google code. Here's the problem: the event gets raised, and you start doing your work. The window gets closed before you finish doing your work, and your rpc never completes and the server never knows. I'd say at best you get a 50% success rate with the window close events :) -luke On Mar 26, 3:58 pm, bigtruckdriver adam.ludg...@gmail.com wrote: I'm in a similar predicament, perhaps you might have an idea of what to do. When the user closes the browser window, I want the application to logout his/her session automatically so as to free up memory on the server from their session. So I use the onWindowClosed() function to take care of this... But when the page is refreshed, the session gets logged out as well through the same function. This is something I want to stop from happening. Any suggestions? On Mar 15, 9:26 am, Rohit rohitsmart...@gmail.com wrote: Hi There is no way in GWT to distinguish betweenRefreshbuttonclick and Window closebuttonclick. But you can trackrefreshbuttonwith a little trick. You should use a time cookie which will expire after some time. So whenrefreshbuttonis pressed, in on module load of entry point , track the value of this cokkie, if this cookie is still alive, this meansrefreshbuttonis pressed. The time this cookie will expired should be considered. It should be very little. Second for history, you should save your information in Session on window close and then ifrefreshbuttonis pressed, get your information from this session. Thanks and regards Rohit On Mar 14, 2:30 am, levi.bracken levi.brac...@gmail.com wrote: You can restore state, but it's a bit more work than just using GWT History. Basically you'll need to come up with some way of modifying the url search parameter (stuff after the #) to include some info so that you can bring the userbackinto the same state as they were before. For example, if your application has a number of screens and they were on screen foo, which was loading with properties for an item with id 10 then you'd need that information in the Url. ex: http://yourApp.com/gwtHostPage.html#screen=foo_id=10 You could also put a conversation id in the url param and then keep the fine details cached on the server, but that makes the state/data more transient. If you go with an option like this though it can help make your pages open and work in other tabs and even make points in your application bookmark'able'. Now for the easy answer, yes you can just prevent the user from carelessly clickingrefresh. Fortunately there isn't a way to trap somebody on a webpage (think about how bad the web would be). But, you can use the WindowCloseListener to present a user with a confirmation before they close the window, navigate to a new page, or hitrefresh. It'd look something like this (not tested): / Window.addWindowCloseListener( new WindowCloseLisener(){ public String onWindowClosing(){ return Are you sure you want to leave this application?; } public void onWindowClosed(){ // Cleanup if need be }}); On Mar 13, 2:52 pm, dodo rajd...@gmail.com wrote: GWT provides History.onHistoryChange event to handle history but how can we restore application state when a user clicks onRefreshbutton? For example the user performed multiple actions on the web site and then clickedrefreshbutton. Now how using GWT History class we can restore the same state? Another question, is there a way to trap Refresh click before actually the app refreshes and can be cancel the event? Rajesh- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Whats the GWT equivalent of urlencode?
Sorry (doh!) forward slash, not backslash. Ian http://examples.roughian.com 2009/3/27 Ian Bambury ianbamb...@gmail.com Sorry, I didn't read your first post, just the one I replied to. This is not a uniquely GWT problem, it is a PHP/JavaScript problem (as GWT just calls a JS function) PHP encodes differently to JS. The only problem I am aware of (maybe other people can chip in here) is PHP encoding the backslash. '()*~! all seem OK, but I haven't had too much involvement with this. If no-one comes up with a better solution then a simple replace might be the best answer. Ian http://examples.roughian.com 2009/3/27 Thomas Wrobel darkfl...@gmail.com Well, something is being encoded as 2F by php, and not being decoded. (along with a lot of other random changes) I'm most certainly not getting the same strings in/out with urlencode(String) on the php side and URL.decode(string) on the java side. My tests where just with random generated strings, I expected just to confirm it was the same, but it dosnt seem to be. I just want a guarantied way to communicate between php and gwt with preservation of *all* characters frankly. (as I may want to send encrypted strings, I dont want to worry about what characters I can use/not use in the encyption). ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 Ian Bambury ianbamb...@gmail.com: 2F is a forward slash which doesn't get encoded therefore doesn't need decoding 5C is the backslash which works OK for me Ian http://examples.roughian.com 2009/3/27 Thomas Wrobel darkfl...@gmail.com That was the one I tried already, it dosnt decode backslash's correctly. (that is +%2F isnt decoded) Thanks anyway. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 mel mpedzi...@stuart.iit.edu: Its URL.encode(String) from the com.google.gwt.http.client package. --~--~-~--~~~---~--~~ You received 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: Back Refresh button handling
The way I solve this is that a timer on the server cleans up sessions that haven't had activity in a while. It's a little bit simpler for me since I have a stateless setup with the session id simply being used for authentication purposes. I think that's the most robust approach - you don't need to maintain complicated state information in the server. You simply have a permissions based approach as to whether or not a user is allowed to modify global resources the client-side takes care of state. On Fri, Mar 27, 2009 at 4:23 PM, lukehashj bobwazn...@gmail.com wrote: You can not rely on this event being raised before the browser is closed. You can use the onunload=someJavascript() on your body tag and then some JSNI to call your google code. Here's the problem: the event gets raised, and you start doing your work. The window gets closed before you finish doing your work, and your rpc never completes and the server never knows. I'd say at best you get a 50% success rate with the window close events :) -luke On Mar 26, 3:58 pm, bigtruckdriver adam.ludg...@gmail.com wrote: I'm in a similar predicament, perhaps you might have an idea of what to do. When the user closes the browser window, I want the application to logout his/her session automatically so as to free up memory on the server from their session. So I use the onWindowClosed() function to take care of this... But when the page is refreshed, the session gets logged out as well through the same function. This is something I want to stop from happening. Any suggestions? On Mar 15, 9:26 am, Rohit rohitsmart...@gmail.com wrote: Hi There is no way in GWT to distinguish betweenRefreshbuttonclick and Window closebuttonclick. But you can trackrefreshbuttonwith a little trick. You should use a time cookie which will expire after some time. So whenrefreshbuttonis pressed, in on module load of entry point , track the value of this cokkie, if this cookie is still alive, this meansrefreshbuttonis pressed. The time this cookie will expired should be considered. It should be very little. Second for history, you should save your information in Session on window close and then ifrefreshbuttonis pressed, get your information from this session. Thanks and regards Rohit On Mar 14, 2:30 am, levi.bracken levi.brac...@gmail.com wrote: You can restore state, but it's a bit more work than just using GWT History. Basically you'll need to come up with some way of modifying the url search parameter (stuff after the #) to include some info so that you can bring the userbackinto the same state as they were before. For example, if your application has a number of screens and they were on screen foo, which was loading with properties for an item with id 10 then you'd need that information in the Url. ex: http://yourApp.com/gwtHostPage.html#screen=foo_id=10 You could also put a conversation id in the url param and then keep the fine details cached on the server, but that makes the state/data more transient. If you go with an option like this though it can help make your pages open and work in other tabs and even make points in your application bookmark'able'. Now for the easy answer, yes you can just prevent the user from carelessly clickingrefresh. Fortunately there isn't a way to trap somebody on a webpage (think about how bad the web would be). But, you can use the WindowCloseListener to present a user with a confirmation before they close the window, navigate to a new page, or hitrefresh. It'd look something like this (not tested): / Window.addWindowCloseListener( new WindowCloseLisener(){ public String onWindowClosing(){ return Are you sure you want to leave this application?; } public void onWindowClosed(){ // Cleanup if need be }}); On Mar 13, 2:52 pm, dodo rajd...@gmail.com wrote: GWT provides History.onHistoryChange event to handle history but how can we restore application state when a user clicks onRefreshbutton? For example the user performed multiple actions on the web site and then clickedrefreshbutton. Now how using GWT History class we can restore the same state? Another question, is there a way to trap Refresh click before actually the app refreshes and can be cancel the event? Rajesh- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en
Problem with Element.getFirstChildElement()
I think I may have found a GWT bug. Please let me know if there is a better place to post this... Consider this code from a JSTL tag… div id=existingFriendsAddressBook ul c:forEach items=${friends} var=friend c:set var=friendEmail${fn:toLowerCase(friend.email)}/c:set li input type=checkbox id=existingFriend_${friendEmail} / $ {friendEmail} /li /c:forEach /ul /div …and this GWT code, which tries to get a reference to each of the checkboxes created in that tag… @Override protected void build() { DivElement existingFriendsAddressBook = DivElement.as(DOM.getElementById (existingFriendsAddressBook)); UListElement list = UListElement.as (existingFriendsAddressBook.getFirstChildElement()); NodeListNode children = list.getChildNodes(); int numFriends = children.getLength(); for (int i = 0; i numFriends; i++) { LIElement row = LIElement.as((Element) children.getItem(i)); Element firstChild = row.getFirstChildElement(); InputElement checkbox = InputElement.as(firstChild); String checkboxId = checkbox.getId(); [do stuff with checkboxId, unrelated to this post] } } It turns out that IN FIREFOX ONLY, the variable “firstChild” is null, and I believe this is a bug in Element’s getFirstChildElement (). I changed the code to the following, and there is no longer an error… LIElement row = LIElement.as((Element) children.getItem(i)); NodeListNode subchildren = row.getChildNodes(); InputElement checkbox = InputElement.as((Element) subchildren.getItem (0)); String checkboxId = checkbox.getId(); A call to GWT.getVersion() returns 1.5.2 As you can see, I have found a work-around, so this isn't urgent... just a heads-up! :) -Monkey Mike --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
/webtoolkit/tutorials/gettingstarted.html was not found on this server
Hi In http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6s=google-web-toolkit-doc-1-6t=GettingStarted , when clicked on the Getting Startedhttp://code.google.com/webtoolkit/tutorials/gettingstarted.html link under Tutorials section it gives error 404. -- Hez --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Changing application path in production
Hi, I was wondering if there is a way to set up your gwt application such that something which I normally access as: http://xyz.com/abc/com.foo.bar.gwt.client.Main/Main.html could be accessed as http://xyz.com/abc/ I am using apache infront of tomcat at the moment, and I thought about using something like mod-proxy or one of the similar apache plugins to map from http://xyz.com/abc to http://xyz.com/abc/com.foo.bar.gwt.client.Main/Main.html. However I was hoping people may have been using a different/better approach to this. Thanks in advance, Imran --~--~-~--~~~---~--~~ You received 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: how to set horizontalPanel to width 100%
You need to set the cell widths to a value too. E.g. if you set a simplepanel inside a horizontalpanel, you need to do hp.setCellWidth(sp, 100%); Ian http://examples.roughian.com 2009/3/28 asianCoolz second.co...@gmail.com 1. i have horizontalPanel(title bar) add to -- verticalpanel -- Dockpanel.East . but when the titlebar is displayed on screen, its width is not set to 100%. how to make it 100% 2. how to set simplePanel and dockpanel to fill the screen 100% for both cases i already tried setWidth(100%). doesnt work. But when i tried setWidth(500) //in px it works... but not what i wanted. I want to set 100% --~--~-~--~~~---~--~~ You received 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] Removing processElementClicked from gen2.FastTree
Reviewers: jlabanca, Description: http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=232 Please review this at http://gwt-code-reviews.appspot.com/14802 Affected files: client/FastTree.java Index: client/FastTree.java === --- client/FastTree.java(revision 1543) +++ client/FastTree.java(working copy) @@ -599,25 +599,6 @@ } /** - * This is called when a valid selectable element is clicked in the tree. - * Subclasses can override this method to decide whether or not FastTree - * should keep processing the element clicked. For example, a subclass may - * decide to return false for this method if selecting a new item in the tree - * is subject to asynchronous approval from other components of the - * application. - * - * @returns true if element should be processed normally, false otherwise. - * Default returns true. - * - * @deprecated Add a beforeSelectionHandler by calling - * addBeforeSelectionHandler instead. - */ - @Deprecated - protected boolean processElementClicked(FastTreeItem item) { -return true; - } - - /** * Supply a decorator for the fast tree. * * @return a decorator @@ -789,9 +770,7 @@ disableSelection(target); return; } - if (processElementClicked(item)) { -onSelection(item, true, !shouldTreeDelegateFocusToElement(target)); - } + onSelection(item, true, !shouldTreeDelegateFocusToElement(target)); } return; } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JavaScriptException with 1.6.2
On 26 mar, 19:18, John Tamplin j...@google.com wrote: On Thu, Mar 26, 2009 at 1:40 PM, Scott Blum sco...@google.com wrote: That's not good it looks like Nicolas found an object for which trying to evaluate (!!o.nodeType) throws an exception. If my atrophied high-school French is correct, I believe the error is that o is null at that point. It actually says that 'nodeType' (not 'o'!) is Null or is not an object. The thing is: I cannot understand why IE (this looks like an IE exception message, don't you think?) would throw such an exception while evaluating !! on such a null/undefined (it would effectively throw if 'o' were null, but it would say that 'o' is null or is not an object, or if we were trying to get or set a property or call a method on o.nodeType). Am I wrong? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: testing -noserver hosted mode
Thanks, John! It's in at r5094 and r5095. Comments inline: On Thu, Mar 26, 2009 at 4:31 PM, John Tamplin j...@google.com wrote: Passing the parameter all the way down this way is ugly, but I don't know of any better ways to do it. Agreed. I would prefer the new ArgHandler to be a top-level class, but I see the others are inlined as well so I am ok with keeping it. Also agreed, so I left it. I don't see the build.xml changes for test.noserver. Shoot, that part of the patch got lost. I recreated these per our discussion. Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5094 - Adds a test for -noserver hosted mode.
Author: sp...@google.com Date: Fri Mar 27 07:58:53 2009 New Revision: 5094 Added: trunk/user/src/com/google/gwt/junit/RunStyleNoServerHosted.java (contents, props changed) Modified: trunk/user/build.xml trunk/user/src/com/google/gwt/junit/JUnitShell.java trunk/user/src/com/google/gwt/junit/RunStyle.java Log: Adds a test for -noserver hosted mode. Review by: jat Modified: trunk/user/build.xml == --- trunk/user/build.xml(original) +++ trunk/user/build.xmlFri Mar 27 07:58:53 2009 @@ -13,11 +13,14 @@ fileset id=default.emma.tests dir=${javac.junit.out} includes=**/EmmaClassLoadingTest.class / - + fileset id=default.hosted.emma.tests dir=${javac.junit.out} excludes=**/CoverageTest.class,**/CompilerSuite.class includes=${gwt.junit.emmatestcase.includes} / !-- everything succeeds except CoverageTest.java. It fails due to a javac bug in sun/OpenJDK's Java. See the file contents for details -- - + + fileset id=default.noserver.tests dir=${javac.junit.out} includes=**/IFrameLinkerTest.class / + !-- Only IFrameLinker actually supports -noserver mode; run the other linker tests if and when they are supported -- + !-- Default web mode test cases -- @@ -49,11 +52,11 @@ !-- Compile test code for dev/core to pick up TypeOracleTestUtils and others. - -- + -- target name=compile.dev.core.tests description=Compiles test dependencies in dev/core gwt.ant dir=../dev/core target=compile.tests / /target - + target name=compile.tests depends=compile.dev.core.tests description=Compiles the test code for this project mkdir dir=${javac.junit.out} / gwt.javac srcdir=test excludes=com/google/gwt/langtest/** destdir=${javac.junit.out} @@ -126,11 +129,19 @@ pathelement location=${gwt.build}/out/dev/core/bin-test / pathelement location=${gwt.tools.redist}/emma/emma.jar / /extraclasspaths -/gwt.junit +/gwt.junit + /target + + target name=test.noserver depends=compile, compile.tests description=Run noserver hosted-mode tests for this project. +gwt.junit test.args=${test.args} test.out=${junit.out}/${build.host.platform}-noserver-mode test.cases=default.noserver.tests + extraclasspaths +pathelement location=${gwt.build}/out/dev/core/bin-test / + /extraclasspaths +/gwt.junit /target target name=test.web depends=compile, compile.tests description=Run only web-mode tests for this project. -gwt.junit test.args=${test.args} -out www -web test.out=${junit.out}/${build.host.platform}-web-mode test.cases=default.web.tests +gwt.junit test.args=${test.args} -out www -web test.out=${junit.out}/${build.host.platform}-web-mode test.cases=default.web.tests extraclasspaths pathelement location=${gwt.build}/out/dev/core/bin-test / /extraclasspaths @@ -167,6 +178,7 @@ !-- remoteweb-test is a no-op unless gwt.remote.browsers is defined -- antcall target=remoteweb-test/ antcall target=test.hosted/ + antcall target=test.noserver/ antcall target=test.web/ antcall target=test.web.disableClassMetadata/ antcall target=test.web.draft/ @@ -179,6 +191,6 @@ delete file=${project.lib} / /target target name=presubmit depends=test, checkstyle description=runs the gwt api checker, user checkstyle, and user tests - gwt.ant dir=.. target=apicheck-nobuild/ +gwt.ant dir=.. target=apicheck-nobuild/ /target /project Modified: trunk/user/src/com/google/gwt/junit/JUnitShell.java == --- trunk/user/src/com/google/gwt/junit/JUnitShell.java (original) +++ trunk/user/src/com/google/gwt/junit/JUnitShell.java Fri Mar 27 07:58:53 2009 @@ -116,6 +116,25 @@ registerHandler(new ArgHandlerFlag() { @Override public String getPurpose() { + return Causes your test to run in -noserver hosted mode (defaults to hosted mode); +} + +@Override +public String getTag() { + return -noserver; +} + +@Override +public boolean setFlag() { + runStyle = new RunStyleNoServerHosted(JUnitShell.this); + numClients = 1; + return true; +} + }); + + registerHandler(new ArgHandlerFlag() { +@Override +public String getPurpose() { return Causes your test to run in web (compiled) mode (defaults to hosted mode); } @@ -587,6 +606,11 @@ } return !messageQueue.hasResult(); + } + + @Override + protected boolean shouldAutoGenerateResources() { +return runStyle.shouldAutoGenerateResources(); } @Override Modified: trunk/user/src/com/google/gwt/junit/RunStyle.java
[gwt-contrib] RR : Fix ImageResource de-duplication
The attached patch re-adds image de-duplication to ClientBundle's ImageBundleBuilder. (It was there at some point, but disappeared along the way). The patch also ensures that the ImageResource test is run in a no-inlining permutation, which would have allowed me to see this error on my mac. Diffstat: src/com/google/gwt/resources/rg/ImageBundleBuilder.java | 29 25 +4 - 0 ! test/com/google/gwt/resources/ResourcesNoInlining.gwt.xml | 17 17 +0 - 0 ! test/com/google/gwt/resources/ResourcesSuite.java |5 3 + 2 - 0 ! test/com/google/gwt/resources/client/ImageResourceNoInliningTest.java | 26 26 +0 - 0 ! test/com/google/gwt/resources/client/ImageResourceTest.java |4 2 + 2 - 0 ! 5 files changed, 73 insertions(+), 8 deletions(-) -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- imageBundleBuilder_r5087.patch Description: Binary data
[gwt-contrib] [google-web-toolkit commit] r5095 - The rest of the implementation of -noserver hosted
Author: sp...@google.com Date: Fri Mar 27 08:09:11 2009 New Revision: 5095 Modified: trunk/dev/core/src/com/google/gwt/dev/GWTShell.java trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/EmbeddedTomcatServer.java Log: The rest of the implementation of -noserver hosted mode test. r5094 was incomplete. Review by: jat Modified: trunk/dev/core/src/com/google/gwt/dev/GWTShell.java == --- trunk/dev/core/src/com/google/gwt/dev/GWTShell.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/GWTShell.java Fri Mar 27 08:09:11 2009 @@ -234,7 +234,7 @@ protected int doStartUpServer() { // TODO(bruce): make tomcat work in terms of the modular launcher String whyFailed = EmbeddedTomcatServer.start(getTopLogger(), getPort(), -options); +options, shouldAutoGenerateResources()); // TODO(bruce): test that we can remove this old approach in favor of // a better, logger-based error reporting @@ -259,5 +259,15 @@ * magic? */ return false; + } + + /** + * Whether this shell should auto-generate GWT resources when it recognizes + * requests for them. By default this is true. Subclasses can disable such + * auto-generation and make this servlet appear to be like any arbitrary web + * server that knows nothing about GWT. + */ + protected boolean shouldAutoGenerateResources() { +return true; } } Modified: trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java == --- trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.javaFri Mar 27 08:09:11 2009 @@ -116,12 +116,12 @@ private int nextRequestId; - private WorkDirs workDirs; - private final Object requestIdLock = new Object(); private TreeLogger topLogger; + private WorkDirs workDirs; + public GWTShellServlet() { initMimeTypes(); } @@ -409,9 +409,11 @@ logger = logger.branch(TreeLogger.TRACE, msg, null); // Handle auto-generation of resources. -if (autoGenerateResources(request, response, logger, partialPath, -moduleName)) { - return; +if (shouldAutoGenerateResources()) { + if (autoGenerateResources(request, response, logger, partialPath, + moduleName)) { +return; + } } URL foundResource = null; @@ -419,20 +421,22 @@ // Look for the requested file on the public path. // ModuleDef moduleDef = getModuleDef(logger, moduleName); - Resource publicResource = moduleDef.findPublicFile(partialPath); - if (publicResource != null) { -foundResource = publicResource.getURL(); - } + if (shouldAutoGenerateResources()) { +Resource publicResource = moduleDef.findPublicFile(partialPath); +if (publicResource != null) { + foundResource = publicResource.getURL(); +} - if (foundResource == null) { -// Look for public generated files -File shellDir = getShellWorkDirs().getShellPublicGenDir(moduleDef); -File requestedFile = new File(shellDir, partialPath); -if (requestedFile.exists()) { - try { -foundResource = requestedFile.toURI().toURL(); - } catch (MalformedURLException e) { -// ignore since it was speculative anyway +if (foundResource == null) { + // Look for public generated files + File shellDir = getShellWorkDirs().getShellPublicGenDir(moduleDef); + File requestedFile = new File(shellDir, partialPath); + if (requestedFile.exists()) { +try { + foundResource = requestedFile.toURI().toURL(); +} catch (MalformedURLException e) { + // ignore since it was speculative anyway +} } } } @@ -884,6 +888,16 @@ HttpHeaders.CACHE_CONTROL_MAXAGE + cacheTime); String expiresString = HttpHeaders.toInternetDateFormat(expires); response.setHeader(HttpHeaders.EXPIRES, expiresString); + } + + private boolean shouldAutoGenerateResources() { +ServletContext servletContext = getServletContext(); +final String attr = com.google.gwt.dev.shell.shouldAutoGenerateResources; +Boolean attrValue = (Boolean) servletContext.getAttribute(attr); +if (attrValue == null) { + return true; +} +return attrValue; } private void streamOut(InputStream in, OutputStream out, int bufferSize) Modified: trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/EmbeddedTomcatServer.java == --- trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/EmbeddedTomcatServer.java
[gwt-contrib] Re: RR : Fix ImageResource de-duplication
Kindly enable my tooling dependency: http://gwt-code-reviews.appspot.com/new rjrjr On Fri, Mar 27, 2009 at 8:21 AM, BobV b...@google.com wrote: The attached patch re-adds image de-duplication to ClientBundle's ImageBundleBuilder. (It was there at some point, but disappeared along the way). The patch also ensures that the ImageResource test is run in a no-inlining permutation, which would have allowed me to see this error on my mac. Diffstat: src/com/google/gwt/resources/rg/ImageBundleBuilder.java | 29 25 +4 - 0 ! test/com/google/gwt/resources/ResourcesNoInlining.gwt.xml | 17 17 +0 - 0 ! test/com/google/gwt/resources/ResourcesSuite.java |5 3 + 2 - 0 ! test/com/google/gwt/resources/client/ImageResourceNoInliningTest.java | 26 26 +0 - 0 ! test/com/google/gwt/resources/client/ImageResourceTest.java |4 2 + 2 - 0 ! 5 files changed, 73 insertions(+), 8 deletions(-) -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JavaScriptException with 1.6.2
Do you know what event this was? What do you do with the popup to get it to trigger? Or does it just happen with no user interaction? On Fri, Mar 27, 2009 at 11:46 AM, nicolas de loof nicolas.del...@gmail.comwrote: Some more infos : We got this exception running in hosted mode browser (with -noserver) on windows No error when using an empty PopupPanel, also fine when containing a label, but fails when including a Table. Hope this helps ... On Fri, Mar 27, 2009 at 3:57 PM, Thomas Broyer t.bro...@gmail.com wrote: On 26 mar, 19:18, John Tamplin j...@google.com wrote: On Thu, Mar 26, 2009 at 1:40 PM, Scott Blum sco...@google.com wrote: That's not good it looks like Nicolas found an object for which trying to evaluate (!!o.nodeType) throws an exception. If my atrophied high-school French is correct, I believe the error is that o is null at that point. It actually says that 'nodeType' (not 'o'!) is Null or is not an object. The thing is: I cannot understand why IE (this looks like an IE exception message, don't you think?) would throw such an exception while evaluating !! on such a null/undefined (it would effectively throw if 'o' were null, but it would say that 'o' is null or is not an object, or if we were trying to get or set a property or call a method on o.nodeType). Am I wrong? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] JVM crashes when using GWT compiler under Java 6 update 7 JVM
[java] Compiling module com.google.gwt.benchmarks.viewer.ReportViewer [java] # [java] # An unexpected error has been detected by Java Runtime Environment: [java] # [java] # SIGSEGV (0xb) at pc=0x0625665c, pid=17105, tid=3762477968 [java] # [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) [java] # Problematic frame: [java] # V [libjvm.so+0x25665c] [java] # [java] # An error report file with more information is saved as: [java] # /home/vlovich/workspace/gwt/tools/benchmark-viewer/hs_err_pid17105.log [java] # [java] # If you would like to submit a bug report, please visit: [java] # http://java.sun.com/webapps/bugreport/crash.jsp [java] # The crash happened outside the Java Virtual Machine in native code. [java] # See problematic frame for where to report the bug. [java] # This is kind of annoying because GWT fails to build with the newer JDKs due to the issue mentioned before with the change to generics. So it's a two step workaround: Use the older sun JDK to compile the classes after it crashes, use run ant again with the newer JDK so that the GWT compiler doesn't crash the VM. This also happens if I try to use the older JDK with my projects, but that's not really an issue since I just use the latest OpenJDK in the Ubuntu repos. Might be relevant that I'm using 64-bit jdks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Fix ImageBundleBuilder de-duplication
Misused rietveld and dropped my comments: http://gwt-code-reviews.appspot.com/15802/diff/1/6 File user/src/com/google/gwt/resources/rg/ImageBundleBuilder.java (right): http://gwt-code-reviews.appspot.com/15802/diff/1/6#newcode434 Line 434: gwt.imageResource.maxBundleSize, 256); Please mention this new property in your commit description. Is there any place to document it? http://gwt-code-reviews.appspot.com/15802/diff/1/3 File user/test/com/google/gwt/resources/client/ImageResourceNoInliningTest.java (right): http://gwt-code-reviews.appspot.com/15802/diff/1/3#newcode19 Line 19: * Runs the ImageResource tests with inling disabled. How? By having an overridden module name? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Fix ImageBundleBuilder de-duplication
http://gwt-code-reviews.appspot.com/15802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Review: JsArrays patch
Scott, we already talked about this, but here's the patch for public review. The basic goal is to surface the native length, sort, push, and shift operators for JsArrays... I know you mentioned that IE6's push may be slower than indexed extension, and thus a candidate for deferred binding, but I wanted to get a basic implementation in first. There should be only checkstyle changes from what we discussed (though that obviously doesn't help the rest GWTC). I also added some checkstyle fixes to JavaScriptObject, introduced by my c5082. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- Index: user/src/com/google/gwt/core/client/JsArrayString.java === --- user/src/com/google/gwt/core/client/JsArrayString.java (revision 5095) +++ user/src/com/google/gwt/core/client/JsArrayString.java (working copy) @@ -1,12 +1,12 @@ /* * Copyright 2008 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 @@ -17,24 +17,24 @@ /** * A simple wrapper around a homogeneous native array of string values. - * + * * This class may not be directly instantiated, and can only be returned from a * native method. For example, - * + * * code * native JsArrayString getNativeArray() /*-{ * return ['foo', 'bar', 'baz']; * }-* /; * /code */ -public class JsArrayString extends JavaScriptObject { +public class JsArrayString extends JsArrayBase { protected JsArrayString() { } /** * Gets the value at a given index. - * + * * @param index the index to be retrieved * @return the value at the given index, or codenull/code if none exists */ @@ -43,24 +43,31 @@ }-*/; /** - * Gets the length of the array. - * - * @return the array length + * call underlying push method. */ - public final native int length() /*-{ -return this.length; + public final native void push(String value) /*-{ +this.push(value); }-*/; /** * Sets the value value at a given index. - * + * * If the index is out of bounds, the value will still be set. The array's * length will be updated to encompass the bounds implied by the added value. - * + * * @param index the index to be set * @param value the value to be stored */ public final native void set(int index, String value) /*-{ this[index] = value; }-*/; + + /** + * Shifts the first value off the array. + * @return the shifted value + */ + public final native String shift() /*-{ +return this.shift(); + }-*/; + } Index: user/src/com/google/gwt/core/client/JsArrayBase.java === --- user/src/com/google/gwt/core/client/JsArrayBase.java (revision 0) +++ user/src/com/google/gwt/core/client/JsArrayBase.java (revision 0) @@ -0,0 +1,41 @@ +/* + * Copyright 2008 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.client; + +/** + * Common methods for JsArray... classes. + */ +public class JsArrayBase extends JavaScriptObject { + + protected JsArrayBase() { + } + + /** + * Gets the length of the array. + * + * @return the array length + */ + public final native int length() /*-{ +return this.length; + }-*/; + + /** + * direct mapping to underlying sort method. + */ + public final native void sort(JavaScriptObject sortFunc) /*-{ +this.sort(sortFunc); + }-*/; +} Index: user/src/com/google/gwt/core/client/JsArray.java === --- user/src/com/google/gwt/core/client/JsArray.java (revision 5095) +++ user/src/com/google/gwt/core/client/JsArray.java (working copy) @@ -1,12 +1,12 @@ /* * Copyright 2008 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
[gwt-contrib] Re: Review: JsArrays patch
Let's not add this extra type JsArrayBase into the hierarchy. Why can't we just push the various methods down? We can always factor upward in the future. If we need shared implementation, we can factor that out into a package-private JsArrayImpl class. On Fri, Mar 27, 2009 at 1:28 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: Scott, we already talked about this, but here's the patch for public review. The basic goal is to surface the native length, sort, push, and shift operators for JsArrays... I know you mentioned that IE6's push may be slower than indexed extension, and thus a candidate for deferred binding, but I wanted to get a basic implementation in first. There should be only checkstyle changes from what we discussed (though that obviously doesn't help the rest GWTC). I also added some checkstyle fixes to JavaScriptObject, introduced by my c5082. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] GWTC compiler disallows using a derivative of AsyncCallback on async interface declaration
I tried to use my own custom class that extends AsyncCallback in the async interface, the compiler told me that the async version didn't match the sync version. For instance: public interface NoResultCallback extends AsyncCallbackVoid. It's not really an issue, but I prefer to use the more precise type to get the compiler to statically check the code. Is this by design for a reason? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JVM crashes when using GWT compiler under Java 6 update 7 JVM
I can has hs_err_pid17105.log? On Fri, Mar 27, 2009 at 12:36 PM, Vitali Lovich vlov...@gmail.com wrote: [java] Compiling module com.google.gwt.benchmarks.viewer.ReportViewer [java] # [java] # An unexpected error has been detected by Java Runtime Environment: [java] # [java] # SIGSEGV (0xb) at pc=0x0625665c, pid=17105, tid=3762477968 [java] # [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) [java] # Problematic frame: [java] # V [libjvm.so+0x25665c] [java] # [java] # An error report file with more information is saved as: [java] # /home/vlovich/workspace/gwt/tools/benchmark-viewer/hs_err_pid17105.log [java] # [java] # If you would like to submit a bug report, please visit: [java] # http://java.sun.com/webapps/bugreport/crash.jsp [java] # The crash happened outside the Java Virtual Machine in native code. [java] # See problematic frame for where to report the bug. [java] # This is kind of annoying because GWT fails to build with the newer JDKs due to the issue mentioned before with the change to generics. So it's a two step workaround: Use the older sun JDK to compile the classes after it crashes, use run ant again with the newer JDK so that the GWT compiler doesn't crash the VM. This also happens if I try to use the older JDK with my projects, but that's not really an issue since I just use the latest OpenJDK in the Ubuntu repos. Might be relevant that I'm using 64-bit jdks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Review: JsArrays patch
FWIW, in another little project I used a pattern for this that avoids implementation inheritance that I call self-delegation. Here's an example: /** Not put API, but it includes the impl for al getters and setters for all types. **/ final class JsArray extends JavaScriptObject { ... public int getInt(int index) { assert indexIsInBounds(index); return getIntImpl(index); } public void setNumber(int index, double value) { assert isNumber(value); setNumberImpl(index, value); } private native int getIntImpl(int index) /*-{ return this[index]; }-*/; private native void setNumberImpl(int index, double value) /*-{ this[index] = value; }-*/; ... } /** Public API */ public final class IntArray extends DataStructure { public static IntArray create() { return JavaScriptObject.createArray().cast(); } protected IntArray() { } public int get(int index) { return this.JsArraycast().getInt(index); } public int getSize() { return this.JsArraycast().getSize(); } public void set(int index, int value) { this.JsArraycast().setNumber(index, value); } } /kel On Fri, Mar 27, 2009 at 1:41 PM, Bruce Johnson br...@google.com wrote: Let's not add this extra type JsArrayBase into the hierarchy. Why can't we just push the various methods down? We can always factor upward in the future. If we need shared implementation, we can factor that out into a package-private JsArrayImpl class. On Fri, Mar 27, 2009 at 1:28 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: Scott, we already talked about this, but here's the patch for public review. The basic goal is to surface the native length, sort, push, and shift operators for JsArrays... I know you mentioned that IE6's push may be slower than indexed extension, and thus a candidate for deferred binding, but I wanted to get a basic implementation in first. There should be only checkstyle changes from what we discussed (though that obviously doesn't help the rest GWTC). I also added some checkstyle fixes to JavaScriptObject, introduced by my c5082. -- If you received this communication by mistake, you are entitled to one free ice cream cone on me. Simply print out this email including all relevant SMTP headers and present them at my desk to claim your creamy treat. We'll have a laugh at my emailing incompetence, and play a game of ping pong. (offer may not be valid in all States). --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Review: JsArrays patch
I'm going to punt this review to Bruce Kelly, 'cause I have no idea why having JsArrayBase would be bad. :) On Fri, Mar 27, 2009 at 1:28 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: Scott, we already talked about this, but here's the patch for public review. The basic goal is to surface the native length, sort, push, and shift operators for JsArrays... I know you mentioned that IE6's push may be slower than indexed extension, and thus a candidate for deferred binding, but I wanted to get a basic implementation in first. There should be only checkstyle changes from what we discussed (though that obviously doesn't help the rest GWTC). I also added some checkstyle fixes to JavaScriptObject, introduced by my c5082. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Review: JsArrays patch
I think the argument is more for unnecessary rather than bad... although without JsArrayBase (we can make it package-protected, and call it JsArrayImpl if anyone cares), we duplicate the JSNI implementation for a couple trivial methods. I thought refactoring them into one place was nice, but trivial enough that I'm not fighting over it. Revised patch attached; I can go either way on this. On Fri, Mar 27, 2009 at 2:06 PM, Scott Blum sco...@google.com wrote: I'm going to punt this review to Bruce Kelly, 'cause I have no idea why having JsArrayBase would be bad. :) On Fri, Mar 27, 2009 at 1:28 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: Scott, we already talked about this, but here's the patch for public review. The basic goal is to surface the native length, sort, push, and shift operators for JsArrays... I know you mentioned that IE6's push may be slower than indexed extension, and thus a candidate for deferred binding, but I wanted to get a basic implementation in first. There should be only checkstyle changes from what we discussed (though that obviously doesn't help the rest GWTC). I also added some checkstyle fixes to JavaScriptObject, introduced by my c5082. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- Index: user/src/com/google/gwt/core/client/JsArrayString.java === --- user/src/com/google/gwt/core/client/JsArrayString.java (revision 5095) +++ user/src/com/google/gwt/core/client/JsArrayString.java (working copy) @@ -1,12 +1,12 @@ /* * Copyright 2008 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 @@ -17,10 +17,10 @@ /** * A simple wrapper around a homogeneous native array of string values. - * + * * This class may not be directly instantiated, and can only be returned from a * native method. For example, - * + * * code * native JsArrayString getNativeArray() /*-{ * return ['foo', 'bar', 'baz']; @@ -34,7 +34,7 @@ /** * Gets the value at a given index. - * + * * @param index the index to be retrieved * @return the value at the given index, or codenull/code if none exists */ @@ -44,7 +44,7 @@ /** * Gets the length of the array. - * + * * @return the array length */ public final native int length() /*-{ @@ -52,15 +52,38 @@ }-*/; /** + * call underlying push method. + */ + public final native void push(String value) /*-{ +this.push(value); + }-*/; + + /** * Sets the value value at a given index. - * + * * If the index is out of bounds, the value will still be set. The array's * length will be updated to encompass the bounds implied by the added value. - * + * * @param index the index to be set * @param value the value to be stored */ public final native void set(int index, String value) /*-{ this[index] = value; }-*/; + + /** + * Shifts the first value off the array. + * @return the shifted value + */ + public final native String shift() /*-{ +return this.shift(); + }-*/; + + /** + * direct mapping to underlying sort method. + */ + public final native void sort(JavaScriptObject sortFunc) /*-{ +this.sort(sortFunc); + }-*/; + } Index: user/src/com/google/gwt/core/client/JsArrayBoolean.java === --- user/src/com/google/gwt/core/client/JsArrayBoolean.java (revision 5095) +++ user/src/com/google/gwt/core/client/JsArrayBoolean.java (working copy) @@ -1,12 +1,12 @@ /* * Copyright 2008 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 @@ -17,10 +17,10 @@ /** * A simple wrapper around a homogeneous native array of boolean values. - * + * * This class may not be directly instantiated, and can only be returned from a * native method. For example, - * + * * code * native JsArrayBoolean getNativeArray() /*-{ * return [true, false, true]; @@ -34,11 +34,11 @@ /** *
[gwt-contrib] Re: JVM crashes when using GWT compiler under Java 6 update 7 JVM
Ugggh... you want me to do all the work don't you :D On a separate note 5094 compilation is broken (JUnitShell fails to compile). In 5096 the problem is resolved. On Fri, Mar 27, 2009 at 2:03 PM, Scott Blum sco...@google.com wrote: I can has hs_err_pid17105.log? On Fri, Mar 27, 2009 at 12:36 PM, Vitali Lovich vlov...@gmail.com wrote: [java] Compiling module com.google.gwt.benchmarks.viewer.ReportViewer [java] # [java] # An unexpected error has been detected by Java Runtime Environment: [java] # [java] # SIGSEGV (0xb) at pc=0x0625665c, pid=17105, tid=3762477968 [java] # [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) [java] # Problematic frame: [java] # V [libjvm.so+0x25665c] [java] # [java] # An error report file with more information is saved as: [java] # /home/vlovich/workspace/gwt/tools/benchmark-viewer/hs_err_pid17105.log [java] # [java] # If you would like to submit a bug report, please visit: [java] # http://java.sun.com/webapps/bugreport/crash.jsp [java] # The crash happened outside the Java Virtual Machine in native code. [java] # See problematic frame for where to report the bug. [java] # This is kind of annoying because GWT fails to build with the newer JDKs due to the issue mentioned before with the change to generics. So it's a two step workaround: Use the older sun JDK to compile the classes after it crashes, use run ant again with the newer JDK so that the GWT compiler doesn't crash the VM. This also happens if I try to use the older JDK with my projects, but that's not really an issue since I just use the latest OpenJDK in the Ubuntu repos. Might be relevant that I'm using 64-bit jdks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- hs_err_pid2473.log Description: Binary data
[gwt-contrib] [google-web-toolkit commit] r5096 - Adds an entry to the API checker's config files to reflect
Author: sp...@google.com Date: Fri Mar 27 11:15:17 2009 New Revision: 5096 Modified: trunk/tools/api-checker/config/gwt15_16userApi.conf Log: Adds an entry to the API checker's config files to reflect the newly added class RunStyleNoServerHosted. Patch by: spoon,amitmanjhi Review by: spoon,amitmanjhi Modified: trunk/tools/api-checker/config/gwt15_16userApi.conf == --- trunk/tools/api-checker/config/gwt15_16userApi.conf (original) +++ trunk/tools/api-checker/config/gwt15_16userApi.conf Fri Mar 27 11:15:17 2009 @@ -62,6 +62,7 @@ :user/src/com/google/gwt/junit/RunStyleLocalHosted.java\ :user/src/com/google/gwt/junit/RunStyleLocalWeb.java\ :user/src/com/google/gwt/junit/RunStyleManual.java\ +:user/src/com/google/gwt/junit/RunStyleNoServerHosted.java\ :user/src/com/google/gwt/junit/RunStyleRemote.java\ :user/src/com/google/gwt/junit/RunStyleRemoteWeb.java\ :user/src/com/google/gwt/junit/RunStyleSelenium.java\ --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWTC compiler disallows using a derivative of AsyncCallback on async interface declaration
hmm... i looked and there appears to be a simple fix. private static String computeInternalSignature(JMethod method) { StringBuffer sb = new StringBuffer(); sb.setLength(0); sb.append(method.getName()); JParameter[] params = method.getParameters(); int i = 0; for (JParameter param : params) { sb.append(/); JType paramType = param.getType(); if (i++ == params.length - 1) { paramType = getAsyncCallbackSignature(paramType); } sb.append(paramType.getErasedType().getQualifiedSourceName()); } return sb.toString(); } getAsyncCallbackSignature simply checks to see if there's a way to cast the paramType to AsyncCallback. If there is, then it returns the equivalent AsyncCallback JType. If there isn't, it returns the original JType. Haven't looked at the JType API to see how getAsyncCallbackSignature would be written. I'll try to look at it Tuesday evening when I have some time. On Fri, Mar 27, 2009 at 2:10 PM, Scott Blum sco...@google.com wrote: I'm sure it's unintentional. Here's where you would go to fix it: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/rebind/rpc/RemoteServiceAsyncValidator.java#185 On Fri, Mar 27, 2009 at 2:00 PM, Vitali Lovich vlov...@gmail.com wrote: I tried to use my own custom class that extends AsyncCallback in the async interface, the compiler told me that the async version didn't match the sync version. For instance: public interface NoResultCallback extends AsyncCallbackVoid. It's not really an issue, but I prefer to use the more precise type to get the compiler to statically check the code. Is this by design for a reason? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JVM crashes when using GWT compiler under Java 6 update 7 JVM
You can also has the hs_err for the 32-bit vm On Fri, Mar 27, 2009 at 2:26 PM, Vitali Lovich vlov...@gmail.com wrote: Ugggh... you want me to do all the work don't you :D On a separate note 5094 compilation is broken (JUnitShell fails to compile). In 5096 the problem is resolved. On Fri, Mar 27, 2009 at 2:03 PM, Scott Blum sco...@google.com wrote: I can has hs_err_pid17105.log? On Fri, Mar 27, 2009 at 12:36 PM, Vitali Lovich vlov...@gmail.com wrote: [java] Compiling module com.google.gwt.benchmarks.viewer.ReportViewer [java] # [java] # An unexpected error has been detected by Java Runtime Environment: [java] # [java] # SIGSEGV (0xb) at pc=0x0625665c, pid=17105, tid=3762477968 [java] # [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) [java] # Problematic frame: [java] # V [libjvm.so+0x25665c] [java] # [java] # An error report file with more information is saved as: [java] # /home/vlovich/workspace/gwt/tools/benchmark-viewer/hs_err_pid17105.log [java] # [java] # If you would like to submit a bug report, please visit: [java] # http://java.sun.com/webapps/bugreport/crash.jsp [java] # The crash happened outside the Java Virtual Machine in native code. [java] # See problematic frame for where to report the bug. [java] # This is kind of annoying because GWT fails to build with the newer JDKs due to the issue mentioned before with the change to generics. So it's a two step workaround: Use the older sun JDK to compile the classes after it crashes, use run ant again with the newer JDK so that the GWT compiler doesn't crash the VM. This also happens if I try to use the older JDK with my projects, but that's not really an issue since I just use the latest OpenJDK in the Ubuntu repos. Might be relevant that I'm using 64-bit jdks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- hs_err_pid13507.log Description: Binary data
[gwt-contrib] Re: JVM crashes when using GWT compiler under Java 6 update 7 JVM
Sorry - forgot to mention that this happened when I tried to load the hosted mode browser. On Fri, Mar 27, 2009 at 3:57 PM, Vitali Lovich vlov...@gmail.com wrote: Might be related. Just set up my project to run under the regular hosted mode w/ 32-bit JVM: LoadPlugin: failed to initialize shared library /home/vlovich/.mozilla/plugins/libflashplayer.so [/home/vlovich/.mozilla/plugins/libflashplayer.so: wrong ELF class: ELFCLASS64] LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-6-sunjre/lib/amd64/libnpjp2.so [/usr/lib/jvm/java-6-sunjre/lib/amd64/libnpjp2.so: wrong ELF class: ELFCLASS64] # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0625665c, pid=20124, tid=3607796624 # # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) # Problematic frame: # V [libjvm.so+0x25665c] # # An error report file with more information is saved as: # /home/vlovich/workspace/sacred_heart/hs_err_pid20124.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # On Fri, Mar 27, 2009 at 3:07 PM, Vitali Lovich vlov...@gmail.com wrote: You can also has the hs_err for the 32-bit vm On Fri, Mar 27, 2009 at 2:26 PM, Vitali Lovich vlov...@gmail.com wrote: Ugggh... you want me to do all the work don't you :D On a separate note 5094 compilation is broken (JUnitShell fails to compile). In 5096 the problem is resolved. On Fri, Mar 27, 2009 at 2:03 PM, Scott Blum sco...@google.com wrote: I can has hs_err_pid17105.log? On Fri, Mar 27, 2009 at 12:36 PM, Vitali Lovich vlov...@gmail.com wrote: [java] Compiling module com.google.gwt.benchmarks.viewer.ReportViewer [java] # [java] # An unexpected error has been detected by Java Runtime Environment: [java] # [java] # SIGSEGV (0xb) at pc=0x0625665c, pid=17105, tid=3762477968 [java] # [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) [java] # Problematic frame: [java] # V [libjvm.so+0x25665c] [java] # [java] # An error report file with more information is saved as: [java] # /home/vlovich/workspace/gwt/tools/benchmark-viewer/hs_err_pid17105.log [java] # [java] # If you would like to submit a bug report, please visit: [java] # http://java.sun.com/webapps/bugreport/crash.jsp [java] # The crash happened outside the Java Virtual Machine in native code. [java] # See problematic frame for where to report the bug. [java] # This is kind of annoying because GWT fails to build with the newer JDKs due to the issue mentioned before with the change to generics. So it's a two step workaround: Use the older sun JDK to compile the classes after it crashes, use run ant again with the newer JDK so that the GWT compiler doesn't crash the VM. This also happens if I try to use the older JDK with my projects, but that's not really an issue since I just use the latest OpenJDK in the Ubuntu repos. Might be relevant that I'm using 64-bit jdks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JVM crashes when using GWT compiler under Java 6 update 7 JVM
Ok - i'm almost positive it is the same problem. I think the loadplugin thing is a misdirection. The project appears to crash compiling the code. On Fri, Mar 27, 2009 at 3:59 PM, Vitali Lovich vlov...@gmail.com wrote: Sorry - forgot to mention that this happened when I tried to load the hosted mode browser. On Fri, Mar 27, 2009 at 3:57 PM, Vitali Lovich vlov...@gmail.com wrote: Might be related. Just set up my project to run under the regular hosted mode w/ 32-bit JVM: LoadPlugin: failed to initialize shared library /home/vlovich/.mozilla/plugins/libflashplayer.so [/home/vlovich/.mozilla/plugins/libflashplayer.so: wrong ELF class: ELFCLASS64] LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-6-sunjre/lib/amd64/libnpjp2.so [/usr/lib/jvm/java-6-sunjre/lib/amd64/libnpjp2.so: wrong ELF class: ELFCLASS64] # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0625665c, pid=20124, tid=3607796624 # # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) # Problematic frame: # V [libjvm.so+0x25665c] # # An error report file with more information is saved as: # /home/vlovich/workspace/sacred_heart/hs_err_pid20124.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # On Fri, Mar 27, 2009 at 3:07 PM, Vitali Lovich vlov...@gmail.com wrote: You can also has the hs_err for the 32-bit vm On Fri, Mar 27, 2009 at 2:26 PM, Vitali Lovich vlov...@gmail.com wrote: Ugggh... you want me to do all the work don't you :D On a separate note 5094 compilation is broken (JUnitShell fails to compile). In 5096 the problem is resolved. On Fri, Mar 27, 2009 at 2:03 PM, Scott Blum sco...@google.com wrote: I can has hs_err_pid17105.log? On Fri, Mar 27, 2009 at 12:36 PM, Vitali Lovich vlov...@gmail.com wrote: [java] Compiling module com.google.gwt.benchmarks.viewer.ReportViewer [java] # [java] # An unexpected error has been detected by Java Runtime Environment: [java] # [java] # SIGSEGV (0xb) at pc=0x0625665c, pid=17105, tid=3762477968 [java] # [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86) [java] # Problematic frame: [java] # V [libjvm.so+0x25665c] [java] # [java] # An error report file with more information is saved as: [java] # /home/vlovich/workspace/gwt/tools/benchmark-viewer/hs_err_pid17105.log [java] # [java] # If you would like to submit a bug report, please visit: [java] # http://java.sun.com/webapps/bugreport/crash.jsp [java] # The crash happened outside the Java Virtual Machine in native code. [java] # See problematic frame for where to report the bug. [java] # This is kind of annoying because GWT fails to build with the newer JDKs due to the issue mentioned before with the change to generics. So it's a two step workaround: Use the older sun JDK to compile the classes after it crashes, use run ant again with the newer JDK so that the GWT compiler doesn't crash the VM. This also happens if I try to use the older JDK with my projects, but that's not really an issue since I just use the latest OpenJDK in the Ubuntu repos. Might be relevant that I'm using 64-bit jdks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Fix ImageBundleBuilder de-duplication
With my stupid question about the test answered offline, LGTM http://gwt-code-reviews.appspot.com/15802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Review: JsArrays patch
Kelly, since you have experience with this, I'd like you to be the decider (i.e. Freeland is now waiting on your LGTM). On Fri, Mar 27, 2009 at 2:16 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: I think the argument is more for unnecessary rather than bad... although without JsArrayBase (we can make it package-protected, and call it JsArrayImpl if anyone cares), we duplicate the JSNI implementation for a couple trivial methods. I thought refactoring them into one place was nice, but trivial enough that I'm not fighting over it. Revised patch attached; I can go either way on this. On Fri, Mar 27, 2009 at 2:06 PM, Scott Blum sco...@google.com wrote: I'm going to punt this review to Bruce Kelly, 'cause I have no idea why having JsArrayBase would be bad. :) On Fri, Mar 27, 2009 at 1:28 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: Scott, we already talked about this, but here's the patch for public review. The basic goal is to surface the native length, sort, push, and shift operators for JsArrays... I know you mentioned that IE6's push may be slower than indexed extension, and thus a candidate for deferred binding, but I wanted to get a basic implementation in first. There should be only checkstyle changes from what we discussed (though that obviously doesn't help the rest GWTC). I also added some checkstyle fixes to JavaScriptObject, introduced by my c5082. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Public git repository
Is there by any chance a public git repository (preferably one that tracks trunk fairly closely)? git svn clone takes forever. Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5098 - Updating license and attributions.
Author: sco...@google.com Date: Fri Mar 27 15:01:35 2009 New Revision: 5098 Modified: releases/1.6/distro-source/core/src/COPYING releases/1.6/distro-source/core/src/COPYING.html releases/1.6/distro-source/core/src/about.html releases/1.6/distro-source/core/src/about.txt Log: Updating license and attributions. Modified: releases/1.6/distro-source/core/src/COPYING == --- releases/1.6/distro-source/core/src/COPYING (original) +++ releases/1.6/distro-source/core/src/COPYING Fri Mar 27 15:01:35 2009 @@ -191,8 +191,17 @@ * Apache Tomcat License: Apache License v. 2.0 (above) Source code availability: http://tomcat.apache.org -modifications are at org/apache/tomcat within gwt-dev.jar +modifications are at org/apache/tomcat/ within gwt-dev.jar +* Apache Tapestry + License: Apache License v. 2.0 (above) + Source code availability: http://tapestry.apache.org + +* ASM 3.1 + License: (custom) +http://asm.objectweb.org/license.html + Source code availability: com/google/gwt/dev/asm/ within gwt-dev.jar + * Browser Detect v2.1.6 License: Creative Commons Attribution 1.0 http://creativecommons.org/licenses/by/1.0/ @@ -213,7 +222,12 @@ Linux: http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=swt-3.2.1-gtk-linux-x86.zip Windows: http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=swt-3.2.1-win32-win32-x86.zip Mac: http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=swt-3.2.1-carbon-macosx.zip -modifications are at org/eclipse/swt within gwt-dev.jar +modifications are at org/eclipse/swt/ within gwt-dev.jar + +* Jetty + License: Apache License v. 2.0 (above) + Source code availability: +http://mortbay.org/jetty/ * JFreeChart License: GNU Lesser General Public License v. 2.1 @@ -231,10 +245,4 @@ http://www.mozilla.org/MPL/MPL-1.1.txt Source code availability: http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code - -* WebKit 418.9 (Mac only) - License: GNU Lesser General Public License v. 2.1 -http://www.gnu.org/licenses/lgpl.html - Source code availability: -http://webkit.org/building/checkout.html Modified: releases/1.6/distro-source/core/src/COPYING.html == --- releases/1.6/distro-source/core/src/COPYING.html(original) +++ releases/1.6/distro-source/core/src/COPYING.htmlFri Mar 27 15:01:35 2009 @@ -281,28 +281,43 @@ tr td class=packageApache Tomcat/td td class=licenseApache License v. 2.0 (above)/td -td class=locationa href=http://tomcat.apache.org/;tomcat.apache.org/a; modifications are at org/apache/tomcat within gwt-dev.jar/td +td class=locationa href=http://tomcat.apache.org/;tomcat.apache.org/a; modifications are at org/apache/tomcat/ within gwt-dev.jar/td + /tr + tr class=even +td class=packageApache Tapestry/td +td class=licenseApache License v. 2.0 (above)/td +td class=locationa href=http://tapestry.apache.org/;tapestry.apache.org/a/td /tr tr +td class=packageASM 3.1/td +td class=license(a href=http://asm.objectweb.org/license.html;custom/a)/td +td class=locationcom/google/gwt/dev/asm/ within gwt-dev.jar/td + /tr + tr class=even td class=packageBrowser Detect v2.1.6/td td class=licensea href=http://creativecommons.org/licenses/by/1.0/;Creative Commons Attribution 1.0/a/td td class=locationa href=http://google-web-toolkit.googlecode.com/svn/trunk/tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/BrowserInfo.java;google-web-toolkit.googlecode.com/a; transliterated into Java source/td /tr - tr class=even + tr td class=packageEclipse Java Development Tools (JDT)/td td class=licensea href=http://www.eclipse.org/legal/epl-v10.html;Eclipse Public License v. 1.0/a/td td class=locationa href=http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.1-200709211145/download.php?dropFile=eclipse-JDT-SDK-3.3.1.zip;eclipse.org/a/td /tr - tr + tr class=even td class=packageEclipse Standard Widget Toolkit (SWT)/td td class=licensea href=http://www.eclipse.org/legal/epl-v10.html;Eclipse Public License v. 1.0/a/td td class=location a href=http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=swt-3.2.1-gtk-linux-x86.zip;Linux/a, a href=http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=swt-3.2.1-win32-win32-x86.zip;Windows/a, and a href=http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=swt-3.2.1-carbon-macosx.zip;Mac/a; -modifications are at org/eclipse/swt within gwt-dev.jar +
[gwt-contrib] Re: Public git repository
We don't have a public one... but I do have a repo with the whole svn history in it that would git you started. You can grab a copy from a personal webpage of mine... http://www.shaftnet.org/~sinth/gwt-repo.tgz Just download, unpack, checkout, and you should be g2g. git svn fetch isn't so painful if you're nearly up to date already. On Fri, Mar 27, 2009 at 6:09 PM, Vitali Lovich vlov...@gmail.com wrote: Is there by any chance a public git repository (preferably one that tracks trunk fairly closely)? git svn clone takes forever. Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Public git repository
Thx. The initial checkout's a pain because Google code also limits you to like 50 kbs/s On Fri, Mar 27, 2009 at 6:34 PM, Scott Blum sco...@google.com wrote: We don't have a public one... but I do have a repo with the whole svn history in it that would git you started. You can grab a copy from a personal webpage of mine... http://www.shaftnet.org/~sinth/gwt-repo.tgz Just download, unpack, checkout, and you should be g2g. git svn fetch isn't so painful if you're nearly up to date already. On Fri, Mar 27, 2009 at 6:09 PM, Vitali Lovich vlov...@gmail.com wrote: Is there by any chance a public git repository (preferably one that tracks trunk fairly closely)? git svn clone takes forever. Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---