Incubator: ScrollTable
Hello, I have been using the ScrollTable widget (com.google.gwt.gen2.table.client.ScrollTable) in the incubator and I find it very useful. I need to add a Row Header section which contains fixed columns that do not move when scrolling horizontally. I have studied the AbstractScrollTable (com.google.gwt.gen2.table.client.AbstractScrollTable) class code which implements most of the ScrollTable functionality and I think the cleanest and best way to add a Row Header would be to add a FixedWidthFlexTable that implements it, much in the same way the existing headerTable has been implemented. Has anyone done this before? Are there any best practices to change the current code in the incubator (AbstractScrollTable class code would need some substantial parts added to it)? An abovious solution would be create my own class that extends AbstractScrollTable, but this contains either private or protected instance variables (for example Element absoluteElement, the widget main DIV container), so I'd rather go for the cleanest approach possible... Any help and suggestions highly appreciated. Thanks, Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: GoogleSky
I've got one more question. Is it possible to make application using GWT that would be controled using some external controller (not mouse or keyboard). I want to create touchpanel interface and link it with googlesky using GWT. Would it be possible? On 19 Gru, 19:25, Eric Ayers zun...@google.com wrote: If you use the Google APIs for GWT bindings (http://code.google.com/p/gwt-google-apis/) you can use sky maps by using the regular Maps API and setting the map type. See:http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Map%20Types and change the map type to Sky: Visible (zoom out to see the entire sky) Looking at it this demo kinda makes me wish I lived in the southern hemisphere. -Eric On Fri, Dec 19, 2008 at 12:45 PM, PawelRog ppp.pawel...@gmail.com wrote: I'd like to know if there is some API to googlesky in GWT. On sourceforge.net I found GoogleMaps extension for GWT. Is there something like that but for GoogleSky? Maby there is some other Java API for GoogleSky? -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: IDE for GWT
I use Eclipse... I've try a lot of IDE... Eclipse still better... On 21 Dic, 02:48, Eduardo Henrique eduardo.hi...@gmail.com wrote: What IDE are you using??? Do you use any Eclipse's Plugin for GWT? -- Eduardo Henrique(Hitek) -www.eduardohitek.blogspot.com Desenvolvimento SoftSite -www.softsite.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Need for a great GWT GUI library
If SmartGWT seems slow, just disable Firebug or similar development utilities, and be sure you haven't done anything like completely disabling browser caching. For normal end users who don't have these tools or settings, it's quick. On Dec 19, 7:13 am, Juan Backson juanback...@gmail.com wrote: Smart-GWT - slow and memory intensive --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: RPC.encode not working
You should be able to throw your exception from anywhere on the server side and have it appear on the client side's onFailure (if the exception implements IsSerializable). -- Arthur Kalmenson On Fri, Dec 19, 2008 at 1:10 PM, deanhiller dean.hil...@gmail.com wrote: How does that work? I am doing the above code in a servlet filter so there is no GWT code above the filter. All the GWT code is in the RemoteServlet and ServletFilters run before the RemoteServlet code does. I also want to throw a GwtSessionTimeoutException so I can pass a url for the gwt clients to redirect to the correct location. I have many GWT apps that will use this filter. thanks, Dean On Dec 18, 7:06 am, Arthur Kalmenson arthur.k...@gmail.com wrote: Hi Dean, Are you trying to encode an exception to throw it back to the client side? AFAIK, you can just throw a IsSerializable exception in your code and GWT-RPC will transfer the said exception to the client side for you. -- Arthur Kalmenson On Thu, Dec 18, 2008 at 12:55 AM, deanhiller dean.hil...@gmail.com wrote: I have the following code in a servlet filter GwtSessionTimeout timeout = new GwtSessionTimeout( Session timed out. You need to redirect to the url in getUrl function, url); try { String payload = RPCServletUtils.readContentAsUtf8(request, true); RPCRequest rpcRequest = RPC.decodeRequest(payload); payload = RPC.encodeResponseForFailure(null, timeout); boolean gzipEncode = RPCServletUtils.acceptsGzipEncoding(request) shouldCompressResponse(request, response, payload); ServletContext servletContext = request.getSession ().getServletContext(); RPCServletUtils.writeResponse(servletContext, response, payload, gzipEncode); } catch (SerializationException e) { throw new RuntimeException(Exception, e); } catch (ServletException e) { throw new RuntimeException(Exception,e); } The browser(firefox) says This application is out of date, please click the refresh button on your browser. If I change payload = RPC.encodeResponseForFailure(null, timeout); to payload = RPC.encodeResponseForFailure(rpcRequest.getMethod, timeout); it fails with UnexpectedException like GwtSessionTimeout was not a RuntimeException, but it is a RuntimeException so it should work and I expect the aysncCallback.onFailure to be called, but it doesn't work. Here is my GwtSessionTimeout public class GwtSessionTimeout extends RuntimeException implements IsSerializable{ } why isn't this working? later, Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Image Problem
You probably have a problem with one of their CSS files. There current release only refers to this image in the xtheme-silverCherry.css file. On Dec 21, 3:14 am, AMit Pandey amit@gmail.com wrote: Hello I am getting [TRACE] The development shell servlet received a request for 'js/ext/resources/images/default/window/right-corners.png) no-repeat right 0' in module 'TestHome.gwt.xml' can anyone tell me how t solve this issued. I think b'cos of this issues i am unable to view correct layout here is my 'TestHome.gwt.xml' module inherits name='com.google.gwt.user.User'/ inherits name='com.gwtextux.GwtExtUx'/ inherits name='com.gwtextux.UploadDialog'/ entry-point class='com.test.client.TestHome'/ inherits name='com.allen_sauer.gwt.log.gwt-log-DEBUG'/ extend-property name='log_level' values='INFO'/ set-property name='log_ConsoleLogger' value='ENABLED'/ set-property name='log_DivLogger' value='DISABLED'/ set-property name='log_FirebugLogger' value='ENABLED'/ set-property name='log_GWTLogger' value='ENABLED'/ set-property name='log_SystemLogger' value='ENABLED'/ set-property name='log_RemoteLogger' value='DISABLED'/ set-property name='log_WindowLogger' value='DISABLED'/ servlet path='/LoginService' class='com.test.server.LoginService'/ /module Pleas help me out Amit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: IDE for GWT
Eclipse is great IMO. It its perfectly suited for developing an GWT app you can think of. I started out with Instantiation's GWT Designer. The product was great for getting into GWT quick but I found it eventually only useful for creating trivial applications. On Dec 20, 8:48 pm, Eduardo Henrique eduardo.hi...@gmail.com wrote: What IDE are you using??? Do you use any Eclipse's Plugin for GWT? -- Eduardo Henrique(Hitek) -www.eduardohitek.blogspot.com Desenvolvimento SoftSite -www.softsite.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Servlet Response formatting in IE
It looks like you are using a FormPanel. For IE to work you need to have your response content type be set to text/html. This will work for the other browsers as well. On Dec 19, 5:05 pm, D L H thed2...@gmail.com wrote: Hello. I have a Java servlet that reads an xml-based file and sends the contents to my gwt application as an HttpServletResponse. I have the content type set to text/plain in the servlet. On the client side I use event.getResults() inside the onSubmitComplete method of the form handler. Everything runs smoothly in Firefox, but when I tested in IE7, it would not work properly. I used a Label for debugging to see what exactly the application was reading from the servlet, and in IE i'm getting a buncha HTML stuff like this: DIV class=eSPAN class=bnbsp;/SPAN SPAN class=mlt;?/ SPANSPAN class=pixml version=1.0 /SPANSPAN class=m?gt;/ SPAN /DIV How do I get IE7 to format my servlet response as plain text instead of 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 -~--~~~~--~~--~--~---
What am I misunderstanding about the event model?
The more code I implement and the more event-related APIs I look at in GWT, the more confused I get. After looking at complete examples about 'listeners' on website such as: http://examples.roughian.com/index.htm#Listeners~Summary or posts in this group, I conclude that the most general is an 'EventListener', because then I can get at ANY/ALL events that I might be interested in, as it's method gets 'Event e' as an input param. But, what seems to me like a real NEGATIVE is that I must 'extend' (sub-class) an object to use EventListener, right? Now, if I only care about a 'click', then I do NOT need to extend, because there are 'clicklisteners', which listen for just ONE event type...'click'. But, if I want, say, 'double-click', well, there are NOT any 'double-click' listeners, so it seems that I'll need to use the more general EventListener. That would be reasonable/acceptable if there was just ONE object that I wanted/needed to extend in a given app. But, let's say, I care about 'doubleclicks' from 3 different objects in the same app...anchors, tabs, and images. (Maybe not the best examples, but bear with me.) So, it seems that now I need to extend three objects, so I'll need 3 java classes (and thus, ...3 FILES...one class per file). [Some posts/examples mention 'widget builders' as a separate class of developer. But, I don't want to build new 'widgets'... I just want a write a simple app. Somehow, the APIs seem to be making things unnecessarily 'complex', when I compare this to how easy it was to implement events in javascript language (before I started using GWT). And, its beginning to seem like the designers of the event-model/event-apis in GWT might have miss-designed the APIs?! (I wasn't around at the beginning, so I don't know how the event-APIs looked in version 1.00.) Both the author of roughian website and other posters all seem to bemoan this need to extend, but all say it is necessary. For example, roughian says: [Notes: This is something you should only use if you are subclassing a widget - it's not much use otherwise, you can't addEventListener() to anything I'm aware of. So, as a builder of widgets, you'd use this to pick up events and use them in ways that you can't do with the ordinarily supported event interfaces] Clearly, I (and others?) must all be missing something. Where have I gone wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT-RPC Version
I develop a GWT application ( version 1.5.3 ), when I deploy it on the geronimo application server and use the GWT-RPC mechanism I get the following exception: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 4. ) I compile my application and package it with maven2, I also try to refresh my Firefox browser cache, but the exception is always the same. Thank you very much! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-docs-20081026.zip (Google Web Toolkit Documentation)
Thanks for your work, the archive is very convenient ! As far I'm concerned, it could be a nice addition to the gwt distribution ! Keep up the good work, Bertrand. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 set the padding for flextable or grid cells
How can I set the padding for a flextable or grid cell? Scenario: Have a grid, or a flextable. Data is adding dynamically to the grid or flextable. When the first 2 entries are added they are displayed like: A B With a lot of space between those 2 entries, a thing that I dont like. Later on, when I add other entries the space between them is streched and it looks okey. I set the cell padding, I set the css for the cells, but I obtain no result. What am I doing wrong, and what must I do, for obtaining a view like: A B in the grid/flextable. Hope for an answer, Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
3D button with 3 images
Hi, I'm a beginner in GWT, but I have a problem at this very beginning. I'd like to create a custom 3D button (a sliced one, with a left, center and right part, center should be repeated), but as I can see, Button class doesn't seem to provide a way to achieve this (it doesn't have a 1x3 pattern that can be seen at DialogBox class (3x3 table) ). Any ideas? Thx MB --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: 3D button with 3 images
I implemented custom button by a DecoratedPanel, and sinkEvents to process mouse click, over, etc. Kevin On Sun, Dec 21, 2008 at 3:09 AM, mbazs mathe.bal...@gmail.com wrote: Hi, I'm a beginner in GWT, but I have a problem at this very beginning. I'd like to create a custom 3D button (a sliced one, with a left, center and right part, center should be repeated), but as I can see, Button class doesn't seem to provide a way to achieve this (it doesn't have a 1x3 pattern that can be seen at DialogBox class (3x3 table) ). Any ideas? Thx MB --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Stack Panel
Thanks Ajay.. From: Google-Web-Toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of ajay jetti Sent: Saturday, December 20, 2008 1:10 PM To: Google-Web-Toolkit@googlegroups.com Subject: Re: Stack Panel Try Using .gwt-StackPanelContent tag and use a background:your-color for changing the color. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 RIA s ?
On 19 déc, 20:51, Pascal zig...@gmail.com wrote: I think his advice are meant to be friendly advice and I do think a lot of people agree with them. I don't. I use Ext GWT (aka gxt, previously MyGWT), which is a full GWT library (no JSNI, no wrapping JS library), since April (2008) for an internal application (now 223 classes for the GWT side). AFAIK, it is the only GWT library (excluding JS wrappers) providing ALL the following features : - containers and layouts - MVC layer - complete look and feels - rich set of widgets (including grids, drag and drop...) - form data binding - lazy rendering Using this lib, I don't have to write any line of HTML/CSS. Drawbacks : Bugs : as the library is young, there are some bugs, but they are quickly fixed when you post a ticket (and there are almost always workarounds when you can't wait). Slower but not slow : In hosted mode, start time will be slower than a vanilla GWT app, but I don't get any performance issue once the app is launched All I can suggest you is : take a week or a few days, take the latest version of the library and see if the lib can help you (for me, it does, it just saves me a lot of time). Regards Miles T. Pascal On Dec 19, 9:47 am, Rob Smith scubacarri...@gmail.com wrote: There you go again sounding like a broken record. You really are quite thick headed aren't you? If you take pleasure in constantly dissing other libraries, I'll do the same and reply to your every post saying that you are full of it. Deal? You might make yourself more useful if you try to answer real questions on the group instead of increasing your post count with cruft. 90% of your posts are really just pointing people to the gwt- ext, ext-gwt forums and dissing these libraries at every single opportunity. Rob On Dec 19, 9:04 am, Arthur Kalmenson arthur.k...@gmail.com wrote: So you've assumed responsibility for being the GWT saviour by educating these developers and saving their project? I'm not really assuming any responsibility, I'm just mentioning that there are draw backs to using these libraries. What makes you so qualified? I've had to abandon and rewrite a GWT-ext project because of the said drawbacks. I've talked with many other people who had to rewrite ExtGWT and GWT-ext projects. You've expressed your opinion (more than once) so why not leave it at that. How would it appear if someone posted in response to your every post saying that Arthur is clueless? I don't believe I was insulting anyone. And while I've expressed my opinion (which many here hold), many people are new and don't know the downside of using these libraries. Or the ZK guys saying that GWT sucks in their ads that are all over the place. Everyone is entitled to an opinion by going overboard is really not necessary. You know what they say about opinions and wanting to give them... And you've gone out of your way to voice your opinion even no one asked for it. How am I going overboard? Dave Ford's comment is indicative that people appreciate hearing what the down sides are. In order for a developer to make an informed decision, they need to hear all sides and try it for themselves. Try to take a deep breath and relax when these libraries are mentioned and ignore them instead of assuming the role of GWT gatekeeper. There have been stray email questions on various third party libraries like GChart and DnD. I don't see you jump in on those threads pointing to the appropriate forum. That's the thing, if I ignore the posts that tell people to use ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they might end up committing substantial resources to these projects and then have to rewrite them or have them turn out poorly. For example, see this posthttp://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94 where the developer says load times are slow (it's even slow on my new MacBook Pro). Had the developer used vanilla GWT, I doubt they would have run into those problems. The biggest problem IMHO is that people use these third party libraries and think they're using GWT. They find that it's slow and buggy and attribute it to GWT. Then GWT ends up getting a bad reputation. People who come to this mailing list need to understand that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT and everything to do with the JS libraries they either wrap or attempt to mimic. That way, if they decide to use these libraries, they'll understand that they're using that toolkit, and not GWT. If I see questions about other third party libraries that go unanswered, I'll point them to the appropriate mailing list (if one exists). I can't catch and respond to every post. Anyway, I'm tired of arguing this point. If you like and use gwt-ext, that's up to you. Try not to
[gwt-contrib] Re: Adding ie7 and ie8 user.agent values?
when-property-is name=user.agent value=ie6 / none when-property-is name=user.agent value=ie7 / /none (you would alias ie8ie7 and ie7ie6, or you'd need to add value=ie8 in the none, which isn't quite forwards compatible) As a pattern, this seems non-obvious and ultimately harmful in the long-run due to the complexity overhead for module-writers to keep track of what's aliased to what. I'm moving to the opinion that we just add ie7 and ie8 to UserAgent.gwt.xml and let existing libraries break unless they change their rules. I suspect that in many cases it would just result in a static compile error due to the lack of any matching rebind solutions for GWT.create() calls. Even if you had an unsupported, third-party library, you'd be able to monkey-patch the rebind solutions in your own gwt.xml file. The trouble is in allowing a library to be both pre- and post- addition compatible. We may want to change 1.6 to allow unknown values in when-property-is checks. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Adding ie7 and ie8 user.agent values?
On Sun, Dec 21, 2008 at 6:42 AM, BobV b...@google.com wrote: I'm moving to the opinion that we just add ie7 and ie8 to UserAgent.gwt.xml and let existing libraries break unless they change their rules. I suspect that in many cases it would just result in a static compile error due to the lack of any matching rebind solutions for GWT.create() calls. Even if you had an unsupported, third-party library, you'd be able to monkey-patch the rebind solutions in your own gwt.xml file. So there would be no property aliasing at all? This seems unscalable as more new browsers are added. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---