Re: layout problems with positioning or aligning content
I don't understand how UiBinder cannot be used to do what you describe. You may have to create multiple views (for example fileMenuView) that you attach when the user clicks on File in the menu. But that fileMenuView could be fully described in UiBinder. how it is attached probably won't be done in UiBinder but it's just one dynamic part of it... I haven't looked into the menu widget too much, but that itself can probably do some of that declaratively centering a form is as easy as centering some panels g:VerticalPanel horizontalAlignment=ALIGN_MIDDLE g:VerticalPanel ui:field='myFrom' ... etc.. I use UiBinder and I have centered forms, popups, menus, etc it's possible.. but remember it's a tool.. you may not be able to declare where the menu should be attached, but you can declare the menu itself in the uibinder. use what works best for each purpose. On Tue, Jun 8, 2010 at 12:13, Magnus alpineblas...@googlemail.com wrote: I would like a menubar, and whenever a menu item is selected, I would like to show a panel. The screen should have a north, west, east and south section, and in the center the current panel should be shown. For example, if the user selects create account, a form should be shown to enter the data for a new account. And I would like the form to be centered within the middle space... Magnus On Jun 8, 5:48 pm, Tristan Slominski tristan.slomin...@gmail.com wrote: What do you mean by dynamically generated? Are you setting styles and widths programmatically? What's the use case? On Tue, Jun 8, 2010 at 10:45, Magnus alpineblas...@googlemail.com wrote: Hi fmod, I am thinking about your advice using UIbinder, but I think I cannot use it, because my layout is dynamically generated. I think that the declarative way using UIbinder is for fixed panels like forms, isn't it? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Returning values, next try. Sending was too fast for me
It's working now! Thank you very much On 9 Jun., 14:36, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, GUIs are asynchronously. You still think synchronously. No change to succeed synchronously. Your GUI continue to run while your service is send. Remove the return int. Put Code to continue with in onSuccess Stefan Bacherthttp://gwtworld.de On Jun 8, 3:07 pm, uwi_u uwe.chris...@gad.de wrote: Hi there, I'm currently writing an Application with GWT, and am Stuck at one position: When I call my RPC, the value which is to be returned, will be passed to an global variable. Unfortunately, the returning of this global variable out of the method happens before the onSuccess comes back. the only way to block which I see is to do a while until loginFeedback 0 Heres some Code (loginFeedback shall get a value from 0 to 2): public int loginUser(String user, String passwd, boolean override){ loginFeedback = -1; XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){ public void onSuccess(Object result){ loginFeedback = Integer.parseInt(result.toString()); } public void onFailure (Throwable caught){ Window.alert(Unable to login: +caught.toString()); } }); logToServer(Bei der Zuweisung: +loginFeedback); return loginFeedback; } Is there a better way? I hope so -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Does @DefaultMessage and @PluralText really work?
Finally got some traction thanks to the clues I got from Federico Kerek, author of Essential GWT - http://my.safaribooksonline.com/9780321705631 It seems like it is something I don't understand with the default locale mechanism. I haven't figured it out, but it seems that to get plural handling to work I need: - In my module's gwt.xml file: extend-property name=locale values=en/ - In my Messages extentsion: @DefaultLocale(en) public interface MyMessages extends Messages ... - Explicitly load the en locale by appending to the URL locale=en Does this provide enough clues for anyone to see where I might be doing this wrong? Regards, /PEZ On Jun 10, 2:54 pm, PEZ p...@pezius.com wrote: I'm using GWT 2.0.3. I have now also tried using a .properties file instead. Like so: hours[one]=an hour hours={0} {1,number} hours {2} With the same, boring, results. /PEZ On Jun 9, 10:38 pm, PEZ p...@pezius.com wrote: I'm making (porting really) a relative time module for human readable date-and-time messages to GWT. The first (alpha-ish) version is up on Github:http://github.com/PEZ/GWT-Relative-Time Anyone who tries it will notice that it reports all times as plurals. When it should say an hour ago, it says 1 hours ago. My messages interface looks like so: public interface TimeMessages extends Messages { ... @DefaultMessage({0} {1,number} hours {2}) @PluralText({one, an hour}) String hours(String prefix, @PluralCount int count, String suffix); ... } From what I can understand of the documentation, that is how you should be able to deal with singular and plural forms, right? Well, it doesn't work. Anyone who knows how this works? Or, if it's a bug in GWT, can I work myself around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Application works only in hosted mode
Hi, I have a simple application contains a GXT form panel. When I start the app in hosted mode it works fine. But not in normal mode. In Firebug I see, that all files are well loaded (Status 200 OK). When I check the generated HTML with Firbug, I see that the DIV (my GWT container) is empty (in hosted mode the DIV contains some HTML code). It seems that the entry point doesn't work in normal mode. Other GWT/GXT apps works fine. So i think its a configuration issue of my GWT project, not a installation problem. Any ideas? Thanks Steff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: layout problems with positioning or aligning content
Hi, your example does not work for me. g:VerticalPanel horizontalAlignment=ALIGN_MIDDLE This means AFAIK that the content of the VerticalPanel are aligned within the VerticalPanel, but not the VerticalPanel itself. Also it does not align vertically... Magnus On 11 Jun., 09:40, Tristan Slominski tristan.slomin...@gmail.com wrote: I don't understand how UiBinder cannot be used to do what you describe. You may have to create multiple views (for example fileMenuView) that you attach when the user clicks on File in the menu. But that fileMenuView could be fully described in UiBinder. how it is attached probably won't be done in UiBinder but it's just one dynamic part of it... I haven't looked into the menu widget too much, but that itself can probably do some of that declaratively centering a form is as easy as centering some panels g:VerticalPanel horizontalAlignment=ALIGN_MIDDLE g:VerticalPanel ui:field='myFrom' ... etc.. I use UiBinder and I have centered forms, popups, menus, etc it's possible.. but remember it's a tool.. you may not be able to declare where the menu should be attached, but you can declare the menu itself in the uibinder. use what works best for each purpose. On Tue, Jun 8, 2010 at 12:13, Magnus alpineblas...@googlemail.com wrote: I would like a menubar, and whenever a menu item is selected, I would like to show a panel. The screen should have a north, west, east and south section, and in the center the current panel should be shown. For example, if the user selects create account, a form should be shown to enter the data for a new account. And I would like the form to be centered within the middle space... Magnus On Jun 8, 5:48 pm, Tristan Slominski tristan.slomin...@gmail.com wrote: What do you mean by dynamically generated? Are you setting styles and widths programmatically? What's the use case? On Tue, Jun 8, 2010 at 10:45, Magnus alpineblas...@googlemail.com wrote: Hi fmod, I am thinking about your advice using UIbinder, but I think I cannot use it, because my layout is dynamically generated. I think that the declarative way using UIbinder is for fixed panels like forms, isn't it? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Localistion for Large Enterprise apps
Actually, if it's a concern about bandwidth, it's even more of a moot point than Stefan indicated, since (1) you were going to be putting those labels in regardless of internationalization, and (2) GWT already extracts String constants into a tightly packed bunch of global variables with minified names. Theoretically, the size of your application should not be affected by internationalization. On Jun 10, 6:31 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Brian, let us calculate 1000 Labels, average 10 characters in size. makes 10KByte How fast do you expect your network? 10KB/s - 10 Sec (Modem) 100KB/s - 1 Sec (ISDN) 1MB/s - 0.1 Sec (DSL) 10MB/s - 0.01 Sec (ADSL) 100MB/s - 0.001 Sec (intranet) How often this addition time applies? Exactly the first time you download the app. After that, it is in the cache. OK, each release requires a further download When your figures are in that range, is it really worth to care about it? Do what is good for modularisation but do not care about download performance. Stefan Bacherthttp://gwtworld.de On Jun 10, 1:29 pm, Brian bboyl...@gmail.com wrote: Hi, I am developing a massive enterprise application from scratch using GWT. I want to use GWT's implementation of localisation but I have some concerns with performance. I will have thousands of labels across all my screens that will require conversion to the appropriate language. Do I have to put all these label tags into one .properties file? If so, I fear this will add alot of time to the application startup. Another approach I was thinking of taking was having multiple properties files per module and implementing code splitting for each module. Will code splitting work with loading locale properties files? It would be great to hear of other people's experience developing large enterprise apps with regards to localisation. Thanks Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Does @DefaultMessage and @PluralText really work?
I'm back with more clues. =) I wanted to add some locales to my module. Figured I could get a boiler plate for the properties file if I used the @Generate annotation. I noticed that it created both an _en.properties file and a _default.properties. What's more; the _en file completely lacked the plural form info! The _default file had them though. I then moved the _defaults file to the same directory as my TimeMessages.java file and renamed it TimeMessages_default.properties. With this in place I can remove extend-property name=locale values=en/ from my module's .gwt.xml file and, more important, the locale=en from the URL when running my app. I still need the @DefaultLocale(en) annotation though, even though the documentation clearly states that this is not necessary. In conclusion, if you run in to this problem, try - generating properties files using @Generate - place YourMessages_default.properties side by side with YourMessages.java - prepend the YourMessages interface with a @DefaultLocale(en) annotation. About that @Generate. This is what worked for me. Just before my extension of the Message interface: @Generate(format = {com.google.gwt.i18n.rebind.format.PropertiesFormat}) The GWT log said it created my properties file, but I couldn't find it. I fixed that by adding the compiler flag -extra extras and then found the properties files generated in the extras directory. Including this info here since I spent more than an hour figuring it out. Seriously, this part of the GWT docs is not up to the standards of what's common with GWT. Is there anyway I can help with fixing that? Regards, /PEZ On Jun 11, 11:05 am, PEZ p...@pezius.com wrote: Finally got some traction thanks to the clues I got from Federico Kerek, author of Essential GWT -http://my.safaribooksonline.com/9780321705631 It seems like it is something I don't understand with the default locale mechanism. I haven't figured it out, but it seems that to get plural handling to work I need: - In my module's gwt.xml file: extend-property name=locale values=en/ - In my Messages extentsion: @DefaultLocale(en) public interface MyMessages extends Messages ... - Explicitly load the en locale by appending to the URL locale=en Does this provide enough clues for anyone to see where I might be doing this wrong? Regards, /PEZ On Jun 10, 2:54 pm, PEZ p...@pezius.com wrote: I'm using GWT 2.0.3. I have now also tried using a .properties file instead. Like so: hours[one]=an hour hours={0} {1,number} hours {2} With the same, boring, results. /PEZ On Jun 9, 10:38 pm, PEZ p...@pezius.com wrote: I'm making (porting really) a relative time module for human readable date-and-time messages to GWT. The first (alpha-ish) version is up on Github:http://github.com/PEZ/GWT-Relative-Time Anyone who tries it will notice that it reports all times as plurals. When it should say an hour ago, it says 1 hours ago. My messages interface looks like so: public interface TimeMessages extends Messages { ... @DefaultMessage({0} {1,number} hours {2}) @PluralText({one, an hour}) String hours(String prefix, @PluralCount int count, String suffix); ... } From what I can understand of the documentation, that is how you should be able to deal with singular and plural forms, right? Well, it doesn't work. Anyone who knows how this works? Or, if it's a bug in GWT, can I work myself around it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Does @DefaultMessage and @PluralText really work?
On 11 juin, 11:05, PEZ p...@pezius.com wrote: Finally got some traction thanks to the clues I got from Federico Kerek, author of Essential GWT -http://my.safaribooksonline.com/9780321705631 It seems like it is something I don't understand with the default locale mechanism. I haven't figured it out, but it seems that to get plural handling to work I need: - In my module's gwt.xml file: extend-property name=locale values=en/ - In my Messages extentsion: @DefaultLocale(en) public interface MyMessages extends Messages ... - Explicitly load the en locale by appending to the URL locale=en Does this provide enough clues for anyone to see where I might be doing this wrong? Have you tried adding set-property-fallback name=locale value=en / ? it should make the default locale (i.e. when no locale is explicitly loaded) map to the en locale, so you don't need the locale=en thing (or meta name='gwt:property' content='locale=en') You'd still have to extend-property and @DefaultLocale though. AFAICT, @DefaultLocale tells GWT what locale the @DefaultMessage (or similar annotations for Constants) are written into. If you don't use it, it'll consider your Messages interface to be in the default locale, which has no associated plural rule (the DefaultRule for the default locale only has an other rule). If it works the way I think it does, then you don't need the YourMessages_default.properties file. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: opening popup menu hides all remaining page content
On 11 juin, 07:07, Magnus alpineblas...@googlemail.com wrote: Hello, I found a strange problem under IE 7: When I click on a menu item that opens a popup submenu, the whole page content (all widgets including the menubar itself) is hidden and only the popup menu is visible. See http://code.google.com/p/google-web-toolkit/issues/detail?id=4532 Fixed in 2.1M1 if you want to try it out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: retrieving the size of a panel/widget before it is added
On 11 juin, 07:53, Magnus alpineblas...@googlemail.com wrote: Hi, when I add a VerticalPanel to the center of a DockLayoutPanel, it will immediately be stretched to the remaining size of its parent. But I would like it to keep its natural size, i. e. the size it needs for its children (and then center it within its parent). So I tried to get its size, before it is added: VerticalPanel vp = new VerticalPanel; //vp.add ... int xs = p.getOffsetWidth(); int ys = p.getOffsetHeight(); add(vp); But this size is 0. So one of the following is needed: - get the size of the panel before it's added - prevent it from beeing stretched and then retrieve the size Are there methods to do this? How about inserting an intermediate panel in between the DockLayoutPanel and the VerticalPanel? such as a SimplePanel, AbsolutePanel or FlowPanel. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UIbinder reference?
Hi, I cannot find a reference documentation for the UIBinder XML syntax. I googled all day long, but all that I find are examples, even on code.google.com. E. g. I need the allowed tags and attributes for a Grid structure... Where is the documentation? Thank you Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: retrieving the size of a panel/widget before it is added
Hi, what makes the difference? Magnus On 11 Jun., 15:12, Thomas Broyer t.bro...@gmail.com wrote: On 11 juin, 07:53, Magnus alpineblas...@googlemail.com wrote: Hi, when I add a VerticalPanel to the center of a DockLayoutPanel, it will immediately be stretched to the remaining size of its parent. But I would like it to keep its natural size, i. e. the size it needs for its children (and then center it within its parent). So I tried to get its size, before it is added: VerticalPanel vp = new VerticalPanel; //vp.add ... int xs = p.getOffsetWidth(); int ys = p.getOffsetHeight(); add(vp); But this size is 0. So one of the following is needed: - get the size of the panel before it's added - prevent it from beeing stretched and then retrieve the size Are there methods to do this? How about inserting an intermediate panel in between the DockLayoutPanel and the VerticalPanel? such as a SimplePanel, AbsolutePanel or FlowPanel. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and Spring - with Spring Web MVC or without it?
There is also the GWT Server Library from the GWT Widget Library project: http://gwt-widget.sourceforge.net/ You should also check out the support for GWT that is now built into Spring Roo. If you already use (or want to use) the technologies that Spring Roo builds in, like JPA, then Roo will get you running fast with a solid architecture that uses best practices: http://www.springsource.org/roo http://blog.springsource.com/2010/05/19/spring-roo-1-1-0-m1-released/ http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/ I don't think there is one right answer to your question. How you use Spring with GWT depends on your project and your team's preferences. However, it is quite useful using Spring MVC (or some other Java web framework) with GWT because GWT doesn't provide much server-side facilities. In a large project, you are likely to need some static web pages that do not use GWT, and Spring MVC makes that easy (among many other things). Additionally, we have used Spring MVC controllers for file upload and download, and to serve up resources from the classpath. I also believe it is very useful to avoid having your actual service implementation extend from GWT's RemoteServiceServlet. Spring MVC allows your controllers to be implemented as POJOs, and most Spring- GWT integration libraries strive to allow you to use GWT RPC while still implementing your services as POJOs. Some benefits to this approach are the ease of unit testing POJOs and no dependence on GWT libraries in your services. Hope that helps, -Richard On Jun 8, 11:32 am, ezamur eza...@gmail.com wrote: Hi all... I am new to GWT - had some contact with it earlier but not enough to say I am confident with it. My task is to investigate this technology and pair it with Spring framework. There are a lot of tutorials explaining how this can be done, but what is bothering me is I can't decide which approach to choose. For example, I've seen one using Spring's MVC (like this one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...), but also other where integration is done without it (e.g.http://code.google.com/p/gwt-spring-starter-app/) I am afraid to miss something important by choosing one of these approaches and possibly lose some of Web MVC functionalities that might be needed later or end up in dead end street using it. I would be grateful if anyone explained me what are the pros and cons of these approaches from practical point of view - is there a need for DispatcherServlet and Controllers while having GWT and its RPC mechanism. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Page Navigation
Sounds like when your entry point loads (that happens on refresh) it needs to check if the user is logged in (check a cookie or make an AJAX request to the server) and then display the appropriate widgets (view). However, I suggest that you make the login page a separate page from the page that loads your GWT application. When the user tries to access your GWT application and is not logged in, redirect the browser to the login page. After the user successfully authenticates, redirect the browser to your GWT application. This approach avoids the problem you are having, and it prevents the user from being able to download your GWT application (JavaScript code) when they don't have access. -Richard On Jun 10, 1:31 am, CIAO pratik.sachd...@gmail.com wrote: Hi I am a newbie to GWT and am working on an application Dev that has a login page and when the user successfully identifies itself it goes to a data page (loads the new data widgets after removing the login widgets) that shows it all the data s/he requires the problem i am facing is whenever i press the refresh button (or F5) it goes back to the login widgets.. i need to arrest this behavior and user should *NOT* be sent back once user has logged in... thanks in advance CIAO -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Page Navigation
On 11 juin, 15:55, Richard Allen richard.l.al...@gmail.com wrote: Sounds like when your entry point loads (that happens on refresh) it needs to check if the user is logged in (check a cookie or make an AJAX request to the server) and then display the appropriate widgets (view). However, I suggest that you make the login page a separate page from the page that loads your GWT application. When the user tries to access your GWT application and is not logged in, redirect the browser to the login page. After the user successfully authenticates, redirect the browser to your GWT application. This approach avoids the problem you are having, and it prevents the user from being able to download your GWT application (JavaScript code) when they don't have access. Not having done that 2 years ago and living with it since then, I'd now give the same advice. Note however that it means a different user experience when the session is lost somehow (the user has to be directed to the login page to re-authenticate, and thus loses everything he hadn't saved; whereas when everything is on the same page, you can just hide the screens behind the login dialog, but it then is a security issue because the data is just hidden, and any developer tool could reveal it without the for authenticating). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: retrieving the size of a panel/widget before it is added
On 11 juin, 15:37, Magnus alpineblas...@googlemail.com wrote: Hi, what makes the difference? The intermediate panel would be sized when added to the DockLayoutPanel, not the VerticalPanel that you then put inside, that would be *eventually* resized following the constraints/layout of the intermediate panel (not the DockLayoutPanel). And the panels I listed don't resize their child widgets. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIbinder reference?
On 11 juin, 15:26, Magnus alpineblas...@googlemail.com wrote: Hi, I cannot find a reference documentation for the UIBinder XML syntax. I googled all day long, but all that I find are examples, even on code.google.com. E. g. I need the allowed tags and attributes for a Grid structure... Where is the documentation? 1. UiBinder by default maps element names to widgets and attribute names to setters (attribute values being converted depending on the setter's argument(s)) 2. HasHTML widgets can contain HTML markup, HasText widgets can only contain text, and HasWidgets widgets can only contain other widgets (whitespace is ignored) 3. Some widgets (I don't know any in GWT itself) have a @UiConstructor annotation so that some attributes are mapped to the annotated constructor's arguments instead of setter methods 4. some widgets have a custom parser, in this case the custom child- elements and attributes are described in the JavaDoc for the widget A Grid widget has neither a @UiConstructor nor a custom parser, so the default no-arg cosntructor will be used and you can set some properties via attributes, but that's all. Everything else will have to be done in Java. (there's little to no use-case for a Grid or FlexTable in UiBinder that would be populated from within the ui.xml; in most cases you can either use an HTML table, or you'll use some kind of data binding in your Java code anyway) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Guice and RpcServlet
Googling for DeRPC (and not Direct-Eval RPC) got me what I needed. Here it is, for the sake of completeness: http://groups.google.com/group/google-guice/browse_thread/thread/d958f5a82d45706a/bc6bca85513d9cb3 On May 27, 2:35 pm, hbf kaspar.fisc...@dreizak.com wrote: Hi, I would like to use the new and experimental [1] Direct-Eval RPC of GWT 2 with server-side Guice. However, I could only find information on configuring Guice and GWT for the old RPC, see [2]. To inject the service, the latter blog suggests: @Singleton public class GuiceRemoteServiceServlet extends RemoteServiceServlet { @Inject private Injector injector; @Override public String processCall(String payload) throws SerializationException { try { RPCRequest req = RPC.decodeRequest(payload, null, this); RemoteService service = getServiceInstance( req.getMethod().getDeclaringClass()); return RPC.invokeAndEncodeResponse(service, req.getMethod(), req.getParameters(), req.getSerializationPolicy()); } catch (IncompatibleRemoteServiceException ex) { log(IncompatibleRemoteServiceException in the processCall(String) method., ex); return RPC.encodeResponseForFailure(null, ex); } } @SuppressWarnings({unchecked}) private RemoteService getServiceInstance(Class serviceClass) { return (RemoteService) injector.getInstance(serviceClass); } } What is the recommended way to do this with the new RpcServlet instead of RemoteServiceServlet? Many thanks,Kaspar [1]http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... [2]http://stuffthathappens.com/blog/2009/09/14/guice-with-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No new web application project button
Had the same problem with Windows 7. Running eclipse as administrator and then installing the plugin worked for me. On May 29, 7:46 pm, Andrew anyel...@gmail.com wrote: The plugin and the SDKs are installed and Google does not show up in Window-Preferences. I have tried uninstalling and reinstalling the plugin and SDKs and I still have the same problem. On May 29, 8:46 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, When there are no GWT buttons visible, the google eclipse plugin is probably not installed. Could you find Window-Preferences-Google ? NO- something went wrong with installing. Yes? Do you have a SDK installed? Stefan Bacherthttp://gwtworld.de On 28 Mai, 23:34,Andrewanyel...@gmail.com wrote: Neither of these buttons show up. On May 28, 10:04 am, Stefan Bachert stefanbach...@yahoo.de wrote: HiAndrew, GWT has its own buttons. It it the blue g icon in the tool bar (New Web Application Project), or in the menu Stefan Bacherthttp://gwtworld.de On 27 Mai, 04:09,Andrewanyel...@gmail.com wrote: I just recently installed Eclipse 3.5 on Windows 7. I followed the instructions on installing GWT plugin and SDK and it seems to have worked fine, however I do not have the option to create a new web application project or anything associated with GWT. What could I have done wrong to cause this and what can I do to fix it? Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Final fields and DeRPC
Hi, Does the new RPC mechanism, DeRPC, see http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC offer serialization of non-static final fields? We have so many immutable classes that use final fields. It would be nice if there were an option to control serialization of final fields. Best, Kaspar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Efficient GWT Client-Server Communication methodology
Hello, In my project, I need efficient transfer of bulk data from the server to the client. The data will be containing thousands of rows of a database. And I require to populate them very quickly. The project will be implemented in areas with very slow internet connection. I read about the Clinet-Server communication in GWT. What is the most efficient way to use? Either GWT-RPC or GWT-XML/JSON? If somebody have already done some projects with this requirement, could you please share your experience/suggestions so that I can follow the best methodology to get better performance. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.X No resource found for key
I've developed a GWT app using i18n internationalization. In Host/Dev mode it works fine, but launching GWT compile gives this error: No resource found for key xxx, like below. Compiling module ...rte.RTE Scanning for additional dependencies: file:/home/.../client/i18n/ RTEValidationMessages.java Computing all possible rebind results for '...client.i18n.RTEMessages' Rebinding ...client.i18n.RTEMessages Invoking com.google.gwt.dev.javac.standardgeneratorcont...@e7dfd0 Processing interface ...client.i18n.RTEMessages Generating method body for txtIndirizzo3() [ERROR] No resource found for key 'txtIndirizzo3' Messages are loaded with late binding. public class RTEValidationMessages { private RTEMessages additionalMessages; public RTEValidationMessages() { additionalMessages = GWT.create(RTEMessages.class); } } Deleting the method which gives the error, results in another random method with error, say not the method before or after in the interface ...client.i18n.RTEMessages. Help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to suppress Deprecation warnings
Can you please help me how i can suppress these warnings? If you look at the javadoc for com.google.gwt.widgetideas.table.client.overrides.HTMLTable for example, it will tell you to use com.google.gwt.gen2.table.override.client.HTMLTable instead. Replace your inherits in your gwt.xml file(s). Also is there a way to suppress the messages Compiling 6 permutations ... Assuming you're using ant, there is an log level option to the task: level=all|spam|trace|info|warn|error - Changes the compiler log level See http://code.google.com/p/ant-gwt/ Regards, Nico -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT HTTP GET function
public void doGet(String myurl) { myurl = URL.encode(myurl); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, myurl ); try { Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { Window.alert(ERROR. Could not connect to server.); } public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { String ServerResponse = response.getText(); } else { Window.alert(ERROR. Errorcode: + response.getStatusCode()); } } }); How can i make this function return SereverResponce variable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hot Start up looking for GWT Expert to contribute virtually!
Hi, My name is Amelia and I am one of the founders of TipMarks. TipMarks could be a great and interesting opportunity for you or someone you may know. We have a number of roles open now, but specifically we are looking for a GWT expert to contribute virtually. I would love to talk to you about this. TipMarks is an early-stage venture led by successful serial entrepreneurs and technologists from Music City Networks, Microsoft, SAP, Stanford and MIT. We’re working on a web app (and behind it, campaign and commerce software) designed to monetize social networks, by prompting product recommendations between friends. We’re looking for world-class talent able to invest time for equity as we launch the business (minimum 15 hour/week commitment). We expect to be generating revenue and salaries in Q3 of this year. To find out a little more go to http://www.tipmarks.com. Hope to get to tell you more soon. I promise it will be worth a 10 minute phone call. Amelia Merrill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt2.0 memory leak
I am using GWT2.0, I would like to know how to decrease memory consumption for GWT? I am using Internet explorer 6. Please give me an answer as soon as possible? Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Guice and RpcServlet
Any ideas? Best, Kaspar On May 27, 2:35 pm, hbf kaspar.fisc...@dreizak.com wrote: Hi, I would like to use the new and experimental [1] Direct-Eval RPC of GWT 2 with server-side Guice. However, I could only find information on configuring Guice and GWT for the old RPC, see [2]. To inject the service, the latter blog suggests: @Singleton public class GuiceRemoteServiceServlet extends RemoteServiceServlet { @Inject private Injector injector; @Override public String processCall(String payload) throws SerializationException { try { RPCRequest req = RPC.decodeRequest(payload, null, this); RemoteService service = getServiceInstance( req.getMethod().getDeclaringClass()); return RPC.invokeAndEncodeResponse(service, req.getMethod(), req.getParameters(), req.getSerializationPolicy()); } catch (IncompatibleRemoteServiceException ex) { log(IncompatibleRemoteServiceException in the processCall(String) method., ex); return RPC.encodeResponseForFailure(null, ex); } } @SuppressWarnings({unchecked}) private RemoteService getServiceInstance(Class serviceClass) { return (RemoteService) injector.getInstance(serviceClass); } } What is the recommended way to do this with the new RpcServlet instead of RemoteServiceServlet? Many thanks,Kaspar [1]http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... [2]http://stuffthathappens.com/blog/2009/09/14/guice-with-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT very slow on IE
Hi My GWT application takes 10 seconds on IE with GWT . without GWT it used to take less than second. 10 times slower with GWT. We are using GWT for first time in our application. And the app is very slow on IE. Business is very unhappy with performance. Can you please help me to bring this performance down to 1 sec. Thanks Regards Vinod -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No new web application project button
Had the same problem here. Works fine under Linux or WinXP but no luck with Windows 7. Eclipse showed Google Plugin as installed in About Eclipse - Installation Details. Try running eclipse as administrator and then installing google plugin. That did the job for me. On May 29, 7:46 pm, Andrew anyel...@gmail.com wrote: The plugin and the SDKs are installed and Google does not show up in Window-Preferences. I have tried uninstalling and reinstalling the plugin and SDKs and I still have the same problem. On May 29, 8:46 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, When there are no GWT buttons visible, the google eclipse plugin is probably not installed. Could you find Window-Preferences-Google ? NO- something went wrong with installing. Yes? Do you have a SDK installed? Stefan Bacherthttp://gwtworld.de On 28 Mai, 23:34,Andrewanyel...@gmail.com wrote: Neither of these buttons show up. On May 28, 10:04 am, Stefan Bachert stefanbach...@yahoo.de wrote: HiAndrew, GWT has its own buttons. It it the blue g icon in the tool bar (New Web Application Project), or in the menu Stefan Bacherthttp://gwtworld.de On 27 Mai, 04:09,Andrewanyel...@gmail.com wrote: I just recently installed Eclipse 3.5 on Windows 7. I followed the instructions on installing GWT plugin and SDK and it seems to have worked fine, however I do not have the option to create a new web application project or anything associated with GWT. What could I have done wrong to cause this and what can I do to fix it? Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Javascript exception while parsing the XML to JSON
Hi, I am getting a strange javascript exception while parsing the XML string and converting to JSON string. Can I know the reasons for the exception? Catch is same input is working in another environment. Is it something related to environment? input XML is -- Content-Type: application/xaml+xml Headers: {Date=[Thu, 10 Jun 2010 13:35:33 GMT]} Payload: ?xml version=1.0 encoding=UTF-8 standalone=yes? UIServiceResponsepageConfigfilterExpressionmatchesAllfalse/ matchesAlloperationsleftOperandTARGET-NAME/ leftOperandoperationType2/operationTypeoperatorFILTER-WILDCARD- EQ/operatorrightOperand*/rightOperand/operations/ filterExpressionlimit0/limitoffSet0/offSetsortAescfalse/ sortAescsortFieldTARGET-NAME/sortFieldtotalRecords0/ totalRecords/pageConfigresult xmlns:xsi=http://www.w3.org/2001/ XMLSchema-instance xmlns:xs=http://www.w3.org/2001/XMLSchema; xsi:type=xs:stringwinpe2.2/result/UIServiceResponse UIServiceResponse, PageConfig and Result(List) are the objects on the XML exception is - Error: Data Error: Unable to parse the message received from the server: com.google.gwt.core.client.JavaScriptException: (TypeError): 'b' is null or not an object number: -2146823281 description: 'b' is null or not an object piece of code where exception is thrown is with in method onResponseReceived of extended class. We have extended RequestCallback class. -- JSONValue jsonValue = JSONParser.parse(response.getText()); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: layout problems with positioning or aligning content
it was just a rough example.. not the exact code here's a production code that centers content in the center of the page vertically and horizontally g:VerticalPanel width=100% height=100% g:Cell horizontalAlignment=ALIGN_CENTER verticalAlignment=ALIGN_MIDDLE g:HorizontalPanel g:Cell verticalAlignment=ALIGN_MIDDLE content that's centered here On Fri, Jun 11, 2010 at 06:58, Magnus alpineblas...@googlemail.com wrote: Hi, your example does not work for me. g:VerticalPanel horizontalAlignment=ALIGN_MIDDLE This means AFAIK that the content of the VerticalPanel are aligned within the VerticalPanel, but not the VerticalPanel itself. Also it does not align vertically... Magnus On 11 Jun., 09:40, Tristan Slominski tristan.slomin...@gmail.com wrote: I don't understand how UiBinder cannot be used to do what you describe. You may have to create multiple views (for example fileMenuView) that you attach when the user clicks on File in the menu. But that fileMenuView could be fully described in UiBinder. how it is attached probably won't be done in UiBinder but it's just one dynamic part of it... I haven't looked into the menu widget too much, but that itself can probably do some of that declaratively centering a form is as easy as centering some panels g:VerticalPanel horizontalAlignment=ALIGN_MIDDLE g:VerticalPanel ui:field='myFrom' ... etc.. I use UiBinder and I have centered forms, popups, menus, etc it's possible.. but remember it's a tool.. you may not be able to declare where the menu should be attached, but you can declare the menu itself in the uibinder. use what works best for each purpose. On Tue, Jun 8, 2010 at 12:13, Magnus alpineblas...@googlemail.com wrote: I would like a menubar, and whenever a menu item is selected, I would like to show a panel. The screen should have a north, west, east and south section, and in the center the current panel should be shown. For example, if the user selects create account, a form should be shown to enter the data for a new account. And I would like the form to be centered within the middle space... Magnus On Jun 8, 5:48 pm, Tristan Slominski tristan.slomin...@gmail.com wrote: What do you mean by dynamically generated? Are you setting styles and widths programmatically? What's the use case? On Tue, Jun 8, 2010 at 10:45, Magnus alpineblas...@googlemail.com wrote: Hi fmod, I am thinking about your advice using UIbinder, but I think I cannot use it, because my layout is dynamically generated. I think that the declarative way using UIbinder is for fixed panels like forms, isn't it? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
using gwt for games - svg, canvas or something else?
i've found several gwt extensions that have svg or canvas support but i have no idea what to use. i'm trying to create simple games (stuff usually produced in flash) so i was wondering if anybody else tried something like that? what would you recommend? Aljosa Mohorovic -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
YouTube API for GWT
Did you ever want to use YouTubeAPI in your GWT application and you did not found any acceptable solution? Have a look on gwt-youtube-api project (http://code.google.com/p/gwt- youtube-api/) or try sample YouTube application http://code.google.com/p/gwt-youtube-api/wiki/SampleApplication. Project is not an JSNI wrapper over existing JS client, but it is pure GWT solution with parsing JSON responces sent from YouTube API. It's not mature project and I'm pretty sure that there are some bugs in the code, but YouTube demo works well (try to search something - just CHANGE the default value in the search box - or click on video on the home page). The responces from YouTube are pretty fast. Any contribution is very appreciated, just write an email with requests. Enjoy, Peter -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.lang.IllegalArgumentException: Only one CENTER widget may be added
Clicking on my ant's script target name=devmode depends=javac description=Run development mode java failonerror=true fork=true classname=com.google.gwt.dev.DevMode classpath pathelement location=src/ pathelement location=/Galileo/workspace/Mark5/src/ path refid=project.class.path/ /classpath jvmarg value=-Xmx256M/ jvmarg value=-Xss16M/ arg value=-noserver/ arg value=-port/ arg value=8080/ arg value=-startupUrl/ arg value=VCarCli/VCarCli.html/ arg value=-logLevel/ arg value=DEBUG/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=-war/ arg value=D:/Galileo/workspace/VCarCli/war/ arg value=com.gasban.VCarCli/ /java /target When I launch DevMode so on my GWT DevMode Box, app tab shows this errors: 00:00:50,872 [ERROR] Unable to load module entry point class com.gasban.client.VCarCli (see associated exception for details) java.lang.IllegalArgumentException: Only one CENTER widget may be added at com.google.gwt.user.client.ui.DockPanel.add(DockPanel.java:166) at com.gasban.client.AbstractApp.mostrar(AbstractApp.java:87) at com.gasban.client.VCarCli.changeHistory(VCarCli.java:36) at com.gasban.client.VCarCli.changeHistory(VCarCli.java:33) at com.gasban.client.AbstractApp.onValueChange(AbstractApp.java:53) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java: 128) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java: 1) at com.google.gwt.event.shared.HandlerManager $HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access $1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 178) at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java: 74) at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java: 43) at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java: 81) at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java: 121) at com.gasban.client.VCarCli.cargarPanelesSistema(VCarCli.java:77) at com.gasban.client.VCarCli.onModuleLoad(VCarCli.java:44) 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.ModuleSpace.onLoad(ModuleSpace.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:619) SWF: Galileo 3.5.2 GWT 2.0.3 jdk1.6.0_17 jboss-4.0.5 sources: public class VCarCli extends AbstractApp { private static VCarCli instance; public VCarCli() { instance = this; } public static VCarCli getInstance() { if (instance != null) return instance; return new VCarCli(); } @Override public void changeHistory(String token, boolean afectaHistoria) { PanelEspecialInfo info = list.encontrar(token); if (info == null) { this.changeHistory(Clientes,false); return; } mostrar(info, afectaHistoria); } /** * This is the entry point method. */ public void onModuleLoad() { seeds.put(Clientes, (Seed)(new DRSSeed(clientservice))); cargarPanelesSistema(); } private void cargarPanelesSistema() { if (RootPanel.get().getWidgetCount()0) RootPanel.get().remove(0); // Carga todos lo Paneles Especiales list.agregar(Clientes.init(), false); list.agregar(PanelCliente.init()); // Put the sink list on the left, and add the outer dock panel to the // root. sinkContainer = new DockPanel(); sinkContainer.setStyleName(sv-Contenedor); VerticalPanel vp = new VerticalPanel(); vp.setWidth(100%); vp.add(description); vp.add(sinkContainer); description.setStyleName(sv-Info); panel.add(list, DockPanel.WEST); panel.add(vp, DockPanel.CENTER); panel.setCellVerticalAlignment(list, HasAlignment.ALIGN_TOP); panel.setCellWidth(vp, 100%); // Add history listener History.addValueChangeHandler(this); RootPanel.get(panelPrincipal).add(panel); // Now that we've setup our listener, fire the initial history state. History.fireCurrentHistoryState();
Re: YouTube API for GWT
Il 11/06/10 17.01, Peter Simun ha scritto: Did you ever want to use YouTubeAPI in your GWT application and you did not found any acceptable solution? Have a look on gwt-youtube-api project (http://code.google.com/p/gwt- youtube-api/) or try sample YouTube application http://code.google.com/p/gwt-youtube-api/wiki/SampleApplication. Project is not an JSNI wrapper over existing JS client, but it is pure GWT solution with parsing JSON responces sent from YouTube API. It's not mature project and I'm pretty sure that there are some bugs in the code, but YouTube demo works well (try to search something - just CHANGE the default value in the search box - or click on video on the home page). The responces from YouTube are pretty fast. Any contribution is very appreciated, just write an email with requests. Enjoy, Peter Great work Peter -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: quirks vs. standard mode
That's a valid point I had not considered. I had some reservations about using the HTML 5 tag because I had read that IE 6 had no idea what to do with new doctypes. I did a little further reading, it turns out that the HTML 5 doctype should kick it into strict mode, which is something of an approximation of standards mode. It's at least not as ghastly a perversion of CSS and the DOM as their version of quirks mode. From what I can tell, the Relative-Absolute positioning pattern Google likes to use for its standards mode panels has limited success in IE 6. Perhaps they do have some work around, but from I've seen of the classes they've been pretty stubborn with it. I haven't gotten to the stage with my latest application (first in GWT since 2.0) where I've considered testing and writing custom IE 6 cases. I am expecting fun times ahead. Hope that helps! On Jun 10, 10:46 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Daniel, IE 6 does have something like a standards mode - it's not really standards compliant, but it does behave differently, when putting it into that mode. That's because, when it's in quirks mode, then it behaves like IE 5.5. Seehttp://www.quirksmode.org/css/quirksmode.html for more details. As far as I can tell, the new layout panels of GWT 2.x are designed to also work on IE6 in its standards mode - sometimes by emulating CSS properties with javascript. @Ata: Try to use !DOCTYPE html (note the uppercase DOCTYPE). Make sure, that it's the very first thing in the document (no comments or anything in front of it!) On Jun 10, 2:28 pm, Daniel Le Clere daniel.lecl...@gmail.com wrote: Ummm... IE 6 doesn't have a standards mode... Adding that doctype is probably just causing more issues. The HTML 5 doctype is useful for forcing IE 7 and 8 into standards mode. If you want to get your program rolling for IE 6 you're going to have to write some specific views under the MVC or accept greater restrictions in your overall design. GWT is not magic, it cannot force IE 6 to do something that was not accounted for in its design. If you want that kind of magic try Google Frame :) On Jun 10, 12:37 pm, Ata ata@gmail.com wrote: In GWT some widgets only work properly in quirks or standard mode, not both. As far as I could tell I should be running the app in standard mode because I have !doctype html as the first line of the root HTML page, however widgets like TabLayoutPanel that are supposed to work in standard mode don't work, and the quirks mode ones do. I'm using IE6 (I can also try with chrome and IE8 later, but it should work with any browser). Does anyone know why this quirks/standard mode is not working as advertised? Could it be a browser thing, or am I really NOT in standard mode even though I think I am, or is the GWT documentation just lying to me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt2.0 memory leak
Details? Are you using widgets? An RPC? Some sort of design pattern? Are you using innerHTML placement or are you trying to build your entire layout using javascript generated DOM objects? Are you building new DOM structures inside or outside the body of the document? Do you have a massive table of data and a event listener on every cell? Do you have a one pixel wide background image you are repeating across the entire page? How are you styling your CSS? Are you using a lot of inheritance to try and style nodes (like .style b)? Are using the DOM to try and find the position or dimensions of elements much? Have you used a profiling application such as Speed Tracer (Yes it's not a IE thing, but it can help) to try and narrow it down? As you can see from that dense list of questions above, there are a lot of things to consider in Javascript-GWT development. If you'd like a prompt response, I would suggest you attempt to answer at least some of them for yourself and posting your reflections back within this thread. Try watching some of the videos from Google IO 2009/2010. Hope that helps! On Jun 11, 10:50 pm, tarik tarikkan...@gmail.com wrote: I am using GWT2.0, I would like to know how to decrease memory consumption for GWT? I am using Internet explorer 6. Please give me an answer as soon as possible? Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Modify Java source file at compile time, possible?
Hi, I know GWT can generate Java source code with deferred binding. But sometimes, I don't want to generate a new implementation, but based on some annotations, I want to have the ability of injecting code at compile time. e.g., with the class below public class Foo { @Log public void bar() { @CheckPermission dosomething(); } } At compile time, I want to have the ability to get the annotations available on items, and inject code according to my application logic. So here, the compiler should see: public class Foo { public void bar() { log(begin); if (hasPermission()) { doSomething(); } else { error(); } } } with the extra code being injected. I'm wondering if anything in GWT allows me to do that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Application works only in hosted mode
Hi Stefan, this forum is not about GXT. It is about pure GWT. Stefan Bachert http://gwtworld.de On Jun 11, 11:37 am, Stefan Ludwig tapir0...@gmail.com wrote: Hi, I have a simple application contains a GXT form panel. When I start the app in hosted mode it works fine. But not in normal mode. In Firebug I see, that all files are well loaded (Status 200 OK). When I check the generated HTML with Firbug, I see that the DIV (my GWT container) is empty (in hosted mode the DIV contains some HTML code). It seems that the entry point doesn't work in normal mode. Other GWT/GXT apps works fine. So i think its a configuration issue of my GWT project, not a installation problem. Any ideas? Thanks Steff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT very slow on IE
Install Speed Tracer and profile your application. HttpWatch, Fiddler, YSlow..there are many tools that can assist you to find out whats going on..or use sysouts in your rpc calls to see if thats what is slowing you down. There is no silver bullet that can make your application faster without knowing anything about it !! On Jun 10, 4:20 pm, vinod vinodk...@yahoo.com wrote: Hi My GWT application takes 10 seconds on IE with GWT . without GWT it used to take less than second. 10 times slower with GWT. We are using GWT for first time in our application. And the app is very slow on IE. Business is very unhappy with performance. Can you please help me to bring this performance down to 1 sec. Thanks Regards Vinod -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
Hi, I added the menu items you mention and it is working, tested in IE8. On Fri, Jun 11, 2010 at 1:42 AM, Magnus alpineblas...@googlemail.comwrote: Hi, there is a strange problem with the menubar in your example using IE8 (not with FF). When it opens a popup menu, the whole page disappears and only the popup menu is visible. The popup menu is added to the menubar as follows: MenuBar m= new MenuBar (true); m.addItem (Login, (Command)null); m.addItem (Logout,(Command)null); m.addItem (Register,(Command)null); m.addItem (Profile,(Command)null); menu.addItem (Account,m); What's that again? Magnus On 10 Jun., 13:08, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, thank you very much!!! This solution seems to be perfect for me! I played around a little bit. I Changed the base class for the ChessTable to DockLayoutPanel, to add some annotations to the chess board. This worked, too! Then I inserted a grid into the center section of ChessTable. It's clear that this was not centered. May I use the same mechanism to center this grid within the ChessTable? I understand the mechanism as follows: - create a new class, which implements RequiresResize - write a onResize method which centers this object within the parent Well, it works great on FF and IE. Good job! Thanks again! Magnus On 9 Jun., 20:31, Alejandro D. Garin aga...@gmail.com wrote: Just from the webappcreator. Nothing special. On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww. .. On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com wrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. ... google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%25252bunsubscr...@googlegroups.comgoogle-web-toolkit%2525252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/goog... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Final fields and DeRPC
+1 regards Michael On Jun 10, 7:58 pm, hbf kaspar.fisc...@dreizak.com wrote: Hi, Does the new RPC mechanism, DeRPC, see http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... offer serialization of non-static final fields? We have so many immutable classes that use final fields. It would be nice if there were an option to control serialization of final fields. Best, Kaspar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: using gwt for games - svg, canvas or something else?
hi Aljosa! i have no idea which one is better (svg or canvas) nor which one has better browser support nor which one has better gwt support. i only know this is the most amazing game implementation for a browser i have ever seen: http://code.google.com/p/quake2-gwt-port/ regards Michael On Jun 11, 4:56 pm, Aljosa Mohorovic aljosa.mohoro...@gmail.com wrote: i've found several gwt extensions that have svg or canvas support but i have no idea what to use. i'm trying to create simple games (stuff usually produced in flash) so i was wondering if anybody else tried something like that? what would you recommend? Aljosa Mohorovic -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
bikeshed source code
I get the latest code from GWT truck. I can not create a working Eclipse project for bikeshed because it is full of many code errors. I would appreciate it if you can share your working source code with us. Jim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Efficient GWT Client-Server Communication methodology
Check out the Itemscript libraries. http://code.google.com/p/itemscript/ Itemscript includes a JSON RPC with cross platform Java / GWT libraries. There's also an in memory database you might find useful for managing the client side. Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hot Start up looking for GWT Expert to contribute virtually!
Hi, I am interested to know more about this. How can i contact you? On Jun 11, 2:09 am, Amelia Recruiter ameliarecrui...@gmail.com wrote: Hi, My name is Amelia and I am one of the founders of TipMarks. TipMarks could be a great and interesting opportunity for you or someone you may know. We have a number of roles open now, but specifically we are looking for a GWT expert to contribute virtually. I would love to talk to you about this. TipMarks is an early-stage venture led by successful serial entrepreneurs and technologists from Music City Networks, Microsoft, SAP, Stanford and MIT. We’re working on a web app (and behind it, campaign and commerce software) designed to monetize social networks, by prompting product recommendations between friends. We’re looking for world-class talent able to invest time for equity as we launch the business (minimum 15 hour/week commitment). We expect to be generating revenue and salaries in Q3 of this year. To find out a little more go tohttp://www.tipmarks.com. Hope to get to tell you more soon. I promise it will be worth a 10 minute phone call. Amelia Merrill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT HTTP GET function
On 06/10/2010 08:55 AM, Andy wrote: public void doGet(String myurl) { myurl = URL.encode(myurl); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, myurl ); try { Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { Window.alert(ERROR. Could not connect to server.); } public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { String ServerResponse = response.getText(); } else { Window.alert(ERROR. Errorcode: + response.getStatusCode()); } } }); How can i make this function return SereverResponce variable? You can't. It's a void function. Stash the response in a private variable and define a getter for that variable. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT very slow on IE
How many RPC calls do you have on this page? How is the performance on the other browsers? I believe IE 6 and 7 permit only 2 simultaneous requests. though IE8 permits 6. check out the link below for more details. http://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browser The correct approach would to first identify whether it is the server code or the client code which is causing the poor performance. most probably it should be the server code, you can check with firebug the time consumed for each RPC and then dig into the call which is consuming the maximum time. On Thu, Jun 10, 2010 at 1:20 PM, vinod vinodk...@yahoo.com wrote: Hi My GWT application takes 10 seconds on IE with GWT . without GWT it used to take less than second. 10 times slower with GWT. We are using GWT for first time in our application. And the app is very slow on IE. Business is very unhappy with performance. Can you please help me to bring this performance down to 1 sec. Thanks Regards Vinod -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Does @DefaultMessage and @PluralText really work?
Indeed, it seems to work as you think it does. I just tried removing the _default.properties file and thing still work. Was that @DefaultLocal(en) all that was lacking to begin with? I'm not even using the set-property-fallback. Thanks for sharing! I was beginning to dispare. /PEZ On Jun 11, 3:05 pm, Thomas Broyer t.bro...@gmail.com wrote: On 11 juin, 11:05, PEZ p...@pezius.com wrote: Finally got some traction thanks to the clues I got from Federico Kerek, author of Essential GWT -http://my.safaribooksonline.com/9780321705631 It seems like it is something I don't understand with the default locale mechanism. I haven't figured it out, but it seems that to get plural handling to work I need: - In my module's gwt.xml file: extend-property name=locale values=en/ - In my Messages extentsion: @DefaultLocale(en) public interface MyMessages extends Messages ... - Explicitly load the en locale by appending to the URL locale=en Does this provide enough clues for anyone to see where I might be doing this wrong? Have you tried adding set-property-fallback name=locale value=en /? it should make the default locale (i.e. when no locale is explicitly loaded) map to the en locale, so you don't need the locale=en thing (or meta name='gwt:property' content='locale=en') You'd still have to extend-property and @DefaultLocale though. AFAICT, @DefaultLocale tells GWT what locale the @DefaultMessage (or similar annotations for Constants) are written into. If you don't use it, it'll consider your Messages interface to be in the default locale, which has no associated plural rule (the DefaultRule for the default locale only has an other rule). If it works the way I think it does, then you don't need the YourMessages_default.properties file. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cross Site XML-HTTP?
I want to, inside of my GWT application, load an XML document from a different server then where the base page is from. My page is on server A, and the GWT compiled javascript is on a different server, location B. The XML I am trying to read is at the same location, B, so why can't the JS loaded from there access ti with out tripping the SOP error?. I used to be able to load XML from a remote site as long as the .html file hosting the GWT app had a link to an image from the same location as the XML. This worked in at least 1.7 of GWT, though I suspect it is more the fact that I have a newer web browser since then. I have looked at http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html and I don't think I can specifically use any of the tricks there. They seam to be JSON specific, and require a smart backend to append the callback to the JSON returned text. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modify Java source file at compile time, possible?
Hi Kevin, You can rewrite your Foo class as: public class Foo implements MagicClass { @Trace @Secured public void bar() { } } Then, associate a generator for sub-types of MagicClass and use GWT.create to instantiate a new Foo. GWT.create(Foo.class); So your generator will be called. It can generate a FooImpl class that extends the Foo class and override the bar method as follow: public class FooImpl extends Foo { public void bar() { Log.log(begin of bar); try { SecurityContext.checkAuthorized(); super.bar(); } finally { Log.log(end of bar); } } } Where Log.log print some logs and SecurityContext.checkAuthorized throws an error is the user is not authorized. This could be funny and not really hard to do. Olivier On 11 juin, 18:09, Kevin Qiu kevin.jing@gmail.com wrote: Hi, I know GWT can generate Java source code with deferred binding. But sometimes, I don't want to generate a new implementation, but based on some annotations, I want to have the ability of injecting code at compile time. e.g., with the class below public class Foo { @Log public void bar() { @CheckPermission dosomething(); } } At compile time, I want to have the ability to get the annotations available on items, and inject code according to my application logic. So here, the compiler should see: public class Foo { public void bar() { log(begin); if (hasPermission()) { doSomething(); } else { error(); } } } with the extra code being injected. I'm wondering if anything in GWT allows me to do that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modify Java source file at compile time, possible?
thanks for the reply. the problem is (I should've pointed out) that my Foo class is already managed through dependency injection container (gin), which means there's already a deferred binding implementation generated by ginjector. On Fri, Jun 11, 2010 at 5:58 PM, Olivier Monaco olivier.mon...@free.frwrote: Hi Kevin, You can rewrite your Foo class as: public class Foo implements MagicClass { @Trace @Secured public void bar() { } } Then, associate a generator for sub-types of MagicClass and use GWT.create to instantiate a new Foo. GWT.create(Foo.class); So your generator will be called. It can generate a FooImpl class that extends the Foo class and override the bar method as follow: public class FooImpl extends Foo { public void bar() { Log.log(begin of bar); try { SecurityContext.checkAuthorized(); super.bar(); } finally { Log.log(end of bar); } } } Where Log.log print some logs and SecurityContext.checkAuthorized throws an error is the user is not authorized. This could be funny and not really hard to do. Olivier On 11 juin, 18:09, Kevin Qiu kevin.jing@gmail.com wrote: Hi, I know GWT can generate Java source code with deferred binding. But sometimes, I don't want to generate a new implementation, but based on some annotations, I want to have the ability of injecting code at compile time. e.g., with the class below public class Foo { @Log public void bar() { @CheckPermission dosomething(); } } At compile time, I want to have the ability to get the annotations available on items, and inject code according to my application logic. So here, the compiler should see: public class Foo { public void bar() { log(begin); if (hasPermission()) { doSomething(); } else { error(); } } } with the extra code being injected. I'm wondering if anything in GWT allows me to do that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT very slow on IE
Above all, are you sure you're not running hosted mode? That'll slow things down significantly. On Fri, Jun 11, 2010 at 11:56 AM, Prema Monica premamon...@gmail.comwrote: How many RPC calls do you have on this page? How is the performance on the other browsers? I believe IE 6 and 7 permit only 2 simultaneous requests. though IE8 permits 6. check out the link below for more details. http://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browser The correct approach would to first identify whether it is the server code or the client code which is causing the poor performance. most probably it should be the server code, you can check with firebug the time consumed for each RPC and then dig into the call which is consuming the maximum time. On Thu, Jun 10, 2010 at 1:20 PM, vinod vinodk...@yahoo.com wrote: Hi My GWT application takes 10 seconds on IE with GWT . without GWT it used to take less than second. 10 times slower with GWT. We are using GWT for first time in our application. And the app is very slow on IE. Business is very unhappy with performance. Can you please help me to bring this performance down to 1 sec. Thanks Regards Vinod -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
Hi Alejandro, I think you are replying to a post that I cancelled. I did so, because I managed to reproduce this behavior with a minimalistic piece of code so that it was clear that it must be a general issue. I found that here must be a problem in the GWT version that is not fixed yet: http://code.google.com/p/google-web-toolkit/issues/detail?id=4532 But let me come back to your code for centering the chess board: The main prerequisite is that you set (and therefore know) the pixel size of the inner box to 400,400. However, doing the same with a form was not possible for me since I am building on top of your code template. The reason is that I don't know the size of my form. I put all the widgets together in a panel (I tried every type) and add this panel to my DockLayoutPanel. Then it's immediately stretched, so that I cannot retrieve its natural size. But exactly this size is needed to do the centering as you did in your code. How would you do this? Can you help me again? Thank you Magnus On Jun 11, 6:54 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, I added the menu items you mention and it is working, tested in IE8. On Fri, Jun 11, 2010 at 1:42 AM, Magnus alpineblas...@googlemail.comwrote: Hi, there is a strange problem with the menubar in your example using IE8 (not with FF). When it opens a popup menu, the whole page disappears and only the popup menu is visible. The popup menu is added to the menubar as follows: MenuBar m= new MenuBar (true); m.addItem (Login, (Command)null); m.addItem (Logout,(Command)null); m.addItem (Register,(Command)null); m.addItem (Profile,(Command)null); menu.addItem (Account,m); What's that again? Magnus On 10 Jun., 13:08, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, thank you very much!!! This solution seems to be perfect for me! I played around a little bit. I Changed the base class for the ChessTable to DockLayoutPanel, to add some annotations to the chess board. This worked, too! Then I inserted a grid into the center section of ChessTable. It's clear that this was not centered. May I use the same mechanism to center this grid within the ChessTable? I understand the mechanism as follows: - create a new class, which implements RequiresResize - write a onResize method which centers this object within the parent Well, it works great on FF and IE. Good job! Thanks again! Magnus On 9 Jun., 20:31, Alejandro D. Garin aga...@gmail.com wrote: Just from the webappcreator. Nothing special. On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww. .. On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com wrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. ... google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%25252bunsubscr...@googlegroups.comgoogle-web-toolkit%2525252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/goog... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: app engine with hosted mode
No one has tried this? On Jun 9, 9:12 pm, alexh alexanderhar...@gmail.com wrote: Hi, I am currently developing a GWT application that will run on Google App Engine. I have chosen to use Maven and am running my application from the command line for debugging and testing. What I would like to be able to do is run my application in the GWT 2.0 hosted environment but still initialize the App Engine runtime. Can someone help me out with what I need to configure in order to make this happen? I'm currently using gwt-maven-plugin in my pom.xml. Any help with this would be greatly appreciated. Thanks, Alex -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Improving event handling, as initiated in 1.6
I don't suppose you could bump the wave Thomas? I seem to not have access to do anything but add blank replies... On May 31, 5:48 am, Brendan Kenny bcke...@gmail.com wrote: Rob -- You might have already seen this, but Thomas created a wave on the topic to get things movinghttps://wave.google.com/wave/#restored:wave:googlewave.com!w%252Bux7z... post I/O seems to be the general timeframe, but I know I'm eager to help create a more extensible system as well. Many more event types than I know where to put these days. On May 29, 1:01 pm, Robert Hanson iamroberthan...@gmail.com wrote: I was trying to implement the File API using GWT's events, and I came across this post and others. There is also an issue for this, which was accepted, but the last comment is from 2008 (http:// code.google.com/p/google-web-toolkit/issues/detail?id=2562). Just wondering if this is in the works (maybe already in the trunk), or if this is on the back-burner. Thanks. Rob -- Forwarded message -- From: Thomas Broyer t.bro...@gmail.com Date: Dec 21 2009, 8:01 pm Subject: Improving event handling, as initiated in 1.6 To: Google Web Toolkit Contributors Hi Googlers, GWT 1.6 introduced the new event handling, which is really great. It however suffers from some limitations, the one bugging me the most being the difficulty/impossibility to support new DomEvents, such as D'n'D events, ononline/onoffline, onstorage, or browser-specific events (those that can be emulated in other browsers: mouseenter/ mouseleave, focusin/focusout; and those that cannot: onhelp, onselect/ onselectionchange/onselectstart, onmozorientationchange, ongesturestart/change/end, ontouchstart/end/move/cancel, onorientation, etc.) This is because event's sinking is done byDOMImplusing a field of bits, instead of being baked intoDomEvent(using an Impl class with deferred binding by browser). How about, for instance, building it intoDomEvent::Type, so that addDomHandler could call type.sinkEvent (xxx)? Other improvements that I'd like to see happening re. events: - finally accurate (not necessarily 100%-identical cross-browser- wise) support for key/keyboard events (issues 72, 1061, 1529, and 3753, and issue 3640) see alsohttp://groups.google.fr/group/Google-Web-Toolkit-Contributors/t/e7059... - onfocus/onblur on Window (issue 68) - focus/blur event preview (issue 1431) - unsink events when there all handlers have been removed (issue 3619) - allow listening to events in the capture phase instead of only being able to listen to the bubble phase This last issue (3619) cannot be solved without either (as I proposed in comment #3 on the issue): - changing Widget::addDomHandler wrap the HandlerRegistration so that removeHandler() queues a finally command to eventually unsink the event - baking this in HandlerManager, eventually by introducing a DomHandlerManager extends HandlerManager to be used by widgets See alsohttp://groups.google.fr/group/google-web-toolkit-contributors/msg/cd4... I volunteer to provide patches, but I need to know what you, GWT team, want and want-not. I'd happily work on sorting those key/ keyboard events out, followed by rework of theDomEvent'ssinking extensibility and issue 3619. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Improving event handling, as initiated in 1.6
On Thu, Jun 10, 2010 at 11:59 PM, Dan ddum...@gmail.com wrote: I don't suppose you could bump the wave Thomas? I seem to not have access to do anything but add blank replies... I've added you to the wave. Don't know what happened as you're a member of GWT-Contrib, which has full access to the wave... -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RR : Support reserved class names in CssResource (issue600801)
LGTM http://gwt-code-reviews.appspot.com/600801/diff/2001/3001 File user/src/com/google/gwt/resources/Resources.gwt.xml (right): http://gwt-code-reviews.appspot.com/600801/diff/2001/3001#newcode77 user/src/com/google/gwt/resources/Resources.gwt.xml:77: extend-configuration-property name=CssResource.reservedClassPrefixes value=gwt- / Is there an existing gwt test you can extend to ensure this stays defined? http://gwt-code-reviews.appspot.com/600801/diff/2001/3002 File user/src/com/google/gwt/resources/rg/CssResourceGenerator.java (right): http://gwt-code-reviews.appspot.com/600801/diff/2001/3002#newcode778 user/src/com/google/gwt/resources/rg/CssResourceGenerator.java:778: for (String value : prop.getValues()) { value = value.trim() ? http://gwt-code-reviews.appspot.com/600801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix implementation of Math.sinh and Math.tanh (external issue 4991) (issue602801)
Reviewers: jat, Description: Fix implementation of Math.sinh and Math.tanh (external issue 4991) Please review this at http://gwt-code-reviews.appspot.com/602801/show Affected files: M user/super/com/google/gwt/emul/java/lang/Math.java M user/test/com/google/gwt/emultest/java/lang/MathTest.java Index: user/super/com/google/gwt/emul/java/lang/Math.java === --- user/super/com/google/gwt/emul/java/lang/Math.java (revision 8240) +++ user/super/com/google/gwt/emul/java/lang/Math.java (working copy) @@ -27,10 +27,12 @@ private static final double PI_UNDER_180 = 180.0 / PI; public static double abs(double x) { +//return (x = 0.0) ? 0.0 - x : x; return x 0 ? -x : x; } public static float abs(float x) { +// return (x = 0.0) ? 0.0 - x : x; return x 0 ? -x : x; } @@ -253,7 +255,7 @@ }-*/; public static native double sinh(double x) /*-{ -return Math.sinh(x); +return (Math.exp(x) - Math.exp(-x)) / 2.0; }-*/; public static native double sqrt(double x) /*-{ @@ -265,7 +267,8 @@ }-*/; public static native double tanh(double x) /*-{ -return Math.tanh(x); +var e2x = Math.exp(2.0 * x); +return (e2x - 1) / (e2x + 1); }-*/; public static double toDegrees(double x) { Index: user/test/com/google/gwt/emultest/java/lang/MathTest.java === --- user/test/com/google/gwt/emultest/java/lang/MathTest.java (revision 8240) +++ user/test/com/google/gwt/emultest/java/lang/MathTest.java (working copy) @@ -30,6 +30,17 @@ return com.google.gwt.emultest.EmulSuite; } + public void testAbs() { +double v = Math.abs(-1.0); +assertEquals(1.0, v); +v = Math.abs(1.0); +assertEquals(1.0, v); +v = Math.abs(-1.0 / Double.POSITIVE_INFINITY); // -0.0 +assertEquals(0.0, v); +v = Math.abs(0.0); +assertEquals(0.0, v); + } + public void testCbrt() { double v = Math.cbrt(1000.0); assertEquals(10.0, v, 1e-7); @@ -44,6 +55,15 @@ assertEquals(-1.0, v, 1e-7); v = Math.cos(Math.PI * 1.5); assertEquals(0.0, v, 1e-7); + } + + public void testCosh() { +double v = Math.cosh(0.0); +assertEquals(1.0, v, 1e-7); +v = Math.cosh(1.0); +assertEquals(1.5430806348, v, 1e-7); +v = Math.cosh(-1.0); +assertEquals(1.5430806348, v, 1e-7); } public void testLog() { @@ -66,4 +86,22 @@ v = Math.sin(Math.PI * 1.5); assertEquals(-1.0, v, 1e-7); } + + public void testSinh() { +double v = Math.sinh(0.0); +assertEquals(0.0, v, 1e-7); +v = Math.sinh(1.0); +assertEquals(1.175201193, v, 1e-7); +v = Math.sinh(-1.0); +assertEquals(-1.175201193, v, 1e-7); + } + + public void testTanh() { +double v = Math.tanh(0.0); +assertEquals(0.0, v, 1e-7); +v = Math.tanh(1.0); +assertEquals(0.761594155, v, 1e-7); +v = Math.tanh(-1.0); +assertEquals(-0.761594155, v, 1e-7); + } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix behavior of Double.compare and Double.compareTo (external issue 4935) (issue603801)
Reviewers: jat, Description: Fix behavior of Double.compare and Double.compareTo (external issue 4935) Please review this at http://gwt-code-reviews.appspot.com/603801/show Affected files: M user/super/com/google/gwt/emul/java/lang/Double.java M user/test/com/google/gwt/emultest/java/lang/DoubleTest.java Index: user/super/com/google/gwt/emul/java/lang/Double.java === --- user/super/com/google/gwt/emul/java/lang/Double.java(revision 8240) +++ user/super/com/google/gwt/emul/java/lang/Double.java(working copy) @@ -33,6 +33,16 @@ public static final int SIZE = 64; public static int compare(double x, double y) { +if (isNaN(x)) { + if (isNaN(y)) { +return 0; + } else { +return 1; + } +} else if (isNaN(y)) { + return -1; +} + if (x y) { return -1; } else if (x y) { @@ -89,13 +99,7 @@ } public int compareTo(Double b) { -if (value b.value) { - return -1; -} else if (value b.value) { - return 1; -} else { - return 0; -} +return compare(this.value, b.value); } @Override Index: user/test/com/google/gwt/emultest/java/lang/DoubleTest.java === --- user/test/com/google/gwt/emultest/java/lang/DoubleTest.java (revision 8240) +++ user/test/com/google/gwt/emultest/java/lang/DoubleTest.java (working copy) @@ -77,6 +77,34 @@ // Expected behavior } } + + public void testCompare() { +assertTrue(Double.compare(Double.NaN, Double.NaN) == 0); +assertTrue(Double.compare(0.0, Double.NaN) 0); +assertTrue(Double.compare(Double.NaN, Double.POSITIVE_INFINITY) 0); +assertTrue(Double.compare(Double.NaN, 0.0) 0); +assertTrue(Double.compare(Double.POSITIVE_INFINITY, Double.NaN) 0); +assertTrue(Double.compare(3.0, 500.0) 0); +assertTrue(Double.compare(500.0, 3.0) 0); +assertTrue(Double.compare(500.0, 500.0) == 0); + } + + public void testCompareTo() { +Double zero = new Double(0.0); +Double three = new Double(3.0); +Double fiveHundred = new Double(500.0); +Double infinity = new Double(Double.POSITIVE_INFINITY); +Double nan = new Double(Double.NaN); + +assertTrue(nan.compareTo(nan) == 0); +assertTrue(zero.compareTo(nan) 0); +assertTrue(nan.compareTo(infinity) 0); +assertTrue(nan.compareTo(zero) 0); +assertTrue(infinity.compareTo(nan) 0); +assertTrue(three.compareTo(fiveHundred) 0); +assertTrue(fiveHundred.compareTo(three) 0); +assertTrue(fiveHundred.compareTo(fiveHundred) == 0); + } public void testDoubleConstants() { assertTrue(Double.isNaN(Double.NaN)); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Restore deleted public method (issue604801)
Reviewers: Lex, Description: Restore deleted public method Please review this at http://gwt-code-reviews.appspot.com/604801/show Affected files: M user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStreamWriter.java Index: user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStreamWriter.java === --- user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStreamWriter.java (revision 8240) +++ user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStreamWriter.java (working copy) @@ -44,6 +44,11 @@ public static double[] getAsDoubleArray(long value) { int lowBits = (int) (value 0x); int highBits = (int) (value 32); +return makeLongComponents(lowBits, highBits); + } + + // Equivalent to getAsDoubleArray((long) highBits 32 | lowBits); + protected static double[] makeLongComponents(int lowBits, int highBits) { double high = highBits * TWO_PWR_32_DBL; double low = lowBits; if (lowBits 0) { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Restore deleted public method (issue604801)
Since the underlying implementation is so different, maybe we should break any users of this and instead introduce something that is less fragile, like a class using only translatable primitives that can serialize/deserialize itself. http://gwt-code-reviews.appspot.com/604801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix behavior of Double.compare and Double.compareTo (external issue 4935) (issue603801)
LGTM http://gwt-code-reviews.appspot.com/603801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Restore deleted public method (issue604801)
Right now, the standard RPC format hasn't changed (although deRPC has, since the whole point if to be able to eval the payload into the client). So anyone who has a custom RPC system needs a way to generate a double[2] from a long. Longer term, I'd like to transmit longs as an int[3] instead, in which case I would agree that it would be good to insulate subclassers from the details of the wire format. Dan On Fri, Jun 11, 2010 at 3:02 PM, j...@google.com wrote: Since the underlying implementation is so different, maybe we should break any users of this and instead introduce something that is less fragile, like a class using only translatable primitives that can serialize/deserialize itself. http://gwt-code-reviews.appspot.com/604801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Restore deleted public method (issue604801)
On Fri, Jun 11, 2010 at 3:07 PM, Daniel Rice (דניאל רייס) r...@google.comwrote: Right now, the standard RPC format hasn't changed (although deRPC has, since the whole point if to be able to eval the payload into the client). So anyone who has a custom RPC system needs a way to generate a double[2] from a long. Ok. Longer term, I'd like to transmit longs as an int[3] instead, in which case I would agree that it would be good to insulate subclassers from the details of the wire format. Since it is actually going to be transmitted as ASCII characters anyway, I am not sure it is better than just sending the string representation of the long and processing it normally rather than parsing multiple values. Especially currently where the work to parse two doubles and convert them to 3 ints seems far more than just doing the straight parse anyway, and it also makes the server-side much simpler. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Implemented Array and descendants as overlay types. Simplified Assertion convenience methods. Fi... (issue605801)
Reviewers: Dan Rice, Description: Implemented Array and descendants as overlay types. Simplified Assertion convenience methods. Fixed code style issues. Review by: r...@google.com Please review this at http://gwt-code-reviews.appspot.com/605801/show Affected files: M /bikeshed/src/com/google/gwt/collections/Assertions.java M /bikeshed/src/com/google/gwt/collections/ImmutableArrayEmptyImpl.java M /bikeshed/src/com/google/gwt/collections/ImmutableArrayImpl.java M /bikeshed/src/com/google/gwt/collections/MutableArray.java A /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/Array.java A /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/CollectionFactory.java A /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArray.java A /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArrayEmptyImpl.java M /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArrayImpl.java M /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java M /bikeshed/test-super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArrayInternalTest.java M /bikeshed/test/com/google/gwt/collections/CollectionsServerSideTestSuite.java A /bikeshed/test/com/google/gwt/collections/ImmutableArrayInternalTest.java M /bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java M /bikeshed/test/com/google/gwt/collections/MutableArrayTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Implemented Array and descendants as overlay types. Simplified Assertion convenience methods. Fi... (issue500801)
I've reposted this patch based on the branch at https://google-web-toolkit.googlecode.com/branches/lwc-gwt-migration, please review there On 2010/05/10 18:38:14, rchandia wrote: http://gwt-code-reviews.appspot.com/500801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix implementation of Math.sinh and Math.tanh (external issue 4991) (issue602801)
LGTM if the extra comments are removed and the JRE compatibility question is checked. http://gwt-code-reviews.appspot.com/602801/diff/1/2 File user/super/com/google/gwt/emul/java/lang/Math.java (right): http://gwt-code-reviews.appspot.com/602801/diff/1/2#newcode30 user/super/com/google/gwt/emul/java/lang/Math.java:30: //return (x = 0.0) ? 0.0 - x : x; Why are these comments being added? http://gwt-code-reviews.appspot.com/602801/diff/1/2#newcode258 user/super/com/google/gwt/emul/java/lang/Math.java:258: return (Math.exp(x) - Math.exp(-x)) / 2.0; On these, do we need to do anything special with NaNs/infinity to get JRE-compatible behavior? http://gwt-code-reviews.appspot.com/602801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Implemented Array and descendants as overlay types. Simplified Assertion convenience methods. Fi... (issue500801)
(I pressed send too soon) I've reposted this patch based on the branch at https://google-web-toolkit.googlecode.com/branches/lwc-gwt-migration, please review now at http://gwt-code-reviews.appspot.com/605801 On 2010/05/10 18:38:14, rchandia wrote: http://gwt-code-reviews.appspot.com/500801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add new LongLib test case (issue607801)
Reviewers: jat, Description: Add new LongLib test case Please review this at http://gwt-code-reviews.appspot.com/607801/show Affected files: M dev/core/super/com/google/gwt/lang/LongLibBase.java A dev/core/test/com/google/gwt/lang/LongLibTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix implementation of Math.sinh and Math.tanh (external issue 4991) (issue602801)
http://gwt-code-reviews.appspot.com/602801/diff/1/2 File user/super/com/google/gwt/emul/java/lang/Math.java (right): http://gwt-code-reviews.appspot.com/602801/diff/1/2#newcode30 user/super/com/google/gwt/emul/java/lang/Math.java:30: //return (x = 0.0) ? 0.0 - x : x; Oops, I meant to test the behavior for -0 (if such a thing actually exists in JS). In Java, doing 'return x 0 ? -x : x' for x = -0 will return -0 instead of 0 as it should. On 2010/06/11 19:21:31, jat wrote: Why are these comments being added? http://gwt-code-reviews.appspot.com/602801/diff/1/2#newcode258 user/super/com/google/gwt/emul/java/lang/Math.java:258: return (Math.exp(x) - Math.exp(-x)) / 2.0; I've added a test case and made one needed fix. On 2010/06/11 19:21:31, jat wrote: On these, do we need to do anything special with NaNs/infinity to get JRE-compatible behavior? http://gwt-code-reviews.appspot.com/602801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8241 committed - Fix behavior of Double.compare and Double.compareTo (external issue 49...
Revision: 8241 Author: r...@google.com Date: Fri Jun 11 10:06:45 2010 Log: Fix behavior of Double.compare and Double.compareTo (external issue 4935) Review at http://gwt-code-reviews.appspot.com/603801 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8241 Modified: /trunk/user/super/com/google/gwt/emul/java/lang/Double.java /trunk/user/test/com/google/gwt/emultest/java/lang/DoubleTest.java === --- /trunk/user/super/com/google/gwt/emul/java/lang/Double.java Thu Apr 10 23:17:07 2008 +++ /trunk/user/super/com/google/gwt/emul/java/lang/Double.java Fri Jun 11 10:06:45 2010 @@ -33,6 +33,16 @@ public static final int SIZE = 64; public static int compare(double x, double y) { +if (isNaN(x)) { + if (isNaN(y)) { +return 0; + } else { +return 1; + } +} else if (isNaN(y)) { + return -1; +} + if (x y) { return -1; } else if (x y) { @@ -89,13 +99,7 @@ } public int compareTo(Double b) { -if (value b.value) { - return -1; -} else if (value b.value) { - return 1; -} else { - return 0; -} +return compare(this.value, b.value); } @Override === --- /trunk/user/test/com/google/gwt/emultest/java/lang/DoubleTest.java Thu Mar 25 14:04:46 2010 +++ /trunk/user/test/com/google/gwt/emultest/java/lang/DoubleTest.java Fri Jun 11 10:06:45 2010 @@ -77,6 +77,34 @@ // Expected behavior } } + + public void testCompare() { +assertTrue(Double.compare(Double.NaN, Double.NaN) == 0); +assertTrue(Double.compare(0.0, Double.NaN) 0); +assertTrue(Double.compare(Double.NaN, Double.POSITIVE_INFINITY) 0); +assertTrue(Double.compare(Double.NaN, 0.0) 0); +assertTrue(Double.compare(Double.POSITIVE_INFINITY, Double.NaN) 0); +assertTrue(Double.compare(3.0, 500.0) 0); +assertTrue(Double.compare(500.0, 3.0) 0); +assertTrue(Double.compare(500.0, 500.0) == 0); + } + + public void testCompareTo() { +Double zero = new Double(0.0); +Double three = new Double(3.0); +Double fiveHundred = new Double(500.0); +Double infinity = new Double(Double.POSITIVE_INFINITY); +Double nan = new Double(Double.NaN); + +assertTrue(nan.compareTo(nan) == 0); +assertTrue(zero.compareTo(nan) 0); +assertTrue(nan.compareTo(infinity) 0); +assertTrue(nan.compareTo(zero) 0); +assertTrue(infinity.compareTo(nan) 0); +assertTrue(three.compareTo(fiveHundred) 0); +assertTrue(fiveHundred.compareTo(three) 0); +assertTrue(fiveHundred.compareTo(fiveHundred) == 0); + } public void testDoubleConstants() { assertTrue(Double.isNaN(Double.NaN)); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix implementation of Math.sinh and Math.tanh (external issue 4991) (issue602801)
http://gwt-code-reviews.appspot.com/602801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Implemented Array and descendants as overlay types. Simplified Assertion convenience methods. Fi... (issue605801)
LGTM with nits http://gwt-code-reviews.appspot.com/605801/diff/1/2 File /bikeshed/src/com/google/gwt/collections/Assertions.java (right): http://gwt-code-reviews.appspot.com/605801/diff/1/2#newcode24 /bikeshed/src/com/google/gwt/collections/Assertions.java:24: * Needs comment http://gwt-code-reviews.appspot.com/605801/diff/1/5 File /bikeshed/src/com/google/gwt/collections/MutableArray.java (right): http://gwt-code-reviews.appspot.com/605801/diff/1/5#newcode25 /bikeshed/src/com/google/gwt/collections/MutableArray.java:25: public class MutableArrayE extends ArrayE { Would it make more sense to declare the whole class final? http://gwt-code-reviews.appspot.com/605801/diff/1/5#newcode52 /bikeshed/src/com/google/gwt/collections/MutableArray.java:52: * Creates an immutable array based on this one. Also marks this object as read-only. line wrap http://gwt-code-reviews.appspot.com/605801/diff/1/7 File /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/CollectionFactory.java (right): http://gwt-code-reviews.appspot.com/605801/diff/1/7#newcode21 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/CollectionFactory.java:21: * Made to be switched out using super source even while Collections itself isn't. line wrap http://gwt-code-reviews.appspot.com/605801/diff/1/7#newcode24 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/CollectionFactory.java:24: doc http://gwt-code-reviews.appspot.com/605801/diff/1/7#newcode28 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/CollectionFactory.java:28: doc http://gwt-code-reviews.appspot.com/605801/diff/1/7#newcode34 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/CollectionFactory.java:34: doc http://gwt-code-reviews.appspot.com/605801/diff/1/11 File /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java (right): http://gwt-code-reviews.appspot.com/605801/diff/1/11#newcode24 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:24: public class MutableArrayE extends ArrayE { Mark class as final rather than each method? http://gwt-code-reviews.appspot.com/605801/diff/1/11#newcode46 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:46: * read-only. After calling {...@code freeze()}, only use methods from Something is wrong with the text here, looks like different pieces got pasted together ungrammatically. http://gwt-code-reviews.appspot.com/605801/diff/1/11#newcode56 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:56: * Inserts {...@code element} before the element residing at {...@code index}. element - elem http://gwt-code-reviews.appspot.com/605801/diff/1/11#newcode174 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:174: var fillStart; fillstart is unused, remove http://gwt-code-reviews.appspot.com/605801/diff/1/11#newcode175 /bikeshed/super/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:175: var i; Declare 'i' where it is used ('for (var i...') http://gwt-code-reviews.appspot.com/605801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: A new model for external types (issue589801)
I haven't been keeping up on the design of this, but the code-gen discussion got my interest. Now that it can model classes and interfaces, do you see this as being adaptable to supporting an exported type mechanism? That is, if a given type could be tagged external via some annotation (@Export), alter code-gen for that type to implement exported semantics? (visible methods have non-obfuscated, non-pruned, non-staticified siblings visible to separate compiled code/hand written JS) ? e.g. @Export class Foo { public String getBar() { return this.bar; } } - Foo is an external type implicitly, @Export annotation available for query code-gen produces _ = FooSeed.prototype = _.getBar = _.xG = function() { return this.bar; } On Fri, Jun 11, 2010 at 6:00 PM, sco...@google.com wrote: Ping. Is everyone happy with this change? http://gwt-code-reviews.appspot.com/589801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors