Re: PDF version of the GWT Developer Guide -- any time soon?
Nice, but not downloadable for offline access. Perhaps some Gears offline functionality (pretty easy) needs to be added... On Wed, Mar 18, 2009 at 1:55 AM, Brian hibr...@gmail.com wrote: Moribund? I loved their games, especially Raid On Bungling Bay... :) I don't know anything about a PDF version of the docs -- just pointing out that the GWT Developer Docs are themselves a GWT app, which is kind of nice to see. On Mar 17, 7:32 pm, jcox j...@experiments.com wrote: I'd love it if the GWT Developer Guide were also be available in PDF format. Here's why: o It's a fairly long book-like document o It changes fast enough to make 3rd party books perpetually obsolete o Being forced to read long paginated html docs is annoying o It causes less eye strain to read long documents when they're printed I don't see much need to render the javadocs as pdf, just the Developer Guide. I filed this bug recently (see below), but then got depressed when I noticed all the moribund discussion threads on the same topic (see below). Even if the current docs do have printer-friendly CSS, printing them one page at a time isn't a particularly attractive option.At this point, I'd even settle for an ugly but readable everything one page version I just don't like reading this much book-like content off a screen. Compounding matters is that if you *do* read the docs online, screen width issues tend to arise once the fonts are made slightly bigger. Are there plans to make an up-to-date PDF version? If that's too hard, what about an easily-printable-all-on-one-html- page version? If either of these seem like they might happen sometime soon, is there any idea when?They'd be greatly appreciated ! Cheers, -Jon -- Related Links --- Issue tracker - http://code.google.com/p/google-web-toolkit/issues/detail?id=3470 Moribund discussion threads --- http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5... --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
How to mask page when show a dialog box ?
Hi I want to mask page element when i show a dialog box over the page (like google reader message box). please guide me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: PDF version of the GWT Developer Guide -- any time soon?
interesting idea, but i would point this issue to the google code or to the google docs team, because gwt is only using this system. On 18 Mrz., 07:10, Peter Ondruška peter.ondru...@gmail.com wrote: Nice, but not downloadable for offline access. Perhaps some Gears offline functionality (pretty easy) needs to be added... On Wed, Mar 18, 2009 at 1:55 AM, Brian hibr...@gmail.com wrote: Moribund? I loved their games, especially Raid On Bungling Bay... :) I don't know anything about a PDF version of the docs -- just pointing out that the GWT Developer Docs are themselves a GWT app, which is kind of nice to see. On Mar 17, 7:32 pm, jcox j...@experiments.com wrote: I'd love it if the GWT Developer Guide were also be available in PDF format. Here's why: o It's a fairly long book-like document o It changes fast enough to make 3rd party books perpetually obsolete o Being forced to read long paginated html docs is annoying o It causes less eye strain to read long documents when they're printed I don't see much need to render the javadocs as pdf, just the Developer Guide. I filed this bug recently (see below), but then got depressed when I noticed all the moribund discussion threads on the same topic (see below). Even if the current docs do have printer-friendly CSS, printing them one page at a time isn't a particularly attractive option. At this point, I'd even settle for an ugly but readable everything one page version I just don't like reading this much book-like content off a screen. Compounding matters is that if you *do* read the docs online, screen width issues tend to arise once the fonts are made slightly bigger. Are there plans to make an up-to-date PDF version? If that's too hard, what about an easily-printable-all-on-one-html- page version? If either of these seem like they might happen sometime soon, is there any idea when? They'd be greatly appreciated ! Cheers, -Jon -- Related Links --- Issue tracker - http://code.google.com/p/google-web-toolkit/issues/detail?id=3470 Moribund discussion threads --- http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5... --~--~-~--~~~---~--~~ You received 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 i found the real name of a obfuscated function? How i find the code lines?
i know this, but this is not possible. i have a running system with obfuscated code and get sometimes error messages from user. now i need to assign this to the real code. unobfuscated (detailed) code to place on the production system is not the solution. is there any other solution? On 17 Mrz., 21:28, Marcelo Emanoel B. Diniz marceloeman...@gmail.com wrote: You can disable obfuscation by putting -style PRETTY on the compiler command line On Mar 17, 3:06 pm, MN nietz...@gmail.com wrote: I have a error message from a user. but i have only some obfuscated code for the stacktrace. is there a change to get the realnames method names from this? is there some index file to see the function in line 123 is the real method name xyz or an indexfile with the obfuscated method name and the real method name? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Compiling source files form external project?
Dear all, I'm writing a GWT app which has three tiers: a client, an RPC server (using the GWT RPC mechanism) and a further back-end server (RMI) used by the GWT service. Some classes, containing data, are used by all three tiers. Hence they are placed in package com.myapp.common . Since these classes do not really belong to a distinct tier, i placed them in a separate project. But since they ARE needed by the client, i DO want the GWT compiler to translate them. My problem: how can i tell GWT (1.5.3) to translate these classes? (Without moving them into the client project because that would just be ugly.) Is there a way to have the source tag in the .gwt.xml file refer to a package stored in an external project? Thanks, Mike BTW: in an earlier project, using GWT 1.4 instead of 1.5 i did the same thing and that compiled without problems. --~--~-~--~~~---~--~~ You received 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 i found the real name of a obfuscated function? How i find the code lines?
On 18 mar, 10:24, MN nietz...@gmail.com wrote: i have a running system with obfuscated code and get sometimes error messages from user. now i need to assign this to the real code. unobfuscated (detailed) code to place on the production system is not the solution. is there any other solution? GWT 2.0 will have a story of your compile compiler option that, AFAIK, will tell you those kind of things. In the mean time, I'm afraid there's no easy solution (hmm, running in GWTShell -noserver and try to reproduce the error, maybe?) --~--~-~--~~~---~--~~ You received 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 mask page when show a dialog box ?
On 18 mar, 07:34, Saeed Zarinfam zarinfa...@gmail.com wrote: Hi I want to mask page element when i show a dialog box over the page (like google reader message box). please guide me. http://collectionofdemos.appspot.com/javadoc/com/google/gwt/widgetideas/client/GlassPanel.html from the GWT-Incubator project: http://code.google.com/p/google-web-toolkit-incubator/ --~--~-~--~~~---~--~~ You received 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 i found the real name of a obfuscated function? How i find the code lines?
i just googled around this SOYC feature in the trunc, but in a sample output of soyc-vis i dont see this mappings: http://code.google.com/p/google-web-toolkit/source/browse/changes/kprobst/soyc-vis/?r=4195 maybe there is more of information in the xml file (in sampleInput- folder): in the last part with js / storyref... but i miss there also the line numbers of the function. have someone used the soyc? is there a small howto how i can use it? On 18 Mrz., 12:32, Thomas Broyer t.bro...@gmail.com wrote: On 18 mar, 10:24, MN nietz...@gmail.com wrote: i have a running system with obfuscated code and get sometimes error messages from user. now i need to assign this to the real code. unobfuscated (detailed) code to place on the production system is not the solution. is there any other solution? GWT 2.0 will have a story of your compile compiler option that, AFAIK, will tell you those kind of things. In the mean time, I'm afraid there's no easy solution (hmm, running in GWTShell -noserver and try to reproduce the error, maybe?) --~--~-~--~~~---~--~~ You received 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: ResourceBundle for client??
Is the Constants- Interface of GWT the thing, what you are searching for? With this you can read the values from a properties- file -Danny 2009/3/17 joe young keven.c...@gmail.com Can client code able to use java.util.ResourceBundle? I have some information in a propertie file and I don't want to get it via RPC, is there an easy way to do it? Right now when I use java.util.ResourceBundle in client side code, it gives me this error~ [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly 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 -~--~~~~--~~--~--~---
Help with DecoratedStackPanel
Hi, I need to piece of code with DecoratedStackPanel class instance. I wanted it to be used for stack panels and few widgets will be under that. For example: Name, Address are two Stack Panels, Name Text boxes with First name Text Boxes with last name Address Text boxes for Address 1 Text Boxes for Address 2, City, State, Pin . Should each Stack Panel have a 'public Widget onInitialize()' function cant we do with 'public void onModuleLoad()' function. Please Help, iam new to GWT. Thanks in advance. Harry. --~--~-~--~~~---~--~~ You received 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 + webservices hang glassfish 2.1
Hi all, I'm getting some strange hangs with glassfish and gwt rpc services. I'll describe my problem: my dev tools are: netbeans 6.5 with latest updates, glassfish 2.1, gwt-1.5.3, linux ubuntu 8.04. situation: on the entry point create a SimplePanel with a button. Associate to this button a listener with the following code to be executed: for (int i = 0; i 10; i++) { _query_service.doQuery(query, new AsyncCallback() { public void onFailure(Throwable caught) { } public void onSuccess(Object result) { Window.alert(wh0a); } }); } The doQuery () is a GWT-RPC service. The service implementation is something like this: public class QueryServiceImpl extends RemoteServiceServlet implements QueryService { @WebServiceRef(wsdlLocation = WEB-INF/wsdl/client/StoreService/ localhost_8139/Store/StoreService.wsdl) private StoreService service; public synchronized doQuery (MyObject query) { try { // Call Web Service Operation com.my.company.Store port = service.getStorePort(); // TODO initialize WS operation arguments here java.lang.String programName = par1; java.lang.String programVersion = par2; // TODO process result here java.lang.String result = port.getCfgText(programName, programVersion); out.println(Result = +result); } catch (Exception ex) { // TODO handle custom exceptions here } } } as you see the webservice is called with the automatic 'call webservice operation...' by Netbeans. The webservice in hosted in the local server, the same in which the gwt-rpc service is deployed. But in the above configuration I've a *global* freeze of glassfish. I must restart it to have it responding again. No exception is thrown nor result received. The method is thread-safe, using synchronized keyword. The hang does not happen if the webservice is hosted on another server. The hang does not happen if I call once the doQuery (), and then I the for loop. Am I missing or doing something wrong? --~--~-~--~~~---~--~~ You received 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: Help with DecoratedStackPanel
Here, check this out. It has source code to get you started as well: http://gwt.google.com/samples/Showcase/Showcase.html#CwStackPanel You will only need one stack Panel, but have a StackPanel.add() for Name and for Address. For something like Name and Address, StackPanel seems like an odd choice. You may want to look at the rest of the GWT Showcase and see if something better fits what you are looking for. On Mar 18, 8:39 am, Harry harish1...@gmail.com wrote: Hi, I need to piece of code with DecoratedStackPanel class instance. I wanted it to be used for stack panels and few widgets will be under that. For example: Name, Address are two Stack Panels, Name Text boxes with First name Text Boxes with last name Address Text boxes for Address 1 Text Boxes for Address 2, City, State, Pin . Should each Stack Panel have a 'public Widget onInitialize()' function cant we do with 'public void onModuleLoad()' function. Please Help, iam new to GWT. Thanks in advance. Harry. --~--~-~--~~~---~--~~ You received 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: Compiling source files form external project?
I `solved' my problem by creating a separate module for the common source files, packaging them in a JAR, and including them in the client project by using inherits. Not really satisfied though, because each time i change the common package i must re-export and import the JAR. Bye, Mike On Mar 18, 11:51 am, Mike mcwe...@gmail.com wrote: Dear all, I'm writing a GWT app which has three tiers: a client, an RPC server (using the GWT RPC mechanism) and a further back-end server (RMI) used by the GWT service. Some classes, containing data, are used by all three tiers. Hence they are placed in package com.myapp.common . Since these classes do not really belong to a distinct tier, i placed them in a separate project. But since they ARE needed by the client, i DO want the GWT compiler to translate them. My problem: how can i tell GWT (1.5.3) to translate these classes? (Without moving them into the client project because that would just be ugly.) Is there a way to have the source tag in the .gwt.xml file refer to a package stored in an external project? Thanks, Mike BTW: in an earlier project, using GWT 1.4 instead of 1.5 i did the same thing and that compiled without problems. --~--~-~--~~~---~--~~ You received 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: Excluding imports on client side
No, you'll have to refactor to separate the server-side functionality. On Wed, Mar 18, 2009 at 6:17 AM, Ice13ill andrei.fifi...@gmail.com wrote: Is there a way to exclude imports when compiling a gwt application ? Let's say i want to use a class on client and server side with two methods: one uses gwt widgets (this is the method i want to use on the client side) and one uses Sockets (or smth like that... code needed on the server side). Obviously i get an error when importing java.net.Socket. --~--~-~--~~~---~--~~ You received 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: Excluding imports on client side
On 18 mar, 11:17, Ice13ill andrei.fifi...@gmail.com wrote: Is there a way to exclude imports when compiling a gwt application ? Simply put: no. Let's say i want to use a class on client and server side with two methods: one uses gwt widgets (this is the method i want to use on the client side) and one uses Sockets (or smth like that... code needed on the server side). Obviously i get an error when importing java.net.Socket. Several options: a) refactor your code so that client and server code are in distinct classes b) include a super-source/ in your module with a dummy java.net.Socket class so that the GWTCompiler doesn't choke (but it won't use it in the final code as the server only method won't be called by client code). Obviously, option a is strongly preferred, as it also makes it obvious that methodB isn't to be called by client code and vice versa. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Not able to see checkboxes
Hi, I am not able to see radio button, what should i do is there anything i should add. package com.myapplications.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.MenuBar; import com.google.gwt.user.client.ui.RadioButton; import com.google.gwt.user.client.ui.RootPanel; @SuppressWarnings(unused) public class Notes implements EntryPoint{ public void onModuleLoad(){ RadioButton age18 = new RadioButton(age, 18-25); RadioButton age26 = new RadioButton(age, 26-30); RadioButton age31 = new RadioButton(age, 31-40); RadioButton other = new RadioButton(age, 40); } } Thanks, Harry.. --~--~-~--~~~---~--~~ You received 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 i found the real name of a obfuscated function? How i find the code lines?
On 18 mar, 12:43, MN nietz...@gmail.com wrote: i just googled around this SOYC feature in the trunc, but in a sample output of soyc-vis i dont see this mappings: http://code.google.com/p/google-web-toolkit/source/browse/changes/kpr... maybe there is more of information in the xml file (in sampleInput- folder): in the last part with js / storyref... but i miss there also the line numbers of the function. This change branch looks like it is out-dated. have someone used the soyc? is there a small howto how i can use it? I haven't used SOYC, but it should give you the origin source location: http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StoryRecorderImpl.java#324 in storiesN.xml.gz (where N is the permutation index) Information is then processed by soyc-vis to give you an HTML report with the appropriate source info: http://code.google.com/p/google-web-toolkit/source/browse/trunk/tools/soyc-vis/src/com/google/gwt/soyc/SoycDashboard.java#590 --~--~-~--~~~---~--~~ You received 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: ResourceBundle for client??
YES~!! It is exactly what I'm looking for!! Thank you so much Danny~ On Mar 18, 8:03 am, Danny Schimke schimk...@googlemail.com wrote: Is the Constants- Interface of GWT the thing, what you are searching for? With this you can read the values from a properties- file -Danny 2009/3/17 joe young keven.c...@gmail.com Can client code able to use java.util.ResourceBundle? I have some information in a propertie file and I don't want to get it via RPC, is there an easy way to do it? Right now when I use java.util.ResourceBundle in client side code, it gives me this error~ [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly 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 -~--~~~~--~~--~--~---
WindowCloseListener gets fired from iframe
I'm having a problem with my WindoCloseListener.onWindowClosing event firing when I click a link on my page, which opens an iframe on my page. if I click ok, everything works as it should. But I don't want users thinking they are navigating away from my page when the click the link. I'm wondering if anyone else has run into this problem? 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 -~--~~~~--~~--~--~---
Re: How i found the real name of a obfuscated function? How i find the code lines?
On 18 mar, 15:08, Thomas Broyer t.bro...@gmail.com wrote: On 18 mar, 12:43, MN nietz...@gmail.com wrote: i just googled around this SOYC feature in the trunc, but in a sample output of soyc-vis i dont see this mappings: http://code.google.com/p/google-web-toolkit/source/browse/changes/kpr... maybe there is more of information in the xml file (in sampleInput- folder): in the last part with js / storyref... but i miss there also the line numbers of the function. This change branch looks like it is out-dated. It actually is, as it has been deleted ;-) Search for origin in http://google-web-toolkit.googlecode.com/svn-history/r4195/changes/kprobst/soyc-vis/sampleInput/report0-hello.xml I don't know how to process this info though (but as soyc-vis will do it for you, no need to worry that much ;-) --~--~-~--~~~---~--~~ You received 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: PDF version of the GWT Developer Guide -- any time soon?
Yeah it is too bad it's not accessible offline. Just noticed it also doesn't work to view the pages to cache the app, going offline, and re- viewing -- guess it's trying to pull data off the server. Think you're stuck until an offline version of some sort is provided... On Mar 18, 2:10 am, Peter Ondruška peter.ondru...@gmail.com wrote: Nice, but not downloadable for offline access. Perhaps some Gears offline functionality (pretty easy) needs to be added... On Wed, Mar 18, 2009 at 1:55 AM, Brian hibr...@gmail.com wrote: Moribund? I loved their games, especially Raid On Bungling Bay... :) I don't know anything about a PDF version of the docs -- just pointing out that the GWT Developer Docs are themselves a GWT app, which is kind of nice to see. On Mar 17, 7:32 pm, jcox j...@experiments.com wrote: I'd love it if the GWT Developer Guide were also be available in PDF format. Here's why: o It's a fairly long book-like document o It changes fast enough to make 3rd party books perpetually obsolete o Being forced to read long paginated html docs is annoying o It causes less eye strain to read long documents when they're printed I don't see much need to render the javadocs as pdf, just the Developer Guide. I filed this bug recently (see below), but then got depressed when I noticed all the moribund discussion threads on the same topic (see below). Even if the current docs do have printer-friendly CSS, printing them one page at a time isn't a particularly attractive option. At this point, I'd even settle for an ugly but readable everything one page version I just don't like reading this much book-like content off a screen. Compounding matters is that if you *do* read the docs online, screen width issues tend to arise once the fonts are made slightly bigger. Are there plans to make an up-to-date PDF version? If that's too hard, what about an easily-printable-all-on-one-html- page version? If either of these seem like they might happen sometime soon, is there any idea when? They'd be greatly appreciated ! Cheers, -Jon -- Related Links --- Issue tracker - http://code.google.com/p/google-web-toolkit/issues/detail?id=3470 Moribund discussion threads --- http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-rpc + webservices hang glassfish 2.1
as i catch i right, the rpc-call is a different way to communicate, then webservice webservice is between 2 tiers, the rpc is a remote controller for the client to the server. if u want to distribute your remote call to a second app.server, u can use a webservice. for the simple remote call from the gui (e.g. browser) use the rpc with the @remote call --~--~-~--~~~---~--~~ You received 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: file upload like orkut
e) Via a Java Applet f) Via an ActiveX Applet (IE/windows-only I think) On Mar 16, 7:51 am, Thomas Broyer t.bro...@gmail.com wrote: On 16 mar, 09:06, Adam T adam.t...@gmail.com wrote: File upload is done via either: a) The FileUpload widget - if your happy for the user to select one file at a time, or b) Via a Flash Movie that allows multiple file selects. c) Google Gears (as used by YouTube) http://code.google.com/p/gwt-google-apis/ b) Yahoo! BrowserPlus http://browserplus.yahoo.com http://code.google.com/p/gwt-in-the-air/(preliminary support) --~--~-~--~~~---~--~~ You received 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: Excluding imports on client side
Where can i find how to use super-source/ tag in gwt.xml ? On Mar 18, 3:34 pm, Thomas Broyer t.bro...@gmail.com wrote: On 18 mar, 11:17, Ice13ill andrei.fifi...@gmail.com wrote: Is there a way to exclude imports when compiling a gwt application ? Simply put: no. Let's say i want to use a class on client and server side with two methods: one uses gwt widgets (this is the method i want to use on the client side) and one uses Sockets (or smth like that... code needed on the server side). Obviously i get an error when importing java.net.Socket. Several options: a) refactor your code so that client and server code are in distinct classes b) include a super-source/ in your module with a dummy java.net.Socket class so that the GWTCompiler doesn't choke (but it won't use it in the final code as the server only method won't be called by client code). Obviously, option a is strongly preferred, as it also makes it obvious that methodB isn't to be called by client code and vice versa. --~--~-~--~~~---~--~~ You received 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: como agregar imagen bmp en backround
Pacholi, En tu página principal, simplemente usa un estilo CSS en el Panel que uses ahí que tenga una imagen de fondo, luego cambias en las demás páginas, si cambias el Panel, entonces se irá, si no, entonces simplemente cambias el estilo CSS por uno que no tenga esa imagen (usando .setStyleName(tu-estilo)) en el Panel o widget al que le quieras cambiar el estilo (imagen). On Mar 16, 4:59 pm, Pacholi aguirre.a.marc...@gmail.com wrote: necesito agregar imagen que se cargue una sola vez en pagina principal, luego la navegar por las demas paginas que omita esta imagen de fondo,. --~--~-~--~~~---~--~~ You received 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: Not able to see checkboxes
You have to add them to a visible component. For instance: On Wed, Mar 18, 2009 at 9:50 AM, Harry harish1...@gmail.com wrote: Hi, I am not able to see radio button, what should i do is there anything i should add. package com.myapplications.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.MenuBar; import com.google.gwt.user.client.ui.RadioButton; import com.google.gwt.user.client.ui.RootPanel; @SuppressWarnings(unused) public class Notes implements EntryPoint{ public void onModuleLoad(){ RadioButton age18 = new RadioButton(age, 18-25); RadioButton age26 = new RadioButton(age, 26-30); RadioButton age31 = new RadioButton(age, 31-40); RadioButton other = new RadioButton(age, 40); RootPanel body = RootPanel.get(); body.add(age18); body.add(age26); body.add(age31); body.add(other); } } Thanks, Harry.. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
JNSI - IFrame - Function Issue
Hey guys, I'm trying to create a simple little foray in to JSNI to do some DOM manipulation and I'm really striking out bigtime. Basically, my document loads an IFrame that contains and external page in it. On the page is a JS function called giveFocus(). I can't seem to get ahold of the frame properly to call the function. Has anyone got this to work sucessfully? Basically, I've got something like this: entryPoint { Frame myFrame = new Frame( *externalPage* ); myFrame.setSize( 100, 200 ); RootPanel.add( myFrame ); doFrameFunction( myFrame ); } native void doFrameFunction( Frame frame ) /*-{ $wnd.frames( frame ).document.callThisJSFunctionInsideTheIFrame(); }-*/; The pseudocode is crappy but generally that's what I'm trying to pull off. Is this possible? Where am I going wrong? Thanks! Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-rpc + webservices hang glassfish 2.1
On Mar 18, 3:20 pm, tetsuo tetsuomeis...@googlemail.com wrote: as i catch i right, the rpc-call is a different way to communicate, then webservice webservice is between 2 tiers, the rpc is a remote controller for the client to the server. if u want to distribute your remote call to a second app.server, u can use a webservice. for the simple remote call from the gui (e.g. browser) use the rpc with the @remote call well, in the example above I simplified the GWT Rpc service. There's some more logic before the call to the webservice. Anyway, there shouldn't be anything wrong in calling a webservice of the same webserver (consider that I should be able to deploy the .war everywhere without fearing that the wsdl points to the target webserver or not). there's something wrong in ws management. If the RPC is called for the first time by more than a request, then everything freezes, otherwise it works fine. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
[ERROR] Type 'com.gwt.client.FileDetail' was not serializable and has no concrete serializable subtypes
i am exploring GWT. i am writing one application allows server directory browsing using GWT. but i am getting error [ERROR] Type 'com.gwt.client.FileDetail' was not serializable and has no concrete serializable subtypes even though my class com.gwt.client.FileDetail implements Serializable pls 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 -~--~~~~--~~--~--~---
WEB-INF in hosted mode
Hi All This is my first post, so please go easy on me! I have checked the archives, but I couldn't find anything that seemed to answer my questions. I'm integrating GWT with Spring using a proxy class that derives from RemoteServiceServlet and gets the Spring Application context as follows: final XmlWebApplicationContext context = new XmlWebApplicationContext (); context.setServletContext(this.getServletContext()); context.refresh(); IssuesService issues = (IssuesService) context.getBean(IssuesImpl); This works just fine when the project is deployed to TomCast (proper), but when I use it in hosted mode I get: [WARN] StandardContext[]Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List uk.co.marauder.tracker.client.rpc.IssuesService.getIssueHeaders (boolean)' threw an unexpected exception: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB- INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml] Where is the WEB-INF located when running in hosted mode? Thanks Paul --~--~-~--~~~---~--~~ You received 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.4 + Flex
Hi, we are currently using GWT 1.4. is there a good plugin to integrate Flex into GWT? i tried using gwt2swf but it needs GWT 1.5. Any help is really appreciated. thanks in advance, Venkat --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
[ERROR] Unable to load module entry point class com.
Getting this error please help :( [ERROR] Unable to load module entry point class com.myapplications.client.Notes (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' is null or not an object number: -2146823281 description: '$wnd.Ext.StatusBar' is null or not an object at com.gwtext.client.widgets.Component.checkExtVer(Native Method) at com.gwtext.client.widgets.Component.clinit(Component.java:108) at com.myapplications.client.Notes.onModuleLoad(Notes.java:22) --~--~-~--~~~---~--~~ You received 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: JSNI / OpenLayers
It is a little clearer now, couple of things were no correct in my code and it took a while to get everything a little more straight. I performed the following : click on an openLayers point to launch java function. It works like that : First, my native Js function largely inspired by Openlayers example page : --- private static native JavaScriptObject _select(JavaScriptObject map, JavaScriptObject layer,VectorLayer x) /*-{ var mylayer=layer function select(feature) { x...@org.gt.client.map.openlayers.geometry.vectorlayer::selected (Lcom/google/gwt/core/client/JavaScriptObject;)(feature.attributes[0]) } var drawControl=new $wnd.OpenLayers.Control.SelectFeature ( mylayer, { clickout: true, toggle: true, multiple: true, hover: false, toggleKey: ctrlKey, // ctrl key removes from selection multipleKey: shiftKey, // shift key adds to selection box: true, onSelect:select } ); map.addControl(drawControl); drawControl.activate(); }-*/; --- Note that : Those three objects are passed JavaScriptObject map, JavaScriptObject layer,VectorLayer x (VectorLayer is the self reference of the class : this) The path to the class in JSNI context is : x...@org.gt.client.map.openlayers.geometry.vectorlayer To adress a function in my class : x...@org.gt.client.map.openlayers.geometry.vectorlayer::selected()() On 10 mar, 15:26, Gilles gilles_ta...@yahoo.fr wrote: We are using GWT andOpenLayersin several projects making use of theJSNI. Until now we could use simpleOpenlayersjs function such as Zoom. It was clear to me that to use a zoom usingJSNII have to do : private static native void _zoomTo(JavaScriptObject map, int zoomLevel) /*-{ map.zoomTo(zoomLevel); }-*/; I could do a lot with this simple methods. But now, as complexity is increasing I would need to use more complex feature ofOpenlayers. For example what would be the smartest way to apply those settings to my map so I can detect double click and get the event to my gwt application : script src=../OpenLayers.js/script script type=text/javascript OpenLayers.Control.Click =OpenLayers.Class (OpenLayers.Control, { defaultHandlerOptions: { 'single': false, 'double': true, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions =OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = newOpenLayers.Handler.Click( this, { 'click': this.trigger }, this.handlerOptions ); }, trigger: function(e) { var lonlat = map.getLonLatFromViewPortPx(e.xy); alert(You clicked near + lonlat.lat + N, + + lonlat.lon + E); } }); var map; function init(){ map = newOpenLayers.Map('map'); var click = newOpenLayers.Control.Click(); map.addControl(click); } /script --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
GWT1.4 source code
Hi could you please share the link, where i can download the full source code of GWT V1.4? tia prabhu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-rpc + webservices hang glassfish 2.1
I've got a sample crasher program. Is there a way to upload something on the group? On Mar 18, 4:26 pm, PeSc|O pes...@gmail.com wrote: On Mar 18, 3:20 pm, tetsuo tetsuomeis...@googlemail.com wrote: as i catch i right, the rpc-call is a different way to communicate, then webservice webservice is between 2 tiers, the rpc is a remote controller for the client to the server. if u want to distribute your remote call to a second app.server, u can use a webservice. for the simple remote call from the gui (e.g. browser) use the rpc with the @remote call well, in the example above I simplified the GWT Rpc service. There's some more logic before the call to the webservice. Anyway, there shouldn't be anything wrong in calling a webservice of the same webserver (consider that I should be able to deploy the .war everywhere without fearing that the wsdl points to the target webserver or not). there's something wrong in ws management. If the RPC is called for the first time by more than a request, then everything freezes, otherwise it works fine. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
How to determine if popup panel is visible or shown?
It seems as soon as I create a popup panel (PopupPanel) and call the isVisible() method it will return true, even before I add a widget to it and before I call show(). I can accept that it behaves differently from other widgets, but how then do I determine whether or not popup is visible (shown)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-rpc + webservices hang glassfish 2.1
you bedder consider the differences between a remote control and a webservice interface http://en.wikipedia.org/wiki/Webservice http://en.wikipedia.org/wiki/Remote_procedure_call the rpc is like the controller for your tv, the webservice is the like two tv´s communicating to each other. in your example you want to control your tv with a tv - that dosnt work. --~--~-~--~~~---~--~~ You received 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: Organizing CSS with GWT
Hi Ice13ill, I'm glad you asked! We have a recent GWT blog post by Chris Klundt and Eric Wuebben who have given some great guidelines they've followed to build their own application, http://studyblue.com. You can check it out here: http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html You should also be able to find a number of useful threads on the forum by searching for terms similar to this thread title. Hope that helps, -Sumit Chandel On Tue, Mar 17, 2009 at 10:57 AM, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I'm trying to create an interface for an application using gwt to arrange widgets and CSS (bigtime) for widgets properties/styles. Can somebody give a few links for hints or tutorials on how is it better to organize, arrange, cascade etc. styles using CSS in GWT ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: NumberFormat getCurrenyFormat()
Or at least change it to £2.57 instead of $? On Mar 17, 8:58 pm, fatjack1...@googlemail.com fatjack1...@googlemail.com wrote: Ok, The reason I wasparsing it back in was to convert it from a String to an integer. I think I have fixed part of the problem. My code now looks like this: NumberFormat fmt = NumberFormat.getCurrencyFormat(); String formatted = fmt.format(discountAmount); discountAmount = Integer.parse(formatted); However, it now comes up with US$2.57...How do I get it to remove the US$ part?! Regards, Jack On Mar 17, 6:38 pm, MN nietz...@gmail.com wrote: please provide your full code. you print out formatted oder discountAmount? why you parse again the formatted string back to discountAmount? On 17 Mrz., 15:18, fatjack1...@googlemail.com fatjack1...@googlemail.com wrote: Hi, I am having some problems correctly displaying currency. Here is the code I am using: //Format the discount to two decimal places NumberFormat fmt = NumberFormat.getCurrencyFormat(); String formatted = fmt.format(discountAmount); discountAmount = NumberFormat.getCurrencyFormat().parse(formatted); The discount amount field is set to some currency value for example 2.5. Now, it works fine if the value is set to 2 or more decimal places, so it would format 2.5 to 2.58. However, if the value is intitial set to say 3, it formats the value to 3.0! Now, as I am using this to display the price of something, £3.0 is not really much use. Can someone see where I am going wrong in my code or if I need to add something?? Cheers, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
What happened to the incubator YouTube widget?
A few months back there was a youtube widget in the GWT incubator. It seems to have vaporized. Does anyone know what happened to it or have pointers to the code? You can see a screen shot of the old widget here: http://www.gwtnow.com/2008/09/04/gwt-incubator-whats-in-it/ I'd think that a youtube widget would be extremely popular and useful, does anyone know why it was removed from the incubator? --~--~-~--~~~---~--~~ You received 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: PDF version of the GWT Developer Guide -- any time soon?
I seem to remember somebody from google mentioning in this forum about the doc reader being added Gears support (for off-line access), but couldn't find it... sure would be nice to have a PDF version as well though. On Mar 18, 10:19 am, Brian hibr...@gmail.com wrote: Yeah it is too bad it's not accessible offline. Just noticed it also doesn't work to view the pages to cache the app, going offline, and re- viewing -- guess it's trying to pull data off the server. Think you're stuck until an offline version of some sort is provided... On Mar 18, 2:10 am, Peter Ondruška peter.ondru...@gmail.com wrote: Nice, but not downloadable for offline access. Perhaps some Gears offline functionality (pretty easy) needs to be added... On Wed, Mar 18, 2009 at 1:55 AM, Brian hibr...@gmail.com wrote: Moribund? I loved their games, especially Raid On Bungling Bay... :) I don't know anything about a PDF version of the docs -- just pointing out that the GWT Developer Docs are themselves a GWT app, which is kind of nice to see. On Mar 17, 7:32 pm, jcox j...@experiments.com wrote: I'd love it if the GWT Developer Guide were also be available in PDF format. Here's why: o It's a fairly long book-like document o It changes fast enough to make 3rd party books perpetually obsolete o Being forced to read long paginated html docs is annoying o It causes less eye strain to read long documents when they're printed I don't see much need to render the javadocs as pdf, just the Developer Guide. I filed this bug recently (see below), but then got depressed when I noticed all the moribund discussion threads on the same topic (see below). Even if the current docs do have printer-friendly CSS, printing them one page at a time isn't a particularly attractive option. At this point, I'd even settle for an ugly but readable everything one page version I just don't like reading this much book-like content off a screen. Compounding matters is that if you *do* read the docs online, screen width issues tend to arise once the fonts are made slightly bigger. Are there plans to make an up-to-date PDF version? If that's too hard, what about an easily-printable-all-on-one-html- page version? If either of these seem like they might happen sometime soon, is there any idea when? They'd be greatly appreciated ! Cheers, -Jon -- Related Links --- Issue tracker - http://code.google.com/p/google-web-toolkit/issues/detail?id=3470 Moribund discussion threads --- http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5... --~--~-~--~~~---~--~~ You received 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: Returning Nested ArrayLists from RPC
Ok solved my own problem, with GWT 1.5, you don't need to use annotations. I realized that annotations were creating the warnings. Don't use annotations. On Mar 17, 5:15 pm, erincarikan erincari...@gmail.com wrote: Hi; Here's the situation: My Rpc prepares ArrayListA. A implements Isserializable interface and it contains some fields and an arraylistB field. B implements Isserializable interface and it contains some fields and an arraylistC field. C implements Isserializable interface and has primitive type fields. When I create this arraylist and try to return it, I receive tons of warnings even though I think I get data back, I also use annotations to tell the compiler about the type. While declaring ArrayListA, I use following annotation: /** @gwt.typeArgs A */, In class A, while /** @gwt.typeArgs B */ and in class B I use /** @gwt.typeArgs C */, but I receive typeInfo.classnotfound warnings. Do I have to use annotations differently, I am on the verge of losing my faith in arraylist and using regular nested arrays. Please 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 -~--~~~~--~~--~--~---
Servlet ClassNotFoundException
Hi, I've been following the GWT Tutorial @ http://code.google.com/webtoolkit/tutorials/1.5/RPC.html Using Eclipse, I created the project with all the necessary files. I created the 2 packages as explained: - StockWatcher.client - StockWatcher.server Now when I try to run this app in hosted mode, I get the follwoing error: java.lang.ClassNotFoundException: StockWatcher.server.StockPriceServiceImpl However, looking at my xml, I have: servlet path=/stockPrices class=StockWatcher.server.StockPriceServiceImpl / The souce file for this class is located at: src\StockWatcher\server\StockPriceServiceImpl.java And if I look directly in the folder hierarchy I find the class at: bin\StockWatcher\server\StockPriceServiceImpl.class My run configuration has the following Classpath: - GWT_1.5 - src - \StockWatcher\ In all likelyhood there is a problem with the ClassPath from what I read ... but I can't seem to find it or make it work. Thx for the 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 VISUALIZATION GEOMAP MARKER ERROR
Hi, I've a problem using google visualization. I've tried to make in GWT the example show here http://code.google.com/intl/it-IT/apis/visualization/documentation/gallery/geomap.html (section Markers Example). When I'm trying to draw the markers on the map, the google widget display this error message Google Maps API not included.. Instead, if you display only region there are no problems and them are show. Any ideas? Thanks Regard --~--~-~--~~~---~--~~ You received 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: GWT1.4 source code
I don't think the 1.4 source is available as a downloadable link anymore. But you can pull the source from subversion. From a command line: svn checkout http://google-web-toolkit.googlecode.com/svn/releases/1.4 release_1.4 Or you can browse the source online: http://code.google.com/p/google-web-toolkit/source/browse/#svn/releases/1.4 On Mar 18, 11:59 am, kandanur prabhu.kanda...@gmail.com wrote: Hi could you please share the link, where i can download the full source code of GWT V1.4? tia prabhu --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Announcing GWT 1.6 Release Candidate
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=google-web-toolkit-doc-1-6t=ReleaseNotes_1_6 as well as previous 1.6-related announcements: Announcing GWT 1.6 Milestone 1 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3e7e6cc3b35ad98a and Announcing GWT 1.6 Milestone 2 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/33df9cc75aead5a1 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=milestone:1_6_RC%20status:FixedNotReleased,Fixedsort=priority 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 -~--~~~~--~~--~--~---
SerializationException when serialize a HashMap over RPC
Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public WeeklyAppointmentData getWeeklyData(); } public class WeeklyAppointmentData implements Serializable { private static final long serialVersionUID = 4291039636290439374L; private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); public WeeklyAppointmentData() { } public void add(DayHourCoordenate coordenate, Appointment appointment) { ListAppointment list = mapData.get(coordenate); if( list == null) { list = new ArrayListAppointment(); mapData.put(coordenate, list); } list.add(appointment); } public ListAppointment get(DayHourCoordenate coordenate) { return mapData.get(coordenate); } } public class DayHourCoordenate implements Serializable { private static final long serialVersionUID = 217370389812685596L; private int day = 0; private int hour = 0; public DayHourCoordenate() { } public DayHourCoordenate(int day, int hour) { this.day = day; this.hour = hour; } public int getDay() { return day; } public void setDay(int day) { this.day = day; } public int getHour() { return hour; } public void setHour(int hour) { this.hour = hour; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + day; result = prime * result + hour; return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof DayHourCoordenate)) return false; DayHourCoordenate other =
Re: SerializationException when serialize a HashMap over RPC
The error message tells you exactly the reason: WeeklyAppointmentData is not serializable. Please refer to the serialization rules of GWT (essentially, your classes have to extends IsSerializable, all non-static, non-final, non-transient fields must be serializable you must provide a default constructor (any visibility, but it must be there). Since you don't give the definitions for DayHourCoordenate Appointment, I can't give you the exact reason, but one of those classes is at fault. On Wed, Mar 18, 2009 at 5:13 PM, Alejandro D. Garin aga...@gmail.comwrote: Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public WeeklyAppointmentData getWeeklyData(); } public class WeeklyAppointmentData implements Serializable { private static final long serialVersionUID = 4291039636290439374L; private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); public WeeklyAppointmentData() { } public void add(DayHourCoordenate coordenate, Appointment appointment) { ListAppointment list = mapData.get(coordenate); if( list == null) { list = new ArrayListAppointment(); mapData.put(coordenate, list); } list.add(appointment); } public ListAppointment get(DayHourCoordenate coordenate) { return mapData.get(coordenate); } } public class DayHourCoordenate implements Serializable { private static final long serialVersionUID = 217370389812685596L; private int day = 0; private int hour = 0; public DayHourCoordenate() { } public DayHourCoordenate(int day,
Re: SerializationException when serialize a HashMap over RPC
The class WeeklyAppointmentData does not appear to implement IsSerializable. That's in the first line of the error stack trace. G --- On Wed, 3/18/09, Alejandro D. Garin aga...@gmail.com wrote: From: Alejandro D. Garin aga...@gmail.com Subject: SerializationException when serialize a HashMap over RPC To: Google-Web-Toolkit@googlegroups.com Date: Wednesday, March 18, 2009, 5:13 PM Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public WeeklyAppointmentData getWeeklyData(); } public class WeeklyAppointmentData implements Serializable { private static final long serialVersionUID = 4291039636290439374L; private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); public WeeklyAppointmentData() { } public void add(DayHourCoordenate coordenate, Appointment appointment) { ListAppointment list = mapData.get(coordenate); if( list == null) { list = new ArrayListAppointment(); mapData.put(coordenate, list); } list.add(appointment); } public ListAppointment get(DayHourCoordenate coordenate) { return mapData.get(coordenate); } } public class DayHourCoordenate implements Serializable { private static final long serialVersionUID = 217370389812685596L; private int day = 0; private int hour = 0; public DayHourCoordenate() { } public DayHourCoordenate(int day, int hour) { this.day = day; this.hour = hour; } public int getDay() { return day; } public void setDay(int day) {
Re: SerializationException when serialize a HashMap over RPC
That depends on the version of GWT he's using. As of 1.5 (or 1.4 - can't recall the exact version), Serializable is a synonym for IsSerializable On Wed, Mar 18, 2009 at 5:15 PM, George Holler georgehol...@yahoo.comwrote: The class WeeklyAppointmentData does not appear to implement IsSerializable. That's in the first line of the error stack trace. G --- On Wed, 3/18/09, Alejandro D. Garin aga...@gmail.com wrote: From: Alejandro D. Garin aga...@gmail.com Subject: SerializationException when serialize a HashMap over RPC To: Google-Web-Toolkit@googlegroups.com Date: Wednesday, March 18, 2009, 5:13 PM Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public WeeklyAppointmentData getWeeklyData(); } public class WeeklyAppointmentData implements Serializable { private static final long serialVersionUID = 4291039636290439374L; private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); public WeeklyAppointmentData() { } public void add(DayHourCoordenate coordenate, Appointment appointment) { ListAppointment list = mapData.get(coordenate); if( list == null) { list = new ArrayListAppointment(); mapData.put(coordenate, list); } list.add(appointment); } public ListAppointment get(DayHourCoordenate coordenate) { return mapData.get(coordenate); } } public class DayHourCoordenate
Re: SerializationException when serialize a HashMap over RPC
I think I see it. List is not generally serializable. The recommendation I recall reading somewhere is to try to use super-classes as infrequently as possible because it makes the compiler's job more difficult - also, in this particular case, the GWT compiler is unable to determine the type to serialize to. Try: private MapDayHourCoordenate,ArrayListAppointment mapData = new HashMapDayHourCoordenate,ArrayListAppointment(); or even more preferable, change mapData to a HashMap as well. On Wed, Mar 18, 2009 at 6:05 PM, Vitali Lovich vlov...@gmail.com wrote: That depends on the version of GWT he's using. As of 1.5 (or 1.4 - can't recall the exact version), Serializable is a synonym for IsSerializable On Wed, Mar 18, 2009 at 5:15 PM, George Holler georgehol...@yahoo.comwrote: The class WeeklyAppointmentData does not appear to implement IsSerializable. That's in the first line of the error stack trace. G --- On Wed, 3/18/09, Alejandro D. Garin aga...@gmail.com wrote: From: Alejandro D. Garin aga...@gmail.com Subject: SerializationException when serialize a HashMap over RPC To: Google-Web-Toolkit@googlegroups.com Date: Wednesday, March 18, 2009, 5:13 PM Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public WeeklyAppointmentData getWeeklyData(); } public class WeeklyAppointmentData implements Serializable { private static final long serialVersionUID = 4291039636290439374L; private
Re: How to determine if popup panel is visible or shown?
There's an existing bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=1665 On Mar 18, 9:12 am, rjcarr rjc...@gmail.com wrote: It seems as soon as I create a popup panel (PopupPanel) and call the isVisible() method it will return true, even before I add a widget to it and before I call show(). I can accept that it behaves differently from other widgets, but how then do I determine whether or not popup is visible (shown)? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
JsArray.length giving error: HostedModeException: Expected primitive type int; actual value was undefined
I have the following code that processes a JavaScriptObject that is expected to be a JsArray: JavaScriptObject jso = ... JsArray jsa = jso.cast(); int cnt = jsa.length(); I am finding that if the JsArray has a single element then jsa.length() results in following exception. All is well if there are 2 or more elements: com.google.gwt.dev.shell.HostedModeException: Expected primitive type int; actual value was undefined at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:206) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) at com.google.gwt.core.client.JsArray$.length$(JsArray.java) at com.wellfleetsoftware.gis.gui.gwt.client.editor.PartyEditor.getAttributeAsListGridRecords(PartyEditor.java:108) at com.wellfleetsoftware.gis.gui.gwt.client.editor.PartyEditor.fetchRelatedData(PartyEditor.java:93) at com.wellfleetsoftware.gis.gui.gwt.client.editor.RegistryObjectEditor$1.execute(RegistryObjectEditor.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:80) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Is this a known issue or am I doing something wrong? An example JSON fragment for the 1 element JsArray is: Email : [ { id : 245081, address : farr...@work.com, type : OfficeEmail } ], Thanks for any help on this issue. -- Regards, Farrukh --~--~-~--~~~---~--~~ You received 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: What happened to the incubator YouTube widget?
Ok I found the YouTubeViewer in the incubator, its just not listed in the widget documentation. It is in the incubator jar, and the API docs, there's just aren't any other docs or demos for it. It works well though - very cool. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Using existing java API
Hi! I'm a newbie with Gwt and i've a problem: i have to import in my application some Java API that arent emulated by Gwt. I've read on the docs that i can add this line: super-source path=jre / to my project module so i've done it also importing the java classes i need in com/JOrariGwt/jre ( the module is in com/JOrariGwt/) . Unfortunately when i try to run the project from eclipse i have this error: [TRACE] Finding entry point classes [ERROR] Unable to find type 'com.jorarigwt.client.JOrariGwt' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [ERROR] Failure to load module 'com.jorarigwt.JOrariGwt' the entry point is well setted cause without the classes that need the external Java API the project run without errors. What can i do? thank you so much for your attention Marco --~--~-~--~~~---~--~~ You received 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: Using existing java API
There's nothing you can do. GWT *emulates* Java, but only part of it. If it doesn't emulate some part of it, you can't use it. Not on the client. You can use what you like on the server. Ian http://examples.roughian.com 2009/3/19 akros marcocamp...@hotmail.com Hi! I'm a newbie with Gwt and i've a problem: i have to import in my application some Java API that arent emulated by Gwt. I've read on the docs that i can add this line: super-source path=jre / to my project module so i've done it also importing the java classes i need in com/JOrariGwt/jre ( the module is in com/JOrariGwt/) . Unfortunately when i try to run the project from eclipse i have this error: [TRACE] Finding entry point classes [ERROR] Unable to find type 'com.jorarigwt.client.JOrariGwt' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [ERROR] Failure to load module 'com.jorarigwt.JOrariGwt' the entry point is well setted cause without the classes that need the external Java API the project run without errors. What can i do? thank you so much for your attention Marco --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
question about selected item in FastTree
Hi, By default, when user selects an item in the FastTree, the 'open/ close' symbol is not highlighted (only things on the right hand side of the symbol gets highlighted instead). I wonder if anyone know of a way to highlight the whole 'row' of the selected item including the 'close/open' symbol. Thank you in advance, Lin --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Invoke GWT entry point via custom JavaScript?
Hi All, I am currently trying to integrate GWT into my existing application, but Im having trouble doing that at the moment. Currently I have heaps of custom JavaScript that I will eventually migrate to GWT, but for now, I need to figure out how to add some custom GWT widgets into my page, but not on page load (as heaps of stuff is not yet loaded by the user, etc...) but rather on the response callback from an existing AJAX call, can this be done? Im imagining that I could call some externally exposed method that resided within the *.nocache.js file? But Im not sure how that all works, etc... If anyone has any resources that I could read up on or experience in this area, that would be great! Cheers, Mark --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
RequestBuilder
How do I wait for the response is completed in another class? For example, I have a class called GetData public class GetData{ private String query; private String DEFAULT_URL = http://localhost/book.php;; String result = new String(); public GetData(String query) { this.query = query; this.search(); } private void search() { String url = URL.encode(DEFAULT_URL + ?query= + this.query); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); builder.setCallback(new RequestCallback() { public void onError(Request request, Throwable exception) { } public void onResponseReceived(Request request, Response response) { if (Response.SC_OK == response.getStatusCode()) { result = response.getText(); } } }); try { builder.send(); } catch (RequestException e) { } } public String getResult(){ return this.result; } } So, when I call GetData test = new GetData(query); System.out.println(test.getResult()); will return nothing. But I'm sure that it will return something. The problem is System.out.println(test.getResult()); is executed before the result=response.getText(); How can I fix that? John --~--~-~--~~~---~--~~ You received 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: RequestBuilder
Put the println in your async callback (or in a function called from your async callback). On Wed, Mar 18, 2009 at 11:31 PM, maple...@gmail.com maple...@gmail.comwrote: How do I wait for the response is completed in another class? For example, I have a class called GetData public class GetData{ private String query; private String DEFAULT_URL = http://localhost/book.php;; String result = new String(); public GetData(String query) { this.query = query; this.search(); } private void search() { String url = URL.encode(DEFAULT_URL + ?query= + this.query); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); builder.setCallback(new RequestCallback() { public void onError(Request request, Throwable exception) { } public void onResponseReceived(Request request, Response response) { if (Response.SC_OK == response.getStatusCode()) { result = response.getText(); } } }); try { builder.send(); } catch (RequestException e) { } } public String getResult(){ return this.result; } } So, when I call GetData test = new GetData(query); System.out.println(test.getResult()); will return nothing. But I'm sure that it will return something. The problem is System.out.println(test.getResult()); is executed before the result=response.getText(); How can I fix that? John --~--~-~--~~~---~--~~ You received 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: RequestBuilder
println has to be in another java file, so i cant put it in GetData.java --~--~-~--~~~---~--~~ You received 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: RequestBuilder
You can't send a request to a server in one line and expect it to have completed before you get to the second line. This will NEVER happen because JS is single-threaded and even if the request HAS returned, the callback will be queued to run later. If you order something from an internet web site, it won't be there immediately after you order it. You have to wait for it to be sent. The 'A' in Ajax is for 'asynchronous'. If you want to do something with the data you requested, you have to do it in the callback, or it won't be there. If you have a button which refreshes a table, get the button to make the request, and pass the table to the callback. Get the callback to update the table. Ian http://examples.roughian.com 2009/3/19 maple...@gmail.com maple...@gmail.com println has to be in another java file, so i cant put it in GetData.java --~--~-~--~~~---~--~~ You received 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: RequestBuilder
is there a way to force callback to be excuted before next line? --~--~-~--~~~---~--~~ You received 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: RequestBuilder
No. If you did that, the whole browser would lock up until the call returned. You *could* run a timer and keep checking if the call had returned, but there is no point since when the call has returned, the callback function can do the work. You need to move any logic that needs the requested data to the callback (or have the callback make some method call on the object that needs the data). If you don't want to do that, you shouldn't really be using Ajax. That is what Ajax does. If you want to be a bit more specific as to your needs, or can come up with an example which mirrors what you are doing, you'll probably get more specific help. If you need to stop user input while the call is made, then the usual way is to put up a 'loading...' message, either over the whole screen, or just in the widget which is waiting. Ian http://examples.roughian.com 2009/3/19 maple...@gmail.com maple...@gmail.com is there a way to force callback to be excuted before next line? --~--~-~--~~~---~--~~ You received 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: RequestBuilder
If you go here http://examples.roughian.com/#Panels~Summary and click down the menu on the LH side, you'll see 'Contacting Server' for a moment or two - that kind of thing --~--~-~--~~~---~--~~ You received 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: RequestBuilder
The second time you click a menu item, you won't see the message because the loading only happens once for these pages --~--~-~--~~~---~--~~ You received 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: RequestBuilder
On Wed, Mar 18, 2009 at 9:38 PM, maple...@gmail.com maple...@gmail.com wrote: is there a way to force callback to be excuted before next line? Nope. See here: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd One option is to define a new callback interface and pass an instance to GetData. That way you can define the instance in the other file and still be a good browser citizen. For example: public interface SearchResultListener { void onNewSearchResult(String result); } public class GetData { public void search(String query, final SearchResultListener listener) { String url = URL.encode(DEFAULT_URL + ?query= + query); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); builder.setCallback(new RequestCallback() { public void onError(Request request, Throwable exception) { // handle problems here } public void onResponseReceived(Request request, Response response) { if (Response.SC_OK == response.getStatusCode()) { listener.onNewSearchResult(response.getText()); } else { // handle problems here } } }); try { builder.send(); } catch (RequestException e) { // handle problems here } } } Then, if you have an instance of GetData, you can do this: aGetData.search(query, new SearchResultListener() { public void onNewSearchResult(String result) { System.out.println(result); } }); Ian --~--~-~--~~~---~--~~ You received 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: Clone() in GWT
clone is not supported as it returns an Object. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 code where locales can be changed be dynamically
Hi, I am trying to design a code where locales can be changed both dynamically n statically within a calendar widget like datepicker. I would be grateful if any of u helped me in this. Thank u. Regards Deepthi --~--~-~--~~~---~--~~ You received 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] [google-web-toolkit commit] r5039 - Tweaked script tag
Author: br...@google.com Date: Wed Mar 18 07:59:51 2009 New Revision: 5039 Modified: wiki/IdeasToExplore.wiki Log: Tweaked script tag Modified: wiki/IdeasToExplore.wiki == --- wiki/IdeasToExplore.wiki(original) +++ wiki/IdeasToExplore.wikiWed Mar 18 07:59:51 2009 @@ -5,7 +5,7 @@ = Ideas to Explore = == Chunking script blocks == -Break compiled script across multiple smaller script tags. knorton has results to show that this allows the parser to speed up (on Firefox -- proving its not linear) while allowing the browser to stay more responsive, because it may be that it would parallelize parsing and downloading .cache.html in chunked responses. +Break compiled script across multiple smaller `script` tags. knorton has results to show that this allows the parser to speed up (on Firefox -- proving its not linear) while allowing the browser to stay more responsive, because it may be that it would parallelize parsing and downloading .cache.html in chunked responses. == Non-recursive RPC deserialization == That is, a little language where the payload drives deserialization.Eval each chunk in a multipart response. @@ -14,5 +14,3 @@ * Returning the response using multipart would cause XHR to fire readyState = 3 events; thus pipelining deserialization Things to keep in mind * Not all browsers support this - - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Please expose moveSelectionUp/Down methods in FastTree
Hi Cameron, Thanks for your feedback, would you mind adding an issue to our bug tracking site: http://code.google.com/p/google-web-toolkit-incubator/issues/entry thanks! Noam Wolf I Google - Engineering I nw...@google.com I 212.381.5861 On Tue, Mar 17, 2009 at 10:25 PM, Ray Ryan rj...@google.com wrote: -- Forwarded message -- From: Cameron Braid came...@braid.com.au Date: Tue, Mar 17, 2009 at 7:07 PM Subject: [gwt-contrib] Please expose moveSelectionUp/Down methods in FastTree To: GWTcontrib Google-Web-Toolkit-Contributors@googlegroups.com in gwt incubator's FastTree, moveSelectionUp and moveSelectionDown are both private. Please either make these methods protected, so that I can subclass FastTree and make my own public api to call them, or provide a public API to controll navigation. It coudld be as simple as adding these two methods : public void moveSelectionDown() { moveSelectionDown(curSelection, true); } public void moveSelectionUp() { moveSelectionUp(curSelection); } Alternatively, extract the logic from these methods into public static helpers which I can call to determine the 'previous' and 'next' elements, and then I can call setSelectedItem Cheers Cameron --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Issue 633: FileUpload can't be disabled
LGTM On Wed, Mar 18, 2009 at 10:21 AM, John LaBanca jlaba...@google.com wrote: Attached is the updated patch with the test case included. Thanks, John LaBanca jlaba...@google.com On Wed, Mar 18, 2009 at 1:13 PM, rj...@google.com wrote: Looks good as soon as there is a parallel change in FileUploadTest (which may require creating FileUploadTest). Even if said test does nothing but instantiate the thing and run its enable/disable method, that's more coverage than we have now. http://gwt-code-reviews.appspot.com/12808 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] gwt-dev-oophm project
Hi John, The gwt-dev-oophm project doesn't immediately build in Eclipse 3.4.1. Changing the locationURI tag to a location tag in the .project file seems to fix the problem. This matches the tag used in the other .project files. I'm not familiar enough with Eclipse to know the significance of the change. I attached the change for your convenience. Thanks, Sam --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- oophm-project-r5037.patch Description: Binary data
[gwt-contrib] [google-web-toolkit commit] r5040 - Added setEnabled(boolean)/isEnabled() methods to FileUpload.java
Author: jlaba...@google.com Date: Wed Mar 18 10:47:55 2009 New Revision: 5040 Added: trunk/user/test/com/google/gwt/user/client/ui/FileUploadTest.java Modified: trunk/user/src/com/google/gwt/user/client/ui/FileUpload.java trunk/user/test/com/google/gwt/user/UISuite.java Log: Added setEnabled(boolean)/isEnabled() methods to FileUpload.java Patch by: jlabanca Review by: rjrjr Issue: 633 Modified: trunk/user/src/com/google/gwt/user/client/ui/FileUpload.java == --- trunk/user/src/com/google/gwt/user/client/ui/FileUpload.java (original) +++ trunk/user/src/com/google/gwt/user/client/ui/FileUpload.javaWed Mar 18 10:47:55 2009 @@ -90,7 +90,8 @@ // Trigger a change event now. if (eventPending) { allowEvent = true; - fileUpload.getElement().dispatchEvent(Document.get().createChangeEvent()); +fileUpload.getElement().dispatchEvent( +Document.get().createChangeEvent()); allowEvent = false; eventPending = false; } @@ -165,11 +166,30 @@ return getInputElement().getName(); } + /** + * Gets whether this widget is enabled. + * + * @return codetrue/code if the widget is enabled + */ + public boolean isEnabled() { +return !getElement().getPropertyBoolean(disabled); + } + @Override public void onBrowserEvent(Event event) { if (impl.onBrowserEvent(event)) { super.onBrowserEvent(event); } + } + + /** + * Sets whether this widget is enabled. + * + * @param enabled codetrue/code to enable the widget, codefalse/code + * to disable it + */ + public void setEnabled(boolean enabled) { +getElement().setPropertyBoolean(disabled, !enabled); } public void setName(String name) { Modified: trunk/user/test/com/google/gwt/user/UISuite.java == --- trunk/user/test/com/google/gwt/user/UISuite.java(original) +++ trunk/user/test/com/google/gwt/user/UISuite.javaWed Mar 18 10:47:55 2009 @@ -45,6 +45,7 @@ import com.google.gwt.user.client.ui.DockPanelTest; import com.google.gwt.user.client.ui.ElementWrappingTest; import com.google.gwt.user.client.ui.FastStringMapTest; +import com.google.gwt.user.client.ui.FileUploadTest; import com.google.gwt.user.client.ui.FlexTableTest; import com.google.gwt.user.client.ui.FlowPanelTest; import com.google.gwt.user.client.ui.FocusPanelTest; @@ -125,6 +126,7 @@ suite.addTestSuite(ElementWrappingTest.class); suite.addTestSuite(EventTest.class); suite.addTestSuite(FastStringMapTest.class); +suite.addTestSuite(FileUploadTest.class); suite.addTestSuite(FlexTableTest.class); suite.addTestSuite(FlowPanelTest.class); suite.addTestSuite(FocusPanelTest.class); Added: trunk/user/test/com/google/gwt/user/client/ui/FileUploadTest.java == --- (empty file) +++ trunk/user/test/com/google/gwt/user/client/ui/FileUploadTest.java Wed Mar 18 10:47:55 2009 @@ -0,0 +1,38 @@ +/* + * Copyright 2009 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.user.client.ui; + +import com.google.gwt.junit.client.GWTTestCase; + +/** + * Tests for {...@link FileUpload}. + * + */ +public class FileUploadTest extends GWTTestCase { + + public String getModuleName() { +return com.google.gwt.user.User; + } + + public void testDisable() { +FileUpload fileUpload = new FileUpload(); +assertTrue(fileUpload.isEnabled()); +fileUpload.setEnabled(false); +assertFalse(fileUpload.isEnabled()); +fileUpload.setEnabled(true); +assertTrue(fileUpload.isEnabled()); + } +} --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5042 - Fixes Jetty TreeLogging so that clearing the log doesn't prevent all subsequent requests ...
Author: sco...@google.com Date: Wed Mar 18 12:18:30 2009 New Revision: 5042 Modified: releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.java releases/1.6/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java Log: Fixes Jetty TreeLogging so that clearing the log doesn't prevent all subsequent requests from getting logged. This is in line with the 1.5 behavior. Suggested by: bruce Review by: jat Modified: releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.java == --- releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.javaWed Mar 18 12:18:30 2009 @@ -362,9 +362,7 @@ @Override protected int doStartUpServer() { try { - TreeLogger serverLogger = getTopLogger().branch(TreeLogger.INFO, - Starting HTTP on port + getPort(), null); - server = options.getServletContainerLauncher().start(serverLogger, + server = options.getServletContainerLauncher().start(getTopLogger(), getPort(), options.getWarDir()); assert (server != null); return server.getPort(); Modified: releases/1.6/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java == --- releases/1.6/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java Wed Mar 18 12:18:30 2009 @@ -195,34 +195,38 @@ String msg = Reloading web app to reflect changes in + appRootDir.getAbsolutePath(); TreeLogger branch = logger.branch(TreeLogger.INFO, msg); + // Temporarily log Jetty on the branch. + Log.setLog(new JettyTreeLogger(branch)); try { wac.stop(); - } catch (Exception e) { -branch.log(TreeLogger.ERROR, Unable to stop embedded Jetty server, e); -throw new UnableToCompleteException(); - } - - try { wac.start(); +branch.log(TreeLogger.INFO, Reload completed successfully); } catch (Exception e) { -branch.log(TreeLogger.ERROR, Unable to start embedded Jetty server, e); +branch.log(TreeLogger.ERROR, Unable to restart embedded Jetty server, +e); throw new UnableToCompleteException(); + } finally { +// Reset the top-level logger. +Log.setLog(new JettyTreeLogger(logger)); } - - branch.log(TreeLogger.INFO, Reload completed successfully); } public void stop() throws UnableToCompleteException { TreeLogger branch = logger.branch(TreeLogger.INFO, Stopping Jetty server); + // Temporarily log Jetty on the branch. + Log.setLog(new JettyTreeLogger(branch)); try { server.stop(); server.setStopAtShutdown(false); +branch.log(TreeLogger.INFO, Stopped successfully); } catch (Exception e) { branch.log(TreeLogger.ERROR, Unable to stop embedded Jetty server, e); throw new UnableToCompleteException(); + } finally { +// Reset the top-level logger. +Log.setLog(new JettyTreeLogger(logger)); } - branch.log(TreeLogger.INFO, Stopped successfully); } } @@ -418,10 +422,13 @@ public ServletContainer start(TreeLogger logger, int port, File appRootDir) throws Exception { -checkStartParams(logger, port, appRootDir); +TreeLogger branch = logger.branch(TreeLogger.INFO, +Starting Jetty on port + port, null); -// Setup our own logger. -Log.setLog(new JettyTreeLogger(logger)); +checkStartParams(branch, port, appRootDir); + +// Setup our branch logger during startup. +Log.setLog(new JettyTreeLogger(branch)); // Turn off XML validation. System.setProperty(org.mortbay.xml.XmlParser.Validating, false); @@ -448,6 +455,9 @@ server.setHandler(logHandler); server.start(); server.setStopAtShutdown(true); + +// Now that we're started, log to the top level logger. +Log.setLog(new JettyTreeLogger(logger)); return new JettyServletContainer(logger, server, wac, connector.getLocalPort(), appRootDir); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5041 - Fix 80-column line wrap.
Author: sco...@google.com Date: Wed Mar 18 11:45:11 2009 New Revision: 5041 Modified: releases/1.6/user/src/com/google/gwt/user/tools/README.txtsrc Log: Fix 80-column line wrap. Review by: ajr (desk) Modified: releases/1.6/user/src/com/google/gwt/user/tools/README.txtsrc == --- releases/1.6/user/src/com/google/gwt/user/tools/README.txtsrc (original) +++ releases/1.6/user/src/com/google/gwt/user/tools/README.txtsrc Wed Mar 18 11:45:11 2009 @@ -5,8 +5,8 @@ -- Option A: Import your project into Eclipse (recommended) -- If you use Eclipse, you can simply import the generated project into Eclipse. -We've tested against Eclipse 3.3 and 3.4. Later versions will likely also work, -earlier versions may not. +We've tested against Eclipse 3.3 and 3.4. Later versions will likely also +work, earlier versions may not. In Eclipse, go to the File menu and choose: --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Announcing GWT 1.6 Release Candidate
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=google-web-toolkit-doc-1-6t=ReleaseNotes_1_6 as well as previous 1.6-related announcements: Announcing GWT 1.6 Milestone 1 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3e7e6cc3b35ad98a and Announcing GWT 1.6 Milestone 2 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/33df9cc75aead5a1 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=milestone:1_6_RC%20status:FixedNotReleased,Fixedsort=priority 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 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] New members messages currently moderated to prevent spam
Dear Contributors, Unfortunately, the GWT Contributors Group has been getting a lot of spam attacks as of late and most spam posts have been making it through. To fight against these spam attacks, we will be temporarily moderating messages posted by new members to the group. The GWT contributor forum will still be as accessible as ever, we will post any message relevant to GWT without hesitation. We're only putting this moderation policy in place to deal with the spam. Our apologies for the inconvenience this poses to new contributors. Thanks, -Sumit Chandel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5043 - Fix sentinal file names for change branches.
Author: b...@google.com Date: Wed Mar 18 14:36:41 2009 New Revision: 5043 Modified: trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java Log: Fix sentinal file names for change branches. Patch by: bobv Review by: scottb (per IM conversation, TBR) Modified: trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java == --- trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java (original) +++ trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java Wed Mar 18 14:36:41 2009 @@ -282,7 +282,7 @@ getProject().setNewProperty(outprop, info.branch + @ + info.revision); if (fileprop != null) { getProject().setNewProperty(fileprop, - info.branch + - + info.revision.replaceAll(:, -)); + info.branch.replace('/', '-') + - + info.revision.replace(':', '-')); } } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] HashSet throwing incorrect exception possible compiler bug
First major concern is that I got a ConcurrentModificationException when iterating over a HashSet - this exception is completely meaningless in the context of the browser (no threading). There's also not really any meaningful message in the stack trace: 00:20:24.446 [ERROR] Uncaught exception escaped java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810) at java.util.HashMap$KeyIterator.next(HashMap.java:845) The relevant code that causes this is: private HashMapModelAction, HashSetModelListener models; // . HashSetModelListener listeners = models.get(action); if (listeners != null) { for (ModelListener listener : listeners) listener.modelUpdated(action, info); } Replacing it with a regular iterator: IteratorModelListener iterator = listeners.iterator(); while (iterator.hasNext()) iterator.next().modelUpdated(action, info); somehow fixes the problem. Is the compiler screwing up in converting the Java for-each notation into the iterator equivalent, or am I missing something? Some background: this succeeds the first time it is called from within an event handler context (to notify the model to perform a login attempt). However, it fails the second time it is called when it is called from an AsyncCallback context (returning the result that it was a successful login). However, at no point is the HashSet used modified (after startup where it contains currently 1 element). Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: HashSet throwing incorrect exception possible compiler bug
On Wed, Mar 18, 2009 at 2:57 PM, Vitali Lovich vlov...@gmail.com wrote: First major concern is that I got a ConcurrentModificationException when iterating over a HashSet - this exception is completely meaningless in the context of the browser (no threading). There's also not really any meaningful message in the stack trace: It applies equally well to single-thread scenarios, see the JavaDoc: http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html somehow fixes the problem. Is the compiler screwing up in converting the Java for-each notation into the iterator equivalent, or am I missing something? Some background: this succeeds the first time it is called from within an event handler context (to notify the model to perform a login attempt). However, it fails the second time it is called when it is called from an AsyncCallback context (returning the result that it was a successful login). However, at no point is the HashSet used modified (after startup where it contains currently 1 element). It's possible there's a bug, but perhaps you should try wrapping things in Collections.unmodifableSet()/Map() to make sure it's not being modified in some way. -Ray --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: HashSet throwing incorrect exception possible compiler bug
On Wed, Mar 18, 2009 at 6:10 PM, Ray Cromwell cromwell...@gmail.com wrote: On Wed, Mar 18, 2009 at 2:57 PM, Vitali Lovich vlov...@gmail.com wrote: First major concern is that I got a ConcurrentModificationException when iterating over a HashSet - this exception is completely meaningless in the context of the browser (no threading). There's also not really any meaningful message in the stack trace: It applies equally well to single-thread scenarios, see the JavaDoc: http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html Right - I was just implying that seeing as how my code in no way actually modifies the set while iterating over it, the concurrent modification exception is meaningless. http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html somehow fixes the problem. Is the compiler screwing up in converting the Java for-each notation into the iterator equivalent, or am I missing something? Some background: this succeeds the first time it is called from within an event handler context (to notify the model to perform a login attempt). However, it fails the second time it is called when it is called from an AsyncCallback context (returning the result that it was a successful login). However, at no point is the HashSet used modified (after startup where it contains currently 1 element). It's possible there's a bug, but perhaps you should try wrapping things in Collections.unmodifableSet()/Map() to make sure it's not being modified in some way. Nope - still throws an exception. Nothing in the code example above modifies the hashset (I print a message when I register a listener, and I'm not getting that) - I'm going to verify this though (step through the first successful call) -Ray --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: HashSet throwing incorrect exception possible compiler bug
On Wed, Mar 18, 2009 at 3:31 PM, Vitali Lovich vlov...@gmail.com wrote: Nope - still throws an exception. Nothing in the code example above modifies the hashset (I print a message when I register a listener, and I'm not getting that) - I'm going to verify this though (step through the first successful call) Is this happening in web mode, hosted mode, or both? Does it happen in hosted mode? -Ray -Ray --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RR : Add RpcRequestBuilder to RemoteServiceProxy
The attached patch extracts a configuration API for use by RemoteServiceProxy. This semantic API allows developers to override RPC proxy behavior based on intent, rather than interpreting the status of a RequestBuilder after the fact. Diffstat: client/rpc/RpcRequestBuilder.java | 212 212 + 0 - 0 ! client/rpc/ServiceDefTarget.java|7 7 + 0 - 0 ! client/rpc/impl/RemoteServiceProxy.java | 83 49 +34 -0 ! server/rpc/RemoteServiceServlet.java|5 4 + 1 - 0 ! 4 files changed, 272 insertions(+), 35 deletions(-) -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- rpc_request_builder_r5044.patch Description: Binary data
[gwt-contrib] Re: RR : Add RpcRequestBuilder to RemoteServiceProxy
Awesome, this looks like it exactly fits the scenario I described in: http://timepedia.blogspot.com/2009/03/relaxing-constraints-on-gwtcreate.html with an OAuth-signing decorator. -Ray On Wed, Mar 18, 2009 at 3:44 PM, BobV b...@google.com wrote: The attached patch extracts a configuration API for use by RemoteServiceProxy. This semantic API allows developers to override RPC proxy behavior based on intent, rather than interpreting the status of a RequestBuilder after the fact. Diffstat: client/rpc/RpcRequestBuilder.java | 212 212 + 0 - 0 ! client/rpc/ServiceDefTarget.java|7 7 + 0 - 0 ! client/rpc/impl/RemoteServiceProxy.java | 83 49 +34 -0 ! server/rpc/RemoteServiceServlet.java|5 4 + 1 - 0 ! 4 files changed, 272 insertions(+), 35 deletions(-) -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: HashSet throwing incorrect exception possible compiler bug
Sorry - it was my fault. I tracked it down. Within the listener, I was unregistering it - stupid me. Thanks for your help Vitali On Wed, Mar 18, 2009 at 6:43 PM, Ray Cromwell cromwell...@gmail.com wrote: On Wed, Mar 18, 2009 at 3:31 PM, Vitali Lovich vlov...@gmail.com wrote: Nope - still throws an exception. Nothing in the code example above modifies the hashset (I print a message when I register a listener, and I'm not getting that) - I'm going to verify this though (step through the first successful call) Is this happening in web mode, hosted mode, or both? Does it happen in hosted mode? -Ray -Ray --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: HashSet throwing incorrect exception possible compiler bug
FWIW, the HandlerManager class introduced in 1.6 allows concurrent mods. Because really you're not so silly to want to do that. rjrjr On Wed, Mar 18, 2009 at 3:53 PM, Vitali Lovich vlov...@gmail.com wrote: Sorry - it was my fault. I tracked it down. Within the listener, I was unregistering it - stupid me. Thanks for your help Vitali On Wed, Mar 18, 2009 at 6:43 PM, Ray Cromwell cromwell...@gmail.com wrote: On Wed, Mar 18, 2009 at 3:31 PM, Vitali Lovich vlov...@gmail.com wrote: Nope - still throws an exception. Nothing in the code example above modifies the hashset (I print a message when I register a listener, and I'm not getting that) - I'm going to verify this though (step through the first successful call) Is this happening in web mode, hosted mode, or both? Does it happen in hosted mode? -Ray -Ray --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RpcRequestBuilder
My only criticism of this design is that it only captures a part of the use cases where the transport mechanism needs override. That is, it helps in cases where one is making HTTP requests, and needs to modify HTTP request parameters or the body, but it leaves out the cases where one can't make direct requests (using XHR). The RequestBuilder stuff is very tightly bound to XHR. The most famous and important example of this is writing gadgets using GWT and RPC. You can't use XHR (not all proxies will pass it because of the mime-type) and thus you must use the Javascript makeRequest() function, or inject script tags and tunnel the payload over JSONP. I have implemented both of these techniques, and it seems to me that the only way to do it is to override the RPC generator. I have a module which overrides the ServiceInterfaceGeneratorProxy to replace the ProxyCreator with one whose RemoteServiceProxy method has an override on doInvoke(). The other reason to use makeRequest() is because it can leverage the gadget container to sign the requests, so that the RemoteService can verify that RPC request authorization. -Ray On Wed, Mar 18, 2009 at 4:16 PM, rj...@google.com wrote: Silly Rietveld didn't send my inline comments. http://gwt-code-reviews.appspot.com/13804/diff/1/3 File user/src/com/google/gwt/user/client/rpc/RpcRequestBuilder.java (right): http://gwt-code-reviews.appspot.com/13804/diff/1/3#newcode29 Line 29: public class RpcRequestBuilder { Looks good, but you should add a unit test that confirms each override is actually called. http://gwt-code-reviews.appspot.com/13804/diff/1/5 File user/src/com/google/gwt/user/client/rpc/ServiceDefTarget.java (right): http://gwt-code-reviews.appspot.com/13804/diff/1/5#newcode19 Line 19: * An interface implemented by client-side RPC proxy objects. Cast the object Can you fix this sentence while you're here? Cast the object...should be cast... http://gwt-code-reviews.appspot.com/13804 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: New StyleSheetLoader class
http://gwt-code-reviews.appspot.com/13802/diff/1/13 File samples/styleloader/src/com/google/gwt/sample/styleloader/client/StyleLoader.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/13#newcode34 Line 34: public class StyleLoader implements EntryPoint { Presuming we go straight to trunk, add this to ShowCase instead? http://gwt-code-reviews.appspot.com/13802/diff/1/9 File src/com/google/gwt/gen2/styleloader/client/StyleSheetLoadEvent.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/9#newcode31 Line 31: * Fires a style sheet load event on all registered handlers in the handler s/handler manager/source/ http://gwt-code-reviews.appspot.com/13802/diff/1/3 File src/com/google/gwt/gen2/styleloader/client/StyleSheetLoader.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode50 Line 50: * /pre You haven't shown how to use the class, though. No mention here of setting handlers, calling loadStyleSheet(), etc. Will need pointer to an example if this is to go into trunk. Should we mention that no provision is made to unload style sheets? http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode57 Line 57: private static final int DEFAULT_TIMEOUT = 18; these are easier to read like so: DEFAULT_TIMEOUT_MILLIS = 3 * 60 * 1000; // 3 minutes http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode62 Line 62: * of 0px, but when the style sheet is loaded, the width changes to 5px. The 5 px isn't a requirement, right? Just 0? http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode64 Line 64: * constructor that defines a height and width greater than 0px. should mention that this type must be unique per style sheet--people might be using this to shift between different styles at runtime, right? This is a nice trick. But it seems like you're assuming that stylesheets are applied atomically after they load. Are you sure about that? http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode67 Line 67: private Label refWidget; Why a widget? Why not just an element? Doesn't seem like you're doing anything widget-specific here. http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode110 Line 110: private static native HeadElement getHeadElement() If we put this in trunk, how about adding a getHead() method to Document instead of doing this? http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode128 Line 128: this.url = url; why no null check on url? http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode165 Line 165: * after it loads. What happens if this is called twice? Should you put in an assert to prevent that? http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode180 Line 180: * Set the timeout to wait before throwing an error. Kind of odd that this is mutable. I'd be more inclined to see it as a constructor arg--that is, keep the two args constructor with default timeout value, and provide a three args one to allow it to be set. http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode192 Line 192: public void waitForStyleSheet() { Why is this public? http://gwt-code-reviews.appspot.com/13802/diff/1/8 File src/com/google/gwt/gen2/styleloader/client/TimeoutEvent.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/8#newcode21 Line 21: * Represents a timeout event. Are there other places in the kit we should be using this event? http://gwt-code-reviews.appspot.com/13802/diff/1/8#newcode31 Line 31: * Fires a timeout event on all registered handlers in the handler manager.If in the source, there is no HandlerManager here. Damn, this phrase permeates our javadoc and it's stale. http://gwt-code-reviews.appspot.com/13802/diff/1/10 File test/com/google/gwt/gen2/styleloader/client/StyleSheetLoaderTest.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/10#newcode31 Line 31: fail(Expected AssertionError); This test will fail in web mode. http://gwt-code-reviews.appspot.com/13802/diff/1/10#newcode33 Line 33: assertTrue(true); No point to this assertion. The idiom as I've seen it is /* pass */ http://gwt-code-reviews.appspot.com/13802/diff/1/10#newcode40 Line 40: } catch (AssertionError e) { ditto and ditto http://gwt-code-reviews.appspot.com/13802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: [google-web-toolkit commit] r5043 - Fix sentinal file names for change branches.
LGTM. 2009/3/18 codesite-nore...@google.com Author: b...@google.com Date: Wed Mar 18 14:36:41 2009 New Revision: 5043 Modified: trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java Log: Fix sentinal file names for change branches. Patch by: bobv Review by: scottb (per IM conversation, TBR) Modified: trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java == --- trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java (original) +++ trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java Wed Mar 18 14:36:41 2009 @@ -282,7 +282,7 @@ getProject().setNewProperty(outprop, info.branch + @ + info.revision); if (fileprop != null) { getProject().setNewProperty(fileprop, - info.branch + - + info.revision.replaceAll(:, -)); + info.branch.replace('/', '-') + - + info.revision.replace(':', '-')); } } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RpcRequestBuilder
On Wed, Mar 18, 2009 at 7:44 PM, Ray Cromwell cromwell...@gmail.com wrote: My only criticism of this design is that it only captures a part of the use cases where the transport mechanism needs override. That is, it helps in cases where one is making HTTP requests, and needs to modify HTTP request parameters or the body, but it leaves out the cases where one can't make direct requests (using XHR). The RequestBuilder stuff is very tightly bound to XHR. It would be possible (if baroque) with this API to substitute in a ScriptTagRequestBuilder implementation in the doCreate() method. I'll make the unsubstantiated claim that non-XHR transport is a small enough portion of the user-base to avoid complicating the client-side API as long as you can make that non-XHR transport look like XHR by creating a RequestBuilder subclass. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5045 - Extracts a configuration API for use by RemoteServiceProxy.
Author: b...@google.com Date: Wed Mar 18 17:59:19 2009 New Revision: 5045 Added: trunk/user/src/com/google/gwt/user/client/rpc/RpcRequestBuilder.java (contents, props changed) Modified: trunk/user/src/com/google/gwt/user/client/rpc/ServiceDefTarget.java trunk/user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java trunk/user/src/com/google/gwt/user/server/rpc/RemoteServiceServlet.java trunk/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java Log: Extracts a configuration API for use by RemoteServiceProxy. Patch by: bobv Review by: rjrjr Added: trunk/user/src/com/google/gwt/user/client/rpc/RpcRequestBuilder.java == --- (empty file) +++ trunk/user/src/com/google/gwt/user/client/rpc/RpcRequestBuilder.java Wed Mar 18 17:59:19 2009 @@ -0,0 +1,212 @@ +/* + * Copyright 2009 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.user.client.rpc; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.http.client.RequestBuilder; +import com.google.gwt.http.client.RequestCallback; + +/** + * This class encapsulates the logic necessary to configure a RequestBuilder for + * use with an RPC proxy object. Users who wish to alter the specifics of the + * HTTP requests issued by RPC proxy objects may override the protected + * codedoXyz/code methods and pass an instance of the subclass to + * {...@link ServiceDefTarget#setRpcRequestBuilder}. + */ +public class RpcRequestBuilder { + /** + * Used by {...@link #doSetContentType}. + */ + public static final String CONTENT_TYPE_HEADER = Content-Type; + + /** + * Used by {...@link #doFinish}. + */ + /* + * NB: Keep in sync with RemoteServiceServlet. + */ + public static final String STRONG_NAME_HEADER = X-GWT-Permutation; + + /** + * Not exposed directly to the subclass. + */ + private RequestBuilder builder; + + /** + * Initialize the RpcRequestBuilder. This method must be called before any of + * the other methods in this class may be called. Calling codecreate/code + * before calling {...@link #finish()} will reset the state of the + * RpcRequestBuilder. + * p + * This method delegates to {...@link #doCreate} to instantiate the + * RequestBuilder. + * + * @param serviceEntryPoint The URL entry point + * @return codethis/code + * @see ServiceDefTarget#setServiceEntryPoint(String) + */ + public final RpcRequestBuilder create(String serviceEntryPoint) { +builder = doCreate(serviceEntryPoint); +assert builder != null : doCreate failed to return a RequestBuilder; +return this; + } + + /** + * This method must be called to return the RequestBuilder that the RPC + * request will be made with. + * p + * This method will call {...@link #doFinish} before returning the current + * RequestBuilder. + */ + public final RequestBuilder finish() { +try { + assert builder != null : Call create() first; + doFinish(builder); + return builder; +} finally { + builder = null; +} + } + + /** + * Sets the RequestCallback to be used by the RequestBuilder. Delegates to + * {...@link #doSetCallback}. + * + * @param callback the RequestCallback to be used by the RequestBuilder + * @return codethis/code + */ + public final RpcRequestBuilder setCallback(RequestCallback callback) { +assert builder != null : Call create() first; +doSetCallback(builder, callback); +return this; + } + + /** + * Sets the MIME content type to be used by the RequestBuilder. Delegates to + * {...@link #doSetContentType}. + * + * @param contentType the MIME content type to be used in the request + * @return codethis/code + */ + public final RpcRequestBuilder setContentType(String contentType) { +assert builder != null : Call create() first; +doSetContentType(builder, contentType); +return this; + } + + /** + * Sets the request data to be sent in the request. Delegates to + * {...@link #doSetRequestData}. + * + * @param data the data to send + * @return codethis/code + */ + public final RpcRequestBuilder setRequestData(String data) { +assert builder != null : Call create() first; +doSetRequestData(builder, data); +return this; + } + + /** + * Sets the request id of the request. Delegates to {...@link #doSetRequestId}. + *
[gwt-contrib] Re: HashSet throwing incorrect exception possible compiler bug
It's actually not event listeners - it's just a simple messaging delivery system I wrote. I was more referring to me being stupid not stepping remembering that I had modified the map. I just saw ConcurrentModificationException, no obvious modification of the map within the iteration, and just got confused about what's going on. On Wed, Mar 18, 2009 at 7:18 PM, Ray Ryan rj...@google.com wrote: FWIW, the HandlerManager class introduced in 1.6 allows concurrent mods. Because really you're not so silly to want to do that. rjrjr On Wed, Mar 18, 2009 at 3:53 PM, Vitali Lovich vlov...@gmail.com wrote: Sorry - it was my fault. I tracked it down. Within the listener, I was unregistering it - stupid me. Thanks for your help Vitali On Wed, Mar 18, 2009 at 6:43 PM, Ray Cromwell cromwell...@gmail.com wrote: On Wed, Mar 18, 2009 at 3:31 PM, Vitali Lovich vlov...@gmail.com wrote: Nope - still throws an exception. Nothing in the code example above modifies the hashset (I print a message when I register a listener, and I'm not getting that) - I'm going to verify this though (step through the first successful call) Is this happening in web mode, hosted mode, or both? Does it happen in hosted mode? -Ray -Ray --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWT-Incubator: ResizableWidgetCollection antipattern
committed as r1576 Widgets that implement ResizableWidget now add themselves to the ResizableWidgetCollection in onLoad() and remove themselves in onUnload(). We don't require this (there is no assertion checking that the widget is attached), but our widgets use the correct pattern now. Thanks, John LaBanca jlaba...@google.com On Thu, Mar 5, 2009 at 11:34 AM, John LaBanca jlaba...@google.com wrote: Thanks for the pointer Dave, I'll make sure to modify the widgets to only add themselves onLoad/onUnload. FYI - ResizableWidgetCollection#setResizeCheckingEnabled(false) will disable the resize check timer and only look for WindowResizeEvents. Thanks, John LaBanca jlaba...@google.com On Thu, Mar 5, 2009 at 9:36 AM, David david.no...@gmail.com wrote: Hi, Well, I just subclassed the ScrollTable and ProgressBar for now - I remove the widgets from the collection and add them in the onLoad and remove in onUnload, that works nicely. We have to release multiple applications the coming days so not much time to create a patch or even switch to a new release of GWT-incubator. I don't like the idea of using a Timer or even a WindowResizeListener in widgets... but I don't see any other way to getting some feedback when something changes in the DOM. It's a shame actually that DOM does not have such a native event - maybe we should propose something to w3c and hope that it gets included in our lifetime ? In case of the ProgressBar widget, I actually had an implementation that did not need to recalc the div blocks. It even supported a xor effect on the text showing the percentage (the incubator switches style when reaching 50%). But I threw it away when I got my hands on the incubator (less maintenance for me). I also had something implemented where all widgets in my DOM hierarchy would call a layout method when one of the other widgets resized somehow. But that meant that I had to implement this support in every widget I had in the DOM tree. And it was triggered every time a widget was added or removed. In a big UI that consumed a lot of CPU cycles and in many cases no resizing was needed. I switched to using the ResizableWidget approach and the performance is a lot better (and the code cleaner). I am not in favour of removing the timer. Components that need to know should find out automatically. In small projects you can easily manage this, but in larger organisations many bugs will arise because developers do not care about these fine details when developing. Also, we want to reuse busines UI objects in other UIs and then we need to expose these resizing problems to higher level UI components. Some of the components of GWT have a tendency to let the app developer handle the complexity and in many cases that can create very dangerous dependencies in code (spaghetti code we call it). The TabPanel is such a component: it attaches all children widgets right away, even when not in the visible tab. If you have a widget that depends on size calculations of the parent component then it breaks because the size will be 0. There is a solution ofcourse, to lazyly add the panel containing the widget - but that is more work for a developer that just wants to reuse an existing UI component. David On Thu, Mar 5, 2009 at 2:46 PM, Joel Webber ѯ(ټ)ѥ j...@google.comwrote: [cc'ing John, who IIRC wrote the resizable widgets] That does indeed sound like a bad thing. At the very least, it would be important to get that list cleared out so that it's not growing without bound. And yes, onLoad/onUnload would be the right time to do it. I'm also curious about your usage of these widgets. Are they used in such a way that it would be relatively easy to hook the window's resize event and iterate over them to give them a chance to resize? And do you think that would be sufficient to capture the times when they actually *need* to resize? I ask because I've always been slightly uncomfortable with the idea of resizing based upon a timer, but there's no better way to do so in the general case -- because any change to the DOM, text, CSS, or what have you can, in theory, cause a widget to resize. But I'm wondering if providing somewhat more limited semantics (along the lines of this widget needs to be told when its size changes, but it's up to the application to do so) would allow us to get rid of the timers altogether. Cheers, joel. On Thu, Mar 5, 2009 at 3:33 AM, stuckagain david.no...@gmail.comwrote: GWT Incubator People, Since I don't know where to start a discussion on design decisions for the incubator, I'll do it here. There is a fundamental problem in incubator that leads to memory leaks and reduced performance. For example the ScrollTable (now in AbstractScrollTable) and ProgressBar add themselfs to the ResizableWidgetCollection in the constructor. The problem is that they are NEVER removed. Would'nt it be beter that these kind of components
[gwt-contrib] Re: RpcRequestBuilder
On Wed, Mar 18, 2009 at 6:11 PM, BobV b...@google.com wrote: On Wed, Mar 18, 2009 at 7:44 PM, Ray Cromwell cromwell...@gmail.com wrote: My only criticism of this design is that it only captures a part of the use cases where the transport mechanism needs override. That is, it helps in cases where one is making HTTP requests, and needs to modify HTTP request parameters or the body, but it leaves out the cases where one can't make direct requests (using XHR). The RequestBuilder stuff is very tightly bound to XHR. It would be possible (if baroque) with this API to substitute in a ScriptTagRequestBuilder implementation in the doCreate() method. I originally tried this approach, but ran into the problem that the Request class is not abstract enough or decoupled from XHR to pull it off, as well as being difficult to subclass due to many private/package-protected methods. I'll make the unsubstantiated claim that non-XHR transport is a small enough portion of the user-base to avoid complicating the client-side API as long as you can make that non-XHR transport look like XHR by creating a RequestBuilder subclass. I don't have any data to refute that, but I'd offer that two of Google's major properties APIs: OpenSocial and FriendConnect flat out require non-XHR, and this touches services with export these APIs (now Orkut, Gmail, iGoogle, GFC, among others). And that anyone who attempts to create a cross-domain GWT application that uses RPC will run into it, to the extent that many GWT users just dump RPC and resort to JSON + script tag injection. It's one of the often repeated blog tutorials. Maybe there's a way to work around the Request class issue. -Ray -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: New StyleSheetLoader class
http://gwt-code-reviews.appspot.com/13802/diff/1/3 File src/com/google/gwt/gen2/styleloader/client/StyleSheetLoader.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode37 Line 37: * {...@link StyleSheetLoader} creates a reference element on the page that will be Forgive the intrusion. I'm not sure what constraints you're working with, but why are you not better off loading the css through xhr and creating a style element in the head? The downsides are you can't do cross-domain loading of styles and that relative urls are resolved from a different base url. But given that you already have to encode something in the stylesheet (the reference style) the tradeoff seems similar. Also, watching for a particular element to be non-zero seems pretty fragile. A style like div { height: 400px; } would give you a false positive on loading. http://gwt-code-reviews.appspot.com/13802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: New StyleSheetLoader class
http://gwt-code-reviews.appspot.com/13802/diff/1/3 File src/com/google/gwt/gen2/styleloader/client/StyleSheetLoader.java (right): http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode110 Line 110: private static native HeadElement getHeadElement() On 2009/03/19 00:08:01, rjrjr wrote: If we put this in trunk, how about adding a getHead() method to Document instead of doing this? This method will fail in Safari if there is no head element (Firefox always seems to insert one) http://gwt-code-reviews.appspot.com/13802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5046 - Checkstyle cleanups.
Author: j...@google.com Date: Wed Mar 18 21:26:24 2009 New Revision: 5046 Modified: changes/jat/ihm/dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/GWTShell.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/jjs/JJSOptionsImpl.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/shell/rewrite/WriteJsoImpl.java changes/jat/ihm/dev/oophm/overlay/com/google/gwt/dev/GWTShell.java changes/jat/ihm/dev/oophm/overlay/com/google/gwt/dev/shell/PlatformSpecific.java changes/jat/ihm/user/test/com/google/gwt/dev/util/UtilSuite.java Log: Checkstyle cleanups. Modified: changes/jat/ihm/dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java == --- changes/jat/ihm/dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java (original) +++ changes/jat/ihm/dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java Wed Mar 18 21:26:24 2009 @@ -230,10 +230,9 @@ * * @return codenull/code if the type is not found */ - public JClassType findType(String name) { + public JClassType findType(SourceName name) { // TODO(jat): type-safe changes -Name.sourceName(name); // check assertions -return allTypes.get(name); +return allTypes.get(name.toString()); } /** @@ -245,9 +244,10 @@ * * @return codenull/code if the type is not found */ - public JClassType findType(SourceName name) { + public JClassType findType(String name) { // TODO(jat): type-safe changes -return allTypes.get(name.toString()); +Name.sourceName(name); // check assertions +return allTypes.get(name); } /** @@ -457,21 +457,6 @@ } /** - * Finds a type given its fully qualified name. For nested classes, use its - * source name rather than its binary name (that is, use a . rather than a - * $). - * - * @return the specified type - */ - public JClassType getType(SourceName name) throws NotFoundException { -JClassType type = findType(name); -if (type == null) { - throw new NotFoundException(name.toString()); -} -return type; - } - - /** * Returns the single implementation type for an interface returned via * {...@link #getSingleJsoImplInterfaces()} or codenull/code if no JSO * implementation is defined. @@ -487,6 +472,21 @@ */ public SetJClassType getSingleJsoImplInterfaces() { return Collections.unmodifiableSet(jsoSingleImpls.keySet()); + } + + /** + * Finds a type given its fully qualified name. For nested classes, use its + * source name rather than its binary name (that is, use a . rather than a + * $). + * + * @return the specified type + */ + public JClassType getType(SourceName name) throws NotFoundException { +JClassType type = findType(name); +if (type == null) { + throw new NotFoundException(name.toString()); +} +return type; } /** Modified: changes/jat/ihm/dev/core/src/com/google/gwt/dev/GWTShell.java == --- changes/jat/ihm/dev/core/src/com/google/gwt/dev/GWTShell.java (original) +++ changes/jat/ihm/dev/core/src/com/google/gwt/dev/GWTShell.java Wed Mar 18 21:26:24 2009 @@ -164,6 +164,10 @@ return new GWTCompilerOptionsImpl(options); } + public WebServerRestart hasWebServer() { +return WebServerRestart.NONE; + } + /** * @throws UnableToCompleteException */ @@ -249,10 +253,6 @@ @Override protected String getTitleText() { return Google Web Toolkit Development Shell; - } - - public WebServerRestart hasWebServer() { -return WebServerRestart.NONE; } @Override Modified: changes/jat/ihm/dev/core/src/com/google/gwt/dev/jjs/JJSOptionsImpl.java == --- changes/jat/ihm/dev/core/src/com/google/gwt/dev/jjs/JJSOptionsImpl.java (original) +++ changes/jat/ihm/dev/core/src/com/google/gwt/dev/jjs/JJSOptionsImpl.java Wed Mar 18 21:26:24 2009 @@ -110,7 +110,7 @@ soycEnabled = enabled; } - public void setWorkDir(File workDir){ + public void setWorkDir(File workDir) { this.workDir = workDir; } } Modified: changes/jat/ihm/dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java == --- changes/jat/ihm/dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java (original) +++ changes/jat/ihm/dev/core/src/com/google/gwt/dev/shell/rewrite/HostedModeClassRewriter.java Wed Mar 18 21:26:24 2009 @@ -211,7 +211,6 @@ if (jsoImplDescs.contains(desc)) { v = WriteJsoImpl.create(v, desc,