Very rare error window (Failed to parse: ?xml version=1.0...)
Hello, see, I have an application in GWT and i have one panel to call a servlet that I generate a pdf. Well, the fact is that I start to generate. On 1 well, the 2nd well, etc ... Until there comes a point, I do not know if stress or that I miss a window of error in the browser that puts something like this: Failed to parse: ? Xml version = 1.0 encoding = UTF-8? soap: Envelope xmlns: xsi = http://www.w3.org/2001/XMLSchema- instanceam p; am p; qu ot; xmlns: xsd = http://ww ... Anyway, after that I get the first time, begins to get out more often. I can continue to generate pdf's but after 2 attempts or so and the application breaks the connection to the database and I raise an exception servlet. The exception I imagine that will go on the root window, but I've been mulling over a time and I can not know where you can be wrong. The exception in the servlet I have almost certainly is the window that error, but the error that I do not know where happens. If anyone can help me out, I appreciate it. Regards. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Updated to GWT 2.3 - Still no Canvas support in IE9
Has nobody an idea? :-( Right now it's not a big issue, that it only works with Firefox, Opera and Chrome, because I'm doing the base implementationbut the customer of the first real project only accepts the internet explorer, so it would be great to be able to test the application with the IE9. If you need more information about my project (for example XML-Files), just let me know! Thanks Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/sUzOBndJq0AJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Load Testing GoogleWebToolKit
You could use something like Apache JMeter to capture and replay requests to a variety of your services. There is no need for a real browser to hammer the various services that your server makes available to the client app. On Jul 9, 8:47 am, Alex anew...@gmail.com wrote: Hey, I'm working with a research group with University of Southern California and we're building a web passed game using GWT. Now we would like to test to make sure it can handle multiple clients and that concurrency on the server is handled properly. Does anyone have any recommendations on load testing tools that we could use? Also would it be possible to start multiple client threads that send requests to a GWT server and use Junit to verify that information is being returned properly? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ways to reduce GWT compiled code size
I have one app in which users may go entire sessions without accessing some places (I use Places Activities pattern), and in such cases code-splitting helps a lot. I have another app, in which users are expected to visit all places. In this case code-splitting helps to reduce the initial load, but ultimately the entire compiled code has to be loaded. It is not a big deal for desktop apps (assuming good connection speeds), but I was planning to use GWT for mobile versions of these apps, and the compiled size scares me. So far it looks to me that GWT is not the right choice for a mobile app. I hope to be convinced otherwise. A native app with the same functionality will be many times smaller, but it's a lot of extra work to write a native app for each mobile platform. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
NumberFormat and German Locale
I have severe problems, understanding and using com.google.gwt.i18n.client.Numberformat, hoping somebody out there can help and enlighten me. When I try to get a formatter via NumberFormat.getFormat(pattern) I get an InvalidPatternException even so my pattern is valid within the german locale, eg #.##0,0##. I know that the locale is set correctly and used by my app, because all the default texts, eg when loading data, show up in german. The documentation (and posts in various forms) say, that NumberFormat uses the default locale to get a formatter, with a specific pattern, which I assume in my case is de_DE, because it is set to this. So what am I doing wrong, am I missing? I'm using GWT 2.3 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NumberFormat and German Locale
Default locale is actually default, not necessarily the local set. I don't have access to my code at the moment so I'll have to do this from the top of my head and without actually working code... but I'll give it a try. When a new user accesses the app I check the locale, to see what this is set to, default or something else, if it is set to default then I force it to the locale inferred by the user's IP address, if I have this local available otherwise I set it to English. There is such a thing as default in the list of locale's which usually is _EN as far as I know. I think what you are seeing is that the default locale you are using is actually default (_EN) thus the number format is most likely set to #,##0.0## instead of the #.##0,0## you are trying to use. I would suggest simply telling the number formatter to use the _DE format (or simply the same as the locale is set for for the user ;-) Sorry for the lack of code, that the explanation is clear enough without it. Regards, Rob On Mon, Jul 11, 2011 at 10:06 AM, tdk kloe...@ics.de wrote: I have severe problems, understanding and using com.google.gwt.i18n.client.Numberformat, hoping somebody out there can help and enlighten me. When I try to get a formatter via NumberFormat.getFormat(pattern) I get an InvalidPatternException even so my pattern is valid within the german locale, eg #.##0,0##. I know that the locale is set correctly and used by my app, because all the default texts, eg when loading data, show up in german. The documentation (and posts in various forms) say, that NumberFormat uses the default locale to get a formatter, with a specific pattern, which I assume in my case is de_DE, because it is set to this. So what am I doing wrong, am I missing? I'm using GWT 2.3 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NumberFormat and German Locale
In a pattern, a dot is always the decimal separator and a comma always represents the thousands separator. When you render a number using the pattern, those separators might appear differently depending on the locale (e.g. the decimal separator being a comma and the thousands separator being a dot). As Rob said, the default locale is not the locale used by default, it's the locale called 'default' (Java would call it the ROOThttp://download.oracle.com/javase/6/docs/api/java/util/Locale.html#ROOTlocale, and many systems call it 'C'; it is *not* 'en' though, even though it looks a lot like it). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-4XCY1-fqUQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Unable to Retrieve Json from Other Domains in Development Mode
Hi all, I got started with GWT a while ago and currently trying to get my web app to communicate with a server. The standard way to get JSON from server illustrated in the tutorial is to create a servelet. However I already have a server running and I (understandably) don't really want to port the whole server. I have this idea that I will just run the app in development mode (so the ui and javascript comes from the development mode server) and just make my program send requests for Json's to my server (which is running on the same machine) . For some reason, the requests were successful (I configured the server to write the response into terminal), but the app did not receive the response. I made it print a diagnosis message every time the request-Json code is run and it tells me that the response header is 0 and there is no content (response.getText() == ). In addition, when I compiled the code into production mode, the Json's work perfectly. Is it a conscious design choice to make apps in development mode ignore messages from other server? A bug? Or, most likely, did I make any stupid mistake? Thanks all, Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to Retrieve Json from Other Domains in Development Mode
You might be hitting the Same Origin Policy. In your case though, you should be able to just run the DevMode in -noserver mode: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2V_688ceYmIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Getting modified GWT compiler artifact
Is there a way to easily modify an artifact within a linker? To be more specific, I'd like to modify JS in CompilationResult arifacts. I can easily get to JS of a CompilationResult artifact but I cannot see a way to easily modify it. I guess artifacts cannot be modified, but is there maybe a method that would allow one to make a copy of artifact which then could be modified? A linker could then put a modified copy into artifactSet. Or is there some other solution to this problem? Marko -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hdC6tjowCFwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ways to reduce GWT compiled code size
Have you tried appcelerator ? http://www.appcelerator.com/ No need to compile for different platforms. 2011/7/11 Andrei vol...@spiraluniverseinc.com I have one app in which users may go entire sessions without accessing some places (I use Places Activities pattern), and in such cases code-splitting helps a lot. I have another app, in which users are expected to visit all places. In this case code-splitting helps to reduce the initial load, but ultimately the entire compiled code has to be loaded. It is not a big deal for desktop apps (assuming good connection speeds), but I was planning to use GWT for mobile versions of these apps, and the compiled size scares me. So far it looks to me that GWT is not the right choice for a mobile app. I hope to be convinced otherwise. A native app with the same functionality will be many times smaller, but it's a lot of extra work to write a native app for each mobile platform. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Call on a GWT module from a servlet
You can have the servlet output an html page that loads your gwt app (that is, it load the yourApp.nocache.js) http://code.google.com/intl/pt-BR/webtoolkit/articles/dynamic_host_page.html#servlet On Mon, Jul 11, 2011 at 1:38 AM, Sethu writetose...@googlemail.com wrote: Hi, I am little confused, the subject does not describe correctly what I need to do. Here's the thing: I have a GWT application which I need to integrate with a third party payment gateway. To make this work, I need to make my GWT application send a few parameters via a form and post it to a URL that the payment gateway has given me. That's easy to do, I create a FormPanel and created all the inputs and the hidden fields that are required and I can submit to the URL. The problem is the redirect URL. After the payment gateway process completes, it will redirect the user to my GWT application. I thought I'll create a servlet to receive the response. I can handle the response, make updates to my database. But now how do I transfer the control back to the GWT client module to show the user what has happened? I need to say it was successful or not and whether an email was sent or not extra. Also I need to share a serial ID with them. That's what they purchase actually. Could someone tell me if this the right way of doing this? Or should the redirect URL be handled by the client modules first and then from there I should route via RPC to a RemoteService? In that case, how do I send all the other stuff the payment gateway has sent to me in the request? Thanks Sethu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Instructions on how to use gwt 2.4rc ?
Same problem here. Anyone got a solution? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
caching activity in a field in activity mapper - good or bad?
i have a bad feeling by caching every (not to be constructed on every place change)-activity via the boiler plate overkill (imho it is): CachingActivityMapper, FilteredActivityMapper, overriding equals/clone of the place (in a contract breaking way?, i just created an abstract place with special equals/hashCode for this use case) only to get an existing instance of an activity. But if i understand the current documentation of activities and places correctly, this boiler plate way is the default way?! but what about the way jens proposed here https://groups.google.com/d/msg/google-web-toolkit/OsDpLtBoTQo/sprjJ37dfeAJ(and probably many users do it like this way - expect me?!) - caching the activity in a filed of a normal mapper? or the other way around: for what use cases a cached activity/new activity should be returned based on the decision - is place equal to old place? And is there a use case where this will work without overriding equals/hashCode? thx in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LSM2elctk0sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Graph Visualization
GWT is eminently suitable. Please see http://code.google.com/p/gwt-graphics2d/. You may have to implement Affine Transformation matrix. GWT gives you all the power of object oriented programming in the browser. You can implement picking very nicely. Composite and Visitor patterns will be handy for picking and transformations. J.Ganesan www.DataStoreGwt.com On Jul 8, 6:57 am, Kyle Anderson kyleanderso...@gmail.com wrote: I have a list of nodes and edges, and I would like to visualize this as a graph. The graph should be editable. The user can add/delete/ move nodes and edges. In some cases, there will be geolocation information available (meaning that the layout is already defined). In other cases, this information is not available, and the layout should be generated and placed on a blank background. Is GWT suitable for this? I know that GWT works nicely with Google Maps, which works if geolocation information is available. I have also seen the jGraph library, which provides a nice way to generate and modify graphs. However, I don't believe this can be imported into GWT. Thanks in advance. Kyle -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Aw: Updated to GWT 2.3 - Still no Canvas support in IE9
Dennis, GWT's Canvas wrapper should be fully supported in IE9. There's a demo of it in action (with source) here: http://gwtcanvasdemo.appspot.com One thing to try--do you have !DOCTYPE HTML at the top of your html file? Without it, IE9 will switch to various previous rendering or document modes. Philip -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iLj8JojfPi4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: Aw: Updated to GWT 2.3 - Still no Canvas support in IE9
Hi Philip, thanks for your reply. The GWT Canvas demo is working with my IE9, so the problem has to be within my application. I used the same method Canvas.createIfSupported to check if the Browser can handle the Canvas-Object, but in my application it returns false when using the IE9. :-( The doctype-Tag is set in my HTML-File, I attached it with this post. I also attached my WebVisu.gwt.xml-File, but most of them is commented out. Do you know any other files I can check? Best Regards Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B4-cwE7Ytu0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. Title: UniWare Mobile Monitoring System Your web browser must have _javascript_ enabled in order for this application to display correctly. ?xml version=1.0 encoding=UTF-8? module rename-to='webvisu' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- inherits name='com.google.gwt.http.HTTP'/ inherits name='com.google.gwt.xml.XML'/ !-- Specify the app entry point class. -- entry-point class='com.unitechnik.webVisu.client.WebVisu'/ !-- extend-property name=locale values=de/ -- !-- Specify the paths for translatable code-- source path='client'/ source path='shared'/ !-- Specify the browsers to compile for-- !-- set-property name=user.agent value=safari,ie6,gecko1_8 / -- /module
PlaceTokenizer and @Prefix
Hey, I try to implement some PlaceTokenizers, which indicate Token in a defined scope. E.g. I want some tokens ordered in Photo, resulting to: - Photo:AlbumList - Photo:Detail ... the GWT compiler is complaining about the usage of the same prefix more than once. This completely confuses me, as a prefix doesn't makes sense to me if its unique. What part did I misunderstand? Thx, Andi @Prefix(Photo) public static class Tokenizer implements PlaceTokenizerAlbumListPlace { /** * from http://tbroyer.posterous.com/gwt-21-places-part-ii * * The returned value will them be prepended with the PlaceTokenizer's * @Prefix and a colon as a separator, and the resulting String is used as the * history token. */ @Override public String getToken(AlbumListPlace place) { return place.getUserId(); } @Override public AlbumListPlace getPlace(String token) { return new AlbumListPlace(token); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: Aw: Updated to GWT 2.3 - Still no Canvas support in IE9
!-- set-property name=user.agent value=safari,ie6,gecko1_8 / Perhaps gwt compiler is somehow seeing an old copy of the WebVisu.gwt.xml file where this line is not commented? Did you tried to clean the project folder? On Mon, Jul 11, 2011 at 10:19 AM, dennis.heidelbach dennis.heidelb...@unitechnik.de wrote: Hi Philip, thanks for your reply. The GWT Canvas demo is working with my IE9, so the problem has to be within my application. I used the same method Canvas.createIfSupported to check if the Browser can handle the Canvas-Object, but in my application it returns false when using the IE9. :-( The doctype-Tag is set in my HTML-File, I attached it with this post. I also attached my WebVisu.gwt.xml-File, but most of them is commented out. Do you know any other files I can check? Best Regards Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B4-cwE7Ytu0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ways to reduce GWT compiled code size
Hi, Couple of tricks in personal experience. 1) Use concrete classes instead of interfaces, especially in case of collections, with interfaces compiler has to add all possible classes, as it does not which class at run time. 2) avoid iterators, use for loop 3) when we are using widgets - nothing much to do, but inside info may give little info, which is light weight, but reuse same widget in as many places as possible and avoid using all kinds of widgets, if no real reason. On Jul 11, 4:18 am, Alain Ekambi jazzmatad...@googlemail.com wrote: Have you tried appcelerator ? http://www.appcelerator.com/ No need to compile for different platforms. 2011/7/11 Andrei vol...@spiraluniverseinc.com I have one app in which users may go entire sessions without accessing some places (I use Places Activities pattern), and in such cases code-splitting helps a lot. I have another app, in which users are expected to visit all places. In this case code-splitting helps to reduce the initial load, but ultimately the entire compiled code has to be loaded. It is not a big deal for desktop apps (assuming good connection speeds), but I was planning to use GWT for mobile versions of these apps, and the compiled size scares me. So far it looks to me that GWT is not the right choice for a mobile app. I hope to be convinced otherwise. A native app with the same functionality will be many times smaller, but it's a lot of extra work to write a native app for each mobile platform. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Generics in deferred binding
I think that just doing this should be OK: AnimalCat animalImplCat = GWT.create(Animal.class); AnimalDog animalImplDog = GWT.create(Animal.class); The compile time generics will still be enforced during the GWT compile, but GWT.create(Animal.class) can fill both instances. Hope this helps, I have to say I was surprised this worked! On Jun 7, 11:13 pm, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Hello, I think what you wanted to explain is this:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... http://groups.google.com/group/google-web-toolkit/browse_thread/threa... From what I see, is about building a sub-interface for each class who wants access togeneric, isn´t it?? Do you know any way to use T and T can take several values (car.class, bus.class for example(which is what I can not understand))? 2011/6/7 Adolfo Panizo Touzon adolfo.pan...@gmail.com Ok. I understand. But when you said *declare a sub-interface that binds the type parameters*. Can you show me a simple example?? I don´t know the way to create a one generic sub-interface (create one interface for each type is simple, but one generic interface to bind all the types...¿?). Thanks a lot. 2011/6/7 Magno Machado magn...@gmail.com Here's an exemple: https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumns https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumnsHowever, as Thomas already said, you can't inspect the generic arguments passed directly into GWT.create(). That is, given: GWT.create(FooBar.class), you can't see Bar. You can, however, inspect the generic arguments passed on the superclass or implemented interfaces On Tue, Jun 7, 2011 at 8:31 AM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Before you ask a question. If you don´t mind, show me a class that implements the interface Columns , and the corresponding call GWT.create (class that implements Columns ); My specific question is I don´t know the form to assign the genereic type to the interface [interface columsT] How can I specify that T is Car.class or Bus.car (for example)??. Thanks! 2011/6/7 Magno Machado magn...@gmail.com Check out what I did here https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java... https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java...I think what you want is lines 43/44 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Hi Magno, thank you very much foir your answer. So, ohter quickly question. Do you (or anybody) know any form to use generics in deferred binding? Thanks. 2011/6/6 Magno Machado magn...@gmail.com The class that your generator return doesn't exist in the project, it is always created on the fly during devmode or at compile-time You must have, however, a marker class/interface which is what will trigger the generator (it's the type that you will pass to GWT.create) On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Hi Magno, but, that subclass I must have created previously, no? That is, in my project I have to have one *nameOfSubClass*.java with the name of this subclass, no? 2011/6/6 Magno Machado magn...@gmail.com You can't modify a class, but your generator can generate a subclass and override some method if they're not final On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Hi, there any way to add code to an existing class when I'm working on a Generator? Thanks! -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at
Re: Load Testing GoogleWebToolKit
I've used Neoload for load testing GWT apps. The trial version allows you to run load tests with 10 users. For me it worked really nice. Regards, Ionut On Jul 9, 1:47 am, Alex anew...@gmail.com wrote: Hey, I'm working with a research group with University of Southern California and we're building a web passed game using GWT. Now we would like to test to make sure it can handle multiple clients and that concurrency on the server is handled properly. Does anyone have any recommendations on load testing tools that we could use? Also would it be possible to start multiple client threads that send requests to a GWT server and use Junit to verify that information is being returned properly? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Inifnite prompting to download GWT Developer Plugin
Hello- I'm using GWT 2.3 and I have IE 8. When I run in Development Mode and use the 'Copy to Clipboard', paste the URL into IE, I get a yellow webpage saying Development Mode requires the Google Web Toolkit Developer Plugin with a link to download the plugin for IE. I click on the link, it downloads and installs, but all of this repeats whenever I try to use IE with Development Mode, even after restarting IE, uninstalling the GWT plugin and re-downloading/installing. My OS is Vista. It's not a problem for other browser types but I'm trying to troubleshoot specific issues with IE, so need to use IE with Development Mode. How can I get past this? Many thanks... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ListBox with multiple selection
Hello! I'm trying to draw a ListBox with multiple selection. My problem is when I want to collect the selected values from de ListBox. If I call getItemText method I only obtain one value, but I would like to get all selected values. How could I do it? Thanks! Nice day! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT UiBinder @UiTemplate location
Hi, for the last weeks as we using GWT and its UiBinder mechanism, we put the .ui.xml files in the same directory where the counterpart .class files are. It worked always as we wished it to do. Now we want to have multiple .ui.xml files to exist in different packages, but not as subdirectories of the uibinder foo.class file directory. So we use the @UiTemplate annotation to get the uibinder foo.ui.xml file. As the documentation says, we put in the path referring the desired .ui.xml. But for some reason, when we insert a ../ to CD to parent directories, Eclipse accept this, but the GWT compiler replaces all dots with slashes. So when we do that, the result of a given path e.g. ../../foo/hoo.ui.xml is //foo/hoo.ui.xml, what the UiBinderGenarator cannot find by giving us the following compiler error: Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [ERROR] Unable to find resource: //foo/ho... Is this a security mechanism? When we try to set a absolute path (e.g. com.proj.client.A.foo.hoo.ui.xml), both Eclipse and GWT can't find the ui.xml. In the sources of the UiBinderGenerator I can see, that all dots are replaced by slashes, for which reason this is done? Package structure we want: client .class files: com.proj.client.classes.foo L hoo.java client .ui.xml files: com.proj.client.A.foo L hoo.ui.xml foo.java: @UiTemplate(../../A/foo.ui.xml) proj.gwt.xml: !-- Specify the paths for translatable code -- source path='client/classes' / source path='client/A' / Why our plan doesn't work? Do we forget something? Thank you. Regards, Maxim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I render celltable data in chunks?
I know this might seem like a ridiculous idea, but have you considered not using a celltable? I suspect you are getting a bottleneck while ie6 renders the table, therefore batching may not resolve the problem. I'm fairly new to GWT and have been experimenting with the ListEditor, and using it to maintain a list of widgets. As long as the editor widgets are kept lean, I've been getting fairly good performance even with large data sets. If you can draw the table, using DIVs instead of a TABLE, you might get the performance you need. The drawback is that you loss a lot of the grid functionality. I realise that this doesn't answer your question, but it might help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ListBox with multiple selection
Associate a MultiSelectionModel with your list box. On the selection change event, you can do the following selectionModel.getSelectedSet(); this would fetch you all selected items. Thanks Ashwin On Mon, Jul 11, 2011 at 6:09 PM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hello! I'm trying to draw a ListBox with multiple selection. My problem is when I want to collect the selected values from de ListBox. If I call getItemText method I only obtain one value, but I would like to get all selected values. How could I do it? Thanks! Nice day! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and Value Proxy for Objectify Key problem
Look into Appengine Objectify project to answer that question. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qxXvPxv4tggJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ways to reduce GWT compiled code size
Have you seen http://www.google.com/events/io/2011/sessions/high-performance-gwt-best-practices-for-writing-smaller-faster-apps.html? Also check out the performance-related sessions from previous years at I/O. Your observations appear sound: if you add a widget with lots of dependencies, you're going to see a significant bump in code size. It has often been noted that RequestFactory is bigger than RPC in terms of initial download; however, if you include a Command pattern implementation and the extra classes required to use Command pattern with GWT RPC, I doubt it's much different. And RequestFactory should give you smaller payloads than GWT RPC because it sends only deltas and doesn't send the whole object graph by default. It sounds like you're taking the right approach. Try out different widgets / features for your application and measure the resulting size (hopefully you're using -compileReport to get additional size-related info?) Because the GWT compiler does whole program optimization, this is the only way to get results that are accurate for your app. /dmc On Sun, Jul 10, 2011 at 1:20 AM, Andrei vol...@spiraluniverseinc.comwrote: Concerns about the size of GWT complied code has been raised several times in this forum, but a typical response was Relax, dude! with slight variations like It can be cached and Don't forget about gzip. I am still concerned, though, that even the most simple GWT app easily tops 150kB in compile size. I started looking at the compile reports, and I noticed some interesting things. (1) I imported java.util.Comparator in one place in the app, and it immediately added a ton of Java classes to the compiled code, including Java.util.Date, java.lang.Float, java.lang.Double, and so on. I don't use this classes anywhere in the app, and the compile report traces them all to java.util.Comparator. I did not measure precisely, but I've got around a 10kB bump in the compiled app size after using comparator once (and I use it to compare String properties of two objects). (2) I don't use dates or time anywhere on the client side. I have one server-side method which uses dates by adding a timestamp to an Appengine Datastore. So I was very surprised to see java.sql.Timestamp, java.sql.Date, and java.sql.Time, in my compile report. These classes are not big, but why they were included? I don't send date or time over the wire (and I don't use sql), but I see them traced to com.google.gwt.user.client.rpc.core.java.sql.Time_CustomFieldSerializer::instantiate. (3) In my app many classes are traced exclusively to DockLayoutPanel, including java.util.AbstractHashMap, java.util.HashSet, and the like. Is there an assessment anywhere of how heavy each widget is in terms of its impact on the compile size? It's very hard to figure out as each widget has a different impact based on which other widgets are already present, and some widgets have no real alternative anyway (CellTable is very heavy, for example, but I have to use it regardless), but any tips/guidance would be appreciated. (4) I never used anything touch-related in the app, but com.google.gwt.touch.client is present in the compile report. All of its subclasses trace back to ScrollPanel. I guess it may be useful in some use cases, but I would like to have a way to turn it off when I offer a separate GWT file for mobile devices. (5) I replaced RPC calls with RequestFactory, and the compile size ballooned by 150kB (the app had only two RPC calls at that stage). The benefits of RequestFactory quickly paled in my eyes. Did I do something wrong, or other people had similar results? I understand that as the app gets bigger and bigger (and the Internet faster), these issues will be comparatively less and less important. I do have, however, customers with slower connections / in remote locations / on expensive mobile data plans, for whom initial download size matters. Not to mention extra bandwidth costs which grow in line with the number of customers (Isn't that the reason Gmail, YouTube, and Google+ are not written in GWT?). I would be grateful if the experts on this forum share their tips on reducing the compile size of the app. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this
Re: How to fire an CloseEvent on a DisclosurePanel?
To fire a close event on a widget, you can use the static method in CloseEvent: CloseEvent.fire(myDisclosurePanelSource, myDisclosurePanelSource); However, that's not going to animate the closing...the event firing just notifies any external handlers that the panel has closed. Are you sure you have animation turned on for the DisclosurePanel (setAnimationEnabled(true))? If so, just calling setOpen(false) should show the panel closing animation, you don't have to do anything special to run it. On Jul 10, 3:34 pm, Rob Coops rco...@gmail.com wrote: Hi all, I've been pulling my hair out for a while now but I just cant figure it out... The idea is really simple a bunch of DisclosurePanels in a VerticalPanel, whenever one of the DisclosurePanels opens all others close. The simple way is just loop over the widgets in the Vertical panel, check if they match the opening panel, if not call setOpen(false); and hey presto there can be only one. But I want the animation with that because without it the result is just not pretty enough. So I looked for a setOpen(boolean state, boolean animate); but that does not exist. Then a simple call to the panel telling it to close and the rest should sort it self out. So I call DisclosurePanel.fireEvent( ... and there is where I get stuck as I cannot figure out how to fire the CloseEvent. My java knowledge or well lack there of is most likely what is causing me not to be able to work it but I'm trying to learn. Anyway I have spend a good few hours with Google and the result is that no one seems to want to fire the CloseEvent (just catch it on all different kinds of panels and the browser window it self). I spend some time looking at the test cases which should and do test the opening and closing in an automated way but the code that is being used there but for a test case the animation is not really possible to test so here the only thing that is done is calling setOpen(true/false)) which is not what I am looking for. If anyone out there knows how to do something as simple as programatically click on the DisclosurePanel header then I hope they will share this knowledge with me :-) Regards, Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: PlaceTokenizer and @Prefix
If you add -gen path/folder to your compiler args (or to dev mode args) you can see what GWT generates for you. That often helps to understand whats going on under the hood. If I remember correctly GWT generates a PlaceHistoryMapper for you that contains a long if - else if - else if - else block which checks all the prefixes you have defined in your tokenizers against the prefix in the url and then uses the corresponding tokenizer. If you have two tokenizer with the same prefix the code generator does not know which tokenizer to use for a given url. In your case you would just have a single PhotoPlace (with its PhotoPlaceTokenizer) whose tokens would be AlbumList and Detail. In your ActivityMapper you could return different activities based on the token. Alternatively you can create an abstract PhotoPlace and let PhotoDetailPlace and PhotoAlbumListPlace extend from it. Then create a PhotoPlaceTokenizer that extends TokenizerPhotoPlace and you are now in charge of both places in the same Tokenizer. That way you have moved some logic from ActivityMapper into the Tokenizer (basically the if that dispatches the token to return the correct activity will now return the correct place based on the token). -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WuYEZTvCahQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: Re: Aw: Updated to GWT 2.3 - Still no Canvas support in IE9
D'Oh, I found it...it's really embarrassing, but I forgot to remove the entry meta http-equiv=X-UA-Compatible content=IE=8 / from the WebVisu.html file...after deleting it and clearing the browser cache, everything worked fine! :-) However, thank you all for your time! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/RyJhDiBKfVsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.1+ Compiler issues
Hi I am upgrading my GWT app from 2.0 to 2.3. When I'm compiling with 2.1, 2.2 or 2.3 I am seeing a huge increase in the memory usage. I'm giving it 3Gb and its maxing this out. Any less than this and I am getting OutOfMemoryExceptions. I'm also noticing that its writing massive amounts of data to disk. It is writing gwt88282368723byte- cache to this directory C:\Users\MyName\AppData\Local\Temp\ . I can see previous files like this from 2.0 builds that range from 3MB - 10MB in size, but with GWT 2.3 the size of the byte-cache file is now 22GB! This is making my PC really sluggish and its pretty much unusable while I'm compiling. I'm wondering of anyone else has come across this with GWT 2.3? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceTokenizer and @Prefix
Jens, thanks a lot! I was also reading this: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a58c31280fc8a537 and had some similar idea like yours; only using an interface instead of the abstract ``PhotoPlace``. But was I was wondering about while reading the thread above: we have lots of ``PlaceTokenizer``, all without a Prefix annotation. How does it come this works? $ ack --type=java --ignore-dir=target --ignore-dir=test 'implements PlaceTokenizer' . -B1 vz-gwt-main/src/main/java/net/vz/studivz/mobile/client/places/ StartPlace.java 17- 18:public static class Tokenizer implements PlaceTokenizerStartPlace { vz-gwt-widgets/src/main/java/net/vz/common/widgets/client/places/ AdExamplePlace.java 20- 21:public static class Tokenizer implements PlaceTokenizerAdExamplePlace { vz-gwt-widgets/src/main/java/net/vz/common/widgets/client/places/ BoardMessageCreatePlace.java 42- 43:public static class Tokenizer implements PlaceTokenizerBoardMessageCreatePlace { vz-gwt-widgets/src/main/java/net/vz/common/widgets/client/places/ BoardPlace.java 25- 26:public static class Tokenizer implements PlaceTokenizerBoardPlace { ... Cheers :) Andi On 11 Jul., 16:51, Jens jens.nehlme...@gmail.com wrote: If you add -gen path/folder to your compiler args (or to dev mode args) you can see what GWT generates for you. That often helps to understand whats going on under the hood. If I remember correctly GWT generates a PlaceHistoryMapper for you that contains a long if - else if - else if - else block which checks all the prefixes you have defined in your tokenizers against the prefix in the url and then uses the corresponding tokenizer. If you have two tokenizer with the same prefix the code generator does not know which tokenizer to use for a given url. In your case you would just have a single PhotoPlace (with its PhotoPlaceTokenizer) whose tokens would be AlbumList and Detail. In your ActivityMapper you could return different activities based on the token. Alternatively you can create an abstract PhotoPlace and let PhotoDetailPlace and PhotoAlbumListPlace extend from it. Then create a PhotoPlaceTokenizer that extends TokenizerPhotoPlace and you are now in charge of both places in the same Tokenizer. That way you have moved some logic from ActivityMapper into the Tokenizer (basically the if that dispatches the token to return the correct activity will now return the correct place based on the token). -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer Eclipse Problem
Hello, I am using Xubuntu. But perhaps the problem is really based in Ubuntu. Unfortunately, to switch to pure XFCE didn't solve the problem - but thanks. 2011/7/10 Marko Kotar kotarma...@yahoo.com: I found there is a problem with new desktop window manager. Switching to Ubuntu Classic in graphical login solves the problem. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Mark Schewe Seilerstr. 1 86153 Augsburg Phone: +49 (0)821 - 907 83 83 0 Mobile: +49 (0)1577 - 386 11 11 Fax: +49 (0)821 - 907 83 83 9 schewe.m...@gmail.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: PlaceTokenizer and @Prefix
Without a Prefix annotation the code generator will use the simple class name of corresponding place by default (and it knows the place because you parametrized the PlaceTokenizer interface with it). I guess you will see the same error if you try to provide two Tokenizers for the same place and both with no prefix annotation. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pfIrxsx21fQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Developpement mode paths/Production Paths(tomcat)
Hello GwtGroup, I'm having real huge issues with deploying my application to a server (Tomcat 5.5) Here is my war folder -War -WEB-INF -myapp.html -stock -myfile.fil My server side code must access myfile.fil When on developpement mode, I only use the relative path /stock/ myfile.fil. When deployed, the relative path move somewhere else (Tomcat5.5/) Is there any way to find how to fix that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Job Openings
As a moderator of this group, I reject almost a dozen job postings per day. Several per week actually relate to GWT, but even so are inconsistent with this forum's mission. However, I approved Jeff Burnham's post because I think there is some benefit in this discussion. The GWT team doesn't feel that it's our place to maintain a GWT jobs forum; however, if the community wants to take this on, we'll certainly be glad to help promote it. Also, if there are things you want recruiters to know, I'll be happy to write up a sticky post with info for recruiters (as well as a restatement of the job postings ban on this forum). In the mean time, if you're a GWT consultant looking for work, here's some advice I can offer as a former consultant. 1. The best jobs are those that find you, so make yourself findable. Write a GWT blog. Put GWT developer in your Google+ and LinkedIn profiles with a link to your Google Groups profile so recruiters can see how often you post on this group. Also put GWT consulting or something more descriptive in your signature so it shows up in every post on this group. Good recruiters know how to search Google Groups and StackOverflow to find the real experts. 2. Give a GWT talk at your local JUG or GTUG. Recruiters often frequent the larger JUGs and if you're giving the talk, you're their expert. 3. Get your resume in the database of every credible technical staffing shop you can find. Apply for every GWT job. Even if it's slightly over/under your abilities, that will get you in the recruiter's resume database. Put a link to your online profiles in your resume so they can read your blog, see how long you've been posting on this group, etc. 4. Post your resume in the various online job services like Dice and Monster. Don't just search for jobs--make yourself searchable. Many jobs are never posted--the recruiters search the online databases and contact you directly. Also make sure you update your resume in these services every couple months as recruiters tend to look for recent updates. Again, let me know where you want me to direct GWT job postings, and I'll be happy to help out. /dmc On Mon, Jul 11, 2011 at 12:07 AM, A. Stevko andy.ste...@gmail.com wrote: Without an appropriate alternative, I personally would like to encourage GWT job openings/availability to be posted here. Not job spam but GWT jobs. On Sun, Jul 10, 2011 at 8:32 PM, Hilco Wijbenga hilco.wijbe...@gmail.comwrote: On 10 July 2011 17:35, Jeff jeffrey.burn...@gmail.com wrote: However, your negative response was quite unnecessary when the link alone would do. Thanks for that by the way. Clearly he was being sarcastic. He was actually agreeing with your posting here since there is currently no real alternative. /end_discussion Nice one. Sort of like a double negative, though, don't you think? :-) That should probably be /discussion. ;-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request Factory More Secure ?
Hi Vincent, RequestFactory is not inherently any more or less secure that GWT RPC. With either approach, you should protect RPC calls for sensitive data with SSL and protect against XSRF attacks by sending a token with each request payload. For more info, see http://code.google.com/webtoolkit/doc/latest/DevGuideSecurity.html http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f0f74b0734f04a1c As for the second part of your question, you are correct. On the client side, RequestFactory works with proxy (interface) representations of entities. RequestFactory automatically converts between the proxy representation and the server-side entity when sending / receiving. /dmc On Sat, Jul 9, 2011 at 10:39 PM, Vincent François vincentfrancois.pro@ gmail.com wrote: Is it correct to think that Request Factory is more secure that GWT RPC ? The client does not handle a entity (objectify entity) but handles a proxy. Is it true ? Am I right ? -- Vincent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mWVdzvWclJQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ListBox with multiple selection
Ashwin, He said ListBox, not CellList. Jose, Two options: (1) Add a ChangeHandler to track changes as they happen; return the list as needed: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/ListBox.html#addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler) (2) Iterate through the list, calling this method for each item: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/ListBox.html#isItemSelected(int) On Jul 11, 7:12 am, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: Associate a MultiSelectionModel with your list box. On the selection change event, you can do the following selectionModel.getSelectedSet(); this would fetch you all selected items. Thanks Ashwin On Mon, Jul 11, 2011 at 6:09 PM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hello! I'm trying to draw a ListBox with multiple selection. My problem is when I want to collect the selected values from de ListBox. If I call getItemText method I only obtain one value, but I would like to get all selected values. How could I do it? Thanks! Nice day! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Job Openings
On 07/11/2011 08:35 AM, David Chandler wrote: As a moderator of this group, I reject almost a dozen job postings per day. Several per week actually relate to GWT, but even so are inconsistent with this forum's mission. However, I approved Jeff Burnham's post because I think there is some benefit in this discussion. The GWT team doesn't feel that it's our place to maintain a GWT jobs forum; however, if the community wants to take this on, we'll certainly be glad to help promote it. Also, if there are things you want recruiters to know, I'll be happy to write up a sticky post with info for recruiters (as well as a restatement of the job postings ban on this forum). In the mean time, if you're a GWT consultant looking for work, here's some advice I can offer as a former consultant. 1. The best jobs are those that find you, so make yourself findable. Write a GWT blog. Put GWT developer in your Google+ and LinkedIn profiles with a link to your Google Groups profile so recruiters can see how often you post on this group. Also put GWT consulting or something more descriptive in your signature so it shows up in every post on this group. Good recruiters know how to search Google Groups and StackOverflow to find the real experts. 2. Give a GWT talk at your local JUG or GTUG. Recruiters often frequent the larger JUGs and if you're giving the talk, you're their expert. 3. Get your resume in the database of every credible technical staffing shop you can find. Apply for every GWT job. Even if it's slightly over/under your abilities, that will get you in the recruiter's resume database. Put a link to your online profiles in your resume so they can read your blog, see how long you've been posting on this group, etc. 4. Post your resume in the various online job services like Dice and Monster. Don't just search for jobs--make yourself searchable. Many jobs are never posted--the recruiters search the online databases and contact you directly. Also make sure you update your resume in these services every couple months as recruiters tend to look for recent updates. Again, let me know where you want me to direct GWT job postings, and I'll be happy to help out. /dmc Well, that's a nice segue! To take nothing away from dmc's excellent advice, we still have the list out there. As I was moving manure this morning, I was thinking about this issue. To that end, I would like to propose that we share the moderation task. Given that the jobs list is a commons, we shouldn't ask Google employees to moderate the list, and we and us means those who subscribe to GWT users list. I should think that if we get somewhere between 5 and 10 volunteers, one person from that pool can moderate the jobs list for some period (nominally 2 weeks). At the end of that period, the next person in the list assumes the task. Perhaps a Google calendar to track each moderator's schedule. The idea is to share the soul-sucking zombification that is list management, yet still maintain a useful service to the community. Cheers, jec -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: GWT Developer Job Openings
Maybe the community should write a (international) GWT app for job recruitments and Google will host it for free on app engine and put a sticky post into this group with a link to that app ;-) -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/89VDO89kVr8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
is there a way to identify clickevent coming from which button?
hi all, is there a way to identify clickevent? So that I know which button it is coming from? I want to reuse the clickhandler. Thanks! /bryan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is there a way to identify clickevent coming from which button?
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/event/shared/GwtEvent.html#getSource() On Jul 11, 9:45 am, dadada ytbr...@gmail.com wrote: hi all, is there a way to identify clickevent? So that I know which button it is coming from? I want to reuse the clickhandler. Thanks! /bryan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re : Re: Request Factory More Secure ?
Tank's Vincent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gifJRZfQdNYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help : Memory Leak Problem
If you try the destroy implementation as suggested, it will be very appreciated if you give a feedback about the result. Thanks! On Jul 6, 9:12 am, Alberto Rugnone arugnonechemi...@gmail.com wrote: In production. I didn't take measurements in development. On Jul 5, 6:12 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Do you have this problem in development or production mode? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1+ Compiler issues
I've noticed that with GWT 2.3 and RequestFactory stuff added it takes 2x as long to compile now on a quad core AMD machine with 8GB of RAM. On Jul 11, 10:00 am, Brian bboyl...@gmail.com wrote: Hi I am upgrading my GWT app from 2.0 to 2.3. When I'm compiling with 2.1, 2.2 or 2.3 I am seeing a huge increase in the memory usage. I'm giving it 3Gb and its maxing this out. Any less than this and I am getting OutOfMemoryExceptions. I'm also noticing that its writing massive amounts of data to disk. It is writing gwt88282368723byte- cache to this directory C:\Users\MyName\AppData\Local\Temp\ . I can see previous files like this from 2.0 builds that range from 3MB - 10MB in size, but with GWT 2.3 the size of the byte-cache file is now 22GB! This is making my PC really sluggish and its pretty much unusable while I'm compiling. I'm wondering of anyone else has come across this with GWT 2.3? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TreeNode no longer exists
Hi Everyone, My apolgies if this has been answered somewhere already, but I couldn't find any reference to it. I'm using GWT 2.3, and I have a CellTree, and I need to do some page cleanup when a tree node is closed. I've added a CloseHandler to the CellTree, but when I call event.getTarget() to get the node that is closed I get an IllegalStateException (TreeNode no longer exists.). Is there some other way I can determine which TreeNode is being closed? Is there another event that I can add a hanlder for that would be fired before a node was closed? CellTree.addCloseHandler doesn't seem very useful if it doesn't provide a way to determine which node was closed... Any ideas anyone has would be greatly appreciated. Thanks for reading! Relevant stack trace below. com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:124) at com.google.gwt.event.logical.shared.CloseEvent.fire(CloseEvent.java: 56) at com.google.gwt.event.logical.shared.CloseEvent.fire(CloseEvent.java: 41) at com.google.gwt.user.cellview.client.CellTreeNodeView.setOpen(CellTreeNodeView.java: 932) at com.google.gwt.user.cellview.client.CellTree.onBrowserEvent(CellTree.java: 690) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1321) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1277) at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.IllegalStateException: TreeNode no longer exists. at com.google.gwt.user.cellview.client.CellTreeNodeView $TreeNodeImpl.assertNotDestroyed(CellTreeNodeView.java:613) at com.google.gwt.user.cellview.client.CellTreeNodeView $TreeNodeImpl.getChildCount(CellTreeNodeView.java:542) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Selecting folder
Hi, I need to select a folder and show the path in a textbox, I don't need to upload files in this folder, I just want to select a folder for pick up the path. Currently my solution, it's open the folder on Windows and copy the path in my application, it's not interactive for users. Do you have an idea ? I don't find the solution. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using GWT Designer with UIBinder and Internaltionalization
Hi, I'm trying to start a new application using the new UIBinder with help of GWT Designer. Moreover, the application needs to support a few locales, so I'm trying to use the Internationalization feature. The problem is that in the gwt designer the icon for the internationalization window is not available when building a UiBinder composite. My questions: is this a missing feature in GWT Designer? If yes, will it be available soon? or am I doing something wrong? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Integrating GWT with windows 7 taskbar
I've just released a sample showing how to use Windows 7 taskbar features (like overlay icons, jumplists, etc) on a GWT app https://bitbucket.org/magnomp/gwtpinnedapp/ Hope it can be usefull for someone Hope other browsers implement a similar API, for the end-user it's amazing. As of today only IE9 supports that, afaik -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Generated AutoBean name length for Proxies too long
I have a ValueProxy with an already fairly long name length (44 characters), but when it goes to generate an AutoBean for it, it adds another 220 characters to that and hits the file name limit of most linux filesystems (usually around 255 characters). This makes my build fail of course since it can't write the generated file. Now I can make changes to my code to make sure my name is below 35 characters or change to Reiser4 which I believe is about the only filesystem that has a limit above that. Or the other option is to have the AutoBean code generator not add such a long addition to the filename (although I've no idea how this would work for DETAILED output mode, which is what I'm outputting as): {myClassName} AutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Generated AutoBean name length for Proxies too long
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6015 This has been worked-around in trunk (we can hardly talk about it as a fix) and will be in 2.4. The best workaround to date is to *not* use -gen (which btw is not possible with the gwt-maven-plugin for instance) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pnSl-LNOrycJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TabLayoutPanel Navigation Content loading
Hi Everyone, I'm looking for someone to point me in the right direction for loading content into a specific tab in a TabLayoutPanel. The goal is to have my app work in the following way. Layout: Header, Footer, Left panel that contains the navigation links, center panel that contains a TabLayoutPanel. When a navigation link is clicked the content on the currently selected tab will load to the new page/composite. Is this possible to do? If so what is the best strategy to use? I Plan to use MVP in combination with ActivityMapper/Manager and PlaceHistoryHandler. Thanks, -Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
What's the current state of the UiBinder templates for CellList
I've been exploring the group searching for ways of building complex cells for CellList, and I found this two emails: https://groups.google.com/forum/#!searchin/google-web-toolkit/cell$20template$20uibinder/google-web-toolkit/nPtKO1xK8L4/FBxHVLAlCTgJ https://groups.google.com/forum/#!searchin/google-web-toolkit/cell$20template/google-web-toolkit/IkRxZ8EtqH4/lHY3WnaOQ-wJ So, what's the current state of using UiBinder // an alternative for cells? Thanks in advance and sorry for my bad english -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tqBjuKQy9cQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the current state of the UiBinder templates for CellList
GWT 2.5 will add a UiRenderer that reuses the UiBinder infrastructure to build renderers from a ui.xml file, in the aim of building Cells. That's probably not what you were looking for though (declaring the Cell to be used from within the ui.xml rather than havein to use @UiField(provided=true) or a @UiFactory), and I'm not aware of any changes being done about this. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ctQKtnl85B8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Anchor Issues
Hi Lads, I'm feeling kind of silly asking this question cos it might be a really simple thing but since I've been browsing around for hours without any solution, I'm thinking it might be worth to ask afterall. The problem is super simple. I'm simply trying to use Anchors in my gwt code and basically they only working half of the time which is really nerve breaking ! When a page is loaded a first time the links are not clickable and after refreshing a few times, these links suddenly become clickable again ! I've testing this on Firefox and Chrome and the same thing happens. I've tried multiple combinations of things which don't have any impact This is the code I'm using: final Anchor loginAnchor = new Anchor(); // or new Anchor(); doesn't work either String URL = userService.createLoginURL(requestUri); loginAnchor.setHref(URL); loginAnchor.setText(Login1); However, I did notice something interesting. Whenever the URL starts by http:// or https:// this is when the problem occurs. If I set the url to something like www.google.com it works fine. I thought great that's my problem solved, I'll just remove the https://; from the URL string, however when I do this, string URL is simply appended to the current url location ! I can't believe I'm getting bugged down by something apparently so simple ! Is this a bug or am I simply doing something obviously wrong which I can't figure out? Thanks for your help in advance :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/St8Z6PsV2-kJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Modal Window
Hello, I have the need to convert a flex application into a GWT applcation. Only problem I am facing right now (analysis) is finding a modal window widget. Does GWT have one? The application opens a lot of Modal windows and shades the background of the window.opener. Does anyone know if GWT can handle this? Thanks, Scott -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
executing native javascript within an iframe
I have an application which is being displayed in an iframe and I need to call a native function from it. If I run the application not in the iframe, the code runs. But if it is in the iframe, it doesn't. public native void PrintTop() /*-{ alert(test); //$wnd.PrintTop(); }-*/; The alert shows if accessed directly, but not from within the iframe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modal Window
Look at PopupPanel and its' glass property. -Jeff On Jul 11, 2011, at 3:40 PM, Scott Purcell spurcell...@gmail.com wrote: Hello, I have the need to convert a flex application into a GWT applcation. Only problem I am facing right now (analysis) is finding a modal window widget. Does GWT have one? The application opens a lot of Modal windows and shades the background of the window.opener. Does anyone know if GWT can handle this? Thanks, Scott -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to detect if a Popup is showing
Hi, I wanted to check if a popup is showing, so I wrote this method: public static int getNumPopupsShowing() { int result = 0; NodeListElement divs = Document.get().getElementsByTagName(div); for (int i=0; idivs.getLength(); i++) { if (gwt-PopupPanel.equals(divs.getItem(i).getClassName())) { result++; } } return result; } However, is there a better way? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Jwf77I4AUsoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel Navigation Content loading
Hello Mark: Based on your description this project might come in handy: http://code.google.com/p/easy-gwt/ Regards, Alfredo On Mon, Jul 11, 2011 at 5:10 PM, Mark Wengranowski m...@greatlittlebox.comwrote: Hi Everyone, I'm looking for someone to point me in the right direction for loading content into a specific tab in a TabLayoutPanel. The goal is to have my app work in the following way. Layout: Header, Footer, Left panel that contains the navigation links, center panel that contains a TabLayoutPanel. When a navigation link is clicked the content on the currently selected tab will load to the new page/composite. Is this possible to do? If so what is the best strategy to use? I Plan to use MVP in combination with ActivityMapper/Manager and PlaceHistoryHandler. Thanks, -Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to detect if a Popup is showing
Popup Panels have a isShowing() method, use that to determine if its currently displayed ~Ashwin On Tue, Jul 12, 2011 at 6:30 AM, Craig Mitchell craig...@gmail.com wrote: Hi, I wanted to check if a popup is showing, so I wrote this method: public static int getNumPopupsShowing() { int result = 0; NodeListElement divs = Document.get().getElementsByTagName(div); for (int i=0; idivs.getLength(); i++) { if (gwt-PopupPanel.equals(divs.getItem(i).getClassName())) { result++; } } return result; } However, is there a better way? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Jwf77I4AUsoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Maven + GWT + GAE (discussion)
Hi, it's been few hours that I try the gwt-maven-plugin (2.3.0-1) and maven-gae-plugin (v 0.8.4). There is my conclusion: 1) documentations are not up to date 2) not a lot of recent discussion on the subject ( 3 months) 3) very complicated to set up There are the features that I succeed to make it work: - gwt/gae:run - gae:deploy failed to make it work: - gae/gwt:test - gae/gwt:debug I want to know: - if a lot of gwt/gae projects are using maven (got exemples of open source projects?) - if it's worth it - if the plugin has a future (is it backed by google and committers)? I also want to know: - if it exist better alternative Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to detect if a Popup is showing
Thanks Ashwin. Yes, sorry, should have been a little more clear, I wanted to detect if a popup is showing, which I didn't already have the reference to. Apologies for not being more clear. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/IMNOU08ERt0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
回覆:Anchor Issues
You should look at GWT ShowCase HyperLinkhttp://gwt.google.com/samples/Showcase/Showcase.html#%21CwHyperlinkexample. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cM8YZ8947AoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
回覆:executing native javascript within an iframe
Iframe means another window context. You show invoke window.parent.PrintTop(); instead. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/joYCO3dacqAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integrating GWT with windows 7 taskbar
Thanks for sharing!! 2011/7/11 Magno Machado magn...@gmail.com I've just released a sample showing how to use Windows 7 taskbar features (like overlay icons, jumplists, etc) on a GWT app https://bitbucket.org/magnomp/gwtpinnedapp/ Hope it can be usefull for someone Hope other browsers implement a similar API, for the end-user it's amazing. As of today only IE9 supports that, afaik -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to detect if a Popup is showing
Not sure, if there is a automatic way of detecting all child windows to a parent window on demand, but certainly you can main maintain, global array list and every popup window that you open, and call close on each of those. You can lot of examples in javascript - closing child windows to idea. On Jul 11, 7:19 pm, Craig Mitchell craig...@gmail.com wrote: Thanks Ashwin. Yes, sorry, should have been a little more clear, I wanted to detect if a popup is showing, which I didn't already have the reference to. Apologies for not being more clear. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modal Window
public PopupPanel(boolean autoHide, boolean modal) { this(autoHide); this.modal = modal; } = I did not remember using this constructor, but this constructor should do. -venu http://schoolk12.appspot.com/ On Jul 11, 3:50 pm, Jeffrey Burnham jeffrey.burn...@gemail.com wrote: Look at PopupPanel and its' glass property. -Jeff On Jul 11, 2011, at 3:40 PM, Scott Purcell spurcell...@gmail.com wrote: Hello, I have the need to convert a flex application into a GWT applcation. Only problem I am facing right now (analysis) is finding a modal window widget. Does GWT have one? The application opens a lot of Modal windows and shades the background of the window.opener. Does anyone know if GWT can handle this? Thanks, Scott -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
comparing GWT and jsp apps - why javscript apps different from html apps
I had fairly large application developed in early web days , now I want to convert into GWT. Obvious we have added value of AJAX, what else do I loose? 1) large java script , initial down load time = why is this , both and HTML and Javascript are different ways of telling how the window is to browser. meaning Are browsers more efficient in parsing and rendering than javascript ? = With we only load URI , why do we load entire java script ? Just like only index.jsp to loaded javascript also should index.javascript, why every thing? With GWT.runAsync - seems like a good Idea. But not sure, why java script can not be divided like pages (URI) ? At the end both java script and HTML build DOM for window rendering, why browsers are more friendly with html than java-script ? GWT+GAE is really cool - if we can reduce these difference -Venu http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: combine GWT application from several modules coming from JARs or OSGI bundles
Vitaly, sorry - I don't really know how GWT works... Is your proposal addressed to GWT developers or users like me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0Wdu6Cb2JAYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Adding DoNotRunWith annotation to failing JUnit test; possible HtmlUnit bug. (issue1472804)
Reviewers: conroy, Description: Adding DoNotRunWith annotation to failing JUnit test; possible HtmlUnit bug. Review by: con...@google.com Please review this at http://gwt-code-reviews.appspot.com/1472804/ Affected files: M plugins/npapi/JavaObject.cpp M plugins/npapi/LocalObjectTable.h A plugins/npapi/NPVariantUtil.h M plugins/npapi/NPVariantWrapper.h M plugins/npapi/ScriptableInstance.cpp M plugins/npapi/ScriptableInstance.h M plugins/npapi/prebuilt/gwt-dev-plugin/background.html M user/test/com/google/gwt/core/CoreSuite.java A user/test/com/google/gwt/core/client/JsIdentityTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding DoNotRunWith annotation to failing JUnit test; possible HtmlUnit bug. (issue1472804)
On 2011/07/11 15:49:22, codefu wrote: can you repost this to the original review thread? http://gwt-code-reviews.appspot.com/1472804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updating npapi plugin to remove gwtId from Jso objects (idenity fix), (issue1469803)
http://gwt-code-reviews.appspot.com/1469803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updating npapi plugin to remove gwtId from Jso objects (idenity fix), (issue1469803)
On 2011/07/11 15:59:39, codefu wrote: Still LGTM http://gwt-code-reviews.appspot.com/1469803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: RFC: Breaking change to CellTable
Could you elaborate a bit more on this statement and also how it impacts the direction future enhancements for cell widgets in general. I agree that is a good question. Even more pessimistically/cynically (so take it with a grain of salt), is whether modern browsers will eventually be faster (or fast enough) with per-row/-cell event listeners than CellTable's 1-listener with manual-dispatching approach. Maybe not with the stock widgets, but some sort of not-flyweight, but-still-lightweight mini-widgets. Granted, CellTable is great for the hear and now (IE/etc.), so excuse/ignore my musing, especially about something I only superficially understand. Nonetheless, per the breaking change proposal, I'm impressed with your dedication to API compatibility, and the cleverness of the hack to do so. Any custom CellTable stuff I've done so far as been on the cell side and not the guts of CellTable itself. In that regard, it sounds like Cell.render will still take a SafeHtmlBuilder? Given the perf results you mentioned, should/will Cells eventually use the ElementBuilder API as well? - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10437 committed - Look for @UiChild methods in supertypes....
Revision: 10437 Author: b...@google.com Date: Mon Jul 11 04:39:27 2011 Log: Look for @UiChild methods in supertypes. Issue 6554. http://gwt-code-reviews.appspot.com/1468806/ Patch by: Justin Hickman Review by: bobv http://code.google.com/p/google-web-toolkit/source/detail?r=10437 Modified: /trunk/user/src/com/google/gwt/uibinder/rebind/model/OwnerFieldClass.java === --- /trunk/user/src/com/google/gwt/uibinder/rebind/model/OwnerFieldClass.java Wed May 4 09:28:35 2011 +++ /trunk/user/src/com/google/gwt/uibinder/rebind/model/OwnerFieldClass.java Mon Jul 11 04:39:27 2011 @@ -294,8 +294,8 @@ */ private void findUiChildren(JClassType ownerType) throws UnableToCompleteException { -JMethod[] methods = ownerType.getMethods(); while (ownerType != null) { + JMethod[] methods = ownerType.getMethods(); for (JMethod method : methods) { UiChild annotation = method.getAnnotation(UiChild.class); if (annotation != null) { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10438 committed - Adding DoNotRunWith annotation to failing JUnit test; possible HtmlUni...
Revision: 10438 Author: cod...@google.com Date: Mon Jul 11 06:15:51 2011 Log: Adding DoNotRunWith annotation to failing JUnit test; possible HtmlUnit bug. Review at http://gwt-code-reviews.appspot.com/1469803 Review by: con...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10438 Added: /trunk/plugins/npapi/NPVariantUtil.h /trunk/user/test/com/google/gwt/core/client/JsIdentityTest.java Modified: /trunk/plugins/npapi/JavaObject.cpp /trunk/plugins/npapi/LocalObjectTable.h /trunk/plugins/npapi/NPVariantWrapper.h /trunk/plugins/npapi/ScriptableInstance.cpp /trunk/plugins/npapi/ScriptableInstance.h /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/background.html /trunk/user/test/com/google/gwt/core/CoreSuite.java === --- /dev/null +++ /trunk/plugins/npapi/NPVariantUtil.hMon Jul 11 06:15:51 2011 @@ -0,0 +1,132 @@ +#ifndef _H_NPVariantUtil +#define _H_NPVariantUtil + +#include Debug.h +#include mozincludes.h + +/** + * Wraps an NPVariant and provides various helper functions + */ +class NPVariantUtil { +public: + static int isBoolean(const NPVariant variant) { +return NPVARIANT_IS_BOOLEAN(variant); + } + + static bool getAsBoolean(const NPVariant variant) { +return NPVARIANT_TO_BOOLEAN(variant); + } + + // Return true if the variant is holding a regular integer or an integral double. + static int isInt(const NPVariant variant) { +if (NPVARIANT_IS_INT32(variant)) { + return 1; +} else if (NPVARIANT_IS_DOUBLE(variant)) { + // As of http://trac.webkit.org/changeset/72974 we get doubles for all + // numerical variants out of V8. + double d = NPVARIANT_TO_DOUBLE(variant); + int i = static_castint(d); + // Verify that d is an integral value in range. + return (d == static_castdouble(i)); +} else { + return 0; +} + } + + static int getAsInt(const NPVariant variant) { +if (isInt(variant)) { + if (NPVARIANT_IS_INT32(variant)) { +return NPVARIANT_TO_INT32(variant); + } else if (NPVARIANT_IS_DOUBLE(variant)) { +return static_castint(NPVARIANT_TO_DOUBLE(variant)); + } +} + +Debug::log(Debug::Error) getAsInt: variant + NPVariantUtil::toString(variant) not int Debug::flush; +return 0; + } + + static int isNull(const NPVariant variant) { +return NPVARIANT_IS_NULL(variant); + } + + static int isObject(const NPVariant variant) { +return NPVARIANT_IS_OBJECT(variant); + } + + static NPObject* getAsObject(const NPVariant variant) { +if (NPVARIANT_IS_OBJECT(variant)) { + return NPVARIANT_TO_OBJECT(variant); +} +Debug::log(Debug::Error) getAsObject: variant not object Debug::flush; +return 0; + } + + static int isString(const NPVariant variant) { +return NPVARIANT_IS_STRING(variant); + } + + static const NPString* getAsNPString(const NPVariant variant) { +if (NPVARIANT_IS_STRING(variant)) { + return NPVARIANT_TO_STRING(variant); +} +Debug::log(Debug::Error) getAsNPString: variant not string Debug::flush; +return 0; + } + + static std::string toString(const NPVariant variant) { +std::string retval; +// TODO(jat): remove sprintfs +char buf[40]; +NPObject* npObj; +switch (variant.type) { + case NPVariantType_Void: +retval = undef; +break; + case NPVariantType_Null: +retval = null; +break; + case NPVariantType_Bool: +retval = bool(; +retval += (NPVARIANT_TO_BOOLEAN(variant) ? true : false); +retval += ')'; +break; + case NPVariantType_Int32: +retval = int(; +snprintf(buf, sizeof(buf), %d), NPVARIANT_TO_INT32(variant)); +retval += buf; +break; + case NPVariantType_Double: +retval = double(; +snprintf(buf, sizeof(buf), %g), NPVARIANT_TO_DOUBLE(variant)); +retval += buf; +break; + case NPVariantType_String: +{ + retval = string(; + NPString str = NPVARIANT_TO_STRING(variant); + retval += std::string(str.UTF8Characters, str.UTF8Length); + retval += ')'; +} +break; + case NPVariantType_Object: +npObj = NPVARIANT_TO_OBJECT(variant); +snprintf(buf, sizeof(buf), obj(class=%p, , npObj-_class); +retval = buf; +snprintf(buf, sizeof(buf), count=%d, , npObj-referenceCount); +retval += buf; +snprintf(buf, sizeof(buf), %p), npObj); +retval += buf; +break; + default: +snprintf(buf, sizeof(buf), Unknown type %d, variant.type); +retval = buf; +break; +} +return retval; + } + +}; + +#endif === --- /dev/null +++ /trunk/user/test/com/google/gwt/core/client/JsIdentityTest.java Mon Jul 11 06:15:51 2011 @@ -0,0 +1,199 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache
[gwt-contrib] Review for Issue 4862
Hi, would someone mind reviewing my patch for issue 4862? I've submitted it almost 4 months ago: http://gwt-code-reviews.appspot.com/1382804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: RFC: Breaking change to CellTable
Updates: We'll continue to support and optimize Cell Widgets as the ideal for rendering large data sets with maximum performance. That's why I'm integrating ElementBuilder into CellTable, as opposed to creating a new widget. As browsers evolve, we'll have to keep Cell Widgets up to date to achieve maximum performance. And it isn't all about performance. The main purpose of ElementBuilder is to allow custom table structures in CellTable, which is a widely requested feature. We may even build a formal expandable rows API on top of it (but no guarantees). Now, for some interesting performance analysis. As I'm integrating ElementBuilder into CellTable, I'm finding that there is a lot going on under the hood that affects performance. - In isolated testing (non-GWT Javascript), dom manipulation is about the same speed as setting innerHTML, assuming a prebuilt HTML string. However, the cost of building the HTML string makes DOM manipulation a little faster. - However, the assertions and validation checks in the current version of ElementBuilder actually make CellTable slower. The overhead of validating the DOM state is higher than the cost of building the HTML string without any checks. So, it appears that we'll need an option to disable the checks in ElementBuilder and let users take responsibility to ensure they build correct structures (to put ElementBuilder on an equal playing field with the current version of CellTable). I figured it would be a good option, but I didn't realize how important it would be. - In addition, my isolated testing compared the cost of building an HTML string in tiny pieces, which is how ElementBuilder builds strings. However, the current version of CellTable uses templates that include large chunks of static HTML mixed with some variables. As a result, the cost of building an HTML string is currently less than it will be with ElementBuilder. In conclusion, I'm still optimizing to improve performance. On Mon, Jul 11, 2011 at 1:02 PM, Stephen Haberman stephen.haber...@gmail.com wrote: Could you elaborate a bit more on this statement and also how it impacts the direction future enhancements for cell widgets in general. There will be more enhancements to CellTable, but I don't think we'll have any additional breaking changes for a while. Most new features will be optional API additions and the like. The ElementBuilder change is fundamental though. I agree that is a good question. Even more pessimistically/cynically (so take it with a grain of salt), is whether modern browsers will eventually be faster (or fast enough) with per-row/-cell event listeners than CellTable's 1-listener with manual-dispatching approach. Maybe not with the stock widgets, but some sort of not-flyweight, but-still-lightweight mini-widgets. Granted, CellTable is great for the hear and now (IE/etc.), so excuse/ignore my musing, especially about something I only superficially understand. Nonetheless, per the breaking change proposal, I'm impressed with your dedication to API compatibility, and the cleverness of the hack to do so. Any custom CellTable stuff I've done so far as been on the cell side and not the guts of CellTable itself. In that regard, it sounds like Cell.render will still take a SafeHtmlBuilder? Given the perf results you mentioned, should/will Cells eventually use the ElementBuilder API as well? Eventually, we will likely integrate ElementBuilder into Cells. If you extend AbstractCell, then we can provide a default render(ElementBuilder) method that defers to the render(SafeHtmlBuilder) method, for backward compatibility. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: After an enum is ordinalized, any static methods generated as staticImpl's should no longer be c... (issue1467815)
http://gwt-code-reviews.appspot.com/1467815/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: RFC: Breaking change to CellTable
In conclusion, I'm still optimizing to improve performance. That's really interesting; thanks for taking the time to write it up. Eventually, we will likely integrate ElementBuilder into Cells. If you extend AbstractCell, then we can provide a default render(ElementBuilder) method that defers to the render(SafeHtmlBuilder) method, for backward compatibility. Ah, sure, that makes sense. Thanks, Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Aw: Re: [gwt-contrib] Re: RFC: Breaking change to CellTable
John, have you seen: http://blog.stevenlevithan.com/archives/faster-than-innerhtml ? I found it pretty interesting that you can speed up innerHTML by combining it with a DOM operation. Although the website uses a nowadays pretty old browser (Firefox 2) you can still get a 2x performance boost on the latest Chrome Browser if the work gets large enough. Maybe its possible to integrate it into GWT and test performance again for cell widgets with large data sets? Also there has been a small discussion on the Google Web Toolkit group where someone creates a mobile application and uses CellTable. But that results in a large javascript file because CellTable pulls in quite a lot of code. Would the code size increase if you integrate the ElementBuilder API into CellTable because then it can be build via setInnerHTML and Dom operations? Mobile app developers want things as small and performant as possible and may be shocked when using a cell widget and see a large compile size increase just to get that extra 2% performance. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Review for Issue 4862
Lining up and adding a specific reviewer helps, because then the review shows up on their code review dashboard. In this case, I recommend you add robertvaw...@google.com and rj...@google.com. (Ray is on vacation) On Mon, Jul 11, 2011 at 5:07 AM, Felix H. Dahlke f...@ubercode.de wrote: Hi, would someone mind reviewing my patch for issue 4862? I've submitted it almost 4 months ago: http://gwt-code-reviews.appspot.com/1382804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Eric Ayers | Software Engineer | zun...@google.com | +1 404 487 9229 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Re: [gwt-contrib] Re: RFC: Breaking change to CellTable
On Mon, Jul 11, 2011 at 2:07 PM, Jens jens.nehlme...@gmail.com wrote: John, have you seen: http://blog.stevenlevithan.com/archives/faster-than-innerhtml ? I found it pretty interesting that you can speed up innerHTML by combining it with a DOM operation. Although the website uses a nowadays pretty old browser (Firefox 2) you can still get a 2x performance boost on the latest Chrome Browser if the work gets large enough. Maybe its possible to integrate it into GWT and test performance again for cell widgets with large data sets? Also there has been a small discussion on the Google Web Toolkit group where someone creates a mobile application and uses CellTable. But that results in a large javascript file because CellTable pulls in quite a lot of code. Would the code size increase if you integrate the ElementBuilder API into CellTable because then it can be build via setInnerHTML and Dom operations? Mobile app developers want things as small and performant as possible and may be shocked when using a cell widget and see a large compile size increase just to get that extra 2% performance. For mobile, it might be even better to pursue server side rendering. That would eliminate all of the rendering code from the client, and it offloads the heavy DOM building process from the phone to a server. Of course, with dual core phones on 4g networks, I'm not sure how much longer its going to matter. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re-roll r10435 (issue1474804)
Reviewers: jbrosenberg, Description: Re-roll r10435 Changes logic to assign seedIds even to non-instantiable types so that Foo.class.getName() will return something sensible when -XdisableClassMetadata is used. Please review this at http://gwt-code-reviews.appspot.com/1474804/ Affected files: M dev/core/src/com/google/gwt/core/ext/linker/SymbolData.java M dev/core/src/com/google/gwt/core/ext/linker/impl/StandardSymbolData.java M dev/core/src/com/google/gwt/dev/cfg/StaticPropertyOracle.java M dev/core/src/com/google/gwt/dev/javac/testing/impl/JavaResourceBase.java M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java A dev/core/src/com/google/gwt/dev/jjs/ast/JSeedIdOf.java M dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java M dev/core/src/com/google/gwt/dev/jjs/ast/JVisitor.java M dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java M dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java M dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java M dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java M dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java A dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceGetClassOverrides.java M dev/core/src/com/google/gwt/dev/jjs/impl/ToStringGenerationVisitor.java M dev/core/src/com/google/gwt/dev/js/JsSourceGenerationVisitorWithSizeBreakdown.java M dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java A dev/core/src/com/google/gwt/dev/js/ast/JsSeedIdOf.java M dev/core/src/com/google/gwt/dev/js/ast/JsVisitor.java M dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java A dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/SeedUtil.java M dev/core/test/com/google/gwt/dev/jjs/impl/CodeSplitterTest.java M user/src/com/google/gwt/rpc/linker/ClientOracleLinker.java M user/src/com/google/gwt/rpc/server/WebModeClientOracle.java M user/src/com/google/gwt/rpc/server/WebModePayloadSink.java M user/super/com/google/gwt/emul/java/lang/Class.java M user/super/com/google/gwt/emul/java/lang/Object.java M user/test/com/google/gwt/emultest/java/util/ArraysTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Re-roll r10435 (issue1474804)
Changed JsSeedIdOf to hold the seedId (assigned by GenerateJavaScriptAST) instead of lazily retrieving the seedId via JsName earlier (which will be null if it is a not-instantiated class type) Also changed JsToSourceGenerationVisitorWithSizeBreakdown to print the new JsSeedIdOf. Everything else is mostly the same. I will follow up with a more efficient encoding later, the wins are still very large, no need for perfection. :) On Mon, Jul 11, 2011 at 1:24 PM, cromwell...@google.com wrote: Reviewers: jbrosenberg, Description: Re-roll r10435 Changes logic to assign seedIds even to non-instantiable types so that Foo.class.getName() will return something sensible when -XdisableClassMetadata is used. Please review this at http://gwt-code-reviews.appspot.com/1474804/ Affected files: M dev/core/src/com/google/gwt/core/ext/linker/SymbolData.java M dev/core/src/com/google/gwt/core/ext/linker/impl/StandardSymbolData.java M dev/core/src/com/google/gwt/dev/cfg/StaticPropertyOracle.java M dev/core/src/com/google/gwt/dev/javac/testing/impl/JavaResourceBase.java M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java A dev/core/src/com/google/gwt/dev/jjs/ast/JSeedIdOf.java M dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java M dev/core/src/com/google/gwt/dev/jjs/ast/JVisitor.java M dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java M dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java M dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java M dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java M dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java A dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceGetClassOverrides.java M dev/core/src/com/google/gwt/dev/jjs/impl/ToStringGenerationVisitor.java M dev/core/src/com/google/gwt/dev/js/JsSourceGenerationVisitorWithSizeBreakdown.java M dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java A dev/core/src/com/google/gwt/dev/js/ast/JsSeedIdOf.java M dev/core/src/com/google/gwt/dev/js/ast/JsVisitor.java M dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java A dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/SeedUtil.java M dev/core/test/com/google/gwt/dev/jjs/impl/CodeSplitterTest.java M user/src/com/google/gwt/rpc/linker/ClientOracleLinker.java M user/src/com/google/gwt/rpc/server/WebModeClientOracle.java M user/src/com/google/gwt/rpc/server/WebModePayloadSink.java M user/super/com/google/gwt/emul/java/lang/Class.java M user/super/com/google/gwt/emul/java/lang/Object.java M user/test/com/google/gwt/emultest/java/util/ArraysTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Re-roll r10435 (issue1474804)
LGTM with a couple questions Are there tests which verify this fixes the issue that caused the first rollback? (if not can you add a TODO)? http://gwt-code-reviews.appspot.com/1474804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java (right): http://gwt-code-reviews.appspot.com/1474804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java#newcode504 dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:504: .getSourceInfo().getStartLine(), program.getQueryId(x), castableTypeMap, I assume this is still the right thing to do here (return -1 if it's not a JClassType?). http://gwt-code-reviews.appspot.com/1474804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors