Re: GWT 2.2 CellTable dragging column widths with mouse ...
Did you check out the tables in the gwt incubator? They support resizing of columns, fixed headers etc. -- You received 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: Browser Refresh handling in GWT
To Make it more clear for everyone. If I Implement below mentioned code in my application. Window.addWindowClosingHandler(new Window.ClosingHandler() { @Override public void onWindowClosing(ClosingEvent event) { event.setMessage(Are you sure ?); } }); Window.addCloseHandler(new CloseHandlerWindow() { @Override public void onClose(CloseEventWindow event) { } }); User is presented with a Confirmation dialog and If he says stay on this page , then Nothing happens. I would like to know which code can be written to have the same behaviour without having need of any confirmation dialog. Is there any JSNI OR any way by which we can have the same behaviour achived wihtout any dialog. On Feb 17, 12:45 pm, Sky myonceinalifet...@gmail.com wrote: Niraj You're problem is two fold. As already mentioned you need to be auto logging the user back in when they refresh the page. Think about how any other ajax app works, including the newer version of google groups. I'm logged in and if I hit F5 I stay logged in. There has to be a session cookie and the app checks to see if that cookie exists (then it hasn't expired) and then load up that user's user-specific data. The user shouldn't see the log in page again unless the cookie has expired. So make sure you know how and when the session cookie expires. 20 minutes since last user activity is usually the earliest a session cookie expires, but you have to choose how long it is. Nothing wrong with having an indefinitely long session (never expires) if the site doesn't contain highly sensitive information (banking, etc). The next part of the problem is that you don't like it that you are losing not only the history state (the page the user had navigated to in the web app) but you are also losing the user specific data that is stored in JS variables. You need to control both of these. You need your history management to read the hash value in the URL and rebuild the site to the page the user had been at before the page refresh. Not exactly easy to do, but you're gonna have to get that working. Next, you're going to have to decide how you want to maintain those variables that are in JS. There are typically 3 options. Cookies, server session/DB storage, or local storage. I don't know anything about local storage, since it's pretty brand new (I know chrome supports it, but I don't know what other browsers do, if any (the others probably do or will soon)). Cookies are easy and not a bad option depending on the usage. You could use them as temporary storage so that refreshing the page wouldn't kill all the work done by the user. But you'd need to be sure you don't leave any cookies lying around as the user navigates the app. Each page of your app could store values entered in cookies until they click the Save/Cancel button, at which point you delete the cookies. Make sure you delete those cookies when the user simply navigates away to another page on your app. Remember, cookies are sent along with any and all server requests, so if you've got 200 cookies, they are all going to go on the ride on a simple RPC and seriously increase traffic latency. The most common solution is storing the values on the server. You can easily RPC user entered data to the server between user entries with tons of time to spare. User input is so slow compared to simple RPC service requests. The same idea as saving and deleting cookies applies here. It's just temporary session data that shouldn't persist between pages otherwise it's a waste of memory. Although, it's a pretty good idea to basically do away with the Save button by simply saving the user entered data straight away to the server DB, rather than just saving it as temporary session data. Then you don't even have to worry about managing the temporary data. This is what I highly recommend. But it depends on the app and what you are trying to accomplish. Lastly, I do know of a fool proof way to prevent any attempts to leave the website you are on, including refreshes or even changing the URL in the address bar. However this is BAD and you most definitely should NOT be doing that in your scenario. You need to implement something along the lines of what I've already said, because that's how everyone else does it. gl! -- You received 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: Feedback Requested: Preview of new GWT Style Theme
Hope you´re the only one who like TabLayoutPanel style... -- You received 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.
Juniper IVE fails to rewrite ClientBundle CSS urls in FF and Chrome
Hi We have found a bug in Juniper IVE (Instant Virtual Extranet). Although it's a bug that should be fixed by Juniper I would like to share with you the problem so you know about it before you believe that a GWT application can be published in Juniper or maybe you can suggest a work around. An application using GWT 2.0.3 with CSS in a ClientBundle has CSS rules that include images as background. When accessing the application from the Internet a Juniper SA-4000 version 6.5R8 rewrites all URLs and gives access to the internal server, for example: Real URL: http://privateserver.domain.com/img/logo.gif Rewritten URL: ../img/,DanaInfo=privateserver.domain.com+logo.gif Some kind of client side software (js or a plugin) is used by Juniper on the browser to capture all those rewritten URLs and send them to the Juniper appliance, then go to the internal server, get the resource and send it back to the client. Rewriting JS and URLs is tricky and Juniper often releases patches to solve problems, I don't like the Juniper approach to publish websites but it's used in many big corporate networks. The problem: URLs are not rewritten in the CSS rules that are part of a ClientBundle in Firefox or Chrome as it does in Internet Explorer. Example: In CCS; @external sesion; #sesion{ background-image: url(img/sesion.gif); background-repeat: no-repeat; } In Internet Explorer, the URL for the image is rewritten: #sesion{ background-image: url(../img/,DanaInfo=privateserver.domain.com +sesion.gif); background-repeat: no-repeat; } In Firefox or Chrome the URL for the image is not rewritten: #sesion{ background-image: url(img/sesion.gif); background-repeat: no-repeat; } We will apply a temporary solution: include another CSS that is not part of a ClientBundle with all rules that have urls, that way Juniper can translate the URLs. If you have any other solutions please let me know. Thanks Javier -- You received 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.
More than one hostpage, each with an own entryPoint
Is that possible? How are they connected? Thanky, Frank -- You received 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.2 Eclipse update fails -- needs PDE
I have the same problem, but I must use 3.4 for compatibility with other plugins... could you please investigate and fix? Thank You On Feb 16, 11:30 pm, Tim McCormack ti...@ccs.neu.edu wrote: On Feb 16, 11:11 am, Rajeev Dayal rda...@google.com wrote: Is it possible for you to try using Eclipse 3.5? I think this is related to a bug in Eclipse's P2 system in Eclipse 3.4. If that's not possible, let me know, and we'll dig deeper. I was trying for 3.4 to maintain the same setup as the rest of my group. I'm doing documentation work on our GWT code, and I think I'll just mark the minimum Eclipse version as 3.6, possibly 3.5. I'm using 3.6 now, which works. (However, I am using 64-bit Eclipse 3.6 -- Eclipse 3.4 needs to be 32-bit on Ubuntu Linux x64 due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=213194.) I guess it's up to you as to whether more investigation is appropriate. - Tim -- You received 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: Error installing GWT 2.2 in eclipse 3.6
As I mentioned in my first post, my development machine sits behind a corporate firewall. In the past, this has not been a problem as certain exceptions are in place for when we use the GWT update site. For GWT 2.2 however, the firewall still seems to catch the files I listed, even though the rest of them download fine. After some investigation, it would seem that update files are usually served from... http://commondatastorage.googleapis.com whereas the files which were failing were being served from... http://v22.lscache1.c.bigcache.googleapis.com Furthermore, the redicrection changes over time, googlehosted. 1.google.com was metioned by our team. What I would appreciate, and I suspect I speak for all enterprise users of the GWT Eclipse update service when I say this, would be a list of firewall exceptions (updated from version to version) to allow us to better inform our techincal services providers of any required changes prior to running into this kind of issue. Perhaps, these cases of people making changes (deleting plugins, installing on a different day etc.) and having success are actually the result of the URL redirections chaging over time? If that is the case, the exception info is even more vital. At the moment, we cannot use the update facility, because it is impossible for us to know what IPs to allow. Thanks for your support, Andrew Scully. On Feb 16, 3:50 pm, Rajeev Dayal rda...@google.com wrote: Andrew, If you try and download some of those files (by clicking on the links) through your browser, does it actually work? Do your proxy settings in your browser differ from your proxy settings in Eclipse? We'll soon be posting a zipped-up version of the entire update site; maybe you can give that a try. Rajeev On Mon, Feb 14, 2011 at 5:12 AM, Andrew Scully andrewscu...@gmail.comwrote: Using the Add new software funtion in eclipse 3.6.0 (Build id: I20100608-0911), I attempted to install GWT 2.2 from http://dl.google.com/eclipse/plugin/3.6 This operation failed, however, with the below errors. I have numerous previous versions of GWT installed, including the various milestones and RCs of 2.1. Is anyone else getting issues like this? If not, it could be a result of our corporate firewall. An error occurred while collecting items to be installed session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: osgi.bundle,com.google.gdt.eclipse.core, 2.2.0.v201102111811. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gwt.eclipse.core, 2.2.0.v201102111811. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips... Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle. 1.4.2,1.4.2.v201102111811. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer, 2.2.0.r36x201102111505. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted. 1_6,2.2.0.r36x201102111446. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted. 2_0,2.2.0.r36x201102111446. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted. 2_0.webkit_win32,2.2.0.r36x201102111446. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle. 2.2.0,2.2.0.v201102111811. http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips... Artifact not found: osgi.bundle,org.eclipse.wb.core, 0.9.0.r36x201102111430. http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core_0... Artifact not found: osgi.bundle,org.eclipse.wb.core.lib, 0.9.0.r36x201102111430. http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core.l... -- You received 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: RegExp not matching, but it should
Sky: com.google.gwt.regexp.shared.RegExphttp://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/regexp/shared/RegExp.html, not java.util.regex.* ;-) -- You received 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 about do the UI in the Java-Swing way?
How about accessibility? (one of the biggest complaint against canvas) Canvas is not meant for this use case. And why re-implement everything (focus management, etc.) that the browser is already capable of (and at no cost)? -- You received 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: migrate GWT 2.1.1 to 2.2 error
I am running into the same problem. I wonder if it could be related to the fact that gwt-maven-plugin is version 2.1.0-1 and needs to be updated for 2.2.0? -- You received 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: migrate GWT 2.1.1 to 2.2 error
FYI, I tried 2.2-rc1, 2.2.0 and a 2.3-SNAPSHOT with gwt-maven-plugin 2.1.0-1 with no problem. Note that I only use the gwt:compile goal of the plugin, and never call it directly (always through mvn package or mvn install on my root module; the goal is attached to the prepare-package phase) -- You received 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: migrate GWT 2.1.1 to 2.2 error
On Thursday, February 17, 2011 11:48:04 AM UTC+1, Philippe Beaudoin wrote: Also, the proposed workaround of adding a dependency on gwt-dev does not work for me. mvn install gives the following error: [INFO] [ERROR] Internal compiler error [INFO] java.lang.NoClassDefFoundError: com/google/inject/assistedinject/FactoryModuleBuilder [INFO] at com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:74) Nothing to do with GWT, AFAICT: you're missing the guice-assistedinject dependency. -- You received 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: exception translation
Thanks for the response. Yeah, thats exactly what I'd like to do. But where can I catch these exceptions and turn them into declared exceptions? (It is not that easy because I am using an Servlet Filter - The exception is not directly occuring in the RPC but in the doFilter function which only raises ServletExceptions) On 10 Jan., 15:07, Paul Robinson ukcue...@gmail.com wrote: For GWT RPC, the only control you have is to catch all exceptions, and re-throw as an exception that's declared in your RPC interface. Paul On 10/01/11 12:48, klemensr wrote: Hi! Is there any possibility to prevent that GWT is translating any unchecked exception to an InvocationException? For example a ServletException is thrown - GWT is translating this exception into an InvocationException and capsulates the ServletException in the message body as html text. So is there a way to control this translation mechanism manually? (I am using GWT 2.0) cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Feedback Requested: Preview of new GWT Style Theme
I love GWT, but I have always found the standard widget looks boring. I'd wish you had a widgets and themes comparable to vaadins. http://demo.vaadin.com/sampler The look and feel alone make we wanna change to Vaadin. It's still GWT - but with a twist. -Michael On 16 Feb., 19:12, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below:http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: exception translation
In that case, aren't you getting a StatusCodeException? You can then look at the getStatusCode (e.g. if 401 = sign the user in) and the getEncodedResponse (you can then include some magic number, or JSON, etc. in your response; instead of using the default servlet error pages) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: migrate GWT 2.1.1 to 2.2 error
You're right, thanks! I don't know why I now have a dependency on assistedinject, but adding it worked. Since I did not really like the workaround of adding a dependency on gwt-dev, I recompiled the gwt-maven-plugin to depend on gwt-2.2. I'm sure the gwt-maven-plugin guys will publish v 2.2.0 soon but, in the meantime, you can get it from gwt-platform maven repo: pluginRepositories pluginRepository idgwtplatform.plugin/id nameGwtplatform custom plugin epository/name urlhttp://maven.gwt-platform.googlecode.com/hg//url layoutdefault/layout /pluginRepository /pluginRepositories plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.2.0/version /plugin -- You received 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: Feedback Requested: Preview of new GWT Style Theme
It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.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: CssResource compilation problem
How do I control the scope or the value given to selectedTabCenter at compile time? The image source works, since it compiles with a fixed @def Can this error occure, if the Interface getter method for headerHeight is accessed before ensureInjected() is called? I don't think that this is actually the case, but I would check for that, if that would be a possible explanation... On Feb 16, 10:08 pm, Jan Mostert j...@mycee.com wrote: Maybe selectedTabCenter is out of scope here or doesn't have a value at compile time yet? -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Feb 16, 2011 at 10:54 PM, pete superp...@geekcity.de wrote: Hallo, I have a problem with some ClientBundle / CssResource I try to declare. In my ClientBundle I have @Source(images/SelectedTabCenter.png) ImageResource selectedTabCenter(); in my Css-file I have @def headerHeight value('selectedTabCenter.getHeight', 'px'); @sprite .tabSelectedBack { gwt-image: selectedTabCenter; } Now I get a compilation error: [ERROR] [xxx] - Generator 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw an exception while rebinding 'xxx.XXXBundle' If I set the @def headerHeight to a fixed value, like 100px, it compiles. Do I have a syntax error in here? I copied the code from another of my widgets that works without a problem and just adjusted the names, so by the pretty unclear exception I can't make out, what is wrong... Any help is highly appreciated :-) Greetings, Pete -- You received 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.
HTML 5 FILE API
Any example out there, could anyone please show me how to use HTML5 API to upload file Please ? -- You received 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: More than one hostpage, each with an own entryPoint
Take a look at gwt-multipage (http://code.google.com/p/gwt-multipage/). It allows you to annotate entry points to be invoked based on either a URL pattern or a token stored in a javascript variable. It also uses GWT.runAsync() to download only the entry point to run on that page. One warning... the current build is not yet compatible with the recently released GWT 2.2. It runs into the same backwards compatibility problem that various other libraries (including GIN) are having right now. I'm not sure when we'll be able to address this, but if you absolutely need to use GWT 2.2, you can download the source, change GWT version in the POM to 2.2.0, and build it yourself without further changes. -Brian On Thu, Feb 17, 2011 at 4:22 AM, frank t3devt...@googlemail.com wrote: Is that possible? How are they connected? Thanky, Frank -- You received 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: Including gwt-widgets in a servlet generated page
Yes, it's simple, create a GWT Module for each entry point that you need. Then create, for example a new JSP file called MyModule.jsp and copy from your recently created hosted page (.html) the script tag to include the GWT generated js. I hope this helps you. PS: And if you need to share some classes you can create a module without an entry point and then in your other Module Descriptors inherits this module with this tag: inherits name='com.mycompany.myapp.mymodule.Mymodule'/ -- You received 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: exception translation
I am getting a StatusCodeException. May I am a bit more specific: I have to check concurrency problems. In case of a concurrency the GUI has to show a user dialog. The StatusCodeException just give me the ErrorCode 500 (Internal Server Error) but this is to unspecific. This error code can occour in other cases as well so that I need another identifier. The original exception is capsulated in the message body of the StatusCodeException with HTML tags. A dirty solution would be to make a String RegEx and search for a pattern which identify the concurreny exception in the exception message. But there must be a more elegant way of doing this?! So how can I do this better without an RegEx or string search? This would be the message of the StatusCodeException: html head titleJBossWeb/2.0.1.GA - Error report/title style !--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background- color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans- serif;color:white;background-color:#525D76;font-size:16px;} H3 {font- family:Tahoma,Arial,sans-serif;color:white;background- color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans- serif;color:black;background-color:white;} B {font- family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans- serif;background:white;color:black;font-size:12px;}A {color : black;} A.name {color : black;}HR {color : #525D76;}-- /style /head body h1HTTP Status 500 - /h1 HR size=1 noshade=noshade pbtype/b Exception report/p p bmessage/b u/u /p p bdescription/b uThe server encountered an internal error () that prevented it from fulfilling this request./u /p p bexception/b prejavax.servlet.ServletException: !!!ConcurrencyException!!! com.kapdion.mdm.server.servlets.filter.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java: 47) com.kapdion.mdm.server.servlets.filter.ServletFilter.doFilter(ServletFilter.java: 53) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java: 96) /pre /p p bnote/b uThe full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs./u /p HR size=1 noshade=noshade h3JBossWeb/2.0.1.GA/h3 /body /html On 17 Feb., 12:32, Thomas Broyer t.bro...@gmail.com wrote: In that case, aren't you getting a StatusCodeException? You can then look at the getStatusCode (e.g. if 401 = sign the user in) and the getEncodedResponse (you can then include some magic number, or JSON, etc. in your response; instead of using the default servlet error pages) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Print Setup
I want show the print setup in which we can change the page header and footer size option, page rotation opption etc.i.e Operating Syatem Print Setup window. Is there any native code. Its very urgent please help -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2 Eclipse update fails -- needs PDE
This is a well known and widely reported general problem with Eclipse 3.4 that has been fixed in newer versions of Eclipse. The problem is with Eclipse p2 and not with GWT 2.2 itself. If p2 is complaining about the Eclipse PDE, you can try installing that manually from the Eclipse update site. GWT/GPE 2.2 does require the PDE (which is a standard part of the Eclipse SDK) but does not prereq any specific version so the exact error message is being triggered by Eclipse and not GWT/GPE. -Eric On Feb 17, 5:01 am, francescoNemesi nem...@yahoo.com wrote: I have the same problem, but I must use 3.4 for compatibility with other plugins... could you please investigate and fix? Thank You On Feb 16, 11:30 pm, Tim McCormack ti...@ccs.neu.edu wrote: -- You received 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 realize a realtime clock running in the client?
On Thu, Feb 17, 2011 at 12:57 AM, János Kiss ffun...@gmail.com wrote: If the timers run only on the clients, it can be inconvenient if they are'nt synchronized. Both clients have a timer about the opponent, and when he or she makes a move, Isn't this a digital version of a chess clock? If so, the opponents clock starts, and your clock stops when you trigger the clock's actuator, not ... when he or she makes a move. Your clock stops and the opponents clock starts when you end your move, not when you start. you can see the timer counting 1:01, 1:02 Which uses a GWT animation technique. This would be the guessed elapsed time I agree that there will be a latency here. That's the nature of the network beast. I suppose you could advance the clock based on measured latency, but you can correct for this on receipt of the opponent's actual elapsed time. and then get the message from the server the opponent made a move at 1:00, and the client have to correct the time. It's elapsed time, not wall time. If chess players cared about wall time, then chess games via snail mail wouldn't be very much fun. Each player sends an elapsed time message to the server upon the digital equivalent of the analog hit of their stop switch on the clock. The client sends a message to the server that contains the actual elapsed time. I do agree that a correction must be made on each player's clock for differences in the opponent's actual vs. guessed elapsed time. The local display is corrected upon receipt of an elapsed time message. Synchronize the time with the server can be made for example: 1. client sends a request to the server to get the server time, and records the sending time of the request (1:01.5) 2. the server sends back the server time (0:59.3) 3. the client gets the time and records the time of getting the response (1:03.1) Now the client can estimate the network latency by getting the difference of the 1. and 3. step and dividing by 2. (1:03.1-1:01.5) / 2 = 0:01.6 / 2 = 0:00.8 The latency has to be added to the server time sent by the server and you are ready. (0:59.3 + 0:00.8 = 1:00.1) This works if the server is not too busy and the response is generated immediately. Cheers Peter 2011/2/17 Jeff Chimene jchim...@gmail.com On Wed, Feb 16, 2011 at 9:41 AM, Magnus alpineblas...@googlemail.comwrote: Hi, my chess application needs time handling. As a general rule, all game related timing decisions are done on the server. For example, when a move is made, the move's time is determined and stored on the server. However, the client should have some visual feeling of a running clock, i. e. a clock that is update every second. How can I realize this? I need help especially for these questions: - How do I realize the running clock? Do I have to a timer every second, update the display and create a new timer? - As a starting point, the client receives some initial time value, e. g. when a game is loaded, the client receives the information that black has already spent 01:00 (1 hour). However, there is a little gap due to the RPC processing time. First, the server sends back the information 1 hour to the client. Then, the client starts counting 01:01, 01:02, and so on. However, when the client starts counting, the time may already be at 01:03, depending on the bandwidth of the internet connection. Can one do something about this? Isn't this chess clock an elapsed time clock? In other words, the clock doesn't sync with wall time, or with the server. It doesn't even have to take time zone into consideration. The server should be recording elapsed time per client. Why is the network transmission time even an issue? 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. -- You received 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 Designer 2.2 error with gwt-maven project
Are you using the gwt-maven-plugin? If so, what version? Make sure that you are using a version that is compatible with GWT 2.2 (and not 2.1). -Eric -- You received 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.
Any update on the issue 5990 ?
-- You received 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 about do the UI in the Java-Swing way?
1) About accessibility : A Button, which implemented in the way i imagined, would produce a div tag as well as a canvas tag. Both tags occupy the same position, but the div tag is on the top of the canvas tag. So, the div tag takes the responsibility for accessibility. 2) Everything (focus management, event handling, etc.) is still under browser's control. Each widget has its own canvas, not a universal shared one. You press Tab, and the focus jumps from button1 to button2. Nothing ever changes. accessibility On Feb 17, 6:21 pm, Thomas Broyer t.bro...@gmail.com wrote: How about accessibility? (one of the biggest complaint against canvas) Canvas is not meant for this use case. And why re-implement everything (focus management, etc.) that the browser is already capable of (and at no cost)? -- You received 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.
UI Binder Alignment problems
I have the following UI Binder XML: g:ScrollPanel ui:field='outerPanel' g:VerticalPanel g:Cell verticalAlignment=ALIGN_TOP g:HorizontalPanel ui:field='topPanel' g:cell width=30% horizontalAlignment=ALIGN_LEFT // not working and does not show g:SimplePanel ui:field='logoPanel' / g:SimplePanel /g:cell g:cell width=70% horizontalAlignment=ALIGN_RIGHT // this looks center g:FlexTable ui:field='bannerArea' / /g:cell /g:HorizontalPanel /g:Cell g:Cell horizontalAlignment=ALIGN_CENTER g:SimplePanel ui:field='bodyPanel'/ /g:Cell g:Cell verticalAlignment=ALIGN_BOTTOM // not working g:HTML ui:field=footer/ /g:Cell /g:VerticalPanel /g:ScrollPanel -- You received 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 about do the UI in the Java-Swing way?
CSS was hard for me at first too, but now that I've gotten a good hang of it, I really prefer it to trying to do the styling in code. Especially with GWT's enhanced css capibilities (conditional styles based on user.agent/locale). Not to mention with tools like firebug, it is pretty quick to go through and debug and experiment with styles. I get that this isn't addressing the issue you brought up, but I've found learning CSS to be an extraordinarily useful and well worth the effort to pick up. -- You received 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 about do the UI in the Java-Swing way?
Sounds like an awful lot of extra work to simply avoid learning CSS. Don't get me wrong, CSS is kind of clunky, but I find it hard to imagine that this new solution would be significantly more elegant. -Ben On Feb 16, 8:31 pm, Kurtt kurtt@gmail.com wrote: GWT 2.2 introduces the Canvas, which is actually a 2D-API. This is exactly what Java Swing is based on. And we can create a LooknFeel class for GWT, which wraps a set of painting Canvas method. If we set the app a certain LooknFeel, when a widget is showing , the widget asks the LooknFeel to draw the UI for it according to its own state. This is similar to how the Java Swing pluggable LooknFeel works. benefits are that, 1) apps don't need CSS to define the look. For pure desktop-app developers like me, i find trouble in writing perfect CSSs. 2) Further, this guarantees the unified look across platform, while sometimes you have to write different CSS styles for different browsers. 3) Canvas supports drawing in the vector way. Nimbus in Swing is a LooknFeel based on vector-rendering. What do you think, guys? And, allow me to complain that the Canvas class under GWT 2.2.0 removed the support for IE 6/7/8. Even though some few effects are not displayed perfectly in IE and are 30x slower because the canvas tag is actually simulated, I need the Canvas in IE 6/7/8. Cause in china, the IE6/7/8 occupies a worth-noting market share (Microsoft executives: China is IE6 die biggest obstacle:http://www.amieindia.net/ viewtopic.php?f=244t=15183). -- You received 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: Feedback Requested: Preview of new GWT Style Theme
Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 7:33 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Notice josht in the cc list. Yes, GWT finally has a graphic designer on the team. Unfortunately, he's constrained by the fact that he cannot change the DOM structure of existing widgets, which limits what he can do. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.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. -- You received 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 about do the UI in the Java-Swing way?
You can achieve all that with css. Some parts are tricky without css3, like shadow or rounded corners, but its still possible. Imho the browser is already a quite good rendering engine and you get accessibility. I would rather like a gwt-only, good looking, clean and open sourced set of html/css widgets, which supports the most use cases. Also it should support themes and easy configuration. At the moment there are only dual licensed solutions out there like smartgwt or extjs. Btw: there is a mootools library which implements some canvas based widgets: https://github.com/anutron/art-widgets Maybe it is useful to you. Regards, Stefan Am 17.02.2011 03:31, schrieb Kurtt: GWT 2.2 introduces the Canvas, which is actually a 2D-API. This is exactly what Java Swing is based on. And we can create a LooknFeel class for GWT, which wraps a set of painting Canvas method. If we set the app a certain LooknFeel, when a widget is showing , the widget asks the LooknFeel to draw the UI for it according to its own state. This is similar to how the Java Swing pluggable LooknFeel works. benefits are that, 1) apps don't need CSS to define the look. For pure desktop-app developers like me, i find trouble in writing perfect CSSs. 2) Further, this guarantees the unified look across platform, while sometimes you have to write different CSS styles for different browsers. 3) Canvas supports drawing in the vector way. Nimbus in Swing is a LooknFeel based on vector-rendering. What do you think, guys? And, allow me to complain that the Canvas class under GWT 2.2.0 removed the support for IE 6/7/8. Even though some few effects are not displayed perfectly in IE and are 30x slower because the canvas tag is actually simulated, I need the Canvas in IE 6/7/8. Cause in china, the IE6/7/8 occupies a worth-noting market share (Microsoft executives: China is IE6 die biggest obstacle:http://www.amieindia.net/ viewtopic.php?f=244t=15183). -- You received 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: Feedback Requested: Preview of new GWT Style Theme
+1 This simplifies markup and forces people to update their browser Am 17.02.2011 17:08, schrieb John LaBanca: Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com mailto:jlaba...@google.com On Thu, Feb 17, 2011 at 7:33 AM, Jeff Schwartz jefftschwa...@gmail.com mailto:jefftschwa...@gmail.com wrote: It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Notice josht in the cc list. Yes, GWT finally has a graphic designer on the team. Unfortunately, he's constrained by the fact that he cannot change the DOM structure of existing widgets, which limits what he can do. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com mailto:jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com mailto:jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.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 mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Precision problem for ValueBoxBaseLong ?
Here is the simplest code to reproduce the problem: Long number = 6920835985627925859L ; logger.severe(Original + number); logger.severe(From renderer: + LongRenderer.instance().render(number)); logger.severe(From parser: + LongParser.instance().parse(LongRenderer.instance().render(number))); Output: Thu Feb 17 10:20:45 CST 2011 SEVERE: Original 6920835985627925859 Thu Feb 17 10:20:45 CST 2011 SEVERE: From renderer: 6,920,835,985,627,925,859 Thu Feb 17 10:20:45 CST 2011 SEVERE: From parser: 6920835985627925504 --- Eric Andresen On Wed, Feb 16, 2011 at 4:11 PM, Eric Andresen ericandre...@gmail.com wrote: I have an editor that uses a ValueBoxBaseLong to store a very large number. The box is read-only, but it my number gets changed between setValue() and getValue(). Basically, when I set value 6920835985627925836 and then immediately get the value, it returns 6920835985627925504 . The value shows up properly in the editor itself, but when getValue is called, the wrong value comes back. I think the problem is in LongParser (http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/text/client/LongParser.java): public Long parse(CharSequence object) throws ParseException { if (.equals(object.toString())) { return null; } try { return (long) NumberFormat.getDecimalFormat().parse(object.toString()); } catch (NumberFormatException e) { throw new ParseException(e.getMessage(), 0); } } In this case, parse returns a double, which is then cast to a long. I think this is chopping a couple bits of precision off of my Long, causing the mutation. Can anyone verify if this is correct or not, and if there is an Editor widget that can support the full range on a Long ? (This is in GWT 2.2) -- You received 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: Feedback Requested: Preview of new GWT Style Theme
Tried on various browsers and I definitely like this new theme. In my opinion: TextBox height is a little bit too much. TabLayoutPanel: I'm not convinced about new colors. SplitLayoutPanel: would reduce the tickness of split layout panel splittable bar and, only related to FF3 on Windows, would prefer a smaller and ticker icon for the mouse pointer when above splittable panels. -- You received 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: Feedback Requested: Preview of new GWT Style Theme
-1 for me. Consistency between browsers is an important value to me, though I can understand your frustration with IE. On 17 Feb, 17:08, John LaBanca jlaba...@google.com wrote: Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Feedback Requested: Preview of new GWT Style Theme
Here's my feedback. Sorry it's so long. I have quite a few comments about the tendency toward using various blue colors. I'm not entirely against that, but I think the blues should be consistent. That said, I'd rather have no color and be able to easily add color if desired. That way, the default style won't clash with anything around it. To put it another way, the default should be that you don't have to change anything to avoid an ugly UI. Basic Button: I don't think that disabled buttons should change on hover. In fact, disabled Custom Buttons don't seem to change. They should at least be consistent (and, being disabled, I think they shouldn't react to the mouse at all). Date Picker: Nice. I don't mind the use of blue here, but it would be good to be able to easily customize that. The only thing I don't like is the dark gray bold text. It makes the text look hazy and harder to read than it needs to be. When other text on the page defaults to black, I think the dark gray looks out of place. Suggest Box: I agree with Chi Hoang about removing the rounded corners from at least the top of the suggestion box. Also, the positioning overlaps with the focus highlighting of the textbox in Safari and Chrome, at least on Mac OS X, and looks sloppy. Finally, something looks funny about the bold font to me (across all browsers on Mac OS X). For example, lowercase a does not look smooth. I know this isn't exactly the fault of GWT, but maybe a different font selection or a different way of achieving the font will make it look better... but I'm no expert with CSS fonts. Tree: I don't like the +/- icons at all. They're small, positioned slightly high relative to the text, and don't really need the blue coloring either. Also, they aren't consistent with Disclosure Panel (see comments below). Menu Bar: I think this style looks a little out of place. Like the Suggest Box, maybe the bottom should have rounded corners but be squared off at the top. Either way, I'm not a fan of the drop shadow. It's very inconsistent with other panels, especially Basic Popup and Dialog Box (which both look very nice). I also think the subtle color is out of place. The gray color and progression of the gradient used for buttons is much nicer and would be equally nice for menus. Stack Panel: This uses rounded corners on the top but is squared off at the bottom, which is again inconsistent with other panels. I don't like the rounded corners because, when you switch focus from Mail to Filters, the straight gray line under Mail changes to a curved line and the background flows further down into the new space that the curve creates in the Mail tab. I'm not sure what the metaphor would be in the physical world, but something about that shift feels wrong. Finally, I don't think the blue gradient fits and is different from the blue used for Menu Bar. If you're insistent on using blues, they should at least be consistent among the components. Basic Text: Not bad, but the top border color is a little dark compared to the side/bottom... or maybe the side/bottom color is a little light. Rich Text uses #bbb instead of #ccc... maybe that would look better here. Rich Text: Nice. Good that the tool buttons are consistent with Basic Button. However, it looks like the blue gradient for the toolbar is the same as was used for Menu Bar, so my comments on that apply here, too. Disclosure Panel: I'm not sure the left border is necessary, and it looks funny because it doesn't line up with the tip of the disclosure arrow. However, I'm also not a fan of the disclosure arrow. I think it's a bit large (compare with Mac OS X Finder, which it seems to be heavily influenced by), the anti-aliasing isn't very crisp (which may actually be what's making it feel a little big), and it sits a little too high relative to the text. Also, I think it's odd that the same element isn't used for both Tree and Disclosure Panel. Tab Layout Panel: I like the concept much better than what we have now. Like others, though, I agree that the blue is a bit striking for the default style. Also, why no gradient? I actually like it without, but it isn't consistent with Menu Bar and Stack Panel. Also, I don't like the dark gray text on the active tab for the same reason as I don't like it for Date Picker... though I understand the reason for using bold text in this case. Cell Table: The headers look bad. Dark gray text (though slightly lighter than used in other places) and a blue shadow just doesn't work for me. At the very least, get rid of the shadow. Also, the buttons for the pager being circular buttons seem out of place. I'd rather something styled like the month switching buttons in Date Picker. Cell Browser: The arrows _very_ jagged. Also, the gray gradient for the selection seems much too dark and too steep of a gradient. Overall, I like many elements of the new theme, as well as the goal of not changing the DOM to achieve it. I would use this theme in any new applications and
Re: Feedback Requested: Preview of new GWT Style Theme
+1 for me. IE support is still important, but I don't see how the final user gets benefit from emulated roundedCorners/shadows/gradients when he probably only using IE (so he will never tell the difference) and the extra markup ends up slowing down the app. This problem gets ever worst when the implementation for IE is used on the other browsers to get consistency (i.e the old DecoratorPanel or the DialogPanel). On Thu, Feb 17, 2011 at 1:52 PM, Mauro Bertapelle mauro.bertape...@gmail.com wrote: -1 for me. Consistency between browsers is an important value to me, though I can understand your frustration with IE. On 17 Feb, 17:08, John LaBanca jlaba...@google.com wrote: Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received 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: Feedback Requested: Preview of new GWT Style Theme
FWIW, IE9 also supports rounded corners. The TabLayoutPanel formatting has some good improvements, but the solid blue band across the top is a bit intense. I'd maybe lose it, round the tabs, and use a slightly more muted color for the tab background colour. If the tabs were formatted exactly like the stack panel items, I think they would look quite nice. http://gwt-showcase-clean.appspot.com/#!CwTabLayoutPanel http://gwt-showcase-clean.appspot.com/#!CwStackPanel On Feb 17, 8:08 am, John LaBanca jlaba...@google.com wrote: Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 7:33 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Notice josht in the cc list. Yes, GWT finally has a graphic designer on the team. Unfortunately, he's constrained by the fact that he cannot change the DOM structure of existing widgets, which limits what he can do. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.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. -- You received 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 2.2 error with gwt-maven project
I use version 2.1.0-1 the last one On 17 fév, 16:14, Eric Clayberg clayb...@google.com wrote: Are you using the gwt-maven-plugin? If so, what version? Make sure that you are using a version that is compatible with GWT 2.2 (and not 2.1). -Eric -- You received 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: exception translation
I'm not sure what you mean by concurrency here, but how about returning a 409 (Conflict) status code instead of 500? http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10 500 means internal server error, i.e. something the client cannot do anything about. -- You received 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: Production bugs that don't exist in development mode
So ... curious ... runAsync provides a callback to let you know when its done doing its thing. Why aren't you just using that to know when you can mess with the objects you have created? To me, that is the bug, not anything in particular to do with what order GWT runs things asynchronously. -Ben On Feb 16, 10:13 pm, Sky myonceinalifet...@gmail.com wrote: I created a GWT issue for this here:http://code.google.com/p/google-web-toolkit/issues/detail?id=6036 -- You received 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 realize a realtime clock running in the client?
The server is what's in common and must be the keeper of time. If you're worried about latency making timings inaccurate, there are much bigger potential problems with making the clients keep track of time. For example, assuming you have some unique token for that match on the URL, what happens if the user refreshes the browser? Everything happens on the server at the time that the server is told about it. The server can then report current elapsed times, time stamps for certain actions, or anything else that you need to display to the user. On the client side, you can ask the server about the elapsed time and present a view that approximates a real-time clock that matches. These may drift due to latency or other factors, but can be synched periodically (when other actions happen, once per minute, or whatever is appropriate). Now, if that isn't accurate enough, you can start thinking about improving it by trying to measure latency or using other tricks. The important point is that reality resides on the server. The UI will eventually show an accurate picture of that reality. It should be pretty easy to make the view accurate to a few seconds. If that's not good enough, a little extra work (measuring latency) should get accuracy down to less than a second. I don't play chess enough to know, but I imagine that's good enough for this case. -Brian On Thu, Feb 17, 2011 at 10:10 AM, Jeff Chimene jchim...@gmail.com wrote: On Thu, Feb 17, 2011 at 12:57 AM, János Kiss ffun...@gmail.com wrote: If the timers run only on the clients, it can be inconvenient if they are'nt synchronized. Both clients have a timer about the opponent, and when he or she makes a move, Isn't this a digital version of a chess clock? If so, the opponents clock starts, and your clock stops when you trigger the clock's actuator, not ... when he or she makes a move. Your clock stops and the opponents clock starts when you end your move, not when you start. you can see the timer counting 1:01, 1:02 Which uses a GWT animation technique. This would be the guessed elapsed time I agree that there will be a latency here. That's the nature of the network beast. I suppose you could advance the clock based on measured latency, but you can correct for this on receipt of the opponent's actual elapsed time. and then get the message from the server the opponent made a move at 1:00, and the client have to correct the time. It's elapsed time, not wall time. If chess players cared about wall time, then chess games via snail mail wouldn't be very much fun. Each player sends an elapsed time message to the server upon the digital equivalent of the analog hit of their stop switch on the clock. The client sends a message to the server that contains the actual elapsed time. I do agree that a correction must be made on each player's clock for differences in the opponent's actual vs. guessed elapsed time. The local display is corrected upon receipt of an elapsed time message. Synchronize the time with the server can be made for example: 1. client sends a request to the server to get the server time, and records the sending time of the request (1:01.5) 2. the server sends back the server time (0:59.3) 3. the client gets the time and records the time of getting the response (1:03.1) Now the client can estimate the network latency by getting the difference of the 1. and 3. step and dividing by 2. (1:03.1-1:01.5) / 2 = 0:01.6 / 2 = 0:00.8 The latency has to be added to the server time sent by the server and you are ready. (0:59.3 + 0:00.8 = 1:00.1) This works if the server is not too busy and the response is generated immediately. Cheers Peter 2011/2/17 Jeff Chimene jchim...@gmail.com On Wed, Feb 16, 2011 at 9:41 AM, Magnus alpineblas...@googlemail.com wrote: Hi, my chess application needs time handling. As a general rule, all game related timing decisions are done on the server. For example, when a move is made, the move's time is determined and stored on the server. However, the client should have some visual feeling of a running clock, i. e. a clock that is update every second. How can I realize this? I need help especially for these questions: - How do I realize the running clock? Do I have to a timer every second, update the display and create a new timer? - As a starting point, the client receives some initial time value, e. g. when a game is loaded, the client receives the information that black has already spent 01:00 (1 hour). However, there is a little gap due to the RPC processing time. First, the server sends back the information 1 hour to the client. Then, the client starts counting 01:01, 01:02, and so on. However, when the client starts counting, the time may already be at 01:03, depending on the bandwidth of the internet connection. Can one do something about this? Isn't this chess clock an elapsed time clock? In other words, the clock doesn't sync with wall time, or
Re: Print Setup
http://code.google.com/p/google-web-toolkit/issues/detail?id=2588 In the mean time: public static native void windowPrint() /*-{ $wnd.print(); }-*/; -- You received 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: UI Binder Alignment problems
One follow up. I am using GWT 2.0.4 with the eclipse 3.5 and the plug-in On Feb 17, 9:34 am, skippy al.leh...@fisglobal.com wrote: I have the following UI Binder XML: g:ScrollPanel ui:field='outerPanel' g:VerticalPanel g:Cell verticalAlignment=ALIGN_TOP g:HorizontalPanel ui:field='topPanel' g:cell width=30% horizontalAlignment=ALIGN_LEFT // not working and does not show g:SimplePanel ui:field='logoPanel' / g:SimplePanel /g:cell g:cell width=70% horizontalAlignment=ALIGN_RIGHT // this looks center g:FlexTable ui:field='bannerArea' / /g:cell /g:HorizontalPanel /g:Cell g:Cell horizontalAlignment=ALIGN_CENTER g:SimplePanel ui:field='bodyPanel'/ /g:Cell g:Cell verticalAlignment=ALIGN_BOTTOM // not working g:HTML ui:field=footer/ /g:Cell /g:VerticalPanel /g:ScrollPanel -- You received 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 use of GWT_HOME in Environment variables
Hello Everyone, I have been developing applications on GWT. I totally forgot why i have GWT_HOME with a value C:\gwt-2.1.0 in my System PropertiesEnvironment Variables. I am checking the documentation online and i don't see any place they were asking to create it for installing GWT. I am completely using Eclipse to build applications, and i am creating a Build.XML for generating the WAR file through Eclipse. However in the Build.Xml i see property name=gwt.sdk location=C:/ gwt-2.1.0 /. So clearly i am not seeing where i using GWT_HOME. Am i wrong? Can anybody explain me more on this? Do i need to have GWT_HOME Variable in System Variables? Thanks for your time. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT RPC Serialization - circular references not allowed?
I'm serializing to the client from Java using the standard GWT RPC mechanism (using Async Service, not the factory introduced in 2.1). I'm seeing an issue with deserialization at the client when my serialized object has circular references. This is what I see: Serializing a Result object that has a Fund object reference. This fund has a reference to a Distributor object that contains a list of Funds, one of which is the same as the Fund that result references. So it is a two-hop circular reference. The Fund object's hashCode method is overridden to use the fund-id's hashcode (fund-id is a string). The error I get is that the hashcode threw a NullPointerException. Here is the stacktrace: at com.foo.dm.fund.Fund.hashCode(Fund.java:709) at java.util.HashMap.put(HashMap.java:372) at java.util.HashSet.add(HashSet.java:200) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.deserialize(Collection_CustomFieldSerializerBase.java:35) at com.google.gwt.user.client.rpc.core.java.util.HashSet_CustomFieldSerializer.deserialize(HashSet_CustomFieldSerializer.java:32) at com.google.gwt.user.client.rpc.core.java.util.HashSet_FieldSerializer$Handler.deserialize(HashSet_FieldSerializer.java:11) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:91) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:108) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.foo.dm.user.Distributor_FieldSerializer.deserialize(Distributor_FieldSerializer.java:42) Are circular references not allowed? I can't believe this is the first time I'm running across this in 2 years! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC Serialization - circular references not allowed?
This is using GWT 2.1.1 with JDK 1.6 On Feb 17, 1:14 pm, Karthik Abram karthik.ab...@gmail.com wrote: I'm serializing to the client from Java using the standard GWT RPC mechanism (using Async Service, not the factory introduced in 2.1). I'm seeing an issue with deserialization at the client when my serialized object has circular references. This is what I see: Serializing a Result object that has a Fund object reference. This fund has a reference to a Distributor object that contains a list of Funds, one of which is the same as the Fund that result references. So it is a two-hop circular reference. The Fund object's hashCode method is overridden to use the fund-id's hashcode (fund-id is a string). The error I get is that the hashcode threw a NullPointerException. Here is the stacktrace: at com.foo.dm.fund.Fund.hashCode(Fund.java:709) at java.util.HashMap.put(HashMap.java:372) at java.util.HashSet.add(HashSet.java:200) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.deserialize(Collection_CustomFieldSerializerBase.java:35) at com.google.gwt.user.client.rpc.core.java.util.HashSet_CustomFieldSerializer.deserialize(HashSet_CustomFieldSerializer.java:32) at com.google.gwt.user.client.rpc.core.java.util.HashSet_FieldSerializer$Handler.deserialize(HashSet_FieldSerializer.java:11) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:91) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:108) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.foo.dm.user.Distributor_FieldSerializer.deserialize(Distributor_FieldSerializer.java:42) Are circular references not allowed? I can't believe this is the first time I'm running across this in 2 years! -- You received 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.
Change Cell style inside CellTree using SelectionModel
Hi, guys. Sorry, but I could not find an answer here, and still could not figure it out the proper way :-( So, please, give me some hints, about how it is supposed to be done. Lets take Showcase CellTree example, when clicking on a node - node is highlighted with yellow color, but when clicking outside CellTree widget that highlighting disappears, and nothing now tells us which node is selected. So I am looking at the proper way to highlight node permanently - so even when focus lost - node is still selected. In other words, is there a way to change style/rendering for a Cell inside CellTree using SelectionModel? So when SelectionModel has some node's values that node's cells rendered in different style. Should it be done inside TreeModel when providing nodes, by say, checking if node is selected and supplying special cell, with different style, for such a node? I guess not. I would not bother, but obviously there is some kind of mechanism already (those yellow and blue styles), but I couldn't figure it out how to use it. Thanks, Roman. -- You received 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: Feedback Requested: Preview of new GWT Style Theme
I would support just using border-radius for rounded corners and living with square corners in IE 6-8. (Same with using box-shadow for shadows, e.g.: in DialogBox) I think it still needs to look 'good' on IE6-8, but it doesn't need to look exactly the same, and i think missing rounded corners is an acceptable difference. If you are going to take that approach, I think you should also break a bit of backwards compatibility with the new theme by changing the DOM structure of some of the existing widgets. Using border-radius and still having superfluous 3x3 tables all over the place seems like a decision that will be regretted down the road. Internally, we have an internal implementation for buttons and tabs that, via deferred binding, uses border-radius on HTML5 browsers, and images for rounded corners on IE6-8. That is not the easiest thing to implement (and we didn't try to make it generically theme-able), but would be my 'ideal' solution for the widgets where that is possible. That being said, there are much higher things on my wishlist than that :) On Feb 17, 9:08 am, John LaBanca jlaba...@google.com wrote: Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 7:33 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Notice josht in the cc list. Yes, GWT finally has a graphic designer on the team. Unfortunately, he's constrained by the fact that he cannot change the DOM structure of existing widgets, which limits what he can do. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.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. -- You received 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.
RegExp not matching, but it should
I have the following regular expression: \S*\.(jpg|gif|png)$ which I have tested in multiple online Javascript testers, and it works. The intent is to match filenames for image files. (e.g. myimagefilename.jpg). my code to set this up is below. When I step through it I find the following: 1. The regular expression looks valid, meaning at runtime the IMAGE_FILE_PATTERN has proper javascript form: /\S*\.(jpg|png|gif|bmp)$/gi 2. The following filename - DSC_0001.JPG evaluates to false when tested against the IMAGE_FILE_PATTERN. 3. The ignoreCase attribute returns true on the IMAGE_FILE_PATTERN. Anyone have any suggestions on why this keeps evaluating to false with all of my image file names? public class MyClass { protected static final RegExp IMAGE_FILE_PATTERN = RegExp.compile( \\S*\\.(jpg|png|gif|bmp)$, gi); public CarouselWidget(JSONArray fileList) { Image img; JSONValue val; JSONString jString; String urlFragment; boolean match; int size = fileList.size(); for(int index=0; indexsize; index++) { val = fileList.get(index); jString = val.isString(); if (jString != null) { urlFragment = jString.toString(); match = IMAGE_FILE_PATTERN.test(urlFragment); @SuppressWarnings(unused) boolean ignoreCase = IMAGE_FILE_PATTERN.getIgnoreCase(); if (match) { img = new Image(ImageBrowserEntryPoint.baseUrl + / + urlFragment); img.addClickHandler(new ImageClickHandler(tPanel, urlFragment)); hPanel.add(img); } } } } } -- You received 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: Feedback Requested: Preview of new GWT Style Theme
Another nice aspect of border-radius over the emulation approach, is that it lets you avoid aliasing artifacts when changing the page size via full-page zoom. For example, if you look at the basic popup on the showcase, and change the page zoom size in your browser, you can see occasional single-pixel 'cracks', and the rounded corner ends up being pixelated. On Feb 17, 11:37 am, Chi H c...@chi.ca wrote: I would support just using border-radius for rounded corners and living with square corners in IE 6-8. (Same with using box-shadow for shadows, e.g.: in DialogBox) I think it still needs to look 'good' on IE6-8, but it doesn't need to look exactly the same, and i think missing rounded corners is an acceptable difference. If you are going to take that approach, I think you should also break a bit of backwards compatibility with the new theme by changing the DOM structure of some of the existing widgets. Using border-radius and still having superfluous 3x3 tables all over the place seems like a decision that will be regretted down the road. Internally, we have an internal implementation for buttons and tabs that, via deferred binding, uses border-radius on HTML5 browsers, and images for rounded corners on IE6-8. That is not the easiest thing to implement (and we didn't try to make it generically theme-able), but would be my 'ideal' solution for the widgets where that is possible. That being said, there are much higher things on my wishlist than that :) On Feb 17, 9:08 am, John LaBanca jlaba...@google.com wrote: Chrome, Safari, and Firefox support rounded corners natively in CSS. How do you guys feel about using CSS rules to create rounded corners on modern browser that support it, but not IE? It would mean degraded styles in IE, but thats better than degraded styles across the board. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 7:33 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Notice josht in the cc list. Yes, GWT finally has a graphic designer on the team. Unfortunately, he's constrained by the fact that he cannot change the DOM structure of existing widgets, which limits what he can do. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What's the use of GWT_HOME in Environment variables
You don't need GWT_HOME for gwt development, but you may need it for doing things like building various 3rd party libraries from source, Gin being an example. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SuggestBox can't set Oracle
So, SuggestBox.setOracle(SuggestOracle oracle) is private. I can't immediately see a good reason for it. I can work around it, but calling that method would be the most natural fit for my code. Thoughts? Eric -- You received 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.
CellTable slow in IE 8
Hello, My CellTable seems really slow in Internet Explorer 8. It looks like the row highlighter can't keep up with the mouseover (even if there are only 10 records in the table). With longer tables it makes scrolling down the page seem laggy. I don't seem to have this problem in FireFox 3.6. Has anyone else run into this problem? I've read this thread but found no solution: http://www.devcomments.com/My-CellTable-is-slow-and-I-don-t-know-why-at1035655.htm Has anyone else had problems with IE and slow CellTables being slow? Hoping for some tweak that could speed it up. Alternatively, is there a way to disable row highlighting? I removed the styles from the .css, and although it takes away the highlight itself, the CPU still gets eaten up and the table scroll lags. Any input is *greatly* appreciated. Thanks so much, Pedro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC Serialization - circular references not allowed?
Circular references over RPC do generally work, but when it comes to hash maps and hash sets, it doesn't always work out-of-the-box. See this issue for details, and a work-around: http://code.google.com/p/google-web-toolkit/issues/detail?id=3577 Paul On 17/02/11 18:14, Karthik Abram wrote: I'm serializing to the client from Java using the standard GWT RPC mechanism (using Async Service, not the factory introduced in 2.1). I'm seeing an issue with deserialization at the client when my serialized object has circular references. This is what I see: Serializing a Result object that has a Fund object reference. This fund has a reference to a Distributor object that contains a list of Funds, one of which is the same as the Fund that result references. So it is a two-hop circular reference. The Fund object's hashCode method is overridden to use the fund-id's hashcode (fund-id is a string). The error I get is that the hashcode threw a NullPointerException. Here is the stacktrace: at com.foo.dm.fund.Fund.hashCode(Fund.java:709) at java.util.HashMap.put(HashMap.java:372) at java.util.HashSet.add(HashSet.java:200) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.deserialize(Collection_CustomFieldSerializerBase.java:35) at com.google.gwt.user.client.rpc.core.java.util.HashSet_CustomFieldSerializer.deserialize(HashSet_CustomFieldSerializer.java:32) at com.google.gwt.user.client.rpc.core.java.util.HashSet_FieldSerializer$Handler.deserialize(HashSet_FieldSerializer.java:11) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:91) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:108) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.foo.dm.user.Distributor_FieldSerializer.deserialize(Distributor_FieldSerializer.java:42) Are circular references not allowed? I can't believe this is the first time I'm running across this in 2 years! -- You received 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: CellTable slow in IE 8
Is the showcase CellTable sample slow for you aswell or is it just your implementation? I haven't had problems with slowdown in IE8 and celltables and I have enough corporate crippleware installed on my machine to kill a horse. -- You received 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: CellTable slow in IE 8
One common cause of slow hovering performance is the use of descendant CSS selectors in your CSS files. This is bad: .myForm td { padding: 3px; } This is good: .myCell { padding: 3px; } When you use the first version, the browser matches the second part td to EVERY TD element on the page. It then walks up the DOM looking for a parent element with .myForm. For a large app, especially one with a large table, most TD elements are not part of .myForm and you end up with a degenerate case where you walk up to the body element. So, each time you hover over a row, you have 100s of DOM walks to slow down your app. Avoid using descendent selectors where the child is a common element. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 2:29 PM, Pedro Perez guerr...@gmail.com wrote: Hello, My CellTable seems really slow in Internet Explorer 8. It looks like the row highlighter can't keep up with the mouseover (even if there are only 10 records in the table). With longer tables it makes scrolling down the page seem laggy. I don't seem to have this problem in FireFox 3.6. Has anyone else run into this problem? I've read this thread but found no solution: http://www.devcomments.com/My-CellTable-is-slow-and-I-don-t-know-why-at1035655.htm Has anyone else had problems with IE and slow CellTables being slow? Hoping for some tweak that could speed it up. Alternatively, is there a way to disable row highlighting? I removed the styles from the .css, and although it takes away the highlight itself, the CPU still gets eaten up and the table scroll lags. Any input is *greatly* appreciated. Thanks so much, Pedro -- You received 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.
user agent property
What does it mean to do this in your module defn file: set-property name=user.agent value=gecko1_8/ set-property name=user.agent value=ie6/ set-property name=user.agent value=ie8/ I did this and my module was crashing in either of the browsers, depending on which was declared later and it gave a javascript exception: action not defined for the object when a Button element was being created! When I remove all of the above, the code works fine in both IE and FF. I was going by this property after reading many blogs to speed up compilation!! Can somebody throw light on how this actually works?? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UI Binder Alignment problems
I've had tons of problem using Vertical and HorizontalPanel to align correctly. In my most recent project I followed the advice from GWT documentation and moved away from them. Now I do everything with FlowPanel (or HTMLPanel) and careful use of floats. It has made my life much easier. I don't know if you can give that approach a spin in the current context? Cheers, Philippe -- You received 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: user agent property
Only the last line is taken into account here. If you want to support more than one browser, specify a comma-separated list in the value property, for example: set-property name=user.agent value=safari,ie8,gecko,gecko1_8 / The default supported values are defined in UserAgent.gwt.xml to: define-property name=user.agent values=ie6,ie8,gecko,gecko1_8,safari,opera/ I guess the reason it works when you remove it is because GWT defaults to value = values. Cheers, Philippe -- You received 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: user agent property
If you're looking for all 3 useragents to be included, try this: set-property name=user.agent value=gecko1_8, ie6, ie8/ -- You received 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: user agent property
thanks. I was wondering how it works by default. On Thu, Feb 17, 2011 at 3:10 PM, Philippe Beaudoin philippe.beaud...@gmail.com wrote: Only the last line is taken into account here. If you want to support more than one browser, specify a comma-separated list in the value property, for example: set-property name=user.agent value=safari,ie8,gecko,gecko1_8 / The default supported values are defined in UserAgent.gwt.xml to: define-property name=user.agent values=ie6,ie8,gecko,gecko1_8,safari,opera/ I guess the reason it works when you remove it is because GWT defaults to value = values. Cheers, Philippe -- You received 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 remove the focus effect on disclosure panel
hi, i noticed that whenever i click the disclosure panel's header, it got focused, namely you can see the black dotted border around the header, is there any way i can get rid of that? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: @ShowcaseSource
Sorry it was working with the ant script. Is used eclipse run as ... On Feb 16, 6:10 pm, Ewald Pankratz ewald.pankr...@gmail.com wrote: I'm playing around with the showcase example. I created a class similar to all the others which extent ContentWidget. It is working fine as long as I don't use Annotations like @ShowcaseSource. Then I get errors. Why? package com.google.gwt.sample.showcase.client.content.ep; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.RunAsyncCallback; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.i18n.client.Constants; import com.google.gwt.sample.showcase.client.ContentWidget; import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseData; import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseSource; import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseStyle; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Widget; /** * Example file. */ @ShowcaseStyle(.gwt-German-Punkt) public class EpGermanPunkt extends ContentWidget { /** * The constants used in this Content Widget. */ @ShowcaseSource public static interface CwConstants extends Constants { String cwEpGermanPunktClickMessage(); String cwEpGermanPunktDescription(); String cwEpGermanPunktDisabled(); String cwEpGermanPunktName(); String cwEpGermanPunktNormal(); } /** * An instance of the constants. */ @ShowcaseData private final CwConstants constants; /** * Constructor. * * @param constants the constants */ public EpGermanPunkt(CwConstants constants) { super(constants.cwEpGermanPunktName(), constants .cwEpGermanPunktDescription(), true); this.constants = constants; } /** * Initialize this example. */ @ShowcaseSource @Override public Widget onInitialize() { HorizontalPanel hPanel = new HorizontalPanel(); hPanel.setSpacing(10); // Add a normal button Button normalButton = new Button( constants.cwEpGermanPunktNormal(), new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(constants.cwEpGermanPunktClickMessage()); } }); normalButton.ensureDebugId(cwEpGermanPunkt-normal); hPanel.add(normalButton); // Return the panel return hPanel; } @Override protected void asyncOnInitialize(final AsyncCallbackWidget callback) { // TODO Auto-generated method stub GWT.runAsync(EpGermanPunkt.class, new RunAsyncCallback() { public void onFailure(Throwable caught) { callback.onFailure(caught); } public void onSuccess() { callback.onSuccess(onInitialize()); } }); } } -- You received 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.
UiBinder problem with IsWidget
Hallo, I basically have a Widget interface MapWidgetK,V which provides Map- Methods K - V and extends IsWidget. If I put it in my template like this: h:MapWidget ui:field=map/h:MapWidget And put in my respective owner class public class Blubb { interface MyBinder extends UiBinderMapWidgetString,String, Blubb{} MyBinder binder = GWT.create(MyBinder.class); @UiField(provided = true) MapWidgetK,V map; public Blubb(MapWidgetImplementation widget){ map = widget; binder.createAndBindUi(this); } } I get an Exception that MapWidget should not be abstract (Exception while binding) But shouldn't this work, as long as I have (provided = true) and acually pass in a concrete Implementation that extends Composite??? I hope someone can clarify this for me :-) Greetings, Pete -- You received 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: Browser Refresh handling in GWT
No, you always get the Confirmation dialog. Read my post carefully. I describe the correct way of doing this. You should NOT be preventing the user from leaving the page! They would not be able to go to your site and then decide to go to www.google.com, for example, in the same tab and this will piss ppl off and they won't want to go to your site. Your gwt code simply needs to check to see if they have already logged in and then decide to NOT display the login page and instead build the site according to the History token. You absolutely have to do it this way. There is no work around. -- You received 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: RegExp not matching, but it should
Oh, ok. Good to know. So is xgeoff using that class? If so, what could his problem be? I'm stumped. -- You received 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: Production bugs that don't exist in development mode
You aren't understanding the issue properly. The callback method you just mentioned is the onSuccess() method that you override. The issue is when that method is being called. In production the onSuccess() method is actually being deferred (the word I should have been using) until after the currently running JS has been completed. In dev mode the onSuccess() method is being called immediately, aka inline with the code that calls GWT.runAsync(). Try this code yourself if you don't believe me (note I wrote this code here and has not been checked for compilation errors... at the least it's missing the onFailure() method): code public void createAsyncPage(){ final String myString = null; GWT.runAsync(){ public void onSuccess() { myString = GWT is the best!;//this code is ran later in production, but runs immediately in dev mode } } myString.contains(GWT);//this should be a bug, this should result in a null pointer exception! //It will be null in production, but not in dev mode! } /code Someone has already responded to the GWT issue I created and has noted that this inconsistency has actually been documented in the GWT code with a TODO to fix it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox can't set Oracle
IIRC it's a relatively recent change in GWT and I cursed a little when I encountered it. I solved it by instantiating the SuggestBox using the 3-parameter constructor that let you specify an oracle. Using UiBinder and gin to inject my SuggestOracle this gives: public class MyView { ... @UiField(provided = true) SuggestBox suggestBox; private DefaultSuggestionDisplay suggestionDisplay = new DefaultSuggestionDisplay(); private TextBox suggestTextBox = new TextBox(); @Inject public MyView(ClientSuggestOracle clientSuggestOracle, ... ) { clientBox = new SuggestBox( clientSuggestOracle, clientTextBox, suggestionDisplay ); } } -- You received 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: Production bugs that don't exist in development mode
Fair point, Ben. The onSuccess() method is where we are creating the async objects and no other code *should* be interacting with those objects elsewhere. However, other objects that needed to exist on page load, long before async code gets loaded, do need to interact with objects that are created asynchronously (but only once they have actually been created). So those objects can't attempt interacting with those objects if they are null. So it is indeed a developer's bug to not be checking for null. The issue here is that in dev mode you won't catch those bugs and when you encounter them in production mode you can't easily determine where the code is breaking. Does that make sense? -- You received 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: Production bugs that don't exist in development mode
Again, you can probably argue that a better design would have it so that the already existing objects should be waiting for the async objects to inform them of their creation. Ultimately you are still checking for null and designing it that way it's obvious that you have to check for null. But a lot of the code written might not have been planned for something to be created asynchronously and so it just assumes it was created earlier. But when the createPage() method is changed to have a GWT.runAsync() inside it, that suddenly changes things and introduces this problem. We just need dev mode to behave correctly so us developers can realize we either need to check for null or change our design. Sorry I wasn't able to say that more concisely. -- You received 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 remove the focus effect on disclosure panel
Just use outline: none css property on the header. See selectors here: http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/DisclosurePanel.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox can't set Oracle
I find it awkward as well. I have worked around it by providing a delegating oracle on creation of the suggest box. Not exactly ideal, but a rather simple fix. -Ben On Feb 17, 1:29 pm, Eric edimickeast...@gmail.com wrote: So, SuggestBox.setOracle(SuggestOracle oracle) is private. I can't immediately see a good reason for it. I can work around it, but calling that method would be the most natural fit for my code. Thoughts? Eric -- You received 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.
RequestFactory/Editor AutoBean has been frozen error
I am trying to use the RequestFactory and Editor frameworks together. I have it working successfully for requests that finish successfully or that result in constraint violations. However, whenever there are server errors and my Receiver.onFailure(ServerFailure) method is called I am not able to reuse my proxy object. If I do nothing in the onFailure method other that setting the some error message in the ui and then try to fire another request using the same proxy object I get the AutoBean has been frozen error message. When there are contraint violations I can successfully fire another request with the same proxy object. After digging into the code I found the doFire method in AbstractRequestContext. Inside this method it creates an anonymous TransportReceiver object which handles the response from the server. TransportReceiver.onTransportSuccess(String payload) handles an response that successfully hit the server. If response.getGeneralFailure() != null or there are constraint violations AbstractRequestContext.reuse() is eventually called which unfreeze any autobean entities that were apart of the request and unlocked the request context. However on errors that aren't generalFailures reuse() is never called. This means that this instance of the autobean can never be used again without getting the Autobean is frozen error. Has anyone else run into this issue. If so is there a workaround for it. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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/Editor AutoBean has been frozen error
I am using GWT 2.2 On Feb 17, 3:39 pm, Scott Olcott scottolc...@gmail.com wrote: I am trying to use the RequestFactory and Editor frameworks together. I have it working successfully for requests that finish successfully or that result in constraint violations. However, whenever there are server errors and my Receiver.onFailure(ServerFailure) method is called I am not able to reuse my proxy object. If I do nothing in the onFailure method other that setting the some error message in the ui and then try to fire another request using the same proxy object I get the AutoBean has been frozen error message. When there are contraint violations I can successfully fire another request with the same proxy object. After digging into the code I found the doFire method in AbstractRequestContext. Inside this method it creates an anonymous TransportReceiver object which handles the response from the server. TransportReceiver.onTransportSuccess(String payload) handles an response that successfully hit the server. If response.getGeneralFailure() != null or there are constraint violations AbstractRequestContext.reuse() is eventually called which unfreeze any autobean entities that were apart of the request and unlocked the request context. However on errors that aren't generalFailures reuse() is never called. This means that this instance of the autobean can never be used again without getting the Autobean is frozen error. Has anyone else run into this issue. If so is there a workaround for it. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTable slow in IE 8
Thank you for your responses. Looking through the CSS, we DON'T have any descendant CSS selectors. However, I DO see the same performance degradation in IE 8 on the cellTable showcase sample here: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable. So it does seem to be a problem with my environment/browser and not my implementation. What's weird is that the row highlighter keeps up great with FireFox, it seems to just be a problem with IE 8 on a Windows 7 machine. Other people here running IE 8 on windows XP did NOT see the slowdown. It seems to be very much browser dependent. At this point I'm thinking it's yet another weird thing about Internet Explorer. I'm not sure there's anything I can do at this point, save for upgrading to GWT 2.2. Thanks for your help! Pedro On Feb 17, 11:43 am, John LaBanca jlaba...@google.com wrote: One common cause of slow hovering performance is the use of descendant CSS selectors in your CSS files. This is bad: .myForm td { padding: 3px; } This is good: .myCell { padding: 3px; } When you use the first version, the browser matches the second part td to EVERY TD element on the page. It then walks up the DOM looking for a parent element with .myForm. For a large app, especially one with a large table, most TD elements are not part of .myForm and you end up with a degenerate case where you walk up to the body element. So, each time you hover over a row, you have 100s of DOM walks to slow down your app. Avoid using descendent selectors where the child is a common element. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 2:29 PM, Pedro Perez guerr...@gmail.com wrote: Hello, My CellTable seems really slow in Internet Explorer 8. It looks like the row highlighter can't keep up with the mouseover (even if there are only 10 records in the table). With longer tables it makes scrolling down the page seem laggy. I don't seem to have this problem in FireFox 3.6. Has anyone else run into this problem? I've read this thread but found no solution: http://www.devcomments.com/My-CellTable-is-slow-and-I-don-t-know-why-... Has anyone else had problems with IE and slow CellTables being slow? Hoping for some tweak that could speed it up. Alternatively, is there a way to disable row highlighting? I removed the styles from the .css, and although it takes away the highlight itself, the CPU still gets eaten up and the table scroll lags. Any input is *greatly* appreciated. Thanks so much, Pedro -- You received 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.
Bug: CellTable row selection in IE 9 with GWT 2.2
When I create a CellTable in GWT 2.2 and run it under IE 9 and try to select a row with the mouse, GWT will always choose the first row as the selected one. Can anybody reproduce this issue and is there a workaround? (In 2.1 everything works just fine) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Ganymede Eclipse Older GWT Plugin link needed
If I try to install the latest version of the GWT eclipse plugin for Ganymede, it fails to download. Is there a way I can get to the older versions of the plugin from the update site? Note: the plugin has worked since last year when I downloaded from http://dl.google.com/eclipse/plugin/3.4 My PC crashed few months ago, and reinstalling the plugin now (which is much newer that what I had installed earlier) fails to download and install. So I want to get to older versions of GWT plugin. Any ideas? -- You received 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: UiBinder problem with IsWidget
Should it be MapWidgetString, String instead of MapWidgetK,V? Where do K and V come from if Blubb is not a template? UiBinder works fine even without provided=true as long as the template parameters are concrete classes. -- You received 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: Problems while installing Google Updates for Eclipse 3.6
Hi, I'm also facing the same problem. Any help would be appreciated. Thanks, Sandeepa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Future of CellTable
Hi, first of all congrats on the new 2.2 release! I was wondering if it is planned to add the incubator features (column resizing by dd, fixed headers/footer etc.) to the CellTable widget over the next releases. I'm still waiting for a good time to get rid of the incubator and port our apps... Daniel -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Future of CellTable
We plan to add the following features the CellTable: - Fixed headers/footers with scrollable content area (hopefully for GWT 2.3) - Formalized inline cell editors (maybe GWT 2.3) - Expandable rows (really, a fully customizable table builder, probably post GWT 2.3) After that, we haven't decided which new features to add. Certainly there are tons of features we could add, but we'll have to weigh them against other efforts, such as general mobile support. As far as user column resizing goes, it isn't on our agenda at the moment and is probably a lower priority than other features. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 3:58 AM, dflorey daniel.flo...@gmail.com wrote: Hi, first of all congrats on the new 2.2 release! I was wondering if it is planned to add the incubator features (column resizing by dd, fixed headers/footer etc.) to the CellTable widget over the next releases. I'm still waiting for a good time to get rid of the incubator and port our apps... Daniel -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Updating the javadoc on the Anchor() constructor to explain that it does not set the href of the... (issue1354804)
Reviewers: rjrjr, Message: ping Description: Updating the javadoc on the Anchor() constructor to explain that it does not set the href of the anchor element. Also adding a new constructor Anchor(boolean) to make it easier to add a default HREF without requiring that users call one of the other constructors with an empty string. Issue: 4502 Please review this at http://gwt-code-reviews.appspot.com/1354804/show Affected files: user/src/com/google/gwt/user/client/ui/Anchor.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
On 2011/02/17 05:22:16, jbrosenberg wrote: Scott makes sense, however, would it not also make sense to have a signature that can also used by generators to determine whether a type has changed (and prevent the need for an alternate signature being maintained for that purpose)? Currently, we have a dumbed down version of generating a signature from the full bytecode (in JRealClassType). That would benefit from an asm based signature that only looks at api level structurePerhaps this present code could be modified to alternately accept a flag to consider annotations as well, if desired. I'm wondering if handling the case where some methods have been re-ordered in a source file is worth incurring the overhead of sorting and managing multiple StringBuilders, etc. This could add up if we have a large number of classes to consider, etc. I'm not sure how often a source file has some fields/methods re-ordered, vs. other api changing edits, or how important it is to seamlessly handle that case (I think the user expects some recompiling when editing code). Maybe it's not too expensive though (in which case I'll go jump off a cliff)? How long on average does it take to generate a signature with this code? I think that should be a design consideration too. Eric, do you have any timing numbers on that? I've been thinking along the same lines, that we should have a good way to compute for typeoracle. I haven't done any performance measurements. My thoughts were that we might be able to share some code, but the type oracle hash would be interested in different things than the class compile dependency. http://gwt-code-reviews.appspot.com/1359802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Adding an example of StackLayoutPanel to the Showcase sample. The translations are the same as S... (issue1354805)
Reviewers: sbrubaker, Description: Adding an example of StackLayoutPanel to the Showcase sample. The translations are the same as StackPanel. Also adding a new constructor to SimplePanel to make it easier to set the default widget. Please review this at http://gwt-code-reviews.appspot.com/1354805/show Affected files: M samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties M samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties M samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties M samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties M samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java M samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java A samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwStackLayoutPanel.java M user/src/com/google/gwt/user/client/ui/SimplePanel.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
http://gwt-code-reviews.appspot.com/1359802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
http://gwt-code-reviews.appspot.com/1359802/diff/4/5 File dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java (right): http://gwt-code-reviews.appspot.com/1359802/diff/4/5#newcode76 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:76: // ignore On 2011/02/17 03:44:31, jbrosenberg wrote: I think generators do care about annotations that might exist in a class (e.g. in ClientBundle, @Source()). I was thinking about the generator problem when I named this ClassVisitor 'CompileDependencyVisitor'. We can add a GeneratorDependencyVisitor next (but I thought you tried this and it was too expensive?) http://gwt-code-reviews.appspot.com/1359802/diff/4/5#newcode160 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:160: int mask = On 2011/02/17 01:03:38, scottb wrote: Make into a class-level constant? Done. http://gwt-code-reviews.appspot.com/1359802/diff/4/5#newcode161 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:161: ~(Opcodes.ACC_ANNOTATION | Opcodes.ACC_DEPRECATED On 2011/02/17 03:44:31, jbrosenberg wrote: Yes, agreed, the ClientBundle generator, for instance, definitely depends on knowing if there's been a change in an annotation, e.g. @Source(sourceName) I think I was confused originally this Opcodes.ACC_ANNOTATION indicates this is a definition of the form @interface Foo {} not that it actually contains an annotation. To get that, you have to implement the MethodVisitor and FieldVisitor http://gwt-code-reviews.appspot.com/1359802/diff/4/5#newcode173 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:173: On 2011/02/17 03:44:31, jbrosenberg wrote: Is there a reason why you need to create multiple StringBuilders, for the header, fields and methods? Could you just maintain one big signatureBuilder, which might be less overhead? I see you do sorting here, but doesn't the ASM get visited in a repeatable order anyway, as it is? I think it's probably ok if the order of some methods get swapped in a source file, if that results in a different signature, no? The ASM code calls the visitors in the order the bytecode appears. Toby says there is no requirement to sort methods by the compiler. I was afraid that it could be that the order of methods appearance in a source file affects the order in the byte code, or some other factor impacts the order (like walking a hash table to dump the data) If we assume that most classes are small, that it in theory, the sort shouldn't have much impact. http://gwt-code-reviews.appspot.com/1359802/diff/4/5#newcode202 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:202: public String getClassDependencySignature(byte[] byteCode) { On 2011/02/17 01:03:38, scottb wrote: Make static? Done. http://gwt-code-reviews.appspot.com/1359802/diff/4/6 File dev/core/test/com/google/gwt/dev/javac/BytecodeSignatureMakerTest.java (right): http://gwt-code-reviews.appspot.com/1359802/diff/4/6#newcode590 dev/core/test/com/google/gwt/dev/javac/BytecodeSignatureMakerTest.java:590: private boolean compareUnitSignature(String originalSignature, On 2011/02/17 01:03:38, scottb wrote: If you formulate this as assertSignaturesEqual/NotEqual and call assertEquals() internally, you get a clearer exception than assertTrue/False gives. (Although, visually seeing the difference in hashes wouldn't be that useful; you'd want to compare the results of a for-testing BytecodeSignatureMaker.getRawSignature().) Done. http://gwt-code-reviews.appspot.com/1359802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
On Wed, Feb 16, 2011 at 11:57 PM, Scott Blum sco...@google.com wrote: To give some context, this signature is used for the purpose of deciding if a class's API has changed... *as far as other Java source files are concerned for the purposes of running javac*. It has no effect on TypeOracle or the data presented there, it's not being used to cache old TypeOracle models. Using sort order means a user can sort a file without changing its API and not have to recompile the dependent files. You can design the hash so it isn't sensitive to the order of methods/fields without having to sort. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixing insert/remove bugs in StackLayoutPanel. Insert always appends to the end. Remove does n... (issue1359803)
Reviewers: rchandia, Description: Fixing insert/remove bugs in StackLayoutPanel. Insert always appends to the end. Remove does not redraw the panel. Neither adjusted the selectedIndex when inserting/removing at a lower index. This patch also makes StackLayoutPanel implement AnimatedLayout so users can change the default animation duration or force layout. Issue: 4926, 5304 Please review this at http://gwt-code-reviews.appspot.com/1359803/show Affected files: M user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java M user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
http://gwt-code-reviews.appspot.com/1359802/diff/4/5 File dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java (right): http://gwt-code-reviews.appspot.com/1359802/diff/4/5#newcode76 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:76: // ignore Well, the one i tried wasn't based on bytecode at all, it just used the api's available in the loaded class (via JClassType). So, I think an asm/bytecode solution is intriguing. The stop-gap I have currently just does a hash on the bytecode as a whole. http://gwt-code-reviews.appspot.com/1359802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
I did a performance test on this hash on a small sample GWT app and got an average of .1 to .12 ms per CompliledClass instance (2548 types were processed) http://gwt-code-reviews.appspot.com/1359802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing insert/remove bugs in StackLayoutPanel. Insert always appends to the end. Remove does n... (issue1359803)
LGTM On 2011/02/17 15:56:46, jlabanca wrote: http://gwt-code-reviews.appspot.com/1359803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
LGTM (and I eagerly await the fruits of this as applicable to checking type hashes from generator code) On Thu, Feb 17, 2011 at 11:00 AM, zun...@google.com wrote: I did a performance test on this hash on a small sample GWT app and got an average of .1 to .12 ms per CompliledClass instance (2548 types were processed) http://gwt-code-reviews.appspot.com/1359802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding an example of StackLayoutPanel to the Showcase sample. The translations are the same as S... (issue1354805)
LGTM with one small nit. http://gwt-code-reviews.appspot.com/1354805/diff/1/3 File samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties (right): http://gwt-code-reviews.appspot.com/1354805/diff/1/3#newcode209 samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties:209: cwStackLayoutPanelContactsEmails = ben...@example.com, alb...@example.com, r...@example.com, b...@example.com, lud...@example.com, rich...@example.com, a...@example.com, j...@example.com Why are the e-mails are showing as English text instead of arabic? Ditto for the Chinese sample. http://gwt-code-reviews.appspot.com/1354805/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding an example of StackLayoutPanel to the Showcase sample. The translations are the same as S... (issue1354805)
Emails are like proper names. They aren't translated because they would go to the wrong recipient. Thanks, John LaBanca jlaba...@google.com On Thu, Feb 17, 2011 at 11:27 AM, sbruba...@google.com wrote: LGTM with one small nit. http://gwt-code-reviews.appspot.com/1354805/diff/1/3 File samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties (right): http://gwt-code-reviews.appspot.com/1354805/diff/1/3#newcode209 samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties:209: cwStackLayoutPanelContactsEmails = ben...@example.com, alb...@example.com, r...@example.com, b...@example.com, lud...@example.com, rich...@example.com, a...@example.com, j...@example.com Why are the e-mails are showing as English text instead of arabic? Ditto for the Chinese sample. http://gwt-code-reviews.appspot.com/1354805/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9748 committed - Fixing insert/remove bugs in StackLayoutPanel. Insert always appends ...
Revision: 9748 Author: jlaba...@google.com Date: Thu Feb 17 05:39:09 2011 Log: Fixing insert/remove bugs in StackLayoutPanel. Insert always appends to the end. Remove does not redraw the panel. Neither adjusted the selectedIndex when inserting/removing at a lower index. This patch also makes StackLayoutPanel implement AnimatedLayout so users can change the default animation duration or force layout. Issue: 4926, 5304 Review at http://gwt-code-reviews.appspot.com/1359803 Review by: rchan...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9748 Modified: /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java /trunk/user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java === --- /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java Wed Feb 16 10:10:39 2011 +++ /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java Thu Feb 17 05:39:09 2011 @@ -30,6 +30,7 @@ import com.google.gwt.event.logical.shared.SelectionEvent; import com.google.gwt.event.logical.shared.SelectionHandler; import com.google.gwt.event.shared.HandlerRegistration; +import com.google.gwt.layout.client.Layout.AnimationCallback; import com.google.gwt.safehtml.shared.SafeHtml; import java.util.ArrayList; @@ -95,7 +96,7 @@ * /pre */ public class StackLayoutPanel extends ResizeComposite implements HasWidgets, -ProvidesResize, IndexedPanel.ForIsWidget, +ProvidesResize, IndexedPanel.ForIsWidget, AnimatedLayout, HasBeforeSelectionHandlersInteger, HasSelectionHandlersInteger { private class Header extends Composite implements HasClickHandlers { @@ -135,6 +136,7 @@ private static final int ANIMATION_TIME = 250; + private int animationDuration = ANIMATION_TIME; private LayoutPanel layoutPanel; private final Unit unit; private final ArrayListLayoutData layoutData = new ArrayListLayoutData(); @@ -231,12 +233,68 @@ SelectionHandlerInteger handler) { return addHandler(handler, SelectionEvent.getType()); } + + public void animate(int duration) { +animate(duration, null); + } + + public void animate(int duration, AnimationCallback callback) { +// Don't try to animate zero widgets. +if (layoutData.size() == 0) { + if (callback != null) { +callback.onAnimationComplete(); + } + return; +} + +double top = 0, bottom = 0; +int i = 0; +for (; i layoutData.size(); ++i) { + LayoutData data = layoutData.get(i); + layoutPanel.setWidgetTopHeight(data.header, top, unit, data.headerSize, + unit); + + top += data.headerSize; + + layoutPanel.setWidgetTopHeight(data.widget, top, unit, 0, unit); + + if (i == selectedIndex) { +break; + } +} + +for (int j = layoutData.size() - 1; j i; --j) { + LayoutData data = layoutData.get(j); + layoutPanel.setWidgetBottomHeight(data.header, bottom, unit, + data.headerSize, unit); + layoutPanel.setWidgetBottomHeight(data.widget, bottom, unit, 0, unit); + bottom += data.headerSize; +} + +LayoutData data = layoutData.get(selectedIndex); +layoutPanel.setWidgetTopBottom(data.widget, top, unit, bottom, unit); + +layoutPanel.animate(duration, callback); + } public void clear() { layoutPanel.clear(); layoutData.clear(); selectedIndex = -1; } + + public void forceLayout() { +layoutPanel.forceLayout(); + } + + /** + * Get the duration of the animated transition between children. + * + * @return the duration in milliseconds + */ + public int getAnimationDuration() { +return animationDuration; + } /** * Gets the widget in the stack header at the given index. @@ -421,6 +479,11 @@ if (layoutData.size() 0) { showWidget(layoutData.get(0).widget); } +} else { + if (i = selectedIndex) { +selectedIndex--; + } + animate(animationDuration); } return true; } @@ -428,6 +491,15 @@ return false; } + + /** + * Set the duration of the animated transition between children. + * + * @param duration the duration in milliseconds. + */ + public void setAnimationDuration(int duration) { +this.animationDuration = duration; + } /** * Sets a stack header's HTML contents. @@ -491,7 +563,7 @@ */ public void showWidget(int index, boolean fireEvents) { checkIndex(index); -showWidget(index, ANIMATION_TIME, fireEvents); +showWidget(index, animationDuration, fireEvents); } /** @@ -510,7 +582,7 @@ * @param fireEvents true to fire events, false not to */ public void showWidget(Widget child, boolean fireEvents) { -showWidget(getWidgetIndex(child), ANIMATION_TIME, fireEvents); +showWidget(getWidgetIndex(child), animationDuration, fireEvents); } @Override @@ -518,42 +590,6 @@ // When the widget
[gwt-contrib] Re: Fixing insert/remove bugs in StackLayoutPanel. Insert always appends to the end. Remove does n... (issue1359803)
committed as r9748 http://gwt-code-reviews.appspot.com/1359803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A Class that creates a string hash out of the public API of a (issue1359802)
On Thu, Feb 17, 2011 at 12:22 AM, jbrosenb...@google.com wrote: Scott makes sense, however, would it not also make sense to have a signature that can also used by generators to determine whether a type has changed (and prevent the need for an alternate signature being maintained for that purpose)? Currently, we have a dumbed down version of generating a signature from the full bytecode (in JRealClassType). That would benefit from an asm based signature that only looks at api level structurePerhaps this present code could be modified to alternately accept a flag to consider annotations as well, if desired. I have to agree that this should be separate. For example, TypeOracle cares about parameter names, annotations, etc; none of which would force recompile propagation. I'm wondering if handling the case where some methods have been re-ordered in a source file is worth incurring the overhead of sorting and managing multiple StringBuilders, etc. This could add up if we have a large number of classes to consider, etc. I'm not sure how often a source file has some fields/methods re-ordered, vs. other api changing edits, or how important it is to seamlessly handle that case (I think the user expects some recompiling when editing code). Maybe it's not too expensive though (in which case I'll go jump off a cliff)? I'm sure it's not terribly expensive, and I'm generally not a fan of trying to micro optimize on the front end. If it becomes a source of sluggishness, it'll show up on profiling at some point. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors