change default style
Hi all, How can we change the default style of a widgets? I want to create two tree with different styles. .gwt-Tree { } .gwt-Tree .gwt-TreeItem { } .gwt-Tree .gwt-TreeItem-selected { } I want to change the above default style to my own style as follows: .gwt-SmallTree { } .gwt-SmallTree .gwt-SmallTreeItem { } .gwt-SmallTree .gwt-SmallTreeItem-selected { } .gwt-BigTree { } .gwt-BigTree .gwt-BigTreeItem { } .gwt-BigTree .gwt-BigTreeItem-selected { } By searching this group I found the same question but the discussion was terminated without solution... Please help me in this regards... I'm using GWT 1.4.62 Thanks in Advance !!! Regards, ArunDhaJ --~--~-~--~~~---~--~~ You received 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: change default style
Its done as: .gwt-SmallTree { } .gwt-SmallTree .gwt-TreeItem { } .gwt-SmallTree .gwt-TreeItem-selected { } .gwt-BigTree { } .gwt-BigTree .gwt-TreeItem { } .gwt-BigTree .gwt-TreeItem-selected { } - Litty Preeth On Thu, Dec 11, 2008 at 3:53 PM, ArunDhaJ [EMAIL PROTECTED] wrote: Hi all, How can we change the default style of a widgets? I want to create two tree with different styles. .gwt-Tree { } .gwt-Tree .gwt-TreeItem { } .gwt-Tree .gwt-TreeItem-selected { } I want to change the above default style to my own style as follows: .gwt-SmallTree { } .gwt-SmallTree .gwt-SmallTreeItem { } .gwt-SmallTree .gwt-SmallTreeItem-selected { } .gwt-BigTree { } .gwt-BigTree .gwt-BigTreeItem { } .gwt-BigTree .gwt-BigTreeItem-selected { } By searching this group I found the same question but the discussion was terminated without solution... Please help me in this regards... I'm using GWT 1.4.62 Thanks in Advance !!! Regards, ArunDhaJ --~--~-~--~~~---~--~~ You received 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 have a layered panel?
Hey Make sure that the contents of the popup is put into a ScrollPanel. Coz if you disable the window scrolling and the popup size goes beyond the screen size then the overflowing popup area will get hidden. - Litty On Thu, Dec 11, 2008 at 2:13 AM, rakesh wagh [EMAIL PROTECTED] wrote: Yup glasspanel is really handy. Do remember to turn off the scrollbars... they could mess up the page big time! Window.enableScrolling(false); On Dec 9, 12:32 am, Petrus Pelser [EMAIL PROTECTED] wrote: The component in the incubator is called a GlassPanel and it works really well. Though I did have some issues with the blur event in IE, but I could easily fix it by catching and ignoring the onBlur() call. Suri wrote: Hi Rakesh, Isaac Litty Thanks for the replies. Since I'm currently already using the incubator jar for a table, I'll first attempt Isaac's suggestion which seems least effort-consuming at the moment. If i do need to create my own panel, I'll try both of your suggestions and update everyone on the results. Thanks a bunch all. You guys are really great help in this forum. On Dec 8, 3:11 pm, rakesh wagh [EMAIL PROTECTED] wrote: Correction to my earlier post: Use PopupPanel, not AbsolutePanel. I just tried this code in a class that extends DialogBox: @Override public void show() { mask.setPixelSize(Window.getClientWidth(), Window.getClientHeight ()); mask.setPopupPosition(0, 0); mask.setWidget(new Label(test)); mask.setStyleName(trans-bg); mask.show(); super.hide(); super.show(); } @Override public void hide() { mask.hide(); super.hide(); } .trans-bg{ background-color: black; filter: alpha(opacity=50); -moz-opacity: .5; } And I am able to show a translucent background to any of my dialog box! Rakesh Wagh On Dec 8, 9:37 am, rakesh wagh [EMAIL PROTECTED] wrote: if you are trying to do this on your own, you will probably need a absolute panel that is placed on the screen based on the screen size (0, 0, max clientx, max clienty). Select a proper style: color and transparency. Now just put your widget or popup on top of this panel. This way the z index of your translucent panel will be between the main screen and your visible widget. You might also have to put a screen resize handler to resize the size of your panel. I think the gwt incubator has a ready to use widget. Rakesh Wagh On Dec 6, 11:04 pm, Suri [EMAIL PROTECTED] wrote: Hey all, In GWT how would we create a layered panel/widget that basically acts like a semi-opaque screen for the stuff below it. Sort of looking like the screen is in a disabled mode. Thanks for any ideas. Suri -- Petrus Pelser Software Developer, CTO Codewave (http://www.codewave.co.za) mailto:[EMAIL PROTECTED] Cell: +27 79 522 6463 --~--~-~--~~~---~--~~ You received 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: Dynamically load GWT-Ext js
Hi All, If i load all js files at the loading times then application performance makes a huge issue for me because these files takes 15-20 sec for loading. I am thinking, To create my home page in completely as a GWT widget and after loading that home page loading all javascript files through JSNI. I think, i am thinking in right way. But missing one step and don't know where this step is? If anybody have an idea how can i remove that time. Thanks and regards, Sanj. On Dec 11, 9:37 am, Sanj [EMAIL PROTECTED] wrote: Hi All, I want to load my allgwt-extjavascripts files after my home page. I think, there should be one method through JSNI like this :- public static native void loadScript() /*-{ document.write('script src=js//ext//adapter//yui//yui- utilities.js type=text/javascript/script'); document.write('script src=js//ext//adapter//yui/ext-yui- adapter.js type=text/javascript/script'); document.write('script src=js//ext//ext-all.js type=text/ javascript/script'); document.write('script src=js//DDView.js type=text/ javascript/script'); document.write('script src=js//Multiselect.js type=text/ javascript/script'); document.write('script src=com.shrisure.SrisureHome.nocache.js type=text/javascript/ script'); }-*/; Through this method, my alljsfiles loads, but when i am trying to useGWT-Extwidgets. It throws an exception : Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' is null or not an object number: -2146823281 description: '$wnd.Ext.StatusBar' is null or not an object at com.gwtext.client.widgets.Component.checkExtVer(Native Method) at com.gwtext.client.widgets.Component.clinit(Component.java:108) Thanks and regards, Sanj. --~--~-~--~~~---~--~~ You received 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: What gwt method and/or event indicates that the object has been rendered?
On 11 déc, 07:10, Adam T [EMAIL PROTECTED] wrote: Try overloading the onAttach() method of the widget/panel in question which are called as the widget is attached to the DOM, it might be wise to wrap your code that calls the getOffsetWidth() method up in a DeferredCommand. Widget.onLoad is called at the end of Widget.onAttach, i.e. when child widgets have been attached. I'd therefore rather use onLoad than onAttach in this case (though they would work the same, given that OnLoad is called *from* onAttach). --~--~-~--~~~---~--~~ You received 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 use gwt in legacy system ?
Hi i have same experience in my project. previous project was build on the top of struts2, spring and hibernate. in my opinion, the thing that can be reuse just the data access layer. for UI part, i need to build them from scratch. rgds, gede On Wed, Dec 10, 2008 at 4:08 PM, leon [EMAIL PROTECTED] wrote: hi,guys I am new to gwt, and I want to use ext-gwt to do my ui job now. In the legacy project I brifly use Spring, Hibernate ,Struts, Acegi, and some other frameworks. And i use eclipse as the ide, jsp as view layer, tomcat as the webserver. Not much js is used yet. Could someone tells me The main jobs I need to do ? What change should make about the architecture? And the development diffrence (basicly I just used Eclipse, and may will be trying to use ant). 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT Beans Binding (JSR 295) v0.2
Hi, I released v0.2 of GWT Beans Binding (JSR 295) port: Change log for v0.2 - ListBoxAdapterProvider added (not working) - BeanPropertyDescriptorGenerator updated to support PropertyDescriptor.getPropertyType() - HasPropertyChangeSupport interface added. This interface should be implemented by all POJOs that will participate in bindings - GWTx upgrade: custom patch that adds support for PropertyDescriptor.getPropertyType() - ObservableCollections port fixed Project home: http://code.google.com/p/gwt-beans-binding/ First GWT Mosaic based demo using RPC JPA: http://69.20.122.77/gwt-mosaic/Showcase.html#CwListBoxBinding Kind Regards, George. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
onHistoryChange(String token) is not working.
Hi, I am using FileUpload Widget to upload a file. When I am upolading more than one files with FileUploadWidget and after uploading the files I am using History.back on a click of a button then onHistoryChange() method is not invoking. When I am uploading a single file then onHistoryChange() method is calling. It is necessary for me to call History.back() method after uploading files to display the previous view. Please help me to solve this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Google Visualization and Maps libraries for GWT Released
We have recently announced the availability of a new Google Web Toolkit (GWT) library wrapping the Visualization API and the final release of the Maps API bindings. The Maps API library is upgraded to version 1.0.2 and includes several bugfixes since the previous release. The new Visualization API library includes: * A set of pre-wrapped visualizations out-of-the-box for use with GWT. These include many of the existing Google Visualizations like Line Chart, Motion Chart, Annotated Timeline and others. All GWT-supported visualizations are marked as such in our public gallery. * A class to enable anyone to easily create a Java wrapper for their own visualization and thus making it natively available for GWT developers. * A class to make it easy to write new visualization in Java to be GWT-compiled and available as GViz-compatible visualizations for general use through the JS API and as Gadgets. You can read more about the Visualization API library at our Google Code blog post: http://google-code-updates.blogspot.com/2008/12/google-visualization-api-library-now.html To download, visit the Google Code project: http://code.google.com/p/gwt-google-apis Enjoy! The Visualization and Google API Libraries for GWT teams -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: change default style
Thanks Litty.. :-) --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Widget similar to ListBox
Hi all, Is there any widget similar to ListBox, in which styles could be defined to each item ??? I'm using GWT-1.4.62. I tried creating my own widget by adding labels with styles and added click listeners... I got struck up when I wanted to highlight the selected label, and need to get the selected label. Thanks in Advance !!! Regards ArunDhaJ www.arundhaj.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: GWT Beans Binding (JSR 295) v0.2
George, Please excuse my ignorance on this one. Will this API allow me to keep DTOs and JPAs in sync? From the description of the project it looks like it can do that. Just wanted to hear your thoughts on this. If the API does allow this style of synchronization between objects, do they have to be mirror images of each other? How can we specify the rules on what properties and objects need to be kept in sync? I am sure this is documented somewhere. If this has already been discussed before pointing me to those resources will suffice. Thanks! On Dec 11, 8:28 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I released v0.2 of GWT Beans Binding (JSR 295) port: Change log for v0.2 - ListBoxAdapterProvider added (not working) - BeanPropertyDescriptorGenerator updated to support PropertyDescriptor.getPropertyType() - HasPropertyChangeSupport interface added. This interface should be implemented by all POJOs that will participate in bindings - GWTx upgrade: custom patch that adds support for PropertyDescriptor.getPropertyType() - ObservableCollections port fixed Project home: http://code.google.com/p/gwt-beans-binding/ First GWT Mosaic based demo using RPC JPA: http://69.20.122.77/gwt-mosaic/Showcase.html#CwListBoxBinding Kind Regards, George. --~--~-~--~~~---~--~~ You received 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: GWT Beans Binding (JSR 295) v0.2
Correction: In the second sentence I meant to say JPA Entities instead of JPAs. On Dec 11, 9:55 am, flash [EMAIL PROTECTED] wrote: George, Please excuse my ignorance on this one. Will this API allow me to keep DTOs and JPAs in sync? From the description of the project it looks like it can do that. Just wanted to hear your thoughts on this. If the API does allow this style of synchronization between objects, do they have to be mirror images of each other? How can we specify the rules on what properties and objects need to be kept in sync? I am sure this is documented somewhere. If this has already been discussed before pointing me to those resources will suffice. Thanks! On Dec 11, 8:28 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I released v0.2 of GWT Beans Binding (JSR 295) port: Change log for v0.2 - ListBoxAdapterProvider added (not working) - BeanPropertyDescriptorGenerator updated to support PropertyDescriptor.getPropertyType() - HasPropertyChangeSupport interface added. This interface should be implemented by all POJOs that will participate in bindings - GWTx upgrade: custom patch that adds support for PropertyDescriptor.getPropertyType() - ObservableCollections port fixed Project home: http://code.google.com/p/gwt-beans-binding/ First GWT Mosaic based demo using RPC JPA: http://69.20.122.77/gwt-mosaic/Showcase.html#CwListBoxBinding Kind Regards, George.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: TextBox listener for contents changed?
That's correct, onChange fires after the text box looses focus, but you can listen to onkeypress. onKeypress is fired before the text box is updated allowing you to cancel the keypress if desired. The trick is to use DeferredCommand.addCommand() to handle the text. public void onKeyPress(Widget sender, char keyCode, int modifiers){ // check if the keycode is something you are concerned about DeferredCommand.addCommand(new Command(){ public void execute(){ // read the updated text in the textbox now. } }); } -jason On Dec 10, 2008, at 5:50 PM, dhoffer wrote: Does anyone know how to configure GWT's TextBox so I can be notified when its contents changes? I have just found out that addChangeListener does not work because it only gets fired when the user leaves the text box. Also addKeyboardListener does not do what I need because this is fired BEFORE the contents of the text box have been changed/updated (so calling getText() returns the previous text). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: What gwt method and/or event indicates that the object has been rendered?
Thomas is correct here. onAttach() performs some very important functions related to widget behavior, so if you are not careful (to call super.onAttach()) then you would end up with broken widgets if you override that method. It is useful to override onAttach() if you need to perform some task just to rendering then call super.onAttach() at the end of your overridden method. However, onLoad() is the correct method to place your own code in if you need to perform tasks AFTER the widget is attached to DOM. -jason On Dec 11, 2008, at 4:32 AM, Thomas Broyer wrote: On 11 déc, 07:10, Adam T [EMAIL PROTECTED] wrote: Try overloading the onAttach() method of the widget/panel in question which are called as the widget is attached to the DOM, it might be wise to wrap your code that calls the getOffsetWidth() method up in a DeferredCommand. Widget.onLoad is called at the end of Widget.onAttach, i.e. when child widgets have been attached. I'd therefore rather use onLoad than onAttach in this case (though they would work the same, given that OnLoad is called *from* onAttach). --~--~-~--~~~---~--~~ You received 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: GWT Beans Binding (JSR 295) v0.2
The project does only the bean binding client side (widgets with lists of DTO) it does not talk to the server, but I am planing to extend it in GWT Mosaic with a data source API for syncing data between client server. More about beans binding you can find in https://beansbinding.dev.java.net/ and in the netbeans tutorials. On Dec 11, 4:56 pm, flash [EMAIL PROTECTED] wrote: Correction: In the second sentence I meant to say JPA Entities instead of JPAs. On Dec 11, 9:55 am, flash [EMAIL PROTECTED] wrote: George, Please excuse my ignorance on this one. Will this API allow me to keep DTOs and JPAs in sync? From the description of the project it looks like it can do that. Just wanted to hear your thoughts on this. If the API does allow this style of synchronization between objects, do they have to be mirror images of each other? How can we specify the rules on what properties and objects need to be kept in sync? I am sure this is documented somewhere. If this has already been discussed before pointing me to those resources will suffice. Thanks! On Dec 11, 8:28 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I released v0.2 of GWT Beans Binding (JSR 295) port: Change log for v0.2 - ListBoxAdapterProvider added (not working) - BeanPropertyDescriptorGenerator updated to support PropertyDescriptor.getPropertyType() - HasPropertyChangeSupport interface added. This interface should be implemented by all POJOs that will participate in bindings - GWTx upgrade: custom patch that adds support for PropertyDescriptor.getPropertyType() - ObservableCollections port fixed Project home: http://code.google.com/p/gwt-beans-binding/ First GWT Mosaic based demo using RPC JPA: http://69.20.122.77/gwt-mosaic/Showcase.html#CwListBoxBinding Kind Regards, George.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
Linked source folder in Eclipse project and GWT
Is it possible to use shared source folder linked Eclipse standard way with GWT tools? There is no problem in design time, compiler see all files in classpath. But in Host mode I've got an error [ERROR] Line 28: No source code is available for type plantspring.gwt.intf.MainMenuService; did you forget to inherit a required module? I want to share RPC interface files with different Eclipse project. What is a right way for that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
My GWT Ant task wont find my remote service
Hello all, I'm trying to set up an Ant task to run my GWT applications. The layout of my toy-app looks like this : src/org/om/ client/ model/ClientUser.java [the class of the bean sent by my remote service] service/user/RpcUserService.java [interface of the service] service/user/RpcUserServiceAsync.java [interface of the async callback] Om.java [this is my entry point] server/RpcUserServiceImpl.java [my service implementation] public/Om.html Om.gwt.xml [Module descriptor with the declaration of the RpcUserService servlet] Now is the weird part. If I build an Eclipse run configuration with - com.google.gwt.dev.GWTShell as the main class, - -out www org.om.Om/Om.html as the 'program argument' - '-Xmx256M' as the VM arguments, - JRE 1.5_013 as the Bootstrap entries, - User entries with the src directory of that project, plus the classpath of the project, Then everything runs fine (I could copy/paste the content of the launch file, but you need to be an alien to read that...). This leads me to the idea that my application is correct. If I use the following Ant target element, which looks really the same to me, I get the following error in the GWT development shell window : [ERROR] Unable to instantiate 'org.om.server.RpcUserServiceImpl' java.lang.ClassNotFoundException: org.om.server.RpcUserServiceImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) Ant target element : target name=gwt-shell java classname=com.google.gwt.dev.GWTShell fork=true jvmarg value=-Xmx512m/ arg value=-out/ arg value=www/ arg value=org.om.Om/Om.html/ classpath pathelement location=lib/gwt-user-1.5.3.jar/ pathelement location=lib/gwt-dev-1.5.3-windows.jar/ pathelement location=lib/gwt-ll.dll/ pathelement location=lib/swt-win32-3235.dll/ pathelement path=bin/ pathelement path=src/ /classpath /java /target I get the same error if I use the following .cmd file : java -Xmx256M -cp %~dp0\src;%~dp0\bin; %~dp0\lib\gwt-user-1.5.3.jar; %~dp0\lib\gwt-dev-1.5.3-windows.jar com.google.gwt.dev.GWTShell -out %~dp0\www %* org.om.Om/Om.html I'm probably missing some kind of very obvious thing... Any kind of hints / thoughts / help would be very much appreciated ! Thank you, José --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Will be GWT development stopped ?
I've heard that GWT development should be now or in following days stopped or blocked. Is That true or not ? --~--~-~--~~~---~--~~ You received 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 import Objects from another Eclipseprojects???
Hello, Ich have a problem: I have a GWT Project in Eclipse and i want to use RPC. Its no problem to use it with Strings or Objects in the gwt client package. (Like the Stockwatcher Tutorial). But now i want to use an Object from another Eclipseproject with a different packagestructure. This Object is Serializable and has an empty Constructor. Its possible to import this Object into the Classes of my Gwt Project but i cant load my Application: Often I see this Errormessage: No source code is available for type transfer.Produktgruppe; did you forget to inherit a required module? Can somebody helme pls? Thanks aemik --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
JSESSIONID cookie in hosted mode
Hi! When I run GWT in hosted mode, no JSESSIONID cookie is sent to the browser. Do I have to tune the configuration files to enable the session cookie ? Thanks, Markus --~--~-~--~~~---~--~~ You received 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 Spring Integration
Hi, We have been trying to get GWT and Spring to work, but unfortunately no luck as yet. Our application makes a simple call to the service side of GWT (on Spring MVC) and tries to render the response as a table (a list of items). If someone can post a working copy of a 'hello world' kind;a app, that will be really great. I have tried to read many documents (gwt-sl) etc., but no luck as yet. Thanks, Sriram --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Unsaved Changes Pop Up
Hello, I have developed a small module on GWT that is embedded in a previously existing Struts based Web application. I would be interested in knowing if there is a way to disable the pop up that is displayed every time I leave the GWT module which says: Are you sure you want to navigate away from this page? WARNING: All unsaved changes will be lost. These it is really annoying for the user of my application since he is always changing from this GWT module to any other in the application in order to check some data in a grid and a list. Thanks in advance, Carlos --~--~-~--~~~---~--~~ You received 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-ext
When we run GWT application every time it loads all the widgets to be displayed and displays it..Is there any way by which we can save the widgets to be displayed, so that it doesn't have to load it everytime it is run? Please let me know anything about this...Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Geocode Directions?
I'm wish to return the distance and expected travel time from point A to point B. I don't particularly want to view the polyline - I'm just really after the distance and expected travel time. I do a lot of geocoding and would love to add this information to what I'm doing - is it possible? --~--~-~--~~~---~--~~ You received 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: GWT Spring Integration
perhaps one of these articles will help: http://delicious.com/davidroe/spring /dave On Dec 10, 8:43 pm, Sriram Iyengar [EMAIL PROTECTED] wrote: Hi, We have been trying to get GWT and Spring to work, but unfortunately no luck as yet. Our application makes a simple call to the service side of GWT (on Spring MVC) and tries to render the response as a table (a list of items). If someone can post a working copy of a 'hello world' kind;a app, that will be really great. I have tried to read many documents (gwt-sl) etc., but no luck as yet. Thanks, Sriram --~--~-~--~~~---~--~~ You received 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 import Objects from another Eclipseprojects???
Aemik, This topic comes up fairly often. You can find many of those previous discussions by searching for the no source code message on the forum. Here's one such thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8777393d88e0a096 Hope that helps, Isaac On Thu, Dec 11, 2008 at 3:07 AM, aemik [EMAIL PROTECTED] wrote: Hello, Ich have a problem: I have a GWT Project in Eclipse and i want to use RPC. Its no problem to use it with Strings or Objects in the gwt client package. (Like the Stockwatcher Tutorial). But now i want to use an Object from another Eclipseproject with a different packagestructure. This Object is Serializable and has an empty Constructor. Its possible to import this Object into the Classes of my Gwt Project but i cant load my Application: Often I see this Errormessage: No source code is available for type transfer.Produktgruppe; did you forget to inherit a required module? Can somebody helme pls? Thanks aemik --~--~-~--~~~---~--~~ You received 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: GWT Spring Integration
Hi, http://gwt-widget.sourceforge.net/ http://code.google.com/p/net-orcades-spring/ On Thu, Dec 11, 2008 at 5:43 AM, Sriram Iyengar [EMAIL PROTECTED] wrote: Hi, We have been trying to get GWT and Spring to work, but unfortunately no luck as yet. Our application makes a simple call to the service side of GWT (on Spring MVC) and tries to render the response as a table (a list of items). If someone can post a working copy of a 'hello world' kind;a app, that will be really great. I have tried to read many documents (gwt-sl) etc., but no luck as yet. Thanks, Sriram -- Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire. --~--~-~--~~~---~--~~ You received 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.hide() is not working
public void onMouseEnter(Widget sender) { dialogBox.center(); dialogBox.show(); } public void onMouseLeave(Widget sender) { dialogBox.hide(); } Dialog box appears but it doest go.. Pls find out the mistake.. --~--~-~--~~~---~--~~ You received 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 get GWT shell/tomcat to access perl cgi
I imagine the cgi should be put into the www area/directory but I don't know how to set this up. Please give me a link that will help me or try and describe how to do this. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-docs-20081026.zip (Google Web Toolkit Documentation)
Thanks! On Oct 26, 3:44 pm, Davide Rognoni davide.rogn...@gmail.com wrote: Hi All, I built an archive of the Google Web Toolkit documentation to keep on your computer and read while not connected to the Internet. See the attached file. gwt-docs-20081026.zip 3246KViewDownload --~--~-~--~~~---~--~~ You received 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: GTileLayerOverlay show and hide
That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- 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: GWT Enhancements RoadMap
http://googlewebtoolkit.blogspot.com/ this answers some of your questions. On Wed, Dec 10, 2008 at 8:21 PM, GWTFan valavanur...@gmail.com wrote: In the Google IO conference this year we brought up the discussion on using toolkits like GXT (for its richness and for widgets like datepicker, closable tabs, etc). One of the points that was put forth was that these toolkits are not free for commercial use. I would like to know if GWT team has plans to expand the widget range and include widgets like DateField, DatePicker, Closable TabPanel, ComboBox? Also is there a roadmap for the future GWT versions. We are in the final stages of completing our web application using GWT. We are planning to go to production around Apr next year and are keen to know the plans for GWT. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GTileLayerOverlay show and hide
What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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: GTileLayerOverlay show and hide
I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- 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: GTileLayerOverlay show and hide
as a side note, is the transition for gwt-api's version and mapitz a large change? On Dec 11, 2:34 pm, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- 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: GTileLayerOverlay show and hide
/** * Return the Maps API Version currently loaded. * * @return the Maps API Version currently loaded. */ public static native String getVersion() /*-{ return $wnd.G_API_VERSION; }-*/; On Thu, Dec 11, 2008 at 2:34 PM, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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: Native GWT Compiler
Thanks, Sumit. Can this arg also be used for GWTShell? On Thu, Dec 11, 2008 at 2:46 PM, Sumit Chandel sumitchan...@google.com wrote: Hi Alex, Dobes, There is a flag that you need to pass in to have the compiler run in multi-threaded mode. The flag is: -localWorkers N, where N is some number greater than 1, depending on how many threads you want to use to compile your GWT application. Sorry for not mentioning this earlier. Hope that helps, -Sumit Chandel On Tue, Dec 9, 2008 at 11:50 PM, Alex Epshteyn alexander.epsht...@gmail.com wrote: Does anyone know the answer to this question asked by Dobes: I checked out the trunk and I'm running thecompilerfrom it, but I'm not seeing any performance boost and only one CPU core is being used. Is there a command-line switch to turn on multiple threads? That's why I was reluctant spending at least an hour trying this myself - I didn't believe it would actually be enabled by default. On Nov 24, 7:29 am, Dobes dob...@gmail.com wrote: I checked out the trunk and I'm running thecompilerfrom it, but I'm not seeing any performance boost and only one CPU core is being used. Is there a command-line switch to turn on multiple threads? On Nov 12, 10:56 am, Alex Epshteyn alexander.epsht...@gmail.com wrote: Hi Sumit, This multithreadedcompilersounds intriguing. Could you provide some guidance about how to get it and use it? Thanks, Alex On Oct 13, 1:08 pm, Sumit Chandel sumitchan...@google.com wrote: Hi Rauf, There are currently no plans to rewrite the GWTcompileras a native compiler. There are plans to speedup compilation time with the current GWT compiler, however, and the team is in the know about long compilation times that some developers have been experiencing when moving their projects form 1.4.x to 1.5. The new multi-threadedcompileris available in trunk if you're interested in checking it out to see if it helps speed up your application compile time. From benchmarks we've run and what some developers have been reporting, the new multi-threaded compilation has been showing significant improvements in compilation speed, so you should be getting faster results for your own project as well. Hope that helps, -Sumit Chandel On Wed, Oct 8, 2008 at 2:36 PM, Rauf Issa grandlo...@gmail.com wrote: Any plans to write a native GWTCompilerlike jikes for java? I know there are plans to improve GWTcompilerperformance in the upcoming 1.6 release of GWT by multi-threading but I am not sure that will make enough difference. A nativecompilerlike jikes would be better and much faster. Our product, JobServer (job scheduling engine) uses GWT for its GUI SDK and we compile GWT components on the fly the first time the GWT is used. This frees the developer from doing the GWTcompilerif they do not want to. This works very well but the initial GWT compiling of the GWT UI components can take minutes sometimes and is annoying. I would really like this to be more like compiling JSP pages for example. Anyway I can only hope that GWT compiling gets faster (right now it is getting slower with all the advanced optimizations done in GWT 1.5 :) Rauf Issa http://www.grandlogic.com JobServer - The Most Comprehensive Java Job Scheduling Platform --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PopupPanel over pdf bug in Firefox
I've found a workaround. Simply use another PopupPanel to position the iframe shim. - Paul On Dec 10, 3:44 pm, ka1n leskap...@gmail.com wrote: Thanks for the reply. Unfortunately the solution you mentioned is not sufficient for me because the pdf is taking up most of the screen. Making it invisible for a mere popup would look terrible. There is another solution and I already know how to do it without GWT. A simple iframe shim does the trick. I'm having some trouble positioning a shim in GWT. The trouble is how to 'add' the shim (e.g. Frame) to the document. It must be positioned the same way a PopupPanel is (e.g. not added to RootPanel). - Paul On Dec 9, 7:22 pm, MrEiki mre...@gmail.com wrote: Hi, i've had the same problem with another toolkit. After some research i got to the conclusion that this was due to how the browser (adobe plugin) renders the pdf. Changing the z-index does not work. One way to work around this is simply to let add a listener to the pdf containing element, and hiding it when you open the menu. For example: (not done with gwt tho) http://nsm.raunvis.hi.is/~olympic/Trainer/train.html Good luck, although i googled alot on this when i had this problem and found no other solution. NB: if you use flash plugin, it's not the same problem because then you can control the rendering of the plugin with the wmode attribute. (if i remember correctly) best regards, Eiríkur On Dec 9, 5:29 pm, ka1n leskap...@gmail.com wrote: I have a PopupPanel that is supposed to appear above a Frame (e.g. iframe). It normally works, but if the iframe contains a pdf (or presumably, anything the uses a plugin...flash, java, etc) then the PopupPanel gets buried. I can fix it in DHTML by using an iframe shim, but it is turning out to be a bit difficult in GWT because the shim must be absolutely positioned. How can I work around this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to set DropDownListBox in multi-column list style
Hi Gudgee, Similar to another thread about the same topic (link below), I think the best approach to render something like what you're looking for here would be to use a DisclosurePanel with either a FlexTable, Grid or FlowPanel depending on the look and functionality you want to have for the multi-column drop down. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/140c784915cb6b62 Hope that helps, -Sumit Chandel On Mon, Dec 8, 2008 at 11:12 PM, Gudgee lukc...@gmail.com wrote: Can i edit CSS file? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GTileLayerOverlay show and hide
Thanks, it returns null but I looked at the fusionmaps local js file, and it seems mJavascriptVersion = 109. So the problem is fixed in 125, based on the link you gave me. Interesting. Anyway, they reference doing add/remove. I tried doing map.removeOverlay, addOverlay, with a reference to the Overlay in my TreeNode, but for some reason remove works, but add never works again. Any thoughts on a work around? On Dec 11, 2:50 pm, Eric Ayers zun...@google.com wrote: /** * Return the Maps API Version currently loaded. * * @return the Maps API Version currently loaded. */ public static native String getVersion() /*-{ return $wnd.G_API_VERSION; }-*/; On Thu, Dec 11, 2008 at 2:34 PM, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- 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: GTileLayerOverlay show and hide
As far as the effort required to port: Classes have been renamed to drop the leading 'G'. Callbacks follow a different pattern (for map events in particular.) I guess the big question is, how much code do you have in your app that uses the Maps API? On Thu, Dec 11, 2008 at 2:43 PM, ben sidevi...@gmail.com wrote: as a side note, is the transition for gwt-api's version and mapitz a large change? On Dec 11, 2:34 pm, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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: GTileLayerOverlay show and hide
You might try over on the Google-Maps-Api google group, but be sure to read their posting guidelines first. On Thu, Dec 11, 2008 at 3:19 PM, ben sidevi...@gmail.com wrote: Thanks, it returns null but I looked at the fusionmaps local js file, and it seems mJavascriptVersion = 109. So the problem is fixed in 125, based on the link you gave me. Interesting. Anyway, they reference doing add/remove. I tried doing map.removeOverlay, addOverlay, with a reference to the Overlay in my TreeNode, but for some reason remove works, but add never works again. Any thoughts on a work around? On Dec 11, 2:50 pm, Eric Ayers zun...@google.com wrote: /** * Return the Maps API Version currently loaded. * * @return the Maps API Version currently loaded. */ public static native String getVersion() /*-{ return $wnd.G_API_VERSION; }-*/; On Thu, Dec 11, 2008 at 2:34 PM, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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: Strange Dev Shell problem
Maybe the question is too easy, or strange? 2008/12/10 Tóth Imre tothi...@gmail.com Hi all! I am struggling with the Development Shell becouse it cant show me the exeptions. i run it from eclipse with the following argumnets: -logLevel ALL -noserver -whitelist . -out www http://localhost/scheduler/index.html My shell gives me indormations, what is the most important. it cannot show it to me I'v deleted the bin directory too.. any ideas? -- Best Regards Tóth Imre -- Best Regards Tóth Imre --~--~-~--~~~---~--~~ You received 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: GTileLayerOverlay show and hide
thanks for the help On Dec 11, 3:25 pm, Eric Ayers zun...@google.com wrote: You might try over on the Google-Maps-Api google group, but be sure to read their posting guidelines first. On Thu, Dec 11, 2008 at 3:19 PM, ben sidevi...@gmail.com wrote: Thanks, it returns null but I looked at the fusionmaps local js file, and it seems mJavascriptVersion = 109. So the problem is fixed in 125, based on the link you gave me. Interesting. Anyway, they reference doing add/remove. I tried doing map.removeOverlay, addOverlay, with a reference to the Overlay in my TreeNode, but for some reason remove works, but add never works again. Any thoughts on a work around? On Dec 11, 2:50 pm, Eric Ayers zun...@google.com wrote: /** * Return the Maps API Version currently loaded. * * @return the Maps API Version currently loaded. */ public static native String getVersion() /*-{ return $wnd.G_API_VERSION; }-*/; On Thu, Dec 11, 2008 at 2:34 PM, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- 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: GTileLayerOverlay show and hide
Unfortunately, I can't post a link to be helpful to them On Dec 11, 3:41 pm, ben sidevi...@gmail.com wrote: thanks for the help On Dec 11, 3:25 pm, Eric Ayers zun...@google.com wrote: You might try over on the Google-Maps-Api google group, but be sure to read their posting guidelines first. On Thu, Dec 11, 2008 at 3:19 PM, ben sidevi...@gmail.com wrote: Thanks, it returns null but I looked at the fusionmaps local js file, and it seems mJavascriptVersion = 109. So the problem is fixed in 125, based on the link you gave me. Interesting. Anyway, they reference doing add/remove. I tried doing map.removeOverlay, addOverlay, with a reference to the Overlay in my TreeNode, but for some reason remove works, but add never works again. Any thoughts on a work around? On Dec 11, 2:50 pm, Eric Ayers zun...@google.com wrote: /** * Return the Maps API Version currently loaded. * * @return the Maps API Version currently loaded. */ public static native String getVersion() /*-{ return $wnd.G_API_VERSION; }-*/; On Thu, Dec 11, 2008 at 2:34 PM, ben sidevi...@gmail.com wrote: I was just trying to figure out how I determine the maps version. On Dec 11, 2:32 pm, Eric Ayers zun...@google.com wrote: What the maps team always asks of me is to try to reproduce the problem in a small bit of straight JavaScript and if you can reproduce it, then they will look at the problem. You might be able to determine if that has a chance of solving it before moving all your code over. Also, do you know which version of the Maps API you are using? On Thu, Dec 11, 2008 at 2:23 PM, ben sidevi...@gmail.com wrote: That does sound like my problem, but remove and add don't seem to work either for me. I'm using mapitz library currently, and will make a switch to the gwt-google-apis in the near future. Maybe the problem is related to the mapitz library as well? On Dec 10, 8:43 pm, Eric Ayers zun...@google.com wrote: Are you using the gwt-maps.jar library from the gwt-google-apis project? If so, this sounds familiar. See issue 107 where this was a problem with GGeoXml overlays: http://code.google.com/p/gwt-google-apis/issues/detail?id=107 Let me know if that helps. On Wed, Dec 10, 2008 at 6:28 PM, ben sidevi...@gmail.com wrote: I have my GTileLayerOverlay adding and showing on start, and have them listed in a tree on the left. I then want the checkbox to toggle the visibility of the layer. But my problem is I have tried both remove and show/hide. Hide hides the GTileLayerOverlay, until you change the zoom on the map. Then it's back, so that's no help. So I try to remove the overlay, and then re-add it, but it never comes back. Any suggestions? P.s. I would like to start the overlay off, so I tried adding it hiding, but it doesn't do anything. if I don't have it added on load of the map, then it seems addOverlay doesn't do anything. Do I need to call something after addOverlay? I tried setCenter (map.getCenter()) to see if would force some sort of rendering to occur but it doesn't seem to do anything. -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ -- 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 -~--~~~~--~~--~--~---
reloading pagingscrolltable's listed data
Hi all, i have a pagingscrolltable which shows search results according to some user entered search criterias. How can i change the listed data of pagingscrolltable? seems i can change the listed data if i change the tablemodel - right? if so, how can i change the tablemodel of a pagingscrolltable? (since it seems readonly). Thanks in advance, Hasan Turksoy http://www.jroller.com/hasant --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
TreeTable from incubator
I need TreeTable in my project and consider using one developed in GWT incubator http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable . Somebody has experience using it? What is the status of this project? -Sergey --~--~-~--~~~---~--~~ You received 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 default button?
Hey all, Been searching around without success, so time to ask the group How do you (or can you) set the default button on a form? For example, let's say you have a panel with 4 TextBox widgets, an Enter button, and a Cancel button. When the user presses Enter during input of any of the 4 Text Boxes, I want to act as if the Enter button had been clicked. In Swing, you'd do something like: JRootPane rootPane = frame.getRootPane(); rootPane.setDefaultButton(enterButton); I realize I can create a KeyboardListener, attach it to all 4 Text Boxes, and react when Enter is pressed, but that seems like a bit of a hack to me. thanks in advance, Paul --~--~-~--~~~---~--~~ You received 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 1.4 DisclosurePanel Horizontal Orientation
I need a DisclosurePanel that opens horizantally not vertically. Questions: 1. Can this be done through CSS without using rotated images? 2. As DisclosurePanel is final; how would one add this functionality besides coping the source from the trunk and rebuilding your own widget? thanks nick --~--~-~--~~~---~--~~ You received 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 bootstrap model
Using GWT 1.5.3: According to the documentation, In the GWT 1.4 bootstrap model, GWT expects to find all its files in the same path as the module.nocache.js file.. Thus, having the host HTML file at http://host.domain.tld/myApp/index.html, and the module.nocache.js and other files generated by the GWT compiler in other location. It all works fine for me when I use the script tag. However, in my application I mostly use a JS function to load scripts dynamically. This function uses XmlHttpRequest to grab the script content, and then performs an eval on it. In this case it loads the module.nocache.js successfully, BUT the script then tries to look for the other resources under the location/URL that loaded the host page -which in simple cases could be the location of the host page, but others (for example when the host page is included in other page, or it's retrieved through an struts action) could be something completely different, for which there's not even a physical location. In some other scenarios, when the host page is part of a deeper nesting of imported pages, the module.nocache.js is imported properly but fails when executed, claiming that com_sample_MyGWTApplication is undefined when executing the following line: com_sample_MyGWTApplication.onInjectionDone ('com.sample.MyGWTApplication') I know that it might be my fault, and might be pushing the technology beyond it's confort zone. However one of the things that appealed to me to finally use it was the fact that didn;t claim to marry entirely to it. The problem is that I don;t know what kind of contract I'm breaking with GWT. The documentations says simply include the JS file and done, magic! I know nothing is magic, but is there a clearer document that establishes the contract to properly use GWT? Has somebody any idea of what could be happening in my case? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWTShell and facelet.
Hi Olivier, Have you added a script to include the nocache.js bootstrap file in your JSF JSP? -alex On Dec 10, 7:57 am, olivier FRESSE olivier.fre...@gmail.com wrote: I'm not sure that it's the issue. From my understanding, the noserver mode is really useful when you wan't to use GWT RPC. I've made a network capture to see what's going on between the server and the hosted browser, and I've seen good html, ie JSF tags are translated by the servlet. But for some reasons, GWTShell doesn't see the GWT JScript, and doesn't start to work with the java code. Sadly, I have no traces or error at all. 2008/12/9 acc a...@google.com Hi Olivier, The hosted mode embedded Tomcat server isn't configured with a JSF servlet out of the box, and hence wouldn't be able to handle the *.faces mapping. Are you using hosted mode with the embedded Tomcat server, or with your own server using the -noserver option? If it's the former, you should run hosted mode with the -noserver option and use the same server that you use when you work in web mode. Here's an FAQ on how to setup hosted mode with the -noserver option: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... -alex On Dec 9, 3:25 am, olivier FRESSE olivier.fre...@gmail.com wrote: Hmm no, I have a script/script tag. I'm still digging :-) O. 2008/12/9 Sumit Chandel sumitchan...@google.com Hi Olivier, Can you double-check to make sure that you're not using an empty script tag to reference your GWT bootstrap script? I..e, script src=com.google.app.MyModule.nocache.js / versus script src=com.google.app.MyModule.nocache.js/script? The empty script tag has been known to cause issues in hosted mode, and is also known to cause problems in IE 6/7 if I remember correctly. Hope that helps, -Sumit Chandel On Fri, Dec 5, 2008 at 3:05 AM, olivier olivier.fre...@gmail.com wrote: Hi, I'm facing a strange issue. I'm using GWT within a facelet page. This means that I have the following URL http://myserver:8080/MyApp/conf/test.faces test.faces is resolved to test.xtml by the servlet. Compiled mode works fine. But in hosted mode, the module is not loaded. No errors, no traces, nothing. However, the static HTML is displayed ! I tried the verbose mode, but it didn't help. Any clue ? :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to set default button?
Maybe others with more GWT Form experience can chime in, but adding a KeyboardListener to your text boxes to do a form submit seems completely reasonable and non-hacky. In fact, it's completely in line with traditional UI paradigms, where the whole form submit() concept and all is what's really unusual. Another idea is to extend the FormPanel to something like MyCoolFormPanel and add your own .setDefaultButton method on it. Simply my random thoughts. Good luck! Later, Shaffer On Dec 11, 2:06 pm, UVic_Paul paul.e.st...@gmail.com wrote: Hey all, Been searching around without success, so time to ask the group How do you (or can you) set the default button on a form? For example, let's say you have a panel with 4 TextBox widgets, an Enter button, and a Cancel button. When the user presses Enter during input of any of the 4 Text Boxes, I want to act as if the Enter button had been clicked. In Swing, you'd do something like: JRootPane rootPane = frame.getRootPane(); rootPane.setDefaultButton(enterButton); I realize I can create a KeyboardListener, attach it to all 4 Text Boxes, and react when Enter is pressed, but that seems like a bit of a hack to me. thanks in advance, Paul --~--~-~--~~~---~--~~ You received 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 style with id attribute css selector
Hi, I have a form panel and I want to set style using id attribute so basically when i do formPane.addStyleName(teststyle) it will transform into div class=teststyle / but I am looking for someting like div id=teststyle/. My goal is to set styles using css id selectors. Thoughts, thanks in advance, Bharat --~--~-~--~~~---~--~~ You received 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 hosted mode in infinity loop when debugging
Matic, I just started having the exact same problem! I'm using IntelliJ not Eclipse, though. The debugger just keeps looping. When I forcibly pause the process, I see that it's always somewhere in the RPC service instantiation process and never finishes it (i.e. GWT.create()). I don't think this is an Eclipse or IntelliJ problem. Perhaps something strange introduced in GWT 1.5.3? I have no idea how to solve this. I've tried cleaning everything, restarting IDE, computer, cleaning all GWT directories, etc. I can only run the project now, not debug it. Alex On Oct 31, 2:42 pm, maticpetek maticpe...@gmail.com wrote: Hello, I'm developing one project in GWT for more then a year now. Of course I add new code all the time. But one week ago debug mode stop working. When I run my project in Eclipse in debug mode, GWT hosted mode is started but then java process start using 100% CPU time and takes infinity time (ok, after 30 minutes I kill the process). If i run my project in run mode, everything works OK and it start in couple of seconds. I'm using OS X Leopard / Eclipse 3.3 / GWT 1.4.62. I also update on Eclipse 3.4 / GWT 1.5.2 and Eclipse 3.3 / GWT 1.5.2, but nothing change - debug mode was still fell in infinity loop. I check log file directory in .gwt-logs and .settings, but nothing is their. I thing something must be wrong with my code in GWT compiler, because I am developing (debugging( some other project on some machine, Eclipse and GWT without any problem. Could you please help me somehow. I'm really tired of debugging my code with GWT.log(). Thank you. Regards, Matic --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Who's Using GWT?
Hello everyone, We've recently updated the GWT homepage to include a page displaying a non-exhaustive list of applications that are built with GWT. We were also able to capture a few developers on video for those who happened to be around the Google Mountain View area and developed awesome applications using GWT. Check out more details on both of these at the link below: Who's Using GWT?: http://code.google.com/webtoolkit/app_gallery.html It's great that we were able to catch some of our local developers on video, but we know there are other great stories out there from other developers in the community. So, I thought it would be cool if I stickied this Groups thread for community members to share their experience with everyone. Feel free to post up your own GWT application(s), along with your most loved / requested features and any tips and tricks you've come across as you developed your applications that you'd like to share with the rest of the community. Looking forward to hearing from you. Cheers, -Sumit Chandel --~--~-~--~~~---~--~~ You received 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: There is a bug in CellPanel.java
I agree that I must add 'b' to a cell before a set the size. But my problem is that, it doesn't report error in host model, while it reports error in IE. I use gwt 1.5.3. On 12月9日, 上午2时04分, Ian Bambury ianbamb...@gmail.com wrote: You can't set the size of the cell that 'b' is in before you add 'b' to a cell. v.setCellWidth(b, 100px); v.add(b); Ian http://examples.roughian.com 2008/12/8 wurenhai wuren...@gmail.com Let's read the following code: ==CellPanel.java=== /** * Sets the height of the cell associated with the given widget, related to * the panel as a whole. * * @param w the widget whose cell height is to be set * @param height the cell's height, in CSS units */ public void setCellHeight(Widget w, String height) { Element td = DOM.getParent(w.getElement()); DOM.setElementProperty(td, height, height); } /** * Sets the horizontal alignment of the given widget within its cell. * * @param w the widget whose horizontal alignment is to be set * @param align the widget's horizontal alignment, as defined in * {...@link HasHorizontalAlignment}. */ public void setCellHorizontalAlignment(Widget w, HorizontalAlignmentConstant align) { Element td = getWidgetTd(w); if (td != null) { setCellHorizontalAlignment(td, align); } } /** * Sets the vertical alignment of the given widget within its cell. * * @param w the widget whose vertical alignment is to be set * @param align the widget's vertical alignment, as defined in * {...@link HasVerticalAlignment}. */ public void setCellVerticalAlignment(Widget w, VerticalAlignmentConstant align) { Element td = getWidgetTd(w); if (td != null) { setCellVerticalAlignment(td, align); } } /** * Sets the width of the cell associated with the given widget, related to the * panel as a whole. * * @param w the widget whose cell width is to be set * @param width the cell's width, in CSS units */ public void setCellWidth(Widget w, String width) { Element td = DOM.getParent(w.getElement()); DOM.setElementProperty(td, width, width); } The method setCellSize is defferent from setCellAlign. I want to say that, there is a bug use setCellSize: VerticalPanel v = new VerticalPanel(); Button b = new Button(Button); v.setCellWidth(b, 100px); v.add(b); These codes are normal when i uesed in debug model, but there is a IE error after i comlie it. The td is null!- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ You received 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: Reduce GWT (MD5) file names size
Hi Pawel, It seems that the suggested changes to the md5 hash would lead to a saving of 7 bytes per application load for a given client. Every byte counts, but I'm not sure if the number of bytes saved in this case would be worth spending engineering time to implement in GWT. My suggestion would be to create an issue report for this on the Issue Tracker, and better yet, if you could put together a patch that the team could use and attach it to the issue, I would be sure to forward it over to someone on the team to take a look at it. Here's a link to the Issue Tracker: http://code.google.com/p/google-web-toolkit/issues/list Let me know if you do post up an issue and I'll look into getting it on the radar. Hope that helps, -Sumit Chandel On Sun, Dec 7, 2008 at 6:38 AM, Pawel Jurski paweljur...@gmail.com wrote: Hi, I'm wondering if we can reduce GWT (MD5) file name size by converting md5 hexadecimal number to something with bigger radix. Simple example: 1) BigInteger bi = new BigInteger (d41d8cd98f00b204e9800998ecf8427e, 16); System.out.println(MD5HEX: d41d8cd98f00b204e9800998ecf8427e \nDEC: + bi.toString() + \nMAX_RADIX: + bi.toString(Character.MAX_RADIX) + \nMD5HEX: + new BigInteger(bi.toString(Character.MAX_RADIX), Character.MAX_RADIX).toString(16)); 2) MD5HEX: d41d8cd98f00b204e9800998ecf8427e DEC:281949768489412648962353822266799178366 MAX_RADIX: ck2u8j60r58fu0sgyxrigm3cu MD5HEX: d41d8cd98f00b204e9800998ecf8427e It should reduce file name size for about 7 characters. Maybe is not too late for that. -- Regards, Pozdrowienia Pawel. --~--~-~--~~~---~--~~ You received 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 event model
Hi Mike, As Adam mentioned, the new event system you discovered in trunk is indeed for GWT 1.6, following the design details explained in the link he posted above. The new event system should solve some of the problems in the current Event system (as detailed in the doc), including the use case you mentioned in your first post. While the upcoming GWT 1.6 event system will be quite different from the current model in a breaking way, the change should lead to drastically improved performance and ease of development. Hope that helps, -Sumit Chandel On Mon, Dec 8, 2008 at 11:17 AM, Adam T adam.t...@gmail.com wrote: It's for the version 1.6 event system: http://code.google.com/p/google-web-toolkit-incubator/wiki/ProposedEventSystem //Adam On 8 Dec, 17:06, Mike mcwe...@gmail.com wrote: Hi all, Today i was browsing the latest source code for GWT and i saw that many event-related classes have been deprecated. (E.g. CLickListener and SourcesClickEvents.) Is a major refactoring of the event mechanism forthcoming? (I was trying to figure out how the GWT event model works, i.e. i was wondering what the rock-bottom source for GWT events is and how they are `injected' into java. I discovered that GWT events are fired after handling browser events. In my opinion, this is not clearly explained in the GWT documentation. I worked an example, you can find it on my blog whatmovesmike.blogspot.com .) Bye, Mike --~--~-~--~~~---~--~~ You received 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 hosted mode in infinity loop when debugging
I think I just solved the problem by reverting my IntelliJ project files to an earlier state. It wasn't any new code that I had written - looks like just the project files got out of whack somehow. Good to back those up often. On Thu, Dec 11, 2008 at 8:34 PM, Alex Epshteyn alexander.epsht...@gmail.com wrote: Matic, I just started having the exact same problem! I'm using IntelliJ not Eclipse, though. The debugger just keeps looping. When I forcibly pause the process, I see that it's always somewhere in the RPC service instantiation process and never finishes it (i.e. GWT.create()). I don't think this is an Eclipse or IntelliJ problem. Perhaps something strange introduced in GWT 1.5.3? I have no idea how to solve this. I've tried cleaning everything, restarting IDE, computer, cleaning all GWT directories, etc. I can only run the project now, not debug it. Alex On Oct 31, 2:42 pm, maticpetek maticpe...@gmail.com wrote: Hello, I'm developing one project in GWT for more then a year now. Of course I add new code all the time. But one week ago debug mode stop working. When I run my project in Eclipse in debug mode, GWT hosted mode is started but then java process start using 100% CPU time and takes infinity time (ok, after 30 minutes I kill the process). If i run my project in run mode, everything works OK and it start in couple of seconds. I'm using OS X Leopard / Eclipse 3.3 / GWT 1.4.62. I also update on Eclipse 3.4 / GWT 1.5.2 and Eclipse 3.3 / GWT 1.5.2, but nothing change - debug mode was still fell in infinity loop. I check log file directory in .gwt-logs and .settings, but nothing is their. I thing something must be wrong with my code in GWT compiler, because I am developing (debugging( some other project on some machine, Eclipse and GWT without any problem. Could you please help me somehow. I'm really tired of debugging my code with GWT.log(). Thank you. Regards, Matic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to set default button?
For a PopupPanel take a look at onKeyPressPreview - handle ENTER, ESC etc key events there. Generally, you are looking at over-riding onEventPreview to handle the keyboard events you want. There is no magical setDefaultButton method. In fact, the default button formatting (if required) you have to implement separately. On Dec 12, 4:59 am, mikedshaf...@gmail.com mikedshaf...@gmail.com wrote: Maybe others with more GWT Form experience can chime in, but adding a KeyboardListener to your text boxes to do a form submit seems completely reasonable and non-hacky. In fact, it's completely in line with traditional UI paradigms, where the whole form submit() concept and all is what's really unusual. Another idea is to extend the FormPanel to something like MyCoolFormPanel and add your own .setDefaultButton method on it. Simply my random thoughts. Good luck! Later, Shaffer On Dec 11, 2:06 pm, UVic_Paul paul.e.st...@gmail.com wrote: Hey all, Been searching around without success, so time to ask the group How do you (or can you) set the default button on a form? For example, let's say you have a panel with 4 TextBox widgets, an Enter button, and a Cancel button. When the user presses Enter during input of any of the 4 Text Boxes, I want to act as if the Enter button had been clicked. In Swing, you'd do something like: JRootPane rootPane = frame.getRootPane(); rootPane.setDefaultButton(enterButton); I realize I can create a KeyboardListener, attach it to all 4 Text Boxes, and react when Enter is pressed, but that seems like a bit of a hack to me. thanks in advance, Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to size VerticalSplitPanel contents?
did u try css width: 100% height:100% - Litty On Thu, Dec 11, 2008 at 10:48 PM, dhoffer dhoff...@gmail.com wrote: I have a VerticalSplitPanel that contains a Tree in the top panel and TextArea in the bottom panel. How can I make the top bottom panels fill all available space? Currently the tree is only as large as its contents and the TextArea is some small fixed size. How can I make both fill all available space? The width should be the same as the width of the VerticalSplitPanel and the height of each should be dependent on the position of the VerticalSplitPanel's splitter bar. Thanks much for any assistance! -Dave --~--~-~--~~~---~--~~ You received 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: TextBox listener for contents changed?
If you want to be notified for each char change then you should use onKeyUp else if you want to process the text after all the text has been entered then u shud use onChange of ChangeListener. On Thu, Dec 11, 2008 at 10:51 PM, David Hoffer dhoff...@gmail.com wrote: Is this better than using onKeyUp() ? What are the pros/cons? -Dave On Thu, Dec 11, 2008 at 8:31 AM, Jason Essington jason.essing...@gmail.com wrote: That's correct, onChange fires after the text box looses focus, but you can listen to onkeypress. onKeypress is fired before the text box is updated allowing you to cancel the keypress if desired. The trick is to use DeferredCommand.addCommand() to handle the text. public void onKeyPress(Widget sender, char keyCode, int modifiers){ // check if the keycode is something you are concerned about DeferredCommand.addCommand(new Command(){ public void execute(){ // read the updated text in the textbox now. } }); } -jason On Dec 10, 2008, at 5:50 PM, dhoffer wrote: Does anyone know how to configure GWT's TextBox so I can be notified when its contents changes? I have just found out that addChangeListener does not work because it only gets fired when the user leaves the text box. Also addKeyboardListener does not do what I need because this is fired BEFORE the contents of the text box have been changed/updated (so calling getText() returns the previous text). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: dialogBox.hide() is not working
you dnt hav to call dialogBox.center() and show() both... if you want to centralize ur dialogBox then u can call dialogBox.center() alone. It will both centralize ur dialogbox and shows it. And I think the DialogBox class itself has a mouseListener for dragging. So it could be tht the mouse events are captured by this listener. - Litty On Thu, Dec 11, 2008 at 11:50 PM, prat pspra...@gmail.com wrote: public void onMouseEnter(Widget sender) { dialogBox.center(); dialogBox.show(); } public void onMouseLeave(Widget sender) { dialogBox.hide(); } Dialog box appears but it doest go.. Pls find out the mistake.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to set style with id attribute css selector
To set ID's Debug-ID is the word you're searching for. You can define an ID be using the ensureDebugID()- Method on e.g. composite widgets / elements. When you do this there will be a prefix before your real ID. If your ID is teststyle, the result will be the following: id=gwt-debug-teststyle. I don't know whether it's possible to manupilate the Debug-ID prefix... (I think no) I can imagine there is another way (over DOM) to set the ID, but since I am perplexed ^^ Danny 2008/12/12 bharat.j...@gmail.com bharat.j...@gmail.com Hi, I have a form panel and I want to set style using id attribute so basically when i do formPane.addStyleName(teststyle) it will transform into div class=teststyle / but I am looking for someting like div id=teststyle/. My goal is to set styles using css id selectors. Thoughts, thanks in advance, Bharat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4304 - in trunk: dev/core/src/com/google/gwt/dev/shell user/test/com/google/gwt/dev/jjs/test
Author: [EMAIL PROTECTED] Date: Wed Dec 10 23:50:53 2008 New Revision: 4304 Modified: trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java trunk/user/test/com/google/gwt/dev/jjs/test/JsoTest.java Log: Fix a ClassCircularityError caused by a supertype having a JSNI reference to a subtype. Patch by: bobv Reported by: schuck Review by: rjrjr (desk), scottb (TBR) Verified by: dhanji Modified: trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java == --- trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java Wed Dec 10 23:50:53 2008 @@ -618,6 +618,21 @@ throw new ClassNotFoundException(className); } +/* + * Prevent reentrant problems where classes that need to be injected have + * circular dependencies on one another via JSNI and inheritance. This check + * ensures that a class's supertype can refer to the subtype (static + * members, etc) via JSNI references by ensuring that the Class for the + * subtype will have been defined before injecting the JSNI for the + * supertype. + */ +boolean localInjection; +if (!isInjectingClass) { + localInjection = isInjectingClass = true; +} else { + localInjection = false; +} + Class? newClass = defineClass(className, classBytes, 0, classBytes.length); if (className.equals(JavaScriptHost.class.getName())) { javaScriptHostClass = newClass; @@ -638,13 +653,8 @@ } } -/* - * Prevent reentrant problems where classes that need to be injected have - * circular dependencies on one another. - */ -if (!isInjectingClass) { +if (localInjection) { try { -isInjectingClass = true; /* * Can't use an iterator here because calling injectJsniFor may cause * additional entries to be added. Modified: trunk/user/test/com/google/gwt/dev/jjs/test/JsoTest.java == --- trunk/user/test/com/google/gwt/dev/jjs/test/JsoTest.java(original) +++ trunk/user/test/com/google/gwt/dev/jjs/test/JsoTest.javaWed Dec 10 23:50:53 2008 @@ -52,6 +52,13 @@ public static native String staticNative() /*-{ return nativeFoo; }-*/; + +/** + * Ensure that a supertype can refer to members of a subtype. + */ +public static native String staticNativeToSub() /*-{ + return @com.google.gwt.dev.jjs.test.JsoTest.FooSub::staticValueSub()(); +}-*/; public static String staticValue() { return Foo + field; @@ -70,6 +77,10 @@ } static class FooSub extends Foo { +static String staticValueSub() { + return FooSub; +} + protected FooSub() { } @@ -608,6 +619,7 @@ assertEquals(3, Foo.field--); assertEquals(Foo2, Foo.staticValue()); assertEquals(nativeFoo, Foo.staticNative()); +assertEquals(FooSub, Foo.staticNativeToSub()); Bar.field = 10; assertEquals(11, ++Bar.field); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Incubator code review: .classpath and .incubator fixes
No longer use mysterious gwt-resources directory, and instead tie straight to the needed GWT_TOOLS entries. rjrjr --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- incubator-eclipse-r1293.patch Description: Binary data
[gwt-contrib] Re: RR: baking the svn revision number into gwt-incubator.jar
Thanks Bob and Freeland. I should have mentioned that the current about.txt is just a placeholder and I was planning to work with Emily to fix it up later. I will remember to update the copyright and include the licensing info. I also forgot to activate checkstyle for gwt-incubator. Will fix those errors. Regarding how to implement the SvnInfo command and where the code should reside, let us discuss the options today in person. Regards, Amit On Wed, Dec 10, 2008 at 11:20 PM, Freeland Abbott [EMAIL PROTECTED] wrote: 1. Your SvnInfo is different than the similarly-named one in gwt... that's likely to be confusing. 1. If we're going to use SvnInfo in both gwt and gwt-incubator, we should probably move it into the (also shared) tools project, presumably under tools/antlib, and they should be the same. If not, they should have different names. 2. I'm mildly concerned that your take is very specific; it updates one file (by hardcoded name) and that's all. Which is, granted, all you need here, but the fact that my cut exports the properties to do with what you will (in our case, pass to an ant Filter) is, IMHO, nice general-purpose-ness. 2. About.txt should either go away (and you can just System.println the two strings you need), or become large enough to be worthwhile, probably by inserting both copyright and license info. 1. Regardless of where, we probably should have license info in the distro! 2. At present, it seems we include JavaSWF-License.txt in the jar, but nothing about incubator On Wed, Dec 10, 2008 at 7:04 PM, BobV [EMAIL PROTECTED] wrote: about.txt - Wrong copyright. IncubatorMain: Do you have checkstyle working in your IDE? The sort-order and keyword ordering of your class variables are wrong. SvnInfo.java: Multiline comments should use /**/ Inconsistent order in variable keywords. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Mouse enter/leave events need to suppressed if the user did not actually enter or leave the widg
Thanks! Updated comment to reflect new handler names rather then the old listener ones. Committed at r4305. On Thu, Dec 11, 2008 at 10:22 AM, John LaBanca [EMAIL PROTECTED] wrote: I'm getting server errors, so here is your review: // Only fire the mouseEnter event if it's coming from outside this mouseEnter should be mouseOver since we are firing a MouseOverEvent // Only fire the mouseLeave event if it's actually leaving this mouseLeave should be mouseOut since we are firing a MouseOutEvent Otherwise, LGTM Thanks, John LaBanca [EMAIL PROTECTED] On Thu, Dec 11, 2008 at 9:49 AM, [EMAIL PROTECTED] wrote: Reviewers: jlabanca, Description: GWT issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3189q=owner:ecc%20started Please review this at http://gwt-code-reviews.appspot.com/810 Affected files: user/src/com/google/gwt/user/client/ui/ListenerWrapper.java user/src/com/google/gwt/user/client/ui/Widget.java Index: user/src/com/google/gwt/user/client/ui/ListenerWrapper.java === --- user/src/com/google/gwt/user/client/ui/ListenerWrapper.java (revision 4300) +++ user/src/com/google/gwt/user/client/ui/ListenerWrapper.java (working copy) @@ -287,23 +287,11 @@ } public void onMouseOut(MouseOutEvent event) { - // Only fire the mouseLeave event if it's actually leaving this - // widget. - Element to = event.getToElement(); - Widget source = source(event); - if (to == null || !source.getElement().isOrHasChild(to)) { -listener.onMouseLeave(source(event)); - } + listener.onMouseLeave(source(event)); } public void onMouseOver(MouseOverEvent event) { - // Only fire the mouseEnter event if it's coming from outside this - // widget. - Element from = event.getFromElement(); - Widget source = source(event); - if (from == null || !source.getElement().isOrHasChild(from)) { -listener.onMouseEnter(source(event)); - } + listener.onMouseEnter(source(event)); } public void onMouseUp(MouseUpEvent event) { Index: user/src/com/google/gwt/user/client/ui/Widget.java === --- user/src/com/google/gwt/user/client/ui/Widget.java (revision 4298) +++ user/src/com/google/gwt/user/client/ui/Widget.java (working copy) @@ -15,6 +15,7 @@ */ package com.google.gwt.user.client.ui; +import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.DomEvent; import com.google.gwt.event.logical.shared.HasHandlers; import com.google.gwt.event.shared.EventHandler; @@ -88,8 +89,25 @@ return handlerManager != null handlerManager.isEventHandled(type); } - public void onBrowserEvent(Event nativeEvent) { -DomEvent.fireNativeEvent(nativeEvent, handlerManager); + public void onBrowserEvent(Event event) { +switch (DOM.eventGetType(event)) { + case Event.ONMOUSEOVER: +// Only fire the mouseEnter event if it's coming from outside this +// widget. +Element from = event.getFromElement(); +if (from != null getElement().isOrHasChild(from)) { + return; +} +break; + case Event.ONMOUSEOUT: +// Only fire the mouseLeave event if it's actually leaving this +// widget. +Element to = event.getToElement(); +if (to != null getElement().isOrHasChild(to)) { + return; +} +} +DomEvent.fireNativeEvent(event, handlerManager); } /** -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4305 - releases/1.6/user/src/com/google/gwt/user/client/ui
Author: [EMAIL PROTECTED] Date: Thu Dec 11 07:38:37 2008 New Revision: 4305 Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java Log: Commiting fix for 3186, Mouse enter/leave events need to suppressed if the user did not actually enter or leave the Widget.java Review by:jlabanca Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java == --- releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java (original) +++ releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java Thu Dec 11 07:38:37 2008 @@ -287,23 +287,11 @@ } public void onMouseOut(MouseOutEvent event) { - // Only fire the mouseLeave event if it's actually leaving this - // widget. - Element to = event.getToElement(); - Widget source = source(event); - if (to == null || !source.getElement().isOrHasChild(to)) { -listener.onMouseLeave(source(event)); - } + listener.onMouseLeave(source(event)); } public void onMouseOver(MouseOverEvent event) { - // Only fire the mouseEnter event if it's coming from outside this - // widget. - Element from = event.getFromElement(); - Widget source = source(event); - if (from == null || !source.getElement().isOrHasChild(from)) { -listener.onMouseEnter(source(event)); - } + listener.onMouseEnter(source(event)); } public void onMouseUp(MouseUpEvent event) { Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java == --- releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java (original) +++ releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java Thu Dec 11 07:38:37 2008 @@ -15,6 +15,7 @@ */ package com.google.gwt.user.client.ui; +import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.DomEvent; import com.google.gwt.event.logical.shared.HasHandlers; import com.google.gwt.event.shared.EventHandler; @@ -88,8 +89,25 @@ return handlerManager != null handlerManager.isEventHandled(type); } - public void onBrowserEvent(Event nativeEvent) { -DomEvent.fireNativeEvent(nativeEvent, handlerManager); + public void onBrowserEvent(Event event) { +switch (DOM.eventGetType(event)) { + case Event.ONMOUSEOVER: +// Only fire the mouseEnter event if it's coming from outside this +// widget. +Element from = event.getFromElement(); +if (from != null getElement().isOrHasChild(from)) { + return; +} +break; + case Event.ONMOUSEOUT: +// Only fire the mouseLeave event if it's actually leaving this +// widget. +Element to = event.getToElement(); +if (to != null getElement().isOrHasChild(to)) { + return; +} +} +DomEvent.fireNativeEvent(event, handlerManager); } /** --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add NativePreviewEvent to replace current EventPreview system
Emily - I replied to all your comments. I'll send out a new patch for review soon that addresses all of your issues. - John http://gwt-code-reviews.appspot.com/805/diff/1/5 File user/src/com/google/gwt/event/shared/GwtEvent.java (right): http://gwt-code-reviews.appspot.com/805/diff/1/5#newcode139 Line 139: /** On 2008/12/08 23:06:37, ecc wrote: Should this method be final? As we've regretted making onDetach not final. Also, I think you meant rely Per our conversation, it doesn't need to be final. Users may override it to take action when an event is killed. http://gwt-code-reviews.appspot.com/805/diff/1/9 File user/src/com/google/gwt/user/client/Event.java (right): http://gwt-code-reviews.appspot.com/805/diff/1/9#newcode187 Line 187: protected void kill() { On 2008/12/08 23:06:37, ecc wrote: can you document the method that requires access to kill here? fire() has been moved into the Event, so this is no longer needed. http://gwt-code-reviews.appspot.com/805/diff/1/9#newcode482 Line 482: NativePreviewEvent event = new NativePreviewEvent(nativeEvent); On 2008/12/08 23:06:37, ecc wrote: I think we might want to recycle the native event here for efficiency. Agreed. Added to the latest version. http://gwt-code-reviews.appspot.com/805/diff/1/11 File user/src/com/google/gwt/user/client/ui/DialogBox.java (left): http://gwt-code-reviews.appspot.com/805/diff/1/11#oldcode231 Line 231: On 2008/12/08 23:06:37, ecc wrote: As much as I'd really, really love to do this, I think backward compatibility forces us to deprecate the method rather then removing it. I'm just removing the override. onEventPreview is still deprecated in the parent class. http://gwt-code-reviews.appspot.com/805/diff/1/11 File user/src/com/google/gwt/user/client/ui/DialogBox.java (right): http://gwt-code-reviews.appspot.com/805/diff/1/11#newcode392 Line 392: On 2008/12/08 23:06:37, ecc wrote: do we want to expose this? Per our conversation, onPreviewNativeEvent will be exposed, but will only contain minimal code by default. The bulk of the code will be in a new method previewNativeEvent() http://gwt-code-reviews.appspot.com/805/diff/1/13 File user/src/com/google/gwt/user/client/ui/MenuBar.java (left): http://gwt-code-reviews.appspot.com/805/diff/1/13#oldcode966 Line 966: public boolean onEventPreview(Event event) { On 2008/12/08 23:06:37, ecc wrote: See comments from DialogBox. We can remove the overide, and this is an anonymous inner class anyway. http://gwt-code-reviews.appspot.com/805/diff/1/12 File user/src/com/google/gwt/user/client/ui/PopupPanel.java (right): http://gwt-code-reviews.appspot.com/805/diff/1/12#newcode464 Line 464: */ On 2008/12/08 23:06:37, ecc wrote: Where is the onPreviewNativeEvent for this one? Its protected, not public http://gwt-code-reviews.appspot.com/805/diff/1/3 File user/test/com/google/gwt/user/client/EventTest.java (right): http://gwt-code-reviews.appspot.com/805/diff/1/3#newcode26 Line 26: public class EventTest extends GWTTestCase { On 2008/12/08 23:06:37, ecc wrote: Nice Test! I think the only thing you need to add is the interactions of code that mixes the old and new styles. For example: Use adds a new style preview, then an old style preview. What order should they be evaluated in? Added in new version of patch. http://gwt-code-reviews.appspot.com/805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add NativePreviewEvent to replace current EventPreview system
Cool, looking forward to seeing the new patch! Per our conversation, onPreviewNativeEvent will be exposed, but will only contain minimal code by default. The bulk of the code will be in a new method previewNativeEvent() Why expose onPreviewNativeEvent at all? -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add NativePreviewEvent to replace current EventPreview system
This review replaces: http://gwt-code-reviews.appspot.com/805/show http://gwt-code-reviews.appspot.com/606 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: review: selective merges from 1.6 to trunk
Freeland: I would strongly prefer that you literally svn merge c4298 and c4299 from 1.6 into trunk. This will reduce the likelihood of later conflicts. Also, please record they've already been merged in 1.6/branch-info.txt. (in trunk) svn merge -c4298 https://google-web-toolkit.googlecode.com/svn/releases/1.6 svn merge -c4299 https://google-web-toolkit.googlecode.com/svn/releases/1.6 svn commit -m Cherry pick merging c4298,c4299 from releases/1.6 to trunk Also, feel free to do the opposite to merge trunk-c4266 into 1.6. Emily: 1.6 needs to be writeable, we just need to be careful about merges up. On Thu, Dec 11, 2008 at 9:24 AM, Emily Crutcher [EMAIL PROTECTED] wrote: LGTM. Should we freeze new commits to 1.6 until the rest of this shakes out? On Thu, Dec 11, 2008 at 12:30 AM, Freeland Abbott [EMAIL PROTECTED] wrote: This is going to make our next 1.6 - trunk merge mildly unpleasant, but we need the 1.6 fixes at c4298 and c4299 'cause we're seeing them in the trunk, but want minimal other changes until we're sure the current mess around the confluence of event updates, hosted mode, war mode, AND oophm have settled. (Can we institute a one-a-week or one-a-fortnight policy for big merges? I trust tests, but I trust tests-and-shakeout-time more... and Issac, here's a case where we *are* hiding something; I can't cite the code that's gotten messy: it's not GWT's code, and it's not open source.) Attached patch is meant to replicate 1.6 4298:4299, only, onto trunk. Note, in a similar messy-merge bit, that trunk c4266 also needs to down-merge at some point. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4306 - releases/1.6/user/src/com/google/gwt/user/client/ui
Author: [EMAIL PROTECTED] Date: Thu Dec 11 07:41:33 2008 New Revision: 4306 Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java Log: Changed the comment to use new handler names. Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java == --- releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java (original) +++ releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java Thu Dec 11 07:41:33 2008 @@ -92,7 +92,7 @@ public void onBrowserEvent(Event event) { switch (DOM.eventGetType(event)) { case Event.ONMOUSEOVER: -// Only fire the mouseEnter event if it's coming from outside this +// Only fire the mouse over event if it's coming from outside this // widget. Element from = event.getFromElement(); if (from != null getElement().isOrHasChild(from)) { @@ -100,7 +100,7 @@ } break; case Event.ONMOUSEOUT: -// Only fire the mouseLeave event if it's actually leaving this +// Only fire the mouse out event if it's actually leaving this // widget. Element to = event.getToElement(); if (to != null getElement().isOrHasChild(to)) { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: [google-web-toolkit commit] r4304 - in trunk: dev/core/src/com/google/gwt/dev/shell user/test/com/google/gwt/dev/jjs/test
LGTM, but I'm not happy with this whole thing. There's gotta be a better way. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request - Windows distro build file error
Because newer versions of Ant (1.7?) allow it, and our build system only officially supports 1.7+. On Thu, Dec 11, 2008 at 11:57 AM, John LaBanca [EMAIL PROTECTED] wrote: I didn't see it in the 1.6 branch. The line in question references soyc, which is only in trunk as far as I know: tarfileset file=${gwt.build.lib}/gwt-soyc-vis.jar prefix=${project.distname} / This line was recently committed. It just uses tarfileset instead of zipfileset, which causes build errors. I'm not sure why this hasn't affected anyone else yet. Thanks, John LaBanca [EMAIL PROTECTED] On Thu, Dec 11, 2008 at 11:53 AM, Scott Blum [EMAIL PROTECTED] wrote: Wait, this sounds like something already committed. Was it something committed to trunk that should have been 1.6, or vice versa? On Thu, Dec 11, 2008 at 11:42 AM, John LaBanca [EMAIL PROTECTED]wrote: Freeland - Please do a code review on this patch that fixes the windows distro build file. Description: = zip does not support the tarfileset, at least on my machine. This looks like a typo, Fix: === Changed tarfileset to zipfileset, which is consistent with the rest of the file. Testing: == Building using ant now works. Thanks, John LaBanca [EMAIL PROTECTED] --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review: Removing spurious warning in BrowerManagerServer
Is this for 1.6, or trunk? Also: need patch file? On Thu, Dec 11, 2008 at 9:48 AM, Eric Ayers [EMAIL PROTECTED] wrote: Hi Scott, John observed that the messages coming out of Browser ManagerServer draw too much attention to the bad status value returned when the browser exits. In fact, non-zero exits are the normal way all the browsers we test return, so there is no use alarming them. Note: Even if we do decide to make a move to make more use of use Selenium RC, there are cases (Safari on Mac, Chrome) where it is much more convenient to run BrowserManagerServer, because Selenium RC does not have built in support for these. M user/src/com/google/gwt/junit/remote/BrowserManagerProcess.java -Eric. -- 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: gen2 tables: Create TableDefinition based on annotations
Any ideas why this is not working in compiled mode? I'm aware that my approach may be violating the generator approach but it would be interesting to know why it fails. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: review: selective merges from 1.6 to trunk
@Scott: Blame me. I asked Freeland to take this approach because we are still urgently trying to stabilize the trunk. We'll knowingly suffer the cost of a yuckier merge, but we definitely can't take any chance of additional breakages. On Thu, Dec 11, 2008 at 11:42 AM, Scott Blum sco...@google.com wrote: Freeland: I would strongly prefer that you literally svn merge c4298 and c4299 from 1.6 into trunk. This will reduce the likelihood of later conflicts. Also, please record they've already been merged in 1.6/branch-info.txt. (in trunk) svn merge -c4298 https://google-web-toolkit.googlecode.com/svn/releases/1.6 svn merge -c4299 https://google-web-toolkit.googlecode.com/svn/releases/1.6 svn commit -m Cherry pick merging c4298,c4299 from releases/1.6 to trunk Also, feel free to do the opposite to merge trunk-c4266 into 1.6. Emily: 1.6 needs to be writeable, we just need to be careful about merges up. On Thu, Dec 11, 2008 at 9:24 AM, Emily Crutcher e...@google.com wrote: LGTM. Should we freeze new commits to 1.6 until the rest of this shakes out? On Thu, Dec 11, 2008 at 12:30 AM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: This is going to make our next 1.6 - trunk merge mildly unpleasant, but we need the 1.6 fixes at c4298 and c4299 'cause we're seeing them in the trunk, but want minimal other changes until we're sure the current mess around the confluence of event updates, hosted mode, war mode, AND oophm have settled. (Can we institute a one-a-week or one-a-fortnight policy for big merges? I trust tests, but I trust tests-and-shakeout-time more... and Issac, here's a case where we *are* hiding something; I can't cite the code that's gotten messy: it's not GWT's code, and it's not open source.) Attached patch is meant to replicate 1.6 4298:4299, only, onto trunk. Note, in a similar messy-merge bit, that trunk c4266 also needs to down-merge at some point. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: review: selective merges from 1.6 to trunk
On Thu, Dec 11, 2008 at 1:33 PM, Bruce Johnson br...@google.com wrote: @Scott: Blame me. I asked Freeland to take this approach because we are still urgently trying to stabilize the trunk. We'll knowingly suffer the cost of a yuckier merge, but we definitely can't take any chance of additional breakages. Scott's suggestion accomplishes the same thing (and was perhaps how the diff was generated to start with), but specifically merges the particular changes into a working copy preserving the history rather than duplicating the changes. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: review: selective merges from 1.6 to trunk
No, Scott's right, I should svn merge rather than commiting a metadata-unrelated patch. Both achieve the desired effect; one establishes the metadata trail. Showing the patch of what's being done for review is separate, and generally not habitual; but then, we don't generally cherrypick merges either, which is why I wanted to advertise it. On Thu, Dec 11, 2008 at 1:33 PM, Bruce Johnson br...@google.com wrote: @Scott: Blame me. I asked Freeland to take this approach because we are still urgently trying to stabilize the trunk. We'll knowingly suffer the cost of a yuckier merge, but we definitely can't take any chance of additional breakages. On Thu, Dec 11, 2008 at 11:42 AM, Scott Blum sco...@google.com wrote: Freeland: I would strongly prefer that you literally svn merge c4298 and c4299 from 1.6 into trunk. This will reduce the likelihood of later conflicts. Also, please record they've already been merged in 1.6/branch-info.txt. (in trunk) svn merge -c4298 https://google-web-toolkit.googlecode.com/svn/releases/1.6 svn merge -c4299 https://google-web-toolkit.googlecode.com/svn/releases/1.6 svn commit -m Cherry pick merging c4298,c4299 from releases/1.6 to trunk Also, feel free to do the opposite to merge trunk-c4266 into 1.6. Emily: 1.6 needs to be writeable, we just need to be careful about merges up. On Thu, Dec 11, 2008 at 9:24 AM, Emily Crutcher e...@google.com wrote: LGTM. Should we freeze new commits to 1.6 until the rest of this shakes out? On Thu, Dec 11, 2008 at 12:30 AM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: This is going to make our next 1.6 - trunk merge mildly unpleasant, but we need the 1.6 fixes at c4298 and c4299 'cause we're seeing them in the trunk, but want minimal other changes until we're sure the current mess around the confluence of event updates, hosted mode, war mode, AND oophm have settled. (Can we institute a one-a-week or one-a-fortnight policy for big merges? I trust tests, but I trust tests-and-shakeout-time more... and Issac, here's a case where we *are* hiding something; I can't cite the code that's gotten messy: it's not GWT's code, and it's not open source.) Attached patch is meant to replicate 1.6 4298:4299, only, onto trunk. Note, in a similar messy-merge bit, that trunk c4266 also needs to down-merge at some point. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: HasValue is not ready for primetime
The HasValue interface's usefulness is entirely separable from any framework or library which might or might not be built on top of it. TelephoneTextBox is a great example of that. You could wrap a single TextBox in a composite that implements HasValueTelephoneNumber and another composite (TelephoneChooser?) that wraps three TextBoxes (Area Code, Exchange, and... whatever you call the last four numbers). Yet another implementation might use DropDownListBox to limit the available area codes (to area codes in a given state, for example). All of those can be treated as HasValueTelephoneNumber and have consistent, type-safe accessors defined by that interface. Not every Widget needs to implement HasValue. Widgets could be retrofitted later. And HasValue doesn't have to replace current accessors. TextBox.getText() could trivially delegate to getValue() and wouldn't even need to be deprecated. There is the potential for collision with any existing Widget extensions that define methods called getValue() or setValue(). That's unfortunate, but unavoidable when adding to an existing API. That should also be an understood risk when extending a class from another source. If you want to protect against changing API, encapsulation is much safer. I cannot agree more with the cautious spirit of this proposal, but I don't think unquantified fears about future data binding and validation work justify holding this up. HasValue did a brief stint in incubation and maybe it's been called up prematurely, but I don't think so. Consider HasValue on its own merits. On Wed, Dec 10, 2008 at 10:51 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: Without having actually looked at HasValue much, I did get pinged by a friend of mine who was annoyed that his overridden parameterized getValue() was now colliding with our String getValue()... looking at CheckBox, perhaps something like HasValueBoolean would be a better semantic. (It also might work better for my friend's case, which was basically a parameterized parent for IntegerTextBox, CurrencyTextBox, TelephoneTextBox, etc.) I think Ray's point is just that we'd rather not have GWT wind up tied to something half-thought-out, but have to support it three years from now as well as whatever we discover we want instead. Fearing that we just stepped onto such a route, he's trying to step back before it's too late and he's stuck. It'd be nice if such a thing could drop into the incubator to bake, of course. grin On Wed, Dec 10, 2008 at 9:00 PM, Isaac Truett itru...@gmail.com wrote: We'll need a general stick-a-value-in-take-a-value-out mechanism, the HasValue interface may not be the right one, and we'd prefer not to lead with it in isolation from the framework as a whole. If HasValue isn't a contract that you want to honor, that's one thing. But saying that it would interfere with a data binding or validation framework just doesn't seem accurate. Even if you end up not using HasValue as part of those frameworks, it isn't a loss. It's just not used. HasValue consolidates all of the separate accessors that Widgets have to define anyway and gives them a common API. That's not stepping on any other API or framework's toes. Yes, and the lack of access to the underlying value attribute has long been confusing to folks with an HTML background. Adding a setValue method that some have considered to be missing, but having it not apply to the checkbox value is just plain confusing. I don't necessarily agree with this position, but I can accept that others might. So punt on CheckBox for now. Nothing says every Widget has to implement HasValue. Do you actually anticipate finding a replacement for HasValue that will fit every current and future Widget perfectly? On Wed, Dec 10, 2008 at 8:35 PM, Ray Ryan rj...@google.com wrote: On Thu, Dec 11, 2008 at 12:28 PM, Isaac Truett itru...@gmail.com wrote: Reactions? Puzzlement. It stands a good chance of interfering with nascent data binding / validation work. Care to elaborate on this? We'll need a general stick-a-value-in-take-a-value-out mechanism, the HasValue interface may not be the right one, and we'd prefer not to lead with it in isolation from the framework as a whole. And its application to CheckBox is just plain wrongheaded and confusing. (CheckBox#setValue doesn't actually set the input element's value attribute--oops.) When has GWT's CheckBox ever had a value in the HTML sense? As a Widget, it represents a boolean value. Yes, and the lack of access to the underlying value attribute has long been confusing to folks with an HTML background. Adding a setValue method that some have considered to be missing, but having it not apply to the checkbox value is just plain confusing. Obviously you're not telling the whole story here. Well, no, really that's it. On Wed, Dec 10, 2008 at 7:35 PM, Ray Ryan
[gwt-contrib] [google-web-toolkit commit] r4307 - trunk/distro-source/windows
Author: fabb...@google.com Date: Thu Dec 11 11:04:37 2008 New Revision: 4307 Modified: trunk/distro-source/windows/build.xml Log: Windows should have zipfileset, not tarfileset, though Ant 1.7 doesn't care. (Ant 1.6 does.) Modified: trunk/distro-source/windows/build.xml == --- trunk/distro-source/windows/build.xml (original) +++ trunk/distro-source/windows/build.xml Thu Dec 11 11:04:37 2008 @@ -13,7 +13,7 @@ zipfileset file=${gwt.build.lib}/gwt-user.jar prefix=${project.distname} / zipfileset file=${gwt.build.lib}/gwt-servlet.jar prefix=${project.distname} / zipfileset file=${gwt.build.lib}/gwt-benchmark-viewer.jar prefix=${project.distname} / - tarfileset file=${gwt.build.lib}/gwt-soyc-vis.jar prefix=${project.distname} / + zipfileset file=${gwt.build.lib}/gwt-soyc-vis.jar prefix=${project.distname} / !-- jni libs-- zipfileset dir=${gwt.build.jni}/${dist.platform} prefix=${project.distname} / --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: HasValue is not ready for primetime
On Thu, Dec 11, 2008 at 2:20 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: To be fair, my friend was extending TextBox---which came to implement HasValue, and thus acquired the colliding String getValue()---when he should have extended Composite (which doesn't) instead; that was my suggested resolution for him. He grumbled (but it 'is-a' TextBox, that should be extends), but conceded. However, the old HasValue is not parameterized, and implies something has *string* value, period. As applied to CheckBox, that's confusing-to-wrong. Isaac is correct that we can resolve this by making CheckBox not a HasValue, and keep the interface... but the discussion makes me think that HasValueT has merit, and for example a CheckBox would be HasValueBoolean and a TextBox would be HasValueString (my friend should still make Composites, with HasValueTelephoneStationNumber, and not extend TextBox). But if we go with HasValue (unparameterized), that's a breaking change to make later (I guess we'd have to make HasTypedValueT instead, and have HasValue come to extend HasTypedValueString), and so I'm still happy to pause and think a bit more. (Do we like HasValueT, where T is widget-specific for whatever widgets have values??) One problem is that due to type erasure you cannot implement multiple copies of this interface (such as HasValueBoolean and HasValueString). For a hypothetical checkbox, you might well want a boolean value for checked or not, as well as the string value (ie, what it would post as in a form submit). Other than that, I think the generic version is the way to go if it is kept. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: HasValue is not ready for primetime
At the risk of seeming to hand-wave that problem away, I would say that any Widget seeking to implement HasValue twice is not a candidate for HasValue at all. HasValue is, by definition, for Widgets with a single distinct value. The value of a CheckBox is either a String or a Boolean (we've seen arguments either way) or it simply isn't a HasValue because it's a complex Widget with two equally important and independent values. On Thu, Dec 11, 2008 at 2:41 PM, John Tamplin j...@google.com wrote: On Thu, Dec 11, 2008 at 2:20 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: To be fair, my friend was extending TextBox---which came to implement HasValue, and thus acquired the colliding String getValue()---when he should have extended Composite (which doesn't) instead; that was my suggested resolution for him. He grumbled (but it 'is-a' TextBox, that should be extends), but conceded. However, the old HasValue is not parameterized, and implies something has *string* value, period. As applied to CheckBox, that's confusing-to-wrong. Isaac is correct that we can resolve this by making CheckBox not a HasValue, and keep the interface... but the discussion makes me think that HasValueT has merit, and for example a CheckBox would be HasValueBoolean and a TextBox would be HasValueString (my friend should still make Composites, with HasValueTelephoneStationNumber, and not extend TextBox). But if we go with HasValue (unparameterized), that's a breaking change to make later (I guess we'd have to make HasTypedValueT instead, and have HasValue come to extend HasTypedValueString), and so I'm still happy to pause and think a bit more. (Do we like HasValueT, where T is widget-specific for whatever widgets have values??) One problem is that due to type erasure you cannot implement multiple copies of this interface (such as HasValueBoolean and HasValueString). For a hypothetical checkbox, you might well want a boolean value for checked or not, as well as the string value (ie, what it would post as in a form submit). Other than that, I think the generic version is the way to go if it is kept. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Extendable GWT localization - crosscutting concern ?
We use GWT as web client technology for enterprise J2EE system (EJB, JAAS, ...) which is also capable to offer swing client GUI via java- web-start. Our aim is to make development simple (because of the size of project)- to use the same code for the same thing in all parts of the code. But nowadays different localization concepts makes us headache, because for functionality X for which is accessible from swing client and also from (web) client we need to use the same resource bundle. The same resource bundle is required also on server side (EJB stateless bean) where we generate image of the chart (jfreechart) with the legend which should be also localized. So we have property files: SuperFunX.properties SuperFunX_de.properties ... then interfaces which extends gwt.i18.Constants and Messages which should be in the same package: interface SuperFunX extends Constants { String title(); } But For Swing and server localization we have to use different interfaces which extends our own localization interfaces with the same concept as it is in GWT (pairing method name with key of resource bundle is very elegant way how to have check in compile time for matching if keys exists, we get this localization concept from GWT): interface SuperFunXResourceBundle extends LocaleResourceConstants{ String title(); } where LocaleResourceConstants is our interface similar to gwt.i18n.ConstantsWithLookup So now the code for receiving localized text looks like: 1) in GWT GWT.create(SuperFunX.class).title(); 2) In Swing and server it is: LocaleResourceFactory.create(SuperFunXResourceBundle.class).title(); or for specific locale LocaleResourceFactory.create(SuperFunXResourceBundle.class, en_En).title(); or for runtime key value: LocaleResourceFactory.create(SuperFunXResourceBundle.class).getString (title) Reason why we do not want to use GWT interfaces (Constants, ConstantsWithLookup, Message) is that we do not want to make dependency on GWT (gwt-servlet.jar or gwt.user.jar) for every module where localization is used. Our problem is that managing in synch two interfaces for growing number of resource bundles (currently approx. 250) and usage both of them for the same thing in different modules causes seamless effort. Also we cannot use e.g. the same validation logic (one class) for all environments (gwt, swing, server) which returns localized error- message - using one interface and one factory for creation of localized text. Solution which will be acceptable consists of: 1) the ability to define any interface to be treated as Constants, Messages, ConstantsWithLookup in .gwt.xml file, or to make GWT- localization-generator extensible to define new interfaces to be to be treated as Constants, Messages, ConstantsWithLookup. 2) the possibility for usage of the same factory class for creation of resource bundles. This will be partially solved by http://code.google.com/p/google-web-toolkit/issues/detail?id=2243 but we need in some way to easily define different implementation of the same class (LocaleResourceFactory) for GWT and for normal J2SE environment. thanks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Thinking about a better way to inject JSNI
On Thu, Dec 11, 2008 at 5:12 PM, BobV b...@google.com wrote: My original solution to the ClassCircularityError was to implement an ASM visitor that added or modified a class's static initializer to call over to CCL.injectJsni(). This ensured that the Class was fully-reified before any attempt at dispId assignment was attempted. Even though it is mechanically more complicated than performing injection from within findClass(), it is conceptually easier to reason about the timing. I think this also fits well with Instant Hosted Mode, though it seems a large enough chunk of work to perhaps wait for higher-priority tasks. I assume this would work for non-OOPHM hosted mode as well, right? Given that we now require the user to specify all modules to be loaded on the command-line of hosted mode, it is now feasible to compute all JSNI code that might be reachable from the entry point. As long as we're careful not to prematurely trigger class initialization, we could inject all JSNI in one fell swoop, but at the cost of injecting more code than we otherwise would into the browser. That is only true once we abandon GwtShell, right? -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: gen2 tables: Create TableDefinition based on annotations
without-contextYou detect this case by checking if you've received a null PrintWriter. If so, you've already run, and should just return the appropriate new statement./without-context rjrjr On Fri, Dec 12, 2008 at 4:42 AM, John LaBanca jlaba...@google.com wrote: Do you get any specific error in web mode? The generator runs at compile time, so if it works in hosted mode, it should work in web mode. The main difference is that in hosted mode it should only run once, whereas in compiled mode it runs once per permutation. Your generator looks straight forward, but make sure your generator can the case where the generator runs multiple times. Thanks, John LaBanca jlaba...@google.com On Thu, Dec 11, 2008 at 12:29 PM, dflorey daniel.flo...@gmail.com wrote: Any ideas why this is not working in compiled mode? I'm aware that my approach may be violating the generator approach but it would be interesting to know why it fails. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4308 - wiki
Author: amitman...@google.com Date: Thu Dec 11 14:48:58 2008 New Revision: 4308 Added: wiki/SharingCodeAmongGwtProjects.wiki Log: Created wiki page through web user interface. Added: wiki/SharingCodeAmongGwtProjects.wiki == --- (empty file) +++ wiki/SharingCodeAmongGwtProjects.wiki Thu Dec 11 14:48:58 2008 @@ -0,0 +1,13 @@ +#summary How to share tools among the various gwt projects + += Introduction = + +As GWT has grown into a collection of related projects, there is a growing need for sharing tools among the various gwt projects. There are several approaches for how this sharing can be achieved. However, there is no one size fits all solution. This document outlines a simple process to figure out the right solution in various scenarios. + += Details = + + +Tools that need to be shared among the various gwt projects can be divided into three categories. We specify the best practices for each category. + # *Tools that are rarely updated* Such tools should be checked into http://google-web-toolkit.googlecode.com/svn/tools These tools often include third party tools like apache or eclipse libs or our own modified versions of these. In each case, include the appropriate COPYING and LICENSING information, as required by the license the tool is distributed under. The files in this directory are rarely deleted. If there is a newer version of the lib, it is often added under a different name instead of updating the existing version. So it is a good idea to append the version number of the tool to the file name. In case of local modifications, also include the src files and a patch file so that debugging is possible in the future. +# *Tools that might be frequently updated and are stand-alone* Stand-alone means no dependency on rest of the gwt code. Examples include ant task for obtaining the svn information. We often own the source code for these tools. Moreover, currently all such tools are ant tasks. The right place for these tools is https://google-web-toolkit.googlecode.com/svn/trunk/build-tools Different sub-projects can pull in this code using svn-external or g4client (?) [the tool that Kelly mentioned]. + # *Tools that might be frequently updated and are not stand-alone* An example is ApiChecker. ApiChecker depends on gwt-dev.jar to build TypeOracle. The source code for such tools cannot be pulled in separately from the rest of gwt-trunk. So, the best option is to distribute these tools with the gwt distribution so that when they are run, a compatible version of the gwt-trunk code is available. Hopefully, these tools themselves do not substantially increase the size of the gwt distribution. \ No newline at end of file --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4310 - wiki
Author: amitman...@google.com Date: Thu Dec 11 14:52:18 2008 New Revision: 4310 Modified: wiki/SharingCodeAmongGwtProjects.wiki Log: Edited wiki page through web user interface. Modified: wiki/SharingCodeAmongGwtProjects.wiki == --- wiki/SharingCodeAmongGwtProjects.wiki (original) +++ wiki/SharingCodeAmongGwtProjects.wiki Thu Dec 11 14:52:18 2008 @@ -9,5 +9,5 @@ Tools that need to be shared among the various gwt projects can be divided into three categories. We specify the best practices for each category. # *Tools that are rarely updated* Such tools should be checked into http://google-web-toolkit.googlecode.com/svn/tools These tools often include third party tools like apache or eclipse libs or our own modified versions of these. In each case, include the appropriate COPYING and LICENSING information, as required by the license the tool is distributed under. The files in this directory are rarely deleted. If there is a newer version of the lib, it is often added under a different name instead of updating the existing version. So it is a good idea to append the version number of the tool to the file name. In case of local modifications, also include the src files and a patch file so that debugging is possible in the future. - # *Tools that might be frequently updated and are stand-alone* Stand-alone means no dependency on rest of the gwt code. Examples include ant task for obtaining the svn information. We often own the source code for these tools. Moreover, currently all such tools are ant tasks. The right place for these tools is https://google-web-toolkit.googlecode.com/svn/trunk/build-tools Different sub-projects can pull in this code using svn-external or g4client (?) [the tool that Kelly mentioned]. - # *Tools that might be frequently updated and are not stand-alone* An example is ApiChecker. ApiChecker depends on gwt-dev.jar to build TypeOracle. The source code for such tools cannot be pulled in separately from the rest of gwt-trunk. So, the best option is to distribute these tools with the gwt distribution so that when they are run, a compatible version of the gwt-trunk code is available. Hopefully, these tools themselves do not substantially increase the size of the gwt distribution. \ No newline at end of file + # *Tools that might be frequently updated and are stand-alone* Stand-alone means no dependency on rest of the gwt code. Examples include ant task for obtaining the svn information. We often own the source code for these tools. Moreover, currently all such tools are ant tasks. The right place for these tools is https://google-web-toolkit.googlecode.com/svn/trunk/build-tools Different sub-projects can pull in this code using svn-external or g4client (? -- confirm with Kelly). + # *Tools that might be frequently updated and are not stand-alone* An example is !ApiChecker that depends on gwt-dev.jar to build !TypeOracle. The source code for such tools cannot be pulled in separately from the rest of gwt-trunk. So, the best option is to distribute these tools with the gwt distribution so that when they are run, a compatible version of the gwt-trunk code is available. Hopefully, these tools themselves do not substantially increase the size of the gwt distribution. \ No newline at end of file --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4311 - wiki
Author: amitman...@google.com Date: Thu Dec 11 14:58:35 2008 New Revision: 4311 Modified: wiki/SharingCodeAmongGwtProjects.wiki Log: Edited wiki page through web user interface. Modified: wiki/SharingCodeAmongGwtProjects.wiki == --- wiki/SharingCodeAmongGwtProjects.wiki (original) +++ wiki/SharingCodeAmongGwtProjects.wiki Thu Dec 11 14:58:35 2008 @@ -8,6 +8,6 @@ Tools that need to be shared among the various gwt projects can be divided into three categories. We specify the best practices for each category. - # *Tools that are rarely updated* Such tools should be checked into http://google-web-toolkit.googlecode.com/svn/tools These tools often include third party tools like apache or eclipse libs or our own modified versions of these. In each case, include the appropriate COPYING and LICENSING information, as required by the license the tool is distributed under. The files in this directory are rarely deleted. If there is a newer version of the lib, it is often added under a different name instead of updating the existing version. So it is a good idea to append the version number of the tool to the file name. In case of local modifications, also include the src files and a patch file so that debugging is possible in the future. + # *Tools that are rarely updated* Such tools should be checked into http://google-web-toolkit.googlecode.com/svn/tools These tools often include third party tools like apache or eclipse libs or our own modified versions of these. In each case, include the appropriate COPYING and LICENSING information, as required by the tool's license. The files in this directory are rarely deleted. So append the version information to the file's name, so that future versions can be added without affecting the existing versions. In case of local modifications, also include the src files and a patch file to aid debugging in the future. # *Tools that might be frequently updated and are stand-alone* Stand-alone means no dependency on rest of the gwt code. Examples include ant task for obtaining the svn information. We often own the source code for these tools. Moreover, currently all such tools are ant tasks. The right place for these tools is https://google-web-toolkit.googlecode.com/svn/trunk/build-tools Different sub-projects can pull in this code using svn-external or g4client (? -- confirm with Kelly). - # *Tools that might be frequently updated and are not stand-alone* An example is !ApiChecker that depends on gwt-dev.jar to build !TypeOracle. The source code for such tools cannot be pulled in separately from the rest of gwt-trunk. So, the best option is to distribute these tools with the gwt distribution so that when they are run, a compatible version of the gwt-trunk code is available. Hopefully, these tools themselves do not substantially increase the size of the gwt distribution. \ No newline at end of file + # *Tools that might be frequently updated and are not stand-alone* An example is !ApiChecker that depends on gwt-dev.jar to build !TypeOracle. The source code for such tools cannot be pulled in separately from the rest of gwt-trunk. These tools need to be included in the gwt distribution so that when they are run, a compatible version of the gwt-trunk code is available. Hopefully, these tools themselves do not substantially increase the size of the gwt distribution. \ No newline at end of file --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Make runAsync split point information accessible to SOYC
Hi, this patch records some information that makes the final report much easier to read. The internal fragment numbers are really obscure, so the less they show up in the reports, the better. It looks generally good but I think there should be a few small modifications. First, it looks like it does not handle the case that two calls to runAsync happen in the same method. In such a case, the report generator should probably assign unique names to them, perhaps simply by adding #1 and #2 to the end of the names. Second, I do think it is cleaner to have JProgram keep a MapInteger,SourceInfo rather than a MapInteger,String. It is not important for the application of presenting information in the report, but it seems a pity to drop information when it's not necessary. If this is much trouble, then don't bother, but I suspect it will be a very simple change. There are also some minor nits: Several files use the type TreeMap, when Map seems less committal and thus slightly better. Two files need an auto-format for spacing issues: CompilationAnalysis and JavaToJavaScriptCompiler I guess the updates are large enough that I'd like to rereview it, but just barely. I'll try to get to it much faster than this initial review! -Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] OOPHM development branches
Hi John and Bob, In which branch is OOPHM development taking place? I see trunk/dev/oophm, but this project seems to cause compile errors for the gwt-user project, since the version of GWTShell in trunk/dev/oophm is missing some expected methods. What are the key things that need to be done before OOPHM is the default hosted-mode in trunk? Regards, Sam --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: HasValue is not ready for primetime
Well put, RayC, thanks. MVC is exactly the intended point of HasValue. (Freeland, John, it's HasValueT, that's not being debated, fret ye not.) And you guys are right, I think, that we're wrong to paralyze ourselves with fears of future confusion with our still-vague-but-crystallizing-nicely notions of a data binding framework. The specific issue that got me to lob this grenade was a disgusted internal complaint by someone who has long been frustrated by our CheckBox's lack of access to the dom value field. When he saw the longed for method appear and do exactly the wrong thing, and in a manner redundant with isChecked... I like HasValue, but its application to CheckBox has produced very confusing little beastie. So, how about we narrow the scope of this conversation to CheckBox api repair. How about this: - Deprecate CheckBox#isChecked and CheckBox#setChecked - Introduce CheckBox#setFormValue - Add copious javadoc to compare and contrast the two set...Value methods If this flies, are there other widgets that need the setFormValue method? rjrjr On Fri, Dec 12, 2008 at 7:42 AM, Ray Cromwell cromwell...@gmail.com wrote: IMHO, the concept of a Widget having a value is that it has only one value. The value can certainly be an object with multiple fields, or with conversion helper functions (String-Boolean), but it's one value with a normalized internal representation. For example, consider an USPostalAddressWidget, which HasValueUSPostalAddress. This widget is quite complex, with probably ample internal textboxes for each field (street, city, state, zip, suite, etc) and also validation. However, the widget conceptually has a single value: a USPostalAddress that can be get and set. In this context, I think it is clear that HasValue is really a Model-View interface. If it were a Table, it would be HasValueTableModel or HasValueTableData, for example. Probably the primary difference is HasValue doesn't require models to provide change listener interfaces. I don't believe that Data Binding and Model/View architectures are mutually exclusive. The main difference is, with MVC, typically, you build model POJOs, and build the View to be tightly coupled to the model interface, so that there is usually (but not always) a one to one correspondence between View and Model types. With Data Binding frameworks, the coupling is looser and you can have a many-to-one relationship, e.g bind POJO.fooField to Widget A and bind POJO.barField to WidgetB, or further, you can bind into composite widgets exposing their innards. Data Binding allows for more reuse since you can repurpose pojo models by slicing and dicing them with binding expressions, on the other hand, lots of bindings can get messy and make it harder to track what widgets deal with what data, especially if the bindings are dynamic or in a DSL. -Ray On Thu, Dec 11, 2008 at 11:49 AM, Isaac Truett itru...@gmail.com wrote: At the risk of seeming to hand-wave that problem away, I would say that any Widget seeking to implement HasValue twice is not a candidate for HasValue at all. HasValue is, by definition, for Widgets with a single distinct value. The value of a CheckBox is either a String or a Boolean (we've seen arguments either way) or it simply isn't a HasValue because it's a complex Widget with two equally important and independent values. On Thu, Dec 11, 2008 at 2:41 PM, John Tamplin j...@google.com wrote: On Thu, Dec 11, 2008 at 2:20 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: To be fair, my friend was extending TextBox---which came to implement HasValue, and thus acquired the colliding String getValue()---when he should have extended Composite (which doesn't) instead; that was my suggested resolution for him. He grumbled (but it 'is-a' TextBox, that should be extends), but conceded. However, the old HasValue is not parameterized, and implies something has *string* value, period. As applied to CheckBox, that's confusing-to-wrong. Isaac is correct that we can resolve this by making CheckBox not a HasValue, and keep the interface... but the discussion makes me think that HasValueT has merit, and for example a CheckBox would be HasValueBoolean and a TextBox would be HasValueString (my friend should still make Composites, with HasValueTelephoneStationNumber, and not extend TextBox). But if we go with HasValue (unparameterized), that's a breaking change to make later (I guess we'd have to make HasTypedValueT instead, and have HasValue come to extend HasTypedValueString), and so I'm still happy to pause and think a bit more. (Do we like HasValueT, where T is widget-specific for whatever widgets have values??) One problem is that due to type erasure you cannot implement multiple copies of this interface (such as HasValueBoolean and HasValueString). For a hypothetical checkbox, you might well want a boolean value for checked
[gwt-contrib] Code review, adding gwt-externals to gwt incubator
Amit, could you review this change? Adding gwt-externals directory to gwt-incubator trunk in order to support the use of gwt's build-tools directory. Change at: http://code.google.com/p/google-web-toolkit-incubator/source/detail?r=1302 Thanks, Emily -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: OOPHM development branches
On Thu, Dec 11, 2008 at 6:12 PM, Sam Gross colesb...@gmail.com wrote: In which branch is OOPHM development taking place? I see trunk/dev/oophm, but this project seems to cause compile errors for the gwt-user project, since the version of GWTShell in trunk/dev/oophm is missing some expected methods. The main code will be maintained in trunk -- the plugins will be in branches/oophm while we figure out their long-term location. The idea is that we refactor further to reduce the overlaid classes, and then when we are ready we just move the files from gwt-dev-oophm into gwt-dev (doing away with the various platforms at the same time). What errors do you get? I see dev (core and oophm) build errors depending on the Java version I use related to inferring generic types (the fix is to assign the result of artifacts.find to a local variable before using it in the enhanced for, I haven't tracked down exactly why it works some places or others and I have some open changes in that area is why I haven't submitted them), but nothing specific to OOPHM. With those fixed in StandardGeneratorContext, GWTShell (both core and oophm), SelectionScriptLinker, and StandardLinkerContext, it compiles and runs fine for me. What are the key things that need to be done before OOPHM is the default hosted-mode in trunk? I think the primary thing is time with people using it so we can feel confident that it won't break anyone. The UI needs some improvement (though it is usable as-is), and there are some testing issues that need to be addressed. The reason for putting it in trunk as an overlay is so that people could test it without breaking people who couldn't use it for whatever reason, and to hopefully keep it up to date as the trunk is changed. There is also the issue of competing priorities, as usual. Next week I have a task to get it OOPHM usable (in its overlay form) for some internal projects, so anything preventing it from being useful as it is in trunk currently should be shaken out then. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Thinking about a better way to inject JSNI
There might be a simpler variant to what you propose but in a similar spirit. Instead of injecting code into static initializers, could we just use an ASM visitor to gather the information that we'd get later through reflection, without actually having to load the target class? On Thu, Dec 11, 2008 at 5:12 PM, BobV b...@google.com wrote: My original solution to the ClassCircularityError was to implement an ASM visitor that added or modified a class's static initializer to call over to CCL.injectJsni(). This ensured that the Class was fully-reified before any attempt at dispId assignment was attempted. Even though it is mechanically more complicated than performing injection from within findClass(), it is conceptually easier to reason about the timing. Given that we now require the user to specify all modules to be loaded on the command-line of hosted mode, it is now feasible to compute all JSNI code that might be reachable from the entry point. As long as we're careful not to prematurely trigger class initialization, we could inject all JSNI in one fell swoop, but at the cost of injecting more code than we otherwise would into the browser. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Three quick patches for 1.6
SelectionScriptLinker: nicer error message that makes it more clear what's going on. was: This module needs to be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode now: GWT module 'your.ModuleName' needs to be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode ModuleDef: - Fixed a bug computing module creation time. Min vs. Max, doh. GWTShell/HostedMode/HostedModeBase: - This change makes hosted mode really, really work with -noserver when the remote process is serving from your WAR folder! - The reason for the refactor is that the code now captured in HostedMode.doStartup() was not getting run in -noserver mode - This patch is not sorted to give a clean diff; will sort in a follow-up commit. Thanks! Scott --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- three-patches_1-6_r4312.patch Description: Binary data
[gwt-contrib] Re: Three quick patches for 1.6
LGTM -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---