Re: Change ListBox-Item style: don't work correctly
It occurs only in IE7... Firefox and IE6 behave properly. Can anyone help me? I dont know how to fix this. Is there a workaround? 2008/10/2 Schimki86 [EMAIL PROTECTED] I found the reason: the ListBoxis not updated. If I use setVisible() to hide it and show it again the list is updated correctly. Any Idea? Is this a bug and is there a clean way to fix this? 2008/10/2 Schimki86 [EMAIL PROTECTED] I have a ListBox (select) with items (options). Now i have to change the style on an option-element: listBox.getElement().getElementsByTagName(option).getItem(i).setClassName(empty- option); When I want to remove the style I do it on same way, but instead a class-name I use an empty string () When a RcihTextArea changed its text, the ListBox should update. The class name should be added or cleared, but only the ListBox-Text changed its style. When I open the ListBox, the items keep their styles... any idea? --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Event Cancel for Middle Button on Firefox 2
I am trying to override the middle button click on FF2. I can capture the middle button mouseup event; but it seems that the default FF action of opening the link in a new window/tab is not stopped. I am using the following: private class SubMenuLink extends Hyperlink{ public SubMenuLink(String text, String view){ super(text, view); sinkEvents(Event.ONCONTEXTMENU); sinkEvents(Event.ONMOUSEUP); sinkEvents(Event.ONMOUSEDOWN); } @Override public void onBrowserEvent(Event event){ super.onBrowserEvent(event); if(DOM.eventGetType(event) == Event.ONCLICK) { ; //do nothing } else if(DOM.eventGetType(event) == Event.ONCONTEXTMENU) { DOM.eventPreventDefault(event); Window.alert(context sub menu link); cm.show(this, new String[]{target, getTargetHistoryToken()}); } else if(DOM.eventGetType(event) == Event.ONMOUSEUP) { switch(DOM.eventGetButton(event)){ case Event.BUTTON_MIDDLE: DOM.eventPreventDefault(event); event.cancelBubble(true); Window.alert(middle sub menu link); // openInNewWindow(new String[]{target, getTargetHistoryToken()}); break; } } else if(DOM.eventGetType(event) == Event.ONMOUSEDOWN) { DOM.eventPreventDefault(event); event.cancelBubble(true); } } } Is it possible to cancel the middle button click in FF2? Chris... --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to refresh a component or page in GWT
Hello all, I have created a table with checkboxes in GWT and on click of a button I am trying to delete the selected row there by using RPC . I managed to delete the row from the database but the actual table contents are not getting updated . Can anyone please tell me the way by which I can refresh my table or atleast the page on which this table is. Any white paper , any link will greatly be appreciated. Thanks Samir --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Implementation of HasWidgets
The API doc states for the doAttachChildren() method: If a widget implements HasWidgets, it must override this method and call onAttach() for each of its child widgets. The problem is that onAttach is protected. The API also states that overriders of the onAttach method should call super.onAttach() which the Composite class does not... Is something changing at this point? i cant see that the source even will compile since i find widget.onAttach() calls all over --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Deferred binding result type gone after refresh in hosted mode
This might not be an issue, but this looks a little fishy to me: [ERROR] Could not load deferred binding result type 'nl.commpany.app.web.gwt.client.model.UserAccountWrapper' company is spelled with two m's.everywhere else it has one. Could be a typo in a config file somewhere. That is a typo on my part: I searched/replaced the name of our client and the actual name of the application from the stacktrace, but a few lines weren't changed, which I modified by hand. --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: I got UnsatisfiedLinkError
LoneWolf schrieb: But I got this exception: java.lang.UnsatisfiedLinkError: /media/sda4/Frameworks/gwt- linux-1.4.61/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory What's mysterious about this error-message? The shared library libstdc++.so.5 can't be found, i.e. you have to install it. Any ideas? Install the library. Ubuntu should provide some kind of package-manager to do this (I use SuSE, so I can't tell in detail how to do this. Look for Standard C++ Library Version 5. It's possible that other libraries are missing as well, you can check in advance by entering ldd /media/sda4/Frameworks/gwt-linux-1.4.61/mozilla-1.7.12/libxpcom.so or just wait for the next error-message coming up after the install of beforementioned library. Regards, Lothar --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: I got UnsatisfiedLinkError
LoneWolf schrieb: For me it is mysterious, because when I was using Ubuntu 7.10, every thing was going ok but when I installed a fresh copy of Ubuntu 8.04 , I got the exception. Most likely Ubuntu 8.04 is only shipped with the Standard C++ Library Version 6. After running this command: sudo apt-get install libstdc++5 Every thing is ok now. Good. BTW, do use openSuse 11? I'm curious about it and I need developer's opinion regarding it. We have it running on one server. What exactly do you want to know? VMWare doesn't run very well on it, because the version 1.0.x needs 32 Bit Perl for the administrative tools which I don't find anywhere in the package-manager of SuSE (only the shared libraries, no binaries). So you can start Guests, but can't make any backups of them... Java works. Regards, Lothar --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem import class external path /client/ HELP!
You need to work on carefully separating classes that will be compiled by the GWT compiler from those that will not. Classes shared between server and client are in the first category. Isolate those under the / client folder before you try to configure your module. Then you won't need any source tags. If they cannot be isolated under a single path, then you will need source tags, but it will still be true that any location on the source path for the compile must not contain classes unsuitable for the GWT compiler. Walden On Oct 7, 4:19 pm, Shi [EMAIL PROTECTED] wrote: Changing the file: entry-point class=gwt.client.GwtApplication/ source path=to/ source path=dao source path=gwt/client/ source path=gwt/server/ source path=gwt/public/ stylesheet src=js/ext/resources/css/ext-all.css/ script src=js/ext/adapter/ext/ext-base.js/ script src=js/ext/ext-all.js/ servlet class=gwt.server.ComunicationServiceImpl path=/ comunication/ stylesheet src=GwtApplication.css/ the error is: Compiling module gwt.GwtApplication Computing all possible rebind results for 'gwt.client.GwtApplication' Rebinding gwt.client.GwtApplication Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR] Unable to find type 'gwt.client.GwtApplication' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [ERROR] Build failed I do not understand .. --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: I got UnsatisfiedLinkError
Is it well supported? what about the community? is it stable as they said? On Oct 8, 1:50 pm, Lothar Kimmeringer [EMAIL PROTECTED] wrote: LoneWolf schrieb: For me it is mysterious, because when I was using Ubuntu 7.10, every thing was going ok but when I installed a fresh copy of Ubuntu 8.04 , I got the exception. Most likely Ubuntu 8.04 is only shipped with the Standard C++ Library Version 6. After running this command: sudo apt-get install libstdc++5 Every thing is ok now. Good. BTW, do use openSuse 11? I'm curious about it and I need developer's opinion regarding it. We have it running on one server. What exactly do you want to know? VMWare doesn't run very well on it, because the version 1.0.x needs 32 Bit Perl for the administrative tools which I don't find anywhere in the package-manager of SuSE (only the shared libraries, no binaries). So you can start Guests, but can't make any backups of them... Java works. Regards, Lothar --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to refresh a component or page in GWT
Hello Alex, Thanks for the prompt reply. I am not using FlexTabel and Grid. I am using GWT-EXT API for table. I have used GridPanel for the table. In my case the scenerio that you have mentioned is not happening properly. The row gets deleted from the database but not from the table . Can you please let me know what needs to be done to make this happen Thanks Samir --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to refresh a component or page in GWT
Sorry, i'm not using ext-gwt - you should probably ask that in ext- gwt's forum. But basically you are probably using Store binded to your gridPanel - isn't it enough to delete the row in the store, and the grid automatically updates itself? On 8 Okt., 14:32, Sam [EMAIL PROTECTED] wrote: Hello Alex, Thanks for the prompt reply. I am not using FlexTabel and Grid. I am using GWT-EXT API for table. I have used GridPanel for the table. In my case the scenerio that you have mentioned is not happening properly. The row gets deleted from the database but not from the table . Can you please let me know what needs to be done to make this happen Thanks Samir --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
I got UnsatisfiedLinkError
Hey, I'm trying to run GWT in the hosted mode (external Tomcat container): = path id=gwt.classpath pathelement location=${src.dir}/ pathelement location=${classes.dir}/ pathelement location=${gwt.home}/gwt-user.jar/ pathelement location=${gwt.home}/gwt-dev-linux.jar/ /path target name=Run-GWT java classpathref=gwt.classpath fork=true classname=com.google.gwt.dev.GWTShell arg line=-logLevel DEBUG/ arg line=-noserver/ arg line=-port 8080/ arg line=home.html/ /java /target = But I got this exception: java.lang.UnsatisfiedLinkError: /media/sda4/Frameworks/gwt- linux-1.4.61/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory Platform: Java 1.6.0_06 Ubuntu 8.04 GWT 1.4.61 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Best GWT canvas (vector graphics) library?
I'm also very interested on this, if anyone has other ideas ? Is there such a product in pure JS wich could be wrapped instead looking for GWT 3rd party libs directly ? On 2 oct, 15:21, joseanquiles [EMAIL PROTECTED] wrote: Hi Robbie, you're right. GWTCanvas is based on IE Canvas, which is very very slow. GWTCanvas is not obviously the guilty :-) But I'd like to know if there exist another javascript implementation(s) not based in IE Canvas. So, we can build a new GWTCanvas, faster... Regards José Antonio --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Approximate release time for GWT 2.0
Previous experience would suggest that you won't even get 24 hours notice. The idea of allowing external developers to plan ahead is alien to Google. They seem to work on IBM's FUD principle. Ian PS: I have a love/hate relationship with GWT --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: I got UnsatisfiedLinkError
For me it is mysterious, because when I was using Ubuntu 7.10, every thing was going ok but when I installed a fresh copy of Ubuntu 8.04 , I got the exception. After running this command: sudo apt-get install libstdc++5 Every thing is ok now. BTW, do use openSuse 11? I'm curious about it and I need developer's opinion regarding it. Thanks. On Oct 8, 1:20 pm, Lothar Kimmeringer [EMAIL PROTECTED] wrote: LoneWolf schrieb: But I got this exception: java.lang.UnsatisfiedLinkError: /media/sda4/Frameworks/gwt- linux-1.4.61/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory What's mysterious about this error-message? The shared library libstdc++.so.5 can't be found, i.e. you have to install it. Any ideas? Install the library. Ubuntu should provide some kind of package-manager to do this (I use SuSE, so I can't tell in detail how to do this. Look for Standard C++ Library Version 5. It's possible that other libraries are missing as well, you can check in advance by entering ldd /media/sda4/Frameworks/gwt-linux-1.4.61/mozilla-1.7.12/libxpcom.so or just wait for the next error-message coming up after the install of beforementioned library. Regards, Lothar --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT + Struts 1 + ActionForward?
Hi all, I am trying to prototype a GWT module within an existing Struts 1 based application and I ran into this problem. I tried it on 2 different servers although I was pretty certain it wasn't server related which was confirmed when the same behaviour was observed in both Sun AppServer and Tomcat. I create a GWT application within my Struts application and use the ANT compilation so that, the compiled files get copied over to the web root of the overall application ...i.e applicationRoot - webroot - src (java src) - app_gwt (gwt src) and then the necessary compilation output of app_gwt is stored under a folder /gwt/ in the webroot. I reconfigured an existing action path to do whatever action and changed the forward to point to the newly created HTML file from GWT action path=/doSomething type=package.xxx.yyy.DoAction parameter=dispatch forward name=success path=/gwt/testpack.aaa.bbb.RandomTest/ RandomTest.html/ /action When I perform the action, the intended HTML seems to be called, however, the javascript doesn't seem to be automatically invoked. So, what I end up seeing is a blank page, but when i click View Source I do see the actual HTML file with the reference to the GWT generated javascript. i.e http://localhost:8080/doSomething.do However, when I access the page directly, http://localhost:8080/gwt/testpack.aaa.bbb.RandomTest/RandomTest.html The page gets generated correctly with the javascript being invoked as desired. Any ideas on what might wrong here? Thanks Suri --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
EASYMOCK or JMOCK?
Can you use either EASYMOCK or JMOCK for unit testing purposes? Are there any restrictions or problems? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
DialogBox IE6 DragDrop Problem
It is possible to Drag Drop the DialogBox over its caption. In IE6 it is not able to drag the dialog correctly: only when the mouse is over the caption-text it works... any idea? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: ListBox: Drop-Down Images using CSS?
Thanks! I finally checked the project out using SmartSVN. Once I finished the check-out, I zipped up the folders, then burned to a CD, unzipping on my desktop at work. Now, I'm ready to roll. I noticed the first instruction, Build and test with ant. It mentions that I need to call ant on ant -Dgwt.home=path to your gwt jar test. Please point out what this path to my gwt jar should be. I thought that my goal was to make a JAR? Instead of using the cmd line, can I just import the project to Eclipse? I see that there's a .project file in the /eclipse/ directory. As always, I really am thankful for your help! :) On Oct 8, 8:01 am, walden [EMAIL PROTECTED] wrote: Kevin, SVN import is used to commit something from your local filesystem into the repository. Thank heavens thata didn't work! You have the TortoiseSVN client? Then use it to do a 'checkout' of that same URL. Walden On Oct 7, 10:16 pm, Kevin [EMAIL PROTECTED] wrote: Hey Isaac! It looks like it was a firewall error. You were spot on! Anyway, I'm at home trying to make this JAR so I can ship it to work. I tried to import using Tortoise SVN to http://google-web-toolkit- incubator.googlecode.com/svn/trunk/ but it was asking for a username and password. I tried a few usual default passwords, but it didn't work. Then I tried http://google-web-toolkit-incubator.googlecode.com/svn/ trunk/ in Mozilla Firefox and it worked without a password. What do I do? Thanks, Kevin On Oct 7, 1:51 pm, Isaac Truett [EMAIL PROTECTED] wrote: What sort of error are you getting? Can you access any SVN repositories outside of your local network? It could be a firewall on your network that is preventing access. On Tue, Oct 7, 2008 at 1:43 PM, Kevin [EMAIL PROTECTED] wrote: Hi Isaac, I went to this URL, http://code.google.com/docreader/#p=google-web-toolkit-incubators=go... , however I could not SVN to either http://google-web-toolkit.googlecode.com/svn/tools/ orhttp://google-web-toolkit-incubator.googlecode.com/svn/trunk/. I've tried to SVN multiple times to no avail. Any idea what I can do? Thanks, Kevin On Oct 6, 5:08 pm, Isaac Truett [EMAIL PROTECTED] wrote: Those downloads get built to provide baselines for compatibility with major GWT releases. Newer features, such asDropDownListBox, are available in SVN. You'll need to have a look at Making GWT Incubator Better http://code.google.com/docreader/#p=google-web-toolkit-incubators=go... for instructions on how to build an Incubator jar from trunk. On Mon, Oct 6, 2008 at 4:52 PM, Kevin [EMAIL PROTECTED] wrote: Hmm. I downloaded both JARs from http://code.google.com/p/google-web- toolkit-incubator/downloads/list http://code.google.com/p/google-web-toolkit-incubator/downloads/list and checked the JAR using the Project View in Eclipse, however I have not found theDropDownListBox. What should I do? Thanks, Kevin On Oct 6, 12:21 pm, Isaac Truett [EMAIL PROTECTED] wrote: You can find a complete example in the Incubator project source here http://code.google.com/p/google-web-toolkit-incubator/source/browse/t.. . . In brief: 1. Add this to your module definition: inherits name='com.google.gwt.gen2.selection.Selection' / 2. Enjoy: DropDownListBoxString listBox = new DropDownListBoxString(Fruit); // Add an item listBox.addItem(iApple/i, apple); // Add an item with a tooltip listBox.addItem(bBanana/b, banana, A yellow fruit); On Mon, Oct 6, 2008 at 12:03 PM, Kevin [EMAIL PROTECTED] wrote: Thanks again, Isaac! By the way, could you please show me where to find example code to use this custom widget in Incubator? Thanks, Kevin On Oct 6, 8:29 am, Isaac Truett [EMAIL PROTECTED] wrote: Actually, no, you don't have to deploy it. Just add the jar to your classpath when compiling or starting hosted mode. Also be sure to have your module inherit the Incubator module that you want to use (com.google.gwt.gen2.selection.Selection in this case). On Sun, Oct 5, 2008 at 8:55 PM, Kevin [EMAIL PROTECTED] wrote: Hi Isaac, Thanks for the tip. I'm guessing that I just download the JAR for this type of ListBox, then deploy it to my WEB-INF/lib folder when deploying? On Oct 2, 7:51 am, Isaac Truett [EMAIL PROTECTED] wrote: Kevin, There's aDropDownListBoxwidget in the Incubator that might be more in line with what you're trying to achieve here. It uses a PushButton and a PopupPanel to simulate the behavior of a standard select
Re: Event Cancel for Middle Button on Firefox 2
On Oct 8, 5:30 am, Thomas Broyer [EMAIL PROTECTED] wrote: On 8 oct, 08:27, Chris [EMAIL PROTECTED] wrote: I am trying to override the middle button click on FF2. I can capture the middle button mouseup event; but it seems that the default FF action of opening the link in a new window/tab is not stopped. What happens if you preventDefault the click event? Thanks for the idea. preventing and/or canceling the click event doesn't work either. I did some digging and found this article which states the middle click can not be suppressed in FF. http://unixpapa.com/js/mouse.html Guess I'll have to figure out some other mouse/key combination to have a single click for opening a new window. Chris --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Extending GWTShell
Hi all. I have some patches that isolate the servlet container. This should enable us to start other servlet containers inside GWTShell. The path is available at http://kidux.net/opensource/ I'm working on a Jetty implementation to replace Tomcat. Cheers :: Leandro On Sep 16, 2:13 pm, Leandro Rodrigo Saad Cruz [EMAIL PROTECTED] wrote: Hi all. I'm working on GWTShell to enable a new flag -serverclass. The -serverclass tag should enable the GWTShell to start other servlet container other than Tomcat. Is this a general need? If you want I can send the code to the list. Cheers. -- Leandro Rodrigo Saad Cruz software developer - certified scrum master :: scrum.com.br :: db.apache.org/ojb :: guara-framework.sf.net :: xingu.sf.net --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
need to change http response of RPC to 302
Hi, I have written one RPC method isUserAdmin() which returns String[]. Due to some vulnerability reasons, i have to set the http reponse status of this method as 302. I added following line as first line in method to change the status. / this.getThreadLocalResponse().setStatus(302); // No use whatever i have done. It's still returning http 200 only. Is there any way to change http status in RPC method? Thanx in advance. Regards, Prvn --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: need to change http response of RPC to 302
pravn schrieb: I have written one RPC method isUserAdmin() which returns String[]. Due to some vulnerability reasons, i have to set the http reponse status of this method as 302. I added following line as first line in method to change the status. / this.getThreadLocalResponse().setStatus(302); // No use whatever i have done. It's still returning http 200 only. I don't know the source but I assume the status will be set by the RemoteServiceServlet again. I haven't tried, either, but you might try getThreadLocalResponse().sendError(302, Go away); Regards, Lothar --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Approximate release time for GWT 2.0
Hi Ian, Using a pre-RC 'in-development' patch-it-up version for production systems isn't an option for some of the more conservative employers out there. It makes them nervous. Even when a release candidate is approved and a version is released, it doesn't mean Google won't put undocumented breaking changes in it in the mean time, so you can never be sure what you are or aren't going to get. This doesn't do much for the more nervous managers either. Some of them still use sealing wax. Others have to hug trees until they feel better. That's why they have yukkas in their offices. The way I work, if a release candidate is approved, that candidate becomes the final version - you don't release a new version as the final version which has been quite seriously (and breakingly) changed and is untested by the people you release candidates to. In my book a release candidate is not a release candidate if it's not a candidate for release. I obviously have different definitions to Google. On the other hand maybe it's a cultural thing - where I'm from, in elections, the person with the most votes wins. But I like GWT, and I realise that if I want to use it, I have to accept that this is the way Google do things. That's OK. Ian http://examples.roughian.com 2008/10/8 Ian Petersen [EMAIL PROTECTED] On Wed, Oct 8, 2008 at 9:40 AM, Ian Bambury [EMAIL PROTECTED] wrote: Previous experience would suggest that you won't even get 24 hours notice. The idea of allowing external developers to plan ahead is alien to Google. They seem to work on IBM's FUD principle. Ian PS: I have a love/hate relationship with GWT I think that's a _little_ bit unfair. Strictly, you're speaking the truth. GWT 1.5 wasn't really announced until it was done. But, if you're waiting for something in particular, it would be a good idea to be on the GWT-Contributors list. The 1.5 branch was ready a long time before it was ready and lots of people in the community were using the trunk even before the RCs were released. I expect to have a similar experience next time, whether that's 1.6 or 2.0. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Approximate release time for GWT 2.0
On Wed, Oct 8, 2008 at 12:14 PM, Ian Bambury [EMAIL PROTECTED] wrote: Using a pre-RC 'in-development' patch-it-up version for production systems isn't an option for some of the more conservative employers out there. It makes them nervous. That's true. I guess I was just taking issue with the claim that Google makes it impossible to plan ahead. I would expect that the traffic on the GWT-C list leading up to 1.5's release helped some people plan ahead. Now, this is coming from someone who hasn't released anything yet, so maybe my opinion doesn't mean much. The way I work, if a release candidate is approved, that candidate becomes the final version - you don't release a new version as the final version which has been quite seriously (and breakingly) changed and is untested by the people you release candidates to. In my book a release candidate is not a release candidate if it's not a candidate for release. I obviously have different definitions to Google. It did seem like 1.5's release could have been a little smoother, yes. On the other hand maybe it's a cultural thing - where I'm from, in elections, the person with the most votes wins. Maybe we're from the same place! My elected officials have to have the most votes, too. :D Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
gwt compilation error with XmlSeeAlso and XmlElement annotation.
I use gwt 1.5.2 on Window. I have a couple of classes generated by JAXB. These classes are used a client-side. During compliation, I got some error on annotation process. It seemed that the GWT tried to process class refereed in annotation. Here is the error dump Processing types in compilation unit: file:/D:/workspace/cmdportal/src/ net/sf/webcommand/model/_Program.java Found type '_Program' Resolving annotation '@XmlElement(name = parameter,required = true,type = Parameter.class)' [ERROR] java.lang.ClassNotFoundException: net.sf.webcommand.model.Parameter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral(TypeOracleMediator.java: 753) at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue(TypeOracleMediator.java: 664) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotationInstance(TypeOracleMediator.java: 432) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java: 826) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java: 847) at com.google.gwt.dev.javac.TypeOracleMediator.resolveField(TypeOracleMediator.java: 889) at com.google.gwt.dev.javac.TypeOracleMediator.resolveFields(TypeOracleMediator.java: 933) at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediator.java: 1418) at com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java: 382) at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java: 137) at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554) at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214) Processing types in compilation unit: file:/D:/workspace/cmdportal/src/ net/sf/webcommand/model/_Parameter.java Found type '_Parameter' Resolving annotation '@XmlSeeAlso({Paragraph.class})' [ERROR] java.lang.ClassNotFoundException: net.sf.webcommand.model.Paragraph at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral(TypeOracleMediator.java: 753) at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue(TypeOracleMediator.java: 664) at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValueArray(TypeOracleMediator.java: 729) at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue(TypeOracleMediator.java: 666) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotationInstance(TypeOracleMediator.java: 432) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java: 826) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java: 847) at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediator.java: 1374) at com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java: 382) at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java: 137) at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554) at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214) Any suggestion? Is there a workaround? thanks -jason --~--~-~--~~~---~--~~ You received 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 [EMAIL
Re: Best GWT canvas (vector graphics) library?
Dojo has a pretty decent GFX library that provides an SVG-like abstraction that works on IE's VML as well as FireFox's native SVG. The tatami project/library provides a GWT wrapper for dojo including the GFX library: http://code.google.com/p/tatami/ The downside is that it pulls in a fair amount of dojo stuff. Tom John Gunther wrote: I've recently used the GWTCanvas widget from the GWT incubator (nothing fancy, just to draw lines--will likely do more canvas stuff later, though) and so far so good. However, a Google search shows there are quite a few GWT canvas libraries out there. Wondering if I'm missing out on a better library... Anyone used (or written) any of them? Care to share your opinions about which ones work best? John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Annotation based Validation for GWT
See these two threads: http://code.google.com/p/google-web-toolkit/issues/detail?id=343 http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/22122c096aad94cd It seems that the validation framework I've cooked up will not be used by GWT or be accepted into the incubator. As a result of that I am creating a project and support structure to continue to contribute to the project and support it. The framework is based on the JSR-303 bean validation specification and supports many of the features outlined in it. It is very similar to the hibernate-validation framework from Hibernate but is not dependent on external libraries (other than GWT's own) and shares no code in common other than the JSR-303 specifications. I would put the framework at about 80% complete because of missing features but I would like community feedback as well as suggestions. It is more than ready to be used on a trial basis and I'm eager to get some users so that we can really see what is possible. I'm currently working on a method to more smoothly integrate the validators with forms and events through the validateValue() method which is still a work in progress. I'm looking forward to feedback from the community. Cheers! Chris Ruffalo --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Approximate release time for GWT 2.0
It isn't easy to plan ahead if you have a fixed schedule for your project. There's no point in developing against a release candidate for the next version of GWT if you have to go live in May next year and you don't even know if the next stable version is coming out in the first or second half of the year. Ian http://examples.roughian.com 2008/10/8 Ian Petersen [EMAIL PROTECTED] I guess I was just taking issue with the claim that Google makes it impossible to plan ahead. --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is there a way to fire up a widget event programmatically?
Which is the way you found?? i'm facing the same problelm... On Aug 29, 9:37 am, Marcelo Emanoel [EMAIL PROTECTED] wrote: I already know of the changeListeners and so on... but that's wasn't what I'm looking for :( But I've manage another way to do what I need :) Thanks Anyway On 29 ago, 08:53, Ian Bambury [EMAIL PROTECTED] wrote: ChangeListener listener = new ChangeListener() { public void onChange(Widget sender) { }}; TextBox t = new TextBox(); t.addChangeListener(listener); t.setText(blah blah blah); listener.onChange(t); 2008/8/29 Marcelo Emanoel [EMAIL PROTECTED] Hi guys I was wondering if anyone knows how to fire up an event on a widget like TextBox or ListBox for example... If I do code TextBox t = new TextBox(); t.addChangeListener(new ChangeListener(){ //implement a listener for changing... }); t.setText(blah blah blah); /code the listener won't be called :'( Is there a way to fire up the listener throw code? Thanks in Advance :) -- Ian http://examples.roughian.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Annotation based Validation for GWT
Hi Chris, I'm the guy that posted the data binding library that Ray Ryan was referring here: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/8c611ab8bb076ead I think your validation framework and my data binding framework might benefit if we collaborated a bit. I'm busy attending a funeral between now and Sunday night, but I'd like to chat with you off-list to see if we can co-operate. There's also been some input from Arthur Kalmenson, so we should probably include him. Anyway, I just wanted to say that I'll be looking into your validation code as soon as I can, but it may not be until after this weekend. Thanks for sharing, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT Incubator JAR
Hi All, I would like to use DropDownListBox from GWT: Incubator, however I cannot check out the Incubator project from work. I mistakenly forgot to check out gwt/tools, however I hope that I can use the DropDownListBox by getting the JAR for it. The reason I'm checking out Incubator is to compile the project, then make a JAR with the DropDownListBox as the latest incubator JAR doesn't have DropDownListBox functionality. I checked www.findjar.com, but haven't found it. Please let me know if you know where I can find this JAR. Thanks, Kevin --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Programmatically enter data in a search box
Dear all, Is there a way to programmatically enter data into a text box in a third party website and search(eg, google) ? Any tutorials, books etc. I have googled a bit but had no luck. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Annotation based Validation for GWT
I think that we all need to collaborate in this regard. My system looks hard but is really, really, really easy once you see what the ValidatorCreator is doing for the generator and all that. I think you could create formulas for it if you wanted and modify objects in the Constraints themselves but it /seriously/ breaks the paradigm. In any case I really want to do something here and I think lately there has been a swell of support. I'm thinking that this is something that GWT really needs to move on to the next level of ease of use and maturity. I'd throw my solution under a bus to get a better one, believe you me. In short: I can't wait to see what you've got. On Oct 8, 3:52 pm, Ian Petersen [EMAIL PROTECTED] wrote: Hi Chris, I'm the guy that posted the data binding library that Ray Ryan was referring here:http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse... I think your validation framework and my data binding framework might benefit if we collaborated a bit. I'm busy attending a funeral between now and Sunday night, but I'd like to chat with you off-list to see if we can co-operate. There's also been some input from Arthur Kalmenson, so we should probably include him. Anyway, I just wanted to say that I'll be looking into your validation code as soon as I can, but it may not be until after this weekend. Thanks for sharing, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Annotation based Validation for GWT
On Wed, Oct 8, 2008 at 6:20 PM, chris.ruffalo [EMAIL PROTECTED] wrote: In short: I can't wait to see what you've got. You can search the GWT-Contributors list for postings by me in the last week or so. I've uploaded a JAR with my data binding library and a small example project that uses it. It doesn't really have a lot to do with validation but I think it should. I'll get back to you with more when I'm back from my trip. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
gwt-windows-1.5.2.zip download problem
gwt-windows-1.5.2.zip and wt-windows-1.5.1.zip I downloaded are a damaged zip file. wt-windows-1.4 is OK. --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: gwt-google-apis gears Worker Pool Demo
On Mon, Oct 6, 2008 at 2:48 PM, Eric Ayers [EMAIL PROTECTED] wrote: Hello Miguel Attached is a demo for the WorkerPool class that I would like for you to review. The demo is a bit more rich than the demos for the other Gears features. I intend to add documentation for a simple worker pool tutorial in the Getting Started guide that will show a simple version of how to use WorkerPool, so I felt justified in making a more complex demo. The demo shows how the interface is interactive when a worker pool thread is running by giving a little animation to play with (and the results are printed out as they come out). Also, there is a small enhancement to WorkerPool.sendMessage() part of the attached patch that allows the user to pass a JSO as the message. It is not necessary for the demo and I can't recall if I already sent it to you for review or not. M gears/src/com/google/gwt/gears/client/workerpool/WorkerPool.java I did not realize that they had extended the API to allow the passing of boolean, string, number, array, object, and Blobs. Doesn't this mean that the WorkerPoolMessageHandler.MessageEvent class will need to be updated? It mirrors the messageObject parameter to the JS API's onmessage callback, but now messageObject.body should really be a JSO and we should expose messageObject.text. You'd need to figure out how to deal with the case where the caller passed a string because messageObject.body could contain a string in pure JS but in the Java wrapper String and JSO's are not compatible. A samples/workerpool/launch-scripts/linux/WorkerPoolDemo-shell Did not review. A samples/workerpool/launch-scripts/linux/WorkerPoolDemo-compile Did not review. A samples/workerpool/launch-scripts/mac/WorkerPoolDemo-shell LG A samples/workerpool/launch-scripts/mac/WorkerPoolDemo-compile LG A samples/workerpool/launch-scripts/windows/WorkerPoolDemo-shell.cmd Did not review. A samples/workerpool/launch-scripts/windows/WorkerPoolDemo-compile.cmd Did not review. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/WorkerPoolDemo.gwt.xml LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/WorkerPoolDemoNoGears.java LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/WorkerPoolDemo.java LG - You should add some javadoc to the doSync*, doAsync*, and the stopCalculation methods. Also, on line 134 you may want a comment that explains why we use a deferred command to trigger either computation. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/AnimationToy.java LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/PiSpigot.java LG - The name did not make sense to me until I read the Java comment. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gears_init.js You should not need to include the startup script since you will inherit it from Gears.gwt.xml. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/pi_spigot_worker.js Nice JS code! What is the plan for showing a worker thread in GWT? A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gwtLogoThumb.png The file was not included in the patch; it prevented me from seeing the animation aspect of the demo. Could you send it to me? A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/WorkerPoolDemo.html LG A samples/workerpool/build.xml LG M samples/build.xml LG -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: gwt-google-apis gears fix typo in method name.
LGTM On Tue, Oct 7, 2008 at 3:27 PM, Eric Ayers [EMAIL PROTECTED] wrote: Hi Miguel, This patch addresses issue 183, a typo in a method name: http://code.google.com/p/gwt-google-apis/issues/detail?id=183 I renamed the method in the library class and updated the test. M test/com/google/gwt/gears/client/localserver/LocalServerTest.java M src/com/google/gwt/gears/client/localserver/ResourceStoreUrlCaptureHandler.java -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: gwt-google-apis gears Worker Pool Demo
Attached file that belongs in samples/Showcase/src/com/google/gwt/sample/showcase/client/gwtLogoThumb.png On Wed, Oct 8, 2008 at 10:02 AM, Miguel Méndez [EMAIL PROTECTED] wrote: On Mon, Oct 6, 2008 at 2:48 PM, Eric Ayers [EMAIL PROTECTED] wrote: Hello Miguel Attached is a demo for the WorkerPool class that I would like for you to review. The demo is a bit more rich than the demos for the other Gears features. I intend to add documentation for a simple worker pool tutorial in the Getting Started guide that will show a simple version of how to use WorkerPool, so I felt justified in making a more complex demo. The demo shows how the interface is interactive when a worker pool thread is running by giving a little animation to play with (and the results are printed out as they come out). Also, there is a small enhancement to WorkerPool.sendMessage() part of the attached patch that allows the user to pass a JSO as the message. It is not necessary for the demo and I can't recall if I already sent it to you for review or not. M gears/src/com/google/gwt/gears/client/workerpool/WorkerPool.java I did not realize that they had extended the API to allow the passing of boolean, string, number, array, object, and Blobs. Doesn't this mean that the WorkerPoolMessageHandler.MessageEvent class will need to be updated? It mirrors the messageObject parameter to the JS API's onmessage callback, but now messageObject.body should really be a JSO and we should expose messageObject.text. You'd need to figure out how to deal with the case where the caller passed a string because messageObject.body could contain a string in pure JS but in the Java wrapper String and JSO's are not compatible. A samples/workerpool/launch-scripts/linux/WorkerPoolDemo-shell Did not review. A samples/workerpool/launch-scripts/linux/WorkerPoolDemo-compile Did not review. A samples/workerpool/launch-scripts/mac/WorkerPoolDemo-shell LG A samples/workerpool/launch-scripts/mac/WorkerPoolDemo-compile LG A samples/workerpool/launch-scripts/windows/WorkerPoolDemo-shell.cmd Did not review. A samples/workerpool/launch-scripts/windows/WorkerPoolDemo-compile.cmd Did not review. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/WorkerPoolDemo.gwt.xml LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/WorkerPoolDemoNoGears.java LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/WorkerPoolDemo.java LG - You should add some javadoc to the doSync*, doAsync*, and the stopCalculation methods. Also, on line 134 you may want a comment that explains why we use a deferred command to trigger either computation. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/AnimationToy.java LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/PiSpigot.java LG - The name did not make sense to me until I read the Java comment. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gears_init.js You should not need to include the startup script since you will inherit it from Gears.gwt.xml. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/pi_spigot_worker.js Nice JS code! What is the plan for showing a worker thread in GWT? A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gwtLogoThumb.png The file was not included in the patch; it prevented me from seeing the animation aspect of the demo. Could you send it to me? A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/WorkerPoolDemo.html LG A samples/workerpool/build.xml LG M samples/build.xml LG -- Miguel -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- inline: gwtLogoThumb.png
[gwt-contrib] Flurry of Data binding threads
We all seem to be talking about data binding and validation a lot, and some of us are even implementing code about it. We on the GWT team hear the need and feel it ourselves. We have some notions of how we'd like to tackle this in a way that blends seamlessly with the rest of GWT, and are looking to start design and implementation in earnest before the year is out. This makes it unlikely that we'll accept core or incubator patches that implement such a system. That said, we don't want to shoot down the excellent work that's being done! If you have a system that's shaping up to meet your needs and that you want to share with the GWT community, please do! Set up a Google Code project, announce it here, embarrass us by shipping first and attracting a user base. We'll probably steal from you shamelessly and ask for your help as our own system takes shape. I hope this doesn't ruffle any feathers, and that you'll understand why we haven't been as responsive on some of these threads as we should have been. Thanks, rjrjr --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: gwt-google-apis gears Worker Pool Demo
Thanks for sending the image. I think that you meant to say that the file belongs in: samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gwtLogoThumb.png? You should add more text to the sample to call out that you can interact with the animation only when using a worker thread to compute the value. Could there be a label better than Calculation Type? It is not that the calculation itself is changed, but really the way in which it is executed. Maybe Execute calculation: Synchronously or Asynchronously. On Wed, Oct 8, 2008 at 10:13 AM, Eric Ayers [EMAIL PROTECTED] wrote: Attached file that belongs in samples/Showcase/src/com/google/gwt/sample/showcase/client/gwtLogoThumb.png On Wed, Oct 8, 2008 at 10:02 AM, Miguel Méndez [EMAIL PROTECTED] wrote: On Mon, Oct 6, 2008 at 2:48 PM, Eric Ayers [EMAIL PROTECTED] wrote: Hello Miguel Attached is a demo for the WorkerPool class that I would like for you to review. The demo is a bit more rich than the demos for the other Gears features. I intend to add documentation for a simple worker pool tutorial in the Getting Started guide that will show a simple version of how to use WorkerPool, so I felt justified in making a more complex demo. The demo shows how the interface is interactive when a worker pool thread is running by giving a little animation to play with (and the results are printed out as they come out). Also, there is a small enhancement to WorkerPool.sendMessage() part of the attached patch that allows the user to pass a JSO as the message. It is not necessary for the demo and I can't recall if I already sent it to you for review or not. M gears/src/com/google/gwt/gears/client/workerpool/WorkerPool.java I did not realize that they had extended the API to allow the passing of boolean, string, number, array, object, and Blobs. Doesn't this mean that the WorkerPoolMessageHandler.MessageEvent class will need to be updated? It mirrors the messageObject parameter to the JS API's onmessage callback, but now messageObject.body should really be a JSO and we should expose messageObject.text. You'd need to figure out how to deal with the case where the caller passed a string because messageObject.body could contain a string in pure JS but in the Java wrapper String and JSO's are not compatible. A samples/workerpool/launch-scripts/linux/WorkerPoolDemo-shell Did not review. A samples/workerpool/launch-scripts/linux/WorkerPoolDemo-compile Did not review. A samples/workerpool/launch-scripts/mac/WorkerPoolDemo-shell LG A samples/workerpool/launch-scripts/mac/WorkerPoolDemo-compile LG A samples/workerpool/launch-scripts/windows/WorkerPoolDemo-shell.cmd Did not review. A samples/workerpool/launch-scripts/windows/WorkerPoolDemo-compile.cmd Did not review. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/WorkerPoolDemo.gwt.xml LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/WorkerPoolDemoNoGears.java LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/WorkerPoolDemo.java LG - You should add some javadoc to the doSync*, doAsync*, and the stopCalculation methods. Also, on line 134 you may want a comment that explains why we use a deferred command to trigger either computation. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/AnimationToy.java LG A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/client/PiSpigot.java LG - The name did not make sense to me until I read the Java comment. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gears_init.js You should not need to include the startup script since you will inherit it from Gears.gwt.xml. A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/pi_spigot_worker.js Nice JS code! What is the plan for showing a worker thread in GWT? A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/gwtLogoThumb.png The file was not included in the patch; it prevented me from seeing the animation aspect of the demo. Could you send it to me? A samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/WorkerPoolDemo.html LG A samples/workerpool/build.xml LG M samples/build.xml LG -- Miguel -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: gwt-google-apis maps Status Code not translated - issue 189
Committed as r873. On Wed, Oct 8, 2008 at 10:06 AM, Miguel Méndez [EMAIL PROTECTED] wrote: LGTM On Tue, Oct 7, 2008 at 9:20 AM, Eric Ayers [EMAIL PROTECTED] wrote: Hello Miguel, Here is another patch I'd like for you to review. It addresses issue 189 in the issue tracker: http://code.google.com/p/gwt-google-apis/issues/detail?id=189 The problem was very easy to solve, but I went ahead and added some more unit testing and eliminated some warnings from a couple of other tests. Note that I moved the StatusCodesTest.java file to the correct package in the test source tree as well. M maps/test/com/google/gwt/maps/MapsTestSuite.java M maps/test/com/google/gwt/maps/client/impl/MinimumMapVersionTest.java D maps/test/com/google/gwt/maps/client/StatusCodesTest.java A maps/test/com/google/gwt/maps/client/geocode/StatusCodesTest.java M maps/test/com/google/gwt/maps/client/MapWidgetEventsTest.java M maps/test/com/google/gwt/maps/client/geom/BoundsTest.java M maps/src/com/google/gwt/maps/client/geocode/StatusCodes.java -Eric. -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Miguel -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: data binding framework for GWT
Hi Ian, I *think* validation could be tied into the data binding framework in a pretty straightforward way by extending EditorT and ViewerT to be validation-aware. I agree, it shouldn't be too hard to tie validation into data binding, but... I think data binding and validation probably need to be aware of each other (or, at least, data binding needs to be aware of validation), but I think they're separate concerns. To me, data binding is just a way of automating the display and update of a bean's properties via some widgets. Validation, on the other hand, is a way of making sure that a property is within some bounds, or some combination of properties together follow some rules. Data binding impacts validation because the user could transform a bean into or out of a valid state, and validation impacts data binding because you usually need to give the user feedback about the validity of the bean being edited, but I think the relationship between data binding and validation is probably best mediated through a thin interface that keeps things loosely coupled. What do you think? (Or anyone else, for that matter.) I agree, I think that they should be loosely coupled or completely decoupled. One question that arises from this is, who's role is it to display error messages to the user? Should it be the data binding framework, the validation framework or something else? Personally, I think that a third library should come into play here that will be able to apply the appropriate formatting to widgets when they are invalid/valid. I think that these three components should be tied together with listeners or handlers or some other implementation of the observer pattern. I'm thinking something like this: Widgets changes = bean is updated by data binding = data binding broadcasts that something has changed = validation picks up change and validates the bean = validation broadcasts results = formatter library catches new validation and updates widgets accordingly I think that we should get Chris Ruffalo in on the conversation so that something like this could be coordinated between these two frameworks. I know that Ray said the GWT will be implementing something themselves (http://groups.google.com/group/Google-Web- Toolkit-Contributors/browse_thread/thread/8c611ab8bb076ead) but I'm sure what you and Chris have done will help the GWT team out a lot. Will you start a new Google Code project for this data binding framework? Regards, Arthur Kalmenson On Oct 7, 3:47 pm, Ian Petersen [EMAIL PROTECTED] wrote: Hi Arthur, On Tue, Oct 7, 2008 at 1:51 PM, Arthur Kalmenson [EMAIL PROTECTED] wrote: I don't mean to nitpick, but it's actually the editor that puts back the previous value, not the converter. The converter just throws a ConversionException if the String couldn't be converted. It's up to the editor to decide what to do with the ConversionException. Ah, sorry, I misunderstood how it was working. Thanks for clearing that up. This also deals with the original use case I proposed above (not updating the model right away). I only thought of that case because it kept trying to convert and reverting the field to it's previous value, which prevented validation from running its course. I'll just create my own editor and leave the field the way it was. I read your comment on issue 343 (http://code.google.com/p/google-web-toolkit/issues/detail?id=343#c31). I haven't finished reading the Bean Validation JSR yet, and I haven't looked at Chris Ruffalo's code, but I have dipped my toe into using Hibernate validation in my own server-side code. I *think* validation could be tied into the data binding framework in a pretty straightforward way by extending EditorT and ViewerT to be validation-aware. At the moment, ViewerT and EditorT just provide simple interfaces to view (and edit) a value of type T. If there was some way to talk about the validity of a given value, ViewerT (and, by extension, EditorT) could be extended to provide feedback to the user when the value it's displaying changes from invalid to valid or valid to invalid. I assume that Hibernate validation-style validation requires some kind of validation service that is external to the beans being validated. (As opposed to the beans themselves somehow performing validation and reporting the results.) If that's the case, a BoundField could listen to its editor for EditorChangeEvents and filter the new value through validation before/after/around updating the related bean. If you perform validation at that time, you have access to the editor that changed, the bean that's (in)valid, the property that's (in)valid, and the validation state. You could probably give very rich feedback to the user about that particular property, and there are a number of rational ways to handle an invalid value. Handling multi-property validation is a little more complex but, assuming the validation
[gwt-contrib] Re: GWT Issue 343 and the JSR-303 Draft (Implementing in GWT)
Yes it is, consider: public class Parent { @NotNull private String parentString = null; @NotNull @Valid private Child child = null; /* GETTER AND SETTER METHODS GO HERE */ } public class Child { @NotEmpty @NotNull private String childString = null; @NotNull private Parent = null; /* GETTER AND SETTER METHODS GO HERE */ } (Not that this example would require proper getter methods and some set values) In this case the @Valid annotation causes the validator to Validate the child class according to the rules of that child class. The @NotNull validation is performed first howerver /and/ it should be noted that the @Valid annotation will not be processed on null objects in any case. The validators also contain logic to prevent cyclic reprocessing, for example if you set the bidirectional Parent-Child relationship as is possible in the example Parent /will not/ be processed twice and therefore neither will Child. The protection isn't perfect but it should be enough for the needs of most people. Let me know if you have any more questions. On Oct 8, 9:00 am, rb [EMAIL PROTECTED] wrote: Is it possible to validate nested objects from a parent? Thanks, Rex On Oct 6, 8:23 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Yea, easily. I didn't mean to make it Java6 specific. isEmpty() seems like a better metaphor, I'll take a loot at it right now. Thanks for pointing that out. On Oct 6, 9:13 am, rb [EMAIL PROTECTED] wrote: Could this be changed to support Java 5? The String.isEmpty() and the AbstractValidator.unrollConstraintSet have Java 6 specific stuff. A lot more people will be able to use this if you take out the Java 6 stuff. Thanks, Rex On Oct 2, 1:22 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Another release has been made @http://code.google.com/p/google-web-toolkit/issues/detail?id=343 Please review and send me your comments. I'd like to target this for the GWT Incubator so I can get some more eyes on and stuff. My CLA has been electronically submitted and I'm ready to go. Chris Ruffalo On Sep 12, 3:09 pm, chris.ruffalo [EMAIL PROTECTED] wrote: I've been looking at :http://code.google.com/p/google-web-toolkit/issues/detail?id=343 And I've hit a few snags: Namely: Hosted mode works fine but compiling tries to rebind twice (even though I only have one GWT.create()) and it can't create the printwriter because the class it is trying to write already exists. I guess I need a smarter generator. (?) How the heck can I reconcile the functionality of java regex and compiled regex? I guess I could have a javascriptPattern and javaPattern property on each validator... but that sounds like a lot of work for the user. That is unless I've missed a new development along the lines of making that easier for developers. Anyway, any input would be appreciated and I think if I can figure out these snags and get my CLA finished (I applied online last night) then I could post the code and people could start poking at it a little bit because basic field/method level validation is working. Chris Ruffalo- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWT Issue 343 and the JSR-303 Draft (Implementing in GWT)
In the above Example the Parent field should also have an @Valid annotation. Also, instead of updating in the GWT issue 343 thread I'm updating here: http://code.google.com/p/gwt-validation/ It also has the Java5 release for download. On Oct 8, 12:51 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Yes it is, consider: public class Parent { [EMAIL PROTECTED] private String parentString = null; [EMAIL PROTECTED] [EMAIL PROTECTED] private Child child = null; /* GETTER AND SETTER METHODS GO HERE */ } public class Child { [EMAIL PROTECTED] [EMAIL PROTECTED] private String childString = null; [EMAIL PROTECTED] private Parent = null; /* GETTER AND SETTER METHODS GO HERE */ } (Not that this example would require proper getter methods and some set values) In this case the @Valid annotation causes the validator to Validate the child class according to the rules of that child class. The @NotNull validation is performed first howerver /and/ it should be noted that the @Valid annotation will not be processed on null objects in any case. The validators also contain logic to prevent cyclic reprocessing, for example if you set the bidirectional Parent-Child relationship as is possible in the example Parent /will not/ be processed twice and therefore neither will Child. The protection isn't perfect but it should be enough for the needs of most people. Let me know if you have any more questions. On Oct 8, 9:00 am, rb [EMAIL PROTECTED] wrote: Is it possible to validate nested objects from a parent? Thanks, Rex On Oct 6, 8:23 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Yea, easily. I didn't mean to make it Java6 specific. isEmpty() seems like a better metaphor, I'll take a loot at it right now. Thanks for pointing that out. On Oct 6, 9:13 am, rb [EMAIL PROTECTED] wrote: Could this be changed to support Java 5? The String.isEmpty() and the AbstractValidator.unrollConstraintSet have Java 6 specific stuff. A lot more people will be able to use this if you take out the Java 6 stuff. Thanks, Rex On Oct 2, 1:22 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Another release has been made @http://code.google.com/p/google-web-toolkit/issues/detail?id=343 Please review and send me your comments. I'd like to target this for the GWT Incubator so I can get some more eyes on and stuff. My CLA has been electronically submitted and I'm ready to go. Chris Ruffalo On Sep 12, 3:09 pm, chris.ruffalo [EMAIL PROTECTED] wrote: I've been looking at :http://code.google.com/p/google-web-toolkit/issues/detail?id=343 And I've hit a few snags: Namely: Hosted mode works fine but compiling tries to rebind twice (even though I only have one GWT.create()) and it can't create the printwriter because the class it is trying to write already exists. I guess I need a smarter generator. (?) How the heck can I reconcile the functionality of java regex and compiled regex? I guess I could have a javascriptPattern and javaPattern property on each validator... but that sounds like a lot of work for the user. That is unless I've missed a new development along the lines of making that easier for developers. Anyway, any input would be appreciated and I think if I can figure out these snags and get my CLA finished (I applied online last night) then I could post the code and people could start poking at it a little bit because basic field/method level validation is working. Chris Ruffalo- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWT Issue 343 and the JSR-303 Draft (Implementing in GWT)
Excellent...thanks! I was missing the @Valid on the parent. On Oct 8, 12:52 pm, chris.ruffalo [EMAIL PROTECTED] wrote: In the above Example the Parent field should also have an @Valid annotation. Also, instead of updating in the GWT issue 343 thread I'm updating here: http://code.google.com/p/gwt-validation/ It also has the Java5 release for download. On Oct 8, 12:51 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Yes it is, consider: public class Parent { [EMAIL PROTECTED] private String parentString = null; [EMAIL PROTECTED] [EMAIL PROTECTED] private Child child = null; /* GETTER AND SETTER METHODS GO HERE */ } public class Child { [EMAIL PROTECTED] [EMAIL PROTECTED] private String childString = null; [EMAIL PROTECTED] private Parent = null; /* GETTER AND SETTER METHODS GO HERE */ } (Not that this example would require proper getter methods and some set values) In this case the @Valid annotation causes the validator to Validate the child class according to the rules of that child class. The @NotNull validation is performed first howerver /and/ it should be noted that the @Valid annotation will not be processed on null objects in any case. The validators also contain logic to prevent cyclic reprocessing, for example if you set the bidirectional Parent-Child relationship as is possible in the example Parent /will not/ be processed twice and therefore neither will Child. The protection isn't perfect but it should be enough for the needs of most people. Let me know if you have any more questions. On Oct 8, 9:00 am, rb [EMAIL PROTECTED] wrote: Is it possible to validate nested objects from a parent? Thanks, Rex On Oct 6, 8:23 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Yea, easily. I didn't mean to make it Java6 specific. isEmpty() seems like a better metaphor, I'll take a loot at it right now. Thanks for pointing that out. On Oct 6, 9:13 am, rb [EMAIL PROTECTED] wrote: Could this be changed to support Java 5? The String.isEmpty() and the AbstractValidator.unrollConstraintSet have Java 6 specific stuff. A lot more people will be able to use this if you take out the Java 6 stuff. Thanks, Rex On Oct 2, 1:22 pm, chris.ruffalo [EMAIL PROTECTED] wrote: Another release has been made @http://code.google.com/p/google-web-toolkit/issues/detail?id=343 Please review and send me your comments. I'd like to target this for the GWT Incubator so I can get some more eyes on and stuff. My CLA has been electronically submitted and I'm ready to go. Chris Ruffalo On Sep 12, 3:09 pm, chris.ruffalo [EMAIL PROTECTED] wrote: I've been looking at :http://code.google.com/p/google-web-toolkit/issues/detail?id=343 And I've hit a few snags: Namely: Hosted mode works fine but compiling tries to rebind twice (even though I only have one GWT.create()) and it can't create the printwriter because the class it is trying to write already exists. I guess I need a smarter generator. (?) How the heck can I reconcile the functionality of java regex and compiled regex? I guess I could have a javascriptPattern and javaPattern property on each validator... but that sounds like a lot of work for the user. That is unless I've missed a new development along the lines of making that easier for developers. Anyway, any input would be appreciated and I think if I can figure out these snags and get my CLA finished (I applied online last night) then I could post the code and people could start poking at it a little bit because basic field/method level validation is working. Chris Ruffalo- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: visibility logic management
There now appears to be a lot of activity in this area. Data binding, Validation, and now visibility has been raised so far. We've also seen inter-field dependent calculations (Ian's @Calculate) I would strongly urge contributors on this list to take a good look at XForms before reinventing the wheel, see http://www.w3.org/TR/xforms11/#model in particular. XForms defines for each piece of bound model data, a set of things called model item properties These properties encompass dynamic calculations that control validation, visibility, requirement, readonly, and computed field value. A given UI widget in XForms, when bound to a model node, changes its UI in response to the recalculation of these model item properties whenever the form changes. For example, let's say you have an internationalized Address entry form that contains entries for US postal addresses, but when someone chooses a country other than US, some other fields become visible. In XForms, you'd simply place a relavent model item property on these hidden fields that check if the country != USA. Or, you could have a field that may or may not be required (can't be left empty or in default state) dependent on data or choices in other fields. Likewise, validity can be simple (based on XSD datatype conformance) to complex (mathematical expression evaluating to boolean) Fields can become editable or readonly based on other fields as well. Now, I'm not suggesting that we adopt XForms for GWT, since there is alot in the spec that makes it heavyweight. However, once we start adding annotations for Validity, Calculated, and Visibility, we may as well add those for ReadOnly and Required as well. I built applications using the XForms model as well as one of the early processor implementations, and my experience was very positive. XForm's form processing model brings Spreadsheet-like ease to setting up very complex web forms, and so I think people should give it a look for inspiration, when attempting to devise an advance forms framework for GWT. -Ray On Wed, Oct 8, 2008 at 1:42 PM, Arthur Kalmenson [EMAIL PROTECTED] wrote: As I mentioned before (http://groups.google.com/group/Google-Web- Toolkit-Contributors/browse_thread/thread/b696e7319fc6bea/), I'm looking to contribute our project back to the incubator as I refactor/ rebuild it. One of the main things that we were looking to simplify was visibility management. In our particular use cases, almost every application we build has a relatively extensive form with complex visibility logic. For example, if the user presses Yes on a radio button, another few fields open up and they fill those fields out. The way that this logic is currently done in GWT is through listeners and a lot of manual work. The module that we created was suppose to simplify this. Here's what we have so far. We have something called a FormatPanel that allows you to make calls like showIfSet(Widget a, Widget b, VisibilityRule rule). The VisibilityRule sets listeners and so receives events from widgets a and b. It then determines if widget b should be shown depending on the value of widget a. There is also a hideIfSet() method. Does this approach make sense? Let me know what you think. I'll continue updating this part of the project and I'll try to post some code and more concrete examples in the next few days. I'm just wondering if the approach makes sense to people. Thank you. Regards, Arthur Kalmenson --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: data binding framework for GWT
Hi Ray, I can't answer you fully right now because I'm supposed to be leaving, but I'll think about your suggestion and get back to you. As it is, BoundFieldImpl constructs its editor lazily so perhaps a BoundField could be given an editor rather than constructing one itself. Also, regarding the problem of binding fields to arbitrary widgets, my existing API works with EditorTs and ViewerTs. Both interfaces define a Widget asWidget() that is expected to return this. In other words, it's sort of assumed that implementations of Editor and Viewer are also subclasses of Widget. Perhaps we don't need to worry about arbitrary widgets because of that. If you want to look at my code, take a peek at HasTextEditorT, W in ca.petersens.gwt.databinding.client.ui. There could be more editors like it to support certain subtypes of Widget. Ian --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---