no selection event fired when selecting root node of a cellTree
Hi all does somebody know, if there is a way to react on root node selection of a CellTree (Using SingleSelectionmodel).? Thank you and Best regards Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Hi Jens, did you solve this issue? I have the same issue now. Thank you very much On Tue, Jun 21, 2011 at 4:32 PM, Jens Teglhus Møller djar...@gmail.comwrote: Hi I have trimmed down my tree to a minimal example root node with one child both strings and here it works (should of course have done this before my initial post :-(), i suspect it to be related to some generics stuff that i'm clueless about. I will have to dig deeper into this. Sorry for the noise. Best regards Jens On Tue, Jun 21, 2011 at 3:18 PM, mkkm...@gmail.com mkkm...@gmail.com wrote: Can you post your getNodeInfo methdo code ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fhH98t5si6wJ. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
sort handler in datagrid problem
Hi all, I'm experiencing a problem with column sorting in datagrid. I think all is done like in the show case, but when I click on a column nothing happens, the sort icon (the triangle) only appears after (without sorting), when I select a row (via the checkbox). What could be the causes of such a problem? Thank you Bests -- You received this message because you are subscribed to the Google Groups Google 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: sort handler in datagrid problem
Hi Ed, thank you for your response. I just solved the problem. The cause was the use of the method ListDataProvider#setList(), it assigns the field listWrapper to a new instance, and since the ListHandler was initialized with first value of listWrapper, the sortHandler continued to point on a list no more maintained by the dataprovider, that's why the sorting didn't work. Thank you again for the answer. Best. On Tue, Dec 13, 2011 at 4:06 PM, Ed post2edb...@gmail.com wrote: How did you debug this? and what happens when you click on the column in the code (debugging it)? On Dec 13, 2:56 pm, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi all, I'm experiencing a problem with column sorting in datagrid. I think all is done like in the show case, but when I click on a column nothing happens, the sort icon (the triangle) only appears after (without sorting), when I select a row (via the checkbox). What could be the causes of such a problem? Thank you Bests -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
problem with upload/download of file
Hi All, I have a problem with the use of the FileUpload widget in my current project. When submit the form, the request is correctly sent to the server (I can see it with the help of firebug), but the corresponding servlet is never called. It seems like the http post request goes and pends around without reaching its target. I checked all settings (web.xml, the url is also ok etc..), and couldn't find where my error is. I know that I could just use a framework (like gwtupload) and move on, but the problem is that I'm now getting a similar problem for the use case download file. I use for it the http module of GWT. The effect seems to be the same as the uploading. The request just pends around (seen in firebug). Any help will be appreciated Thank you Rodrigue -- You received this message because you are subscribed to the Google Groups Google 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.
closable tabpanel
Hi all, does someone know a way to realize closeable tabpanel? Thanks for any help Rodrigue -- You received this message because you are subscribed to the Google Groups Google 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.
strange problem in production mode
Hi all, did somebody already faced the following problem. I have a code, that runs correctly in development mode, but throws an exception in production mode. The exception I got from the chrome javascript console can be found at the end for this email. Here is the code causing the problem: public void setAddCategoryAction(final BaoActionObject action) { addCategoryButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { try { action.execute(); } catch (Exception e) { logger.log(Level.SEVERE, exception, e); logger.log(Level.SEVERE, exception, e.getCause()); } } }); } --- Thanks for any help Rodrigue com.google.gwt.core.client.JavaScriptException: (TypeError): Object de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 @243 has no method 'execute___3Ljava_lang_Object_2V' stack: TypeError: Object de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 @243 has no method 'execute___3Ljava_lang_Object_2V' at Object.cm_bao_warehouse_ui_gwt_client_module_inventory_items_ItemsManagement UiPanel$1_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V [as onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V] (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:8946:100) at Object.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt_ event_shared_EventHandler_2V [as dispatch__Lcom_google_gwt_event_shared_EventHandler_2V] (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15396:95) at com_google_gwt_event_shared_SimpleEventBus_$doFire__Lcom_google_gwt_event_sh ared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2Ljava_lang_Objec t_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15825:15) at com_google_gwt_event_shared_SimpleEventBus_$fireEvent__Lcom_google_gwt_event _shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15879:3) at com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event _shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15761:157) at com_google_gwt_user_client_ui_Widget_$fireEvent__Lcom_google_gwt_user_client _ui_Widget_2Lcom_google_gwt_event_shared_GwtEvent_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:378:72) at com_google_gwt_event_dom_client_DomEvent_fireNativeEvent__Lcom_google_gwt_do m_client_NativeEvent_2Lcom_google_gwt_event_shared_HasHandlers_2Lcom_google_ gwt_dom_client_Element_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15295:158) at com_google_gwt_user_client_ui_Widget_$onBrowserEvent__Lcom_google_gwt_user_c lient_ui_Widget_2Lcom_google_gwt_user_client_Event_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:406:212) at Object.com_google_gwt_user_client_ui_CustomButton_onBrowserEvent__Lcom_googl e_gwt_user_client_Event_2V [as onBrowserEvent__Lcom_google_gwt_user_client_Event_2V] (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:26244:3) at com_google_gwt_user_client_DOM_dispatchEvent__Lcom_google_gwt_user_client_Ev ent_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventL istener_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:23124:12) type: undefined_method arguments: execute___3Ljava_lang_Object_2V,de.warehouse.ui.gwt.client.module.inventory. items.itemsmanagementpresente...@243 at Unknown.cm_bao_warehouse_ui_gwt_client_module_inventory_items_ItemsManagemen tUiPanel$1_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V(Unknown source:0) at Unknown.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt _event_shared_EventHandler_2V(Unknown source:0) at Unknown.com_google_gwt_event_shared_SimpleEventBus_$doFire__Lcom_google_gwt_ event_shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2Ljava_la ng_Object_2V(Unknown source:0) at Unknown.com_google_gwt_event_shared_SimpleEventBus_$fireEvent__Lcom_google_g wt_event_shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2V(Unk nown source:0) at Unknown.com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_g wt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V(Unk nown source:0) at
RE: strange problem in production mode
Hi Chris I just compiled with pretty. The new stacktrace can be found below. The problem is, how can't it find the method. The same code is working in development mode. Thanks for any help Rodrigue Tue Nov 16 02:49:18 GMT+100 2010 SEVERE: exception com.google.gwt.core.client.JavaScriptException: (TypeError): Object de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 @243 has no method 'execute' stack: TypeError: Object de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 @243 has no method 'execute' at Object.onClick_7 [as onClick] (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:8893:21) at Object.dispatch_4 [as dispatch] (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:15317:29) at $doFire (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:15744:17) at $fireEvent_2 (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:15800:3) at $fireEvent_1 (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:15680:29) at $fireEvent (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:375:35) at fireNativeEvent (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:15216:40) at $onBrowserEvent (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:403:52) at Object.onBrowserEvent_4 [as onBrowserEvent] (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:26121:3) at dispatchEvent_2 (http://localhost:8080/warehouse/warehouse/5FC800D3ED29BCEDA9B8A9F96BBCD67D. cache.html:23015:12) -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of Chris Conroy Sent: Tuesday, November 16, 2010 1:23 AM To: Google Web Toolkit Subject: Re: strange problem in production mode In general, it's easier to debug these sorts of issues if you compile your code with -style PRETTY On Mon, Nov 15, 2010 at 6:22 PM, Rodrigue Lagoue Njinthe rlag...@googlemail.com wrote: Hi all, did somebody already faced the following problem. I have a code, that runs correctly in development mode, but throws an exception in production mode. The exception I got from the chrome javascript console can be found at the end for this email. Here is the code causing the problem: public void setAddCategoryAction(final BaoActionObject action) { addCategoryButton.addClickHandler(new ClickHandler() { �...@override public void onClick(ClickEvent event) { try { action.execute(); } catch (Exception e) { logger.log(Level.SEVERE, exception, e); logger.log(Level.SEVERE, exception, e.getCause()); } } }); } --- Thanks for any help Rodrigue com.google.gwt.core.client.JavaScriptException: (TypeError): Object de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 @243 has no method 'execute___3Ljava_lang_Object_2V' stack: TypeError: Object de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 @243 has no method 'execute___3Ljava_lang_Object_2V' at Object.cm_bao_warehouse_ui_gwt_client_module_inventory_items_ItemsManagement UiPanel$1_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V [as onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V] (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:8946:100) at Object.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt_ event_shared_EventHandler_2V [as dispatch__Lcom_google_gwt_event_shared_EventHandler_2V] (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15396:95) at com_google_gwt_event_shared_SimpleEventBus_$doFire__Lcom_google_gwt_event_sh ared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2Ljava_lang_Objec t_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15825:15) at com_google_gwt_event_shared_SimpleEventBus_$fireEvent__Lcom_google_gwt_event _shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15879:3) at com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event _shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. cache.html:15761:157) at com_google_gwt_user_client_ui_Widget_
RE: Application works in devlopment mode but not in war file
Hi thanks for your answer. Regards Rodrigue From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of Deepak Singh Sent: Sunday, November 14, 2010 4:11 PM To: google-web-toolkit@googlegroups.com Subject: Re: Application works in devlopment mode but not in war file Hi, yes i solved it. Actually i was using InlineLabel(text, Direction) So in development mode it was working fine but while in war file it was throwing error in setting the Direction what i am using. So i changed it to Label('Text') only and did not use Direction and it worked fine. Regards Deepak On Sun, Nov 14, 2010 at 6:43 PM, Rodrigue rlag...@googlemail.com wrote: Hi! did you solve your problem. If yes, I would like to know how. I'm facing a similar problem currently. It seems like the rpc calls are not working correctly when deployed in a war file, whereas all work perfect when running in development mode. Thanks for any help On 10 Nov., 17:22, Deepak Singh deepaksingh...@gmail.com wrote: Hi, There is no stack trace on the server and on firebug as well as developer tools. It simply displays the error in asinle line. When using my GWT application in a local environment, everything works as it should. The problem comes in after I compile and deploy my application. Uncaught com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses (anonymous function) This error is thrown by one of the cache file generated by GWT at compile time. But this never happens on the locally deployed program (deployed from Eclipse, Run as Web Application i.e running in development mode). Also, I am not using the result of async call anywhere before the call arrives. Thanks Deepak On Thu, Nov 4, 2010 at 3:08 AM, David Chandler drfibona...@google.comwrote: Hi Deepak, Please post the stack trace from the server. Thanks, /dmc On Wed, Nov 3, 2010 at 4:33 PM, Deepak Singh deepaksingh...@gmail.com wrote: Hi, My application works well in development mode but when war file is deployed in tomcat 5.5, it fails at the time of rpc call with following error Uncaught com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses Any idea pls. I am using GWT 2.1 with Spring 3.0 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
problem when trying to remove element from ListProvider
Hi all, I get a exception when trying to remove an entry from a LisProvider's list. Hier is the stacktrace. java.lang.UnsupportedOperationException: null at java.util.AbstractList.remove(AbstractList.java:144) at java.util.AbstractList$Itr.remove(AbstractList.java:360) at java.util.AbstractCollection.removeAll(AbstractCollection.java:337) at com.google.gwt.view.client.ListDataProvider$ListWrapper.removeAll(ListDataPr ovider.java:338) The code that causes the error is: ListProvider.getList().removeAll(Arrays.asList(data)); Thanks for any help Rodrigue -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of Lukas Laag Sent: Thursday, November 11, 2010 12:06 PM To: Google Web Toolkit Subject: Performance improvements of GWT2.1 for long-based computations I have just finished porting my chess game (http://www.vectomatic.org/ gwt/lib-gwt-svg-chess/lib-gwt-svg-chess.html) to GWT 2.1 and I would like to report some performance measurements which highlight how much the situation has improved for long-based computations with the release of GWT2.1. The application makes heavy use of java longs, notably in the attack tables of its Carballo chess engine (the table contains 100 000+ longs). At the time the original code was written (one year ago), the time to initialize the attack tables turned out to be so long (around two and a half minutes) that I had to pre-compute them, causing a big one-time penalty in the application download size (4MB download, somewhat mitigated by the use of HTTP compression). Since then, GWT has introduced a revamped emulation of java longs, and browsers javascript engines are now much faster. I have been able to get rid of the pre-computed tables and compute them on the fly. The execution time for this part of the code is now (on my linux box): | Browser| Ellapsed time to compute attack table | FF3.6| 23s | Opera 10.63 | 14s | Chrome 7.x | 0.5s | FF4b7| 3s This certainly beats downloading 4MB of attack tables ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: CellTree - changing node from leaf to non-leaf
Hi John, I missed the information about the meaning of TreeViewModel#isLeaf(). I ran into problem with it yesterday. Thanks Rodrigue On Thu, Nov 4, 2010 at 3:27 PM, John LaBanca jlaba...@google.com wrote: You have two options, but first its important to point out that leaf is not the same as empty. If you have a folder that may or may not have children, TreeViewModel#isLeaf() should return false, meaning that the node is not a leaf. When the user opens thenode, one of the following can happen. - You return a DataProvider with some data, in which case the children are rendered - You return a DataProvider without data, in which case the node opens, but a message is displayed that the node is empty - You return a null NodeInfo, in which case the node is treated as a leaf In the second option, you can still push data (such as the first child) to the node, and it will render them. For example, if you return an empty ListDataProvider, then add items to the underlying list, the nodes will show up. If you use the other two options, you need to rerender the parent nodes so that the Tree will call TreeViewModel#isLeaf() again. There is no correct answer; its just a matter of user interaction. You can consider a folder to be a leaf, in which case it cannot be opened (no open icon). Or, you can consider a folder to be a non-leaf even if it is empty. Note that at the moment, the no data message is fixed, but we can probably make that a Cell so you could add a button such as Create New Folder. Thanks, John LaBanca jlaba...@google.com On Thu, Nov 4, 2010 at 3:51 AM, Ståle Undheim sta...@staale.org wrote: I am using the new GWT 2.1 CellTree to display a list of folders. From the UI I support adding child folders to a folder in the tree. The problem is, I don't know how to fire events or update the tree so that if I add a child to a leaf node, it's converted to a non-leaf node. Do I need to refresh the data on the parent of the node that got a child added? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
repositioning node in a celltree
Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: .remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). .add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() .call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: repositioning node in a celltree
Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: .remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). .add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() .call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: change parent of a node in a CellTree
Hi John, I already call refresh after any data changes. Rodrigue From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of John LaBanca Sent: Monday, November 01, 2010 6:58 PM To: google-web-toolkit@googlegroups.com Subject: Re: change parent of a node in a CellTree There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue. Do you have any more info that might help debug it? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Not currently. You have to call refresh() on all the ListDataProviders. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue rlag...@googlemail.com wrote: Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: . remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). . add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() . call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: change parent of a node in a CellTree
Hi John! here the infos you need for debugging have been send directly to your mailbox. Rodrigue From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of John LaBanca Sent: Monday, November 01, 2010 6:58 PM To: google-web-toolkit@googlegroups.com Subject: Re: change parent of a node in a CellTree There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue. Do you have any more info that might help debug it? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Not currently. You have to call refresh() on all the ListDataProviders. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue rlag...@googlemail.com wrote: Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: . remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). . add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() . call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: custom header style on CellTable
Thanks John, I also think the way with Cells is easier one. On Sat, Oct 23, 2010 at 3:49 AM, John LaBanca jlaba...@google.com wrote: The easiest way to have a button in a Header is to create a Header with a ButtonCell ButtonCell buttonCell = new ButtonCell(); Header myHeader = new Header(buttonCell); myTable.addColumn(column, myHeader); You can also extend the ClientBundle defined in CellTable.Resource/ Style as tbroyer suggests. The CSS dev guide has more info: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html On Oct 22, 9:11 am, Thomas Broyer t.bro...@gmail.com wrote: On 22 oct, 14:33, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi all, does somebody know, if it is possible to customize the headers' style of a CellTable. I would like to have for exemple header that looks like a button... If you can do it entirely with CSS, then extend the CellTable.Resource and CellTable.Style to provide your own .cellTableHeader (and possibly .cellTableFirstColumnHeader and/ or .celltableLastColumnHeader), and pass it to the constructor. This is used in the DynatableRf sample: http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl... Otherwise, you can provide your own Header implementation when adding a column, instead of giving the header as just the text (as a String). That way, you can generate the HTML snippet you want for your headers. This is used in the Expenses sample to make the table sortable: http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl. .. You can of course use both at the same time, as is done in the Expenses sample: http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Scrollbar on the body part of a CellTable
Hi! Is it possible to have a vertical scrollbar on the table's body part (the table except the header)? There is also strange effect when displaying an empty table. When no rows are added, the header take all the place reserved to the table. That's why I would like to know if there is a way on the API to give a fix height to the header. Thanks for any help Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
custom header style on CellTable
Hi all, does somebody know, if it is possible to customize the headers' style of a CellTable. I would like to have for exemple header that looks like a button... Many thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: custom header style on CellTable
thanks thomas I start to use the cell widgets in my project tomorrow. On Fri, Oct 22, 2010 at 3:11 PM, Thomas Broyer t.bro...@gmail.com wrote: On 22 oct, 14:33, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi all, does somebody know, if it is possible to customize the headers' style of a CellTable. I would like to have for exemple header that looks like a button... If you can do it entirely with CSS, then extend the CellTable.Resource and CellTable.Style to provide your own .cellTableHeader (and possibly .cellTableFirstColumnHeader and/ or .celltableLastColumnHeader), and pass it to the constructor. This is used in the DynatableRf sample: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.java#68 Otherwise, you can provide your own Header implementation when adding a column, instead of giving the header as just the text (as a String). That way, you can generate the HTML snippet you want for your headers. This is used in the Expenses sample to make the table sortable: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SortableHeader.java http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java#456 You can of course use both at the same time, as is done in the Expenses sample: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java#463 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Customize CellTables headers
Hi all, I would like to know if it's possible to customize the style of CellTable's header. For example headers looking like buttons. Thanks for any help Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
get table row
Hi all, Does someone already faced the needed to set an Id (via #ensureDebugId) on a table row? I'm just trying to do it without success... Thanks for any help Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
packing custom gwt libraries
Hi, i have a problem when packing custom utilities in a jar for reusing in other projects. I would like to know, if there is special way to pack custom gwt library into jar file. In my IDE (Eclipse galileo) i have 2 projects A (main project) and B (project with the gwt utilities classes). project A references project B. I defined ant build scripts for both projects. The both java and javascript compilations work fine on my desktop (windows vista). But when starting the same build files on the server (Debian) only the java compilation works... The compilation to javascript prints error telling that some GWT2.0 classes and packages cannot be found, When you look at the error messages below printed, the problem seems to occur when validating the jar containing the project with my custom libraries. The same ant script is used on both side. I'm using hudson on the server... Any help will be appreciated Rodrigue Here are the error messages: [echo] performing compilation to javascript... [java] Compiling module cm.bao.sms.ui.web.gwt.SMSGWTUI [java]Refreshing module from source [java] Validating newly compiled units [java] Removing units with errors [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/jobs/BAO_GWT_Library/builds/2010-01-03_01-46-31/dist/BAOGWTLibrary.jar!/cm/bao/ui/web/gwt/wizardframework/client/GWTWizardDialog.java' [java][ERROR] Line 12: The import com.google.gwt.dom.client.Style.Unit cannot be resolved [java][ERROR] Line 46: The method setBackgroundColor(String) is undefined for the type Style [java][ERROR] Line 47: Unit cannot be resolved [java][ERROR] Line 48: Unit cannot be resolved [java][ERROR] Line 50: The method setGlassEnabled(boolean) is undefined for the type GWTWizardDialog [java] [ERROR] Errors in 'file:/home/appdir/.hudson/jobs/sms_ui_gwt/workspace/SMSGWTUI/src/cm/bao/sms/ui/web/gwt/client/init/SuperUserDataPagePanel.java' [java][ERROR] Line 7: The import com.google.gwt.dom.client.Style.Unit cannot be resolved [java][ERROR] Line 50: Unit cannot be resolved [java][ERROR] Line 51: Unit cannot be resolved [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/jobs/BAO_GWT_Library/builds/2010-01-03_01-46-31/dist/BAOGWTLibrary.jar!/cm/bao/ui/web/gwt/widgets/client/controls/dialogs/BAOPopupPanel.java' [java][ERROR] Line 28: The method setGlassEnabled(boolean) is undefined for the type BAOPopupPanel [java] [ERROR] Errors in 'file:/home/appdir/.hudson/jobs/sms_ui_gwt/workspace/SMSGWTUI/src/cm/bao/sms/ui/web/gwt/client/desktop/SMSDesktopPanel.java' [java][ERROR] Line 15: The import com.google.gwt.dom.client.Style.Overflow cannot be resolved [java][ERROR] Line 71: The method setBackgroundColor(String) is undefined for the type Style [java][ERROR] Line 72: The method setBackgroundColor(String) is undefined for the type Style [java][ERROR] Line 76: The method setBackgroundColor(String) is undefined for the type Style [java][ERROR] Line 83: The method setZIndex(int) is undefined for the type Style [java][ERROR] Line 84: Overflow cannot be resolved [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/jobs/BAO_GWT_Library/builds/2010-01-03_01-46-31/dist/BAOGWTLibrary.jar!/cm/bao/ui/web/gwt/widgets/client/BAOWidgets.java' [java][ERROR] Line 52: Style.Unit cannot be resolved [java][ERROR] Line 52: Style.Unit cannot be resolved [java] [ERROR] Errors in 'file:/home/appdir/.hudson/jobs/sms_ui_gwt/workspace/SMSGWTUI/src/cm/bao/sms/ui/web/gwt/client/SMSGWTUI.java' [java][ERROR] Line 63: Style.Unit cannot be resolved [java][ERROR] Line 63: Style.Unit cannot be resolved [java][ERROR] Line 64: Style.Unit cannot be resolved [java][ERROR] Line 65: Style.Unit cannot be resolved [java] [ERROR] Errors in 'file:/home/appdir/.hudson/jobs/sms_ui_gwt/workspace/SMSGWTUI/src/cm/bao/sms/ui/web/gwt/client/modules/SMSUIModulesManagerPanel.java' [java][ERROR] Line 106: The method create(ImageResource) is undefined for the type AbstractImagePrototype [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/jobs/BAO_GWT_Library/builds/2010-01-03_01-46-31/dist/BAOGWTLibrary.jar!/cm/bao/ui/web/gwt/widgets/client/controls/dialogs/BAOWaitPopupBox.java' [java][ERROR] Line 20: The constructor Image(ImageResource) is undefined [java][ERROR] Line 28: The method setBackgroundColor(String) is undefined for the type Style [java]
Re: packing custom gwt libraries
Thanks for your answer.. No i have the new one... I think if it was the case, the java compilation wouldn't work, since i use the new classes added with GWT2.0. On Sun, Jan 3, 2010 at 2:18 PM, Qian Qiao qian.q...@gmail.com wrote: On Sun, Jan 3, 2010 at 21:07, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi, i have a problem when packing custom utilities in a jar for reusing in other projects. I would like to know, if there is special way to pack custom gwt library into jar file. In my IDE (Eclipse galileo) i have 2 projects A (main project) and B (project with the gwt utilities classes). project A references project B. I defined ant build scripts for both projects. The both java and javascript compilations work fine on my desktop (windows vista). But when starting the same build files on the server (Debian) only the java compilation works... The compilation to javascript prints error telling that some GWT2.0 classes and packages cannot be found, When you look at the error messages below printed, the problem seems to occur when validating the jar containing the project with my custom libraries. The same ant script is used on both side. I'm using hudson on the server... Any help will be appreciated Rodrigue Here are the error messages: [snip] Have you got an old version of gwt-user.jar on your server? HTH -- Joe -- Two things that are infinite, the universe and my stupidity, and I'm not sure about the universe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: packing custom gwt libraries
Hi Quian Qiao, i just looked at it more precisely and i fount out, that the path to gwt-user.jar was wrong. I think i was tired last nignt :-) thanks a lot for your support... it works now happy new year Rodrigue On Sun, Jan 3, 2010 at 2:34 PM, Qian Qiao qian.q...@gmail.com wrote: On Sun, Jan 3, 2010 at 21:25, Rodrigue Lagoue rlag...@googlemail.com wrote: Thanks for your answer.. No i have the new one... I think if it was the case, the java compilation wouldn't work, since i use the new classes added with GWT2.0. The reason I asked whether you have GWT2.0 on your debian server is that if you look at the error message, all missing classes are those introduced in GWT 2.0, so my guess is that the GWT compile isn't picking up the 2.0 gwt-user.jar Are you using a different classpaths for the GWT compilation and the Java compilation? You might want to check that. -- Joe -- Two things that are infinite, the universe and my stupidity, and I'm not sure about the universe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
build script wiht gwt2.0
Hi, did somebody already wrote fully ant script for building (to javascript) an gwt 2.0 project? The built project should use an custom gwt library packed in a jar file... 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-tool...@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.
FW: problem compiling gwt 2.0 using ant
Hi! I'm facing a curious problem when compiling my gwt projects to javascript using ant. The compilations worked perfectly with the previous GWT versions... The most interessant part of the logging text is the following: Validating newly compiled units [java] Removing units with errors [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/libraries/gwt/2.0/gwt-user.jar!/com/google/gw t/user/client/ui/DockLayoutPanel.java' [java][ERROR] Line 20: The import com.google.gwt.dom.client.Style.Unit cannot be resolved [java][ERROR] Line 122: Unit cannot be resolved to a type [java][ERROR] Line 132: Unit cannot be resolved to a type [java][ERROR] Line 133: Unit cannot be resolved to a type [java][ERROR] Line 312: Unit cannot be resolved to a type [java][ERROR] Line 313: Unit cannot be resolved to a type [java][ERROR] Line 390: Unit cannot be resolved to a type [java][ERROR] Line 390: Unit cannot be resolved to a type [java][ERROR] Line 391: Unit cannot be resolved to a type [java][ERROR] Line 391: Unit cannot be resolved to a type [java][ERROR] Line 396: Unit cannot be resolved to a type [java][ERROR] Line 396: Unit cannot be resolved to a type [java][ERROR] Line 397: Unit cannot be resolved to a type [java][ERROR] Line 397: Unit cannot be resolved to a type [java][ERROR] Line 402: Unit cannot be resolved to a type [java][ERROR] Line 402: Unit cannot be resolved to a type [java][ERROR] Line 403: Unit cannot be resolved to a type [java][ERROR] Line 403: Unit cannot be resolved to a type [java][ERROR] Line 408: Unit cannot be resolved to a type [java][ERROR] Line 408: Unit cannot be resolved to a type [java][ERROR] Line 409: Unit cannot be resolved to a type [java][ERROR] Line 409: Unit cannot be resolved to a type [java][ERROR] Line 414: Unit cannot be resolved to a type It seems like the gwt compiler doesn't find the class Style.Unit used in the class DockLayoutPanel, although both classes are present in the same jar... On my IDE all works perfectly... Any help will appreciated. Here is the ant target for compilation to javascript target name=gwt-compile depends=init description=Normal compilation and Compile to JavaScript !-- compile the java classes normally -- javac debug=true debuglevel=${debuglevel} destdir=war/WEB-INF/classes source=${source} target=${target} src path=src / classpath refid=SMSGWTUI.classpath / /javac !-- compile the client java file to javascript -- java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=src / path refid=SMSGWTUI.classpath / /classpath jvmarg value=-Xmx256M / arg value=${gwt.module.id} / /java /target the java compilation (javac) runs successfully while the gwt compilation doesn't... Any Ideas? Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
problem compiling gwt 2.0 using ant
Hi! I'm facing a curious problem when compiling my gwt projects to javascript using ant. The compilations worked perfectly with the previous GWT versions... The most interessant part of the logging text is the following: Validating newly compiled units [java] Removing units with errors [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/libraries/gwt/2.0/gwt-user.jar!/com/google/gw t/user/client/ui/DockLayoutPanel.java' [java][ERROR] Line 20: The import com.google.gwt.dom.client.Style.Unit cannot be resolved [java][ERROR] Line 122: Unit cannot be resolved to a type [java][ERROR] Line 132: Unit cannot be resolved to a type [java][ERROR] Line 133: Unit cannot be resolved to a type [java][ERROR] Line 312: Unit cannot be resolved to a type [java][ERROR] Line 313: Unit cannot be resolved to a type [java][ERROR] Line 390: Unit cannot be resolved to a type [java][ERROR] Line 390: Unit cannot be resolved to a type [java][ERROR] Line 391: Unit cannot be resolved to a type [java][ERROR] Line 391: Unit cannot be resolved to a type [java][ERROR] Line 396: Unit cannot be resolved to a type [java][ERROR] Line 396: Unit cannot be resolved to a type [java][ERROR] Line 397: Unit cannot be resolved to a type [java][ERROR] Line 397: Unit cannot be resolved to a type [java][ERROR] Line 402: Unit cannot be resolved to a type [java][ERROR] Line 402: Unit cannot be resolved to a type [java][ERROR] Line 403: Unit cannot be resolved to a type [java][ERROR] Line 403: Unit cannot be resolved to a type [java][ERROR] Line 408: Unit cannot be resolved to a type [java][ERROR] Line 408: Unit cannot be resolved to a type [java][ERROR] Line 409: Unit cannot be resolved to a type [java][ERROR] Line 409: Unit cannot be resolved to a type [java][ERROR] Line 414: Unit cannot be resolved to a type It seems like the gwt compiler doesn't find the class Style.Unit used in the class DockLayoutPanel, although both classes are present in the same jar... On my IDE all works perfectly... Any help will appreciated. Here is the ant target for compilation to javascript target name=gwt-compile depends=init description=Normal compilation and Compile to JavaScript !-- compile the java classes normally -- javac debug=true debuglevel=${debuglevel} destdir=war/WEB-INF/classes source=${source} target=${target} src path=src / classpath refid=SMSGWTUI.classpath / /javac !-- compile the client java file to javascript -- java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=src / path refid=SMSGWTUI.classpath / /classpath jvmarg value=-Xmx256M / arg value=${gwt.module.id} / /java /target the java compilation (javac) runs successfully while the gwt compilation doesn't... Any Ideas? Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
problem compiling gwt 2.0 using ant
Hi! I'm facing a curious problem when compiling my gwt projects to javascript using ant. The compilations worked perfectly with the previous GWT versions... The most interessant part of the logging text is the following: Validating newly compiled units [java] Removing units with errors [java] [ERROR] Errors in 'jar:file:/home/appdir/.hudson/libraries/gwt/2.0/gwt-user.jar!/com/google/gw t/user/client/ui/DockLayoutPanel.java' [java][ERROR] Line 20: The import com.google.gwt.dom.client.Style.Unit cannot be resolved [java][ERROR] Line 122: Unit cannot be resolved to a type [java][ERROR] Line 132: Unit cannot be resolved to a type [java][ERROR] Line 133: Unit cannot be resolved to a type [java][ERROR] Line 312: Unit cannot be resolved to a type [java][ERROR] Line 313: Unit cannot be resolved to a type [java][ERROR] Line 390: Unit cannot be resolved to a type [java][ERROR] Line 390: Unit cannot be resolved to a type [java][ERROR] Line 391: Unit cannot be resolved to a type [java][ERROR] Line 391: Unit cannot be resolved to a type [java][ERROR] Line 396: Unit cannot be resolved to a type [java][ERROR] Line 396: Unit cannot be resolved to a type [java][ERROR] Line 397: Unit cannot be resolved to a type [java][ERROR] Line 397: Unit cannot be resolved to a type [java][ERROR] Line 402: Unit cannot be resolved to a type [java][ERROR] Line 402: Unit cannot be resolved to a type [java][ERROR] Line 403: Unit cannot be resolved to a type [java][ERROR] Line 403: Unit cannot be resolved to a type [java][ERROR] Line 408: Unit cannot be resolved to a type [java][ERROR] Line 408: Unit cannot be resolved to a type [java][ERROR] Line 409: Unit cannot be resolved to a type [java][ERROR] Line 409: Unit cannot be resolved to a type [java][ERROR] Line 414: Unit cannot be resolved to a type It seems like the gwt compiler doesn't find the class Style.Unit used in the class DockLayoutPanel, although both classes are present in the same jar... On my IDE all works perfectly... Any help will appreciated. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0 serialization policy file
hi! No my classes have a no arguments constructors. There are just defined in another project. The GWT project uses it from a jar file. Thanks On Wed, Dec 23, 2009 at 12:34 PM, Dan daniel.vaug...@gmail.com wrote: Is this the problem with the classes you want to serialize not having a no arguments constructor? On Nov 21, 11:56 pm, Oleg K. seq...@gmail.com wrote: Hi all. I have the following problem. My project tries to use GWT RPC. It has one jar in dependency libs which contain several model classes. All of that classes implements Serializable and IsSerializable interfaces (one of that classes is CHAttrGroup). That jar also includes .java files with source code and Module.gwt.xml file so that model classes can be used in main GWT application by including inherits name= /. GWT compiler (2.0-rc1) doesn't write error messages when building application and all that model classes (e.g. CHAttrGroup) work correctly in client-side code (like other gwt client classes). But when I try to send objects of that class from server to client I get following exception: 2009-11-22 02:34:49.688:tasktrackgwt:WARN: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeWithCustomSerializer (ServerSerializationStreamWriter.java:760) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:723) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:612) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeValue (ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass (ServerSerializationStreamWriter.java:700) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:730) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:612) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeValue (ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:465) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost (RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost (AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.google.inject.servlet.ServletDefinition.doService (ServletDefinition.java:216) at com.google.inject.servlet.ServletDefinition.service (ServletDefinition.java:141) at com.google.inject.servlet.ManagedServletPipeline.service (ManagedServletPipeline.java:93) at com.google.inject.servlet.FilterChainInvocation.doFilter (FilterChainInvocation.java:63) at com.google.inject.servlet.ManagedFilterPipeline.dispatch (ManagedFilterPipeline.java:122) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 110) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at
Re: GWT 2.0 serialization policy file
It's really frustrating. since the error tells: Type '*java.lang.Boolean*' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = true When i try to make the following generic rpc call @RemoteServiceRelativePath(testService) public interface TestService extends RemoteService { public T extends ResponseV, V extends Serializable, D extends Serializable T execute( ActionT, V, D action); } here is the implementation: @SuppressWarnings(serial) public class TestServiceImpl extends RemoteServiceServlet implements TestService { @SuppressWarnings(unchecked) @Override public T extends ResponseV, V extends Serializable, D extends Serializable T execute( ActionT, V, D action) { System.out.println(action.data: + action.toString()); DefaultResponseBoolean result = new DefaultResponseBoolean(); result.value = Boolean.TRUE; return (T) result; } } Thanks -- On Wed, Dec 23, 2009 at 2:11 PM, Rodrigue Lagoue rlag...@googlemail.comwrote: hi! No my classes have a no arguments constructors. There are just defined in another project. The GWT project uses it from a jar file. Thanks On Wed, Dec 23, 2009 at 12:34 PM, Dan daniel.vaug...@gmail.com wrote: Is this the problem with the classes you want to serialize not having a no arguments constructor? On Nov 21, 11:56 pm, Oleg K. seq...@gmail.com wrote: Hi all. I have the following problem. My project tries to use GWT RPC. It has one jar in dependency libs which contain several model classes. All of that classes implements Serializable and IsSerializable interfaces (one of that classes is CHAttrGroup). That jar also includes .java files with source code and Module.gwt.xml file so that model classes can be used in main GWT application by including inherits name= /. GWT compiler (2.0-rc1) doesn't write error messages when building application and all that model classes (e.g. CHAttrGroup) work correctly in client-side code (like other gwt client classes). But when I try to send objects of that class from server to client I get following exception: 2009-11-22 02:34:49.688:tasktrackgwt:WARN: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeWithCustomSerializer (ServerSerializationStreamWriter.java:760) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:723) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:612) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeValue (ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass (ServerSerializationStreamWriter.java:700) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:730) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:612) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeValue (ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:465) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost (RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost (AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820
Problem using rpc GWT2.0
Hi all i just spent more than a whole day on this issue. Does somebody know why this problem occurs? I tried almost all solutions discussed on the internet. But nothing seems to work. here is my error message: Type 'cm.bao.sms.ui.web.gwt.client.wrapper.BooleanWrapper' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = false Since i used an instance of Boolean before, here the previous error message was Type 'cm.bao.sms.ui.web.gwt.client.wrapper.Boolean' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = false The Service method signature look like this; public T extends ResponseV, V extends Serializable, D extends Serializable T execute( ActionT, V, D action); The Boolean Wrapper class definition: public final class BooleanWrapper implements Serializable, IsSerializable { /** * */ private static final long serialVersionUID = -5103012029222801034L; private boolean value; public BooleanWrapper() { super(); } public BooleanWrapper(boolean v) { this.value = v; } public boolean getValue() { return value; } public String toString() { return + value; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Setting Background image on panel
Hi Ed at first thanks for your answer. 1) If yes: then you have your solution as you only have to set the CSS name on your widget/panel through for example setStyleName(String). it's the first thing i tried. But it didn't work at all. here is a listing of the involved part in my css file: *.rightPanelReservedZone {* * **background-image: url(images/bgleer.jpg);* * **background-repeat: no-repeat;* * **background-attachment: fixed;* * **font-family: Arial, Helvetica, sans-serif;* * **font-size: 12px;* * **font-style: normal;* * **font-weight: normal;* * **height: 90%;* * **width: 85%;** * *}* and i then add a new style by calling: *//rightPanel.addStyleName(rightPanelReservedZone);* * **rightPanel.setStyleName(rightPanelReservedZone);* * * Like you can see, i tried the both methods, but without success. I thought it could be a problem with the image's path. But to my surprise, i the image was found as i try the following *panel.add(new Image(images/pic.jpg))*. On Wed, Jul 29, 2009 at 9:38 AM, Ed post2edb...@hotmail.com wrote: Do you know how to set the background-image of any html tag, like a DIV through CSS? 1) If yes: then you have your solution as you only have to set the CSS name on your widget/panel through for example setStyleName(String). 2) If not: please have a look at some HTML book how to do this and go back to 1)... Extra info: go through a a tutorial of GWT, as it's basically the first thing they explain.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Setting Background image on panel
hi Nuno! no the path .../pic.jpg was just an example. i found out that the problem could be that the panel who supposed to have the image background is empty. If i put some widgets on this panel, the image background become visible. I cannot explain why. thanks On Wed, Jul 29, 2009 at 4:25 PM, Nuno brun...@gmail.com wrote: but you may be setting the wrong path... unless your css file is located on the same page as the html... otherwise you would be looking at: blablabal/*css*/images/bgleer.jpg from your css * * *and * blablabal/images/bgleer.jpg from your GWT/html code On Wed, Jul 29, 2009 at 5:22 AM, Rodrigue Lagoue rlag...@googlemail.comwrote: Hi Ed at first thanks for your answer. 1) If yes: then you have your solution as you only have to set the CSS name on your widget/panel through for example setStyleName(String). it's the first thing i tried. But it didn't work at all. here is a listing of the involved part in my css file: *.rightPanelReservedZone {* * **background-image: url(images/bgleer.jpg);* * **background-repeat: no-repeat;* * **background-attachment: fixed;* * **font-family: Arial, Helvetica, sans-serif;* * **font-size: 12px;* * **font-style: normal;* * **font-weight: normal;* * **height: 90%;* * **width: 85%;** * *}* and i then add a new style by calling: *//rightPanel.addStyleName(rightPanelReservedZone);* * **rightPanel.setStyleName(rightPanelReservedZone);* * * Like you can see, i tried the both methods, but without success. I thought it could be a problem with the image's path. But to my surprise, i the image was found as i try the following *panel.add(new Image(images/pic.jpg))*. On Wed, Jul 29, 2009 at 9:38 AM, Ed post2edb...@hotmail.com wrote: Do you know how to set the background-image of any html tag, like a DIV through CSS? 1) If yes: then you have your solution as you only have to set the CSS name on your widget/panel through for example setStyleName(String). 2) If not: please have a look at some HTML book how to do this and go back to 1)... Extra info: go through a a tutorial of GWT, as it's basically the first thing they explain.. -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Setting Background image on panel
Hi again, i spent all the day looking for a solution, the only things i found, were for people working with GWT-Ext JS. Does somebody know if it's possible to set an image as panel's background? thanks for any help -Original Message- From: Google-Web-Toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of rlag...@googlemail.com Sent: Tuesday, July 28, 2009 8:14 PM To: Google Web Toolkit Subject: Setting Background image on panel Hi all, i'm new to GWT. I would like to know if there is a way to set a background image on a panel. 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 -~--~~~~--~~--~--~---