Re: ValueProxy inheritance trouble, always load properties
No, it's due to RF support for polymorphism of proxies. Simply break the inheritance relationship between Data and DataDetail and it'll all work as you expect. If you want to share properties between them then define an intermediate interface that does NOT extend ValueProxy: interface DataProperties { … } @ProxyFor(DataEntity.class) interface Data extends DataProperties, ValueProxy { } @ProxyFor(DataEntity.class) interface DataDetail extends DataProperties, ValueProxy { … } On Monday, February 18, 2013 9:20:11 PM UTC+1, Yan wrote: Hi there, This seems to be a GWT 2.5 issue. I have two ValueProxy: Data and DataDetail, DataDetail extends Data, both are proxy for backend entity DataEntity. DataDetail has more properties than Data does. The reason I have two proxy for one single entity is because I want to load a list of Data objects first and then for a given Data object, load all its details as DataDetail. This is how I implement loading-details-on-demand so that I do not load too much data in the beginning. ListData getAllObjects(); === load only minimum set of data for all objects DataDetail getObjectDetail(id);=== load as much as I can for one object If I have DataDetail extending Data, then GWT is always loading all properties in DataDetail (even for getAllObjects() call), because ProxyAutoBean is loading properties defined in DataDetail, even though the interface is only using Data value proxy. But if I have DataDetail duplicate properties in Data (thus I do not need DataDetail extends Data), then everything works as expected. Is this a GWT bug? Thanks, yan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CellTable - how to change icon positon?
Have a look at the CwCustomDataGridhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java?r=10597from the showcase. You'll have to create a custom header builder extendingAbstractHeaderOrFooterBuilder. AbstractHeaderOrFooterBuilder offers a method setSortIconStartOfLine(boolean) Am Samstag, 16. Februar 2013 18:05:49 UTC+1 schrieb membersound: Hi, I have a custom CellTable which overrides most styles from the gwt celltable. But how can I override the alignment of the sort icon? I could not find any css class in the gwt CellTable.css defining an alignment for the sort icon. I just wan to display it right beneath the header text (instead of left). Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
DataGrid - selection jumps onto the first entry on deletion?
Hi, I have a DataGrid, and on deleting an entry with dataProvider.remove(singleSelectionModel.getSelectedObject()); the selection jumps right onto the first field in the Grid. However, executing the deletion again (by a Button), the visibly selected first element is NOT deleted. Thus, somehow only the visual selection seems to change, but not in the backing. Is this a bug? How can I prevent the initial selection after a delete? I tried singleSelectionModel.clear() but that did not have any impact. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CellTable - how to change icon positon?
Hm to my that seems to be a bit overkill for just changing the icon place. And what is more - looking at the showcase from http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid - the icon will be aligned at most right position of the cell. But that's not what I want. I'd like to have it aligned right but directly beneath the header text. Am Dienstag, 19. Februar 2013 09:04:40 UTC+1 schrieb Alex opn: Have a look at the CwCustomDataGridhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java?r=10597from the showcase. You'll have to create a custom header builder extendingAbstractHeaderOrFooterBuilder. AbstractHeaderOrFooterBuilder offers a method setSortIconStartOfLine(boolean) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Eclipse not recognizing GWT on auto import
Do other imports work? No: maybe reinstall eclipse. Yes: import an existing example project and try if imports work there. Or create a gwt archetype (if that exists)? Am Montag, 18. Februar 2013 21:08:02 UTC+1 schrieb Bill Doss: Hi, When I click on the little red X, which appears when I add a line that contains a class not yet imported, I expect to see something like: Import 'SimplePanel' (com.google.gwt.user.client.ui) But I don't. I have to type it in myself. Anybody know why? Everything else works just fine. Thanks a bunch, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Custom GWT CellTree To open its nodes on a click of the whole Text and not just a pointer(image) on to its left
You're always welcome to share your solution, at least hints for others searching later for those kind of issues. Am Dienstag, 19. Februar 2013 07:03:40 UTC+1 schrieb magesh kumar: Finally i managed to get a solution.. On Friday, 15 February 2013 04:46:33 UTC+5:30, Tomek Kańka wrote: Oh, there are two of us. I just asked the same question day ago:). My ideas: Should I use selectionModel for these items, and somehow find what node was selected (how?), or use CellPreviewEvent.Handlerhttp://../com/google/gwt/view/client/CellPreviewEvent.Handler.htmlin some mysterious way? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid - selection jumps onto the first entry on deletion?
DataGrid has two selections. In its default style darkblue is the selection stored in the selection model while a yellowish selection is the keyboard selection to let you know where you are while navigating with the keyboard. Maybe you have defined the same color for both so you cant distinguish them anymore? Also make sure your equals() method works correctly if you have overridden it. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
DataGrid footer with ClickableTextCell not clickable in chrome
Hi, I have a DataGrid with a custom footer (Header element). The footer is just a ClickableTextCell which has a custom onEnterKeyDown() for the action. Now, I defined 2 columns in absolutely the same way. For one, the curser hand is shown and action executes as expected. For the other, the curser is ONLY shown at the top most of the text cell. Mostly the entire textcell is NOT clickable. In IE and FF everything works just fine. Also using firebug the cells look the same (css, html markup). So I do not see any reason why chrome does not provide clickable on the whole cell. Maybe somebody has an idea? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid - selection jumps onto the first entry on deletion?
Ah ok, that makes it much clearer. I found out that I can only delete a cell if I click it before. If I click it and use the keyboard to navigate away from it, I cannot delete it anymore. Also on deleting of mouse-selected object, the keyboard focus seems to be set to the first element in the grid. So, is there: -a way to prevent this auto keyboard focus -a way to link keyboard + mouse selection at one? Am Dienstag, 19. Februar 2013 11:35:12 UTC+1 schrieb Jens: DataGrid has two selections. In its default style darkblue is the selection stored in the selection model while a yellowish selection is the keyboard selection to let you know where you are while navigating with the keyboard. Maybe you have defined the same color for both so you cant distinguish them anymore? Also make sure your equals() method works correctly if you have overridden it. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid - selection jumps onto the first entry on deletion?
DataGrid.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.BOUND_TO_SELECTION) should make the keyboard selection the same as the contents of your selection model. -- J. Am Dienstag, 19. Februar 2013 12:21:07 UTC+1 schrieb membersound: Ah ok, that makes it much clearer. I found out that I can only delete a cell if I click it before. If I click it and use the keyboard to navigate away from it, I cannot delete it anymore. Also on deleting of mouse-selected object, the keyboard focus seems to be set to the first element in the grid. So, is there: -a way to prevent this auto keyboard focus -a way to link keyboard + mouse selection at one? Am Dienstag, 19. Februar 2013 11:35:12 UTC+1 schrieb Jens: DataGrid has two selections. In its default style darkblue is the selection stored in the selection model while a yellowish selection is the keyboard selection to let you know where you are while navigating with the keyboard. Maybe you have defined the same color for both so you cant distinguish them anymore? Also make sure your equals() method works correctly if you have overridden it. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Disable Chrome focus outline in general?
Hi, how can I disable the yellow/orange Chrome focus outline border in general on all objects, whatsoever they are? I already have the outline: none !important; property on eg gwt button, input. But time and again I find components which suddently have again the outline. Can I disable this in general? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid - selection jumps onto the first entry on deletion?
Great, that seems to work at least. Still I'm not succeeding in disabling the initial selection of the first entry in the DataGrid after selected row has been deleted. That's a real problem, because I trigger deletes with DEL key, and if I keep it pressed this would start to delete the whole list from topdown due to that inial select thing... Am Dienstag, 19. Februar 2013 12:35:07 UTC+1 schrieb Jens: DataGrid.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.BOUND_TO_SELECTION) should make the keyboard selection the same as the contents of your selection model. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
PopupPanel - set animation time?
Hi, how can I set the animation time of a PopupPanel? I could of course copy the whole class and change private static final int ANIMATION_DURATION; to my needs. But that's very unlucky, are there other possibilities? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: PopupPanel - set animation time?
Hi, PopupPanel has method setAnimation which takes as argument PopupPanel.ResizeAnimation. So you can create your own ResizeAnimation and specify the duartion on method run. Check API: http://google-web-toolkit.googlecode.com/svn-history/r9462/javadoc/1.5/com/google/gwt/user/client/ui/PopupPanel.html Hope it helps. Krzysztof On Tuesday, February 19, 2013 1:14:09 PM UTC, membersound wrote: Hi, how can I set the animation time of a PopupPanel? I could of course copy the whole class and change private static final int ANIMATION_DURATION; to my needs. But that's very unlucky, are there other possibilities? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Eclipse not recognizing GWT on auto import
Other imports work, even the lib-gwt-svg from Vectomatic that I added. I copied one of the samples from the gwt directory (Hello) and tried to import it via create project from existing ant build but that didn't work. This is not a show stopper. But it is annoying. :( On Tuesday, February 19, 2013 5:23:31 AM UTC-5, membersound wrote: Do other imports work? No: maybe reinstall eclipse. Yes: import an existing example project and try if imports work there. Or create a gwt archetype (if that exists)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: PopupPanel - set animation time?
sorry, thought I placed the latest API link: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/PopupPanel.html On Tuesday, February 19, 2013 1:44:42 PM UTC, Krzysztof Retel wrote: Hi, PopupPanel has method setAnimation which takes as argument PopupPanel.ResizeAnimation. So you can create your own ResizeAnimation and specify the duartion on method run. Check API: http://google-web-toolkit.googlecode.com/svn-history/r9462/javadoc/1.5/com/google/gwt/user/client/ui/PopupPanel.html Hope it helps. Krzysztof On Tuesday, February 19, 2013 1:14:09 PM UTC, membersound wrote: Hi, how can I set the animation time of a PopupPanel? I could of course copy the whole class and change private static final int ANIMATION_DURATION; to my needs. But that's very unlucky, are there other possibilities? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: PopupPanel - set animation time?
sorry, thought I placed the latest API link: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/PopupPanel.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT Safari 6 Image setUrl leads to Maximum call stack size exceeded
Hi GWT community, we are trying to reset an image content through setting the URL to an empty string setUrl(). On other browsers like Firefox18 and the older the older Safari 5 it work as aspected. But when done on Safari 6, we get lot of Exceptions: com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.core.client.impl.StackTraceCreator$CollectorEmulated.$fillInStackTrace(StackTraceCreator.java:168) at java.lang.RuntimeException.RuntimeException(RuntimeException.java:421) at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:37) at com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:26) at com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:56) at com.google.gwt.user.client.ui.Widget.$fireEvent(Widget.java:129) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116) at com.google.gwt.user.client.ui.Widget.$onBrowserEvent(Widget.java:528) at com.google.gwt.user.client.ui.Image.onBrowserEvent(Image.java:791) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307) at Unknown.anonymous(DOMImplStandard.java:170) at com.google.gwt.core.client.impl.Impl.apply(Impl.java:168) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at Unknown.anonymous(Impl.java:57) at com.google.gwt.dom.client.DOMImpl.$imgSetSrc(DOMImpl.java:308) at com.google.gwt.user.client.ui.Image$UnclippedState.setUrl(Image.java:413) at com.google.gwt.user.client.ui.Image.$setUrl(Image.java:864) at com.google.gwt.user.client.ui.Image.$setUrl(Image.java:876) at com.google.gwt.user.client.ui.Image.setUrl(Image.java:875) OR Caused by: com.google.gwt.core.client.JavaScriptException: (RangeError): Maximum call stack size exceeded. at Unknown.com_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_$fillInStackTrace__Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_2Ljava_lang_Throwable_2V(StackTraceCreator.java:168) at Unknown.com_google_gwt_core_client_JavaScriptException_JavaScriptException__Ljava_lang_Object_2V(StackTraceCreator.java:421) at Unknown.com_google_gwt_lang_Exceptions_caught__Ljava_lang_Object_2Ljava_lang_Object_2(Exceptions.java:29) at Unknown.com_google_gwt_dom_client_DOMImpl_$imgSetSrc__Lcom_google_gwt_dom_client_DOMImpl_2Lcom_google_gwt_dom_client_Element_2Ljava_lang_String_2V(DOMImpl.java:308) at Unknown.com_google_gwt_user_client_ui_Image$UnclippedState_setUrl__Lcom_google_gwt_user_client_ui_Image_2Lcom_google_gwt_safehtml_shared_SafeUri_2V(Image.java:413) at Unknown.com_google_gwt_user_client_ui_Image_$setUrl__Lcom_google_gwt_user_client_ui_Image_2Lcom_google_gwt_safehtml_shared_SafeUri_2V(Image.java:864) at Unknown.com_google_gwt_user_client_ui_Image_$setUrl__Lcom_google_gwt_user_client_ui_Image_2Ljava_lang_String_2V(Image.java:876) at Unknown.com_google_gwt_user_client_ui_Image_setUrl__Ljava_lang_String_2V(Image.java:875) Before we set that new URL the image got another URL (not empty one). Could it be that if we add an load and error handler before to that image and set the url then to expect if it is valid or not (with the evaluation of width and height), could this lead to an recursive calling of that handlers? What is right way to reset an image (make it empty, also not displaying an undefined image icon)? And why do the other browser don't act like that? Thank you. Maxim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT - nothing in the browser
Hi, I am new to GWT and made a little test. In the GWT Designer it looks fine. But when deployed on my JBoss nothing is in the browser. I have attached the client java file and the html file. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. Title: JSI Your web browser must have _javascript_ enabled in order for this application to display correctly. JSI package com.farheap.jsi.dashboard.client; import com.farheap.jsi.server.model.ProductEnt; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.AbsolutePanel; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DecoratedTabPanel; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; public class Dashboard implements EntryPoint { /** * Create a remote service proxy to talk to the server-side Greeting service. */ private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class); @Override public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(container); AbsolutePanel absolutePanel = new AbsolutePanel(); rootPanel.add(absolutePanel, 10, 10); absolutePanel.setSize(710px, 507px); DecoratedTabPanel tp = new DecoratedTabPanel(); AbsolutePanel absolutePanel_1 = new AbsolutePanel(); final TextBox name = new TextBox(); absolutePanel_1.add(name, 103, 20); name.setSize(155px, 10px); FlexTable flexTable = new FlexTable(); flexTable.setWidget(0, 0, absolutePanel_1); absolutePanel_1.setSize(100%, 100%); Label namelbl = new Label(Name); absolutePanel_1.add(namelbl, 23, 20); namelbl.setSize(74px, 18px); Label medialbl = new Label(Media); absolutePanel_1.add(medialbl, 23, 44); medialbl.setSize(74px, 18px); Label heightlbl = new Label(Height); absolutePanel_1.add(heightlbl, 23, 68); heightlbl.setSize(74px, 18px); Label widthlbl = new Label(Width); absolutePanel_1.add(widthlbl, 23, 92); widthlbl.setSize(74px, 18px); Label weightlbl = new Label(Weight); absolutePanel_1.add(weightlbl, 23, 116); weightlbl.setSize(74px, 18px); final TextBox media = new TextBox(); absolutePanel_1.add(media, 103, 44); media.setSize(155px, 10px); final TextBox height = new TextBox(); absolutePanel_1.add(height, 103, 68); height.setSize(155px, 10px); final TextBox width = new TextBox(); absolutePanel_1.add(width, 103, 92); width.setSize(155px, 10px); final TextBox weight = new TextBox(); absolutePanel_1.add(weight, 103, 116); weight.setSize(155px, 10px); final Button btnSave = new Button(Save); absolutePanel_1.add(btnSave, 103, 150); tp.add(flexTable, Products, true); flexTable.setHeight(443px); tp.add(new HTML(X), X); tp.add(new HTML(Y), Y); tp.add(new HTML(Z), Z); tp.setSize(690px, 487px); absolutePanel.add(tp, 10, 10); //Create a handler for the sendButton and nameField class MyHandler implements ClickHandler { /** * Fired when the user clicks on the sendButton. */ public void onClick(ClickEvent event) { ProductEnt productEnt = new ProductEnt(); productEnt.setName(name.getText()); productEnt.setMedia(media.getText()); productEnt.setHeight(Float.parseFloat(height.getText())); productEnt.setWidth(Float.parseFloat(width.getText())); productEnt.setWeight(Float.parseFloat(weight.getText())); greetingService.greetServer(productEnt, new AsyncCallbackString() { public void onFailure(Throwable caught) { } public void onSuccess(String result) { } }); } } btnSave.addClickHandler(new MyHandler()); } }
Re: DataGrid footer with ClickableTextCell not clickable in chrome
https://code.google.com/p/google-web-toolkit/issues/detail?id=7576 On Tuesday, February 19, 2013 12:14:13 PM UTC+1, membersound wrote: Hi, I have a DataGrid with a custom footer (Header element). The footer is just a ClickableTextCell which has a custom onEnterKeyDown() for the action. Now, I defined 2 columns in absolutely the same way. For one, the curser hand is shown and action executes as expected. For the other, the curser is ONLY shown at the top most of the text cell. Mostly the entire textcell is NOT clickable. In IE and FF everything works just fine. Also using firebug the cells look the same (css, html markup). So I do not see any reason why chrome does not provide clickable on the whole cell. Maybe somebody has an idea? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT - nothing in the browser
Check if dashboard/dashboard.nocache.jshttps://google-web-toolkit.googlegroups.com/attach/31b4b30a48caec9/dashboard/dashboard.nocache.jscan be loaded from your server. Using Chrome and its DevTools or FireFox with FireBug you can see network requests and if any of them fails with a 404 not found. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT - nothing in the browser
http://localhost:8080/dashboard/dashboard.nocache.js returns 404 Looks like when I create the war file with maven it works fine, but when creating an ear file with the war file inside the dashboard.nocache.js is not there On Tuesday, February 19, 2013 9:12:18 AM UTC-8, Jens wrote: Check if dashboard/dashboard.nocache.jshttps://google-web-toolkit.googlegroups.com/attach/31b4b30a48caec9/dashboard/dashboard.nocache.jscan be loaded from your server. Using Chrome and its DevTools or FireFox with FireBug you can see network requests and if any of them fails with a 404 not found. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT - nothing in the browser
Well, it actually is there. !!! On Tuesday, February 19, 2013 9:51:44 AM UTC-8, Kris wrote: http://localhost:8080/dashboard/dashboard.nocache.js returns 404 Looks like when I create the war file with maven it works fine, but when creating an ear file with the war file inside the dashboard.nocache.js is not there On Tuesday, February 19, 2013 9:12:18 AM UTC-8, Jens wrote: Check if dashboard/dashboard.nocache.jshttps://google-web-toolkit.googlegroups.com/attach/31b4b30a48caec9/dashboard/dashboard.nocache.jscan be loaded from your server. Using Chrome and its DevTools or FireFox with FireBug you can see network requests and if any of them fails with a 404 not found. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT - nothing in the browser
http://localhost:8080/dashboard/dashboard/dashboard.nocache.js returns the js file. On Tuesday, February 19, 2013 9:12:18 AM UTC-8, Jens wrote: Check if dashboard/dashboard.nocache.jshttps://google-web-toolkit.googlegroups.com/attach/31b4b30a48caec9/dashboard/dashboard.nocache.jscan be loaded from your server. Using Chrome and its DevTools or FireFox with FireBug you can see network requests and if any of them fails with a 404 not found. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Disable Chrome focus outline in general?
What is the CSS rule you're using? Are you using the :focus pseudo-class? On Tue, Feb 19, 2013 at 7:28 AM, membersound kodyreco...@gmail.com wrote: Hi, how can I disable the yellow/orange Chrome focus outline border in general on all objects, whatsoever they are? I already have the outline: none !important; property on eg gwt button, input. But time and again I find components which suddently have again the outline. Can I disable this in general? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- *Joe Attardi* j...@attardi.net -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [POLL] Maven project layout, what to standardize?
Thomas, Thanks very much for the response. First, is there any way you can share a POM from one of your projects -- or ideally point me at an entire open source project that uses it? Many things aren't clear (to me) from the docs. Examples: 1). You say add a resource tag. The problem is if I add a single resource tag then the default src/main/resources seems to be overridden, so my guess is you mean something like the following added to the build tag: resources resource directorysrc/main/resources/directory /resource resource directorysrc/main/super/directory targetPathcom/foo/super/targetPath /resource /resources And, in com.foo.Foo.gwt.xml contains super-source path=super/ Again, it's a guess since I still don't have hello-supsersource working. 2). The comments regarding goals are conflicting. E.g., for tests to run it's suggested to add: execution goals goaltest/goal /goals /execution But to get source-jar to run as part of install you need something like: execution phaseinstall/phase goals goalsource-jar/goal /goals /execution 3). Giving up on source-jar for the moment (i.e., just having the top config), when I run tests, they just hang and timeout. In fact, if I just create a blank project from the archetype, that's what happens: [INFO] Running junit.framework.TestSuite@29edc073 Process 1361122241179 is killed. [WARNING] Forked JVM has been killed on time-out after 60 seconds 4). Frequently, if I don't run clean first, the tests fails with exceptions: e.g., [INFO] Running com.foo.FooTest [INFO] [ERROR] Failure in unit cache map load. [INFO] java.util.concurrent.ExecutionException: java.lang.StackOverflowError Again, this is with a trivial hello world project -- no real code, just bootstrap and empty methods. Really appreciate any pointers you can give me. I've been working with GWT since it's inception (actually internally as a Google employee on a different project) and very much appreciate your efforts to bring this to maven. Thanks again, Rich On Sunday, February 17, 2013 4:36:44 AM UTC-5, Thomas Broyer wrote: On Sun, Feb 17, 2013 at 7:46 AM, Rich rich@gmail.com javascript:wrote: Thomas, How does the plugin support supersource today. I've tried to piece this together from multiple searches and have something close to your option 3, but it's not clear. 1). How is the plugin configured to use main/src/super? It's not. If you want to use src/main/super, you have to declare it as a resource in your POM. 2). If src/main/super is an overlay onto src/main/java then how does the super-souce path (which must be relative) work within the module XML? Or is it intended that you'll still do path doubling under super? (e.g., src/main/super/com/foo/super/com/foo/Bar.java for a module def in src/main/resources/com/foo/Foo.gwt.xml) The latter. The way I do it is that I don't do path doubling but use targetPath in the resource declaration in the POM. I.e. I have src/main/super/com/foo/Bar.java and resource directorysrc/main/super/directory targetPathcom/foo/super/targetPath /resource It limits the super-sources to a single module though (it won't do com/foo/super and com/bar/super) Also, I'll throw-in an alternative: src/ main/ java/ resources/ (Would we ever put Android res here? Why is GWT any different?) gwt/ super/ resources/ I must say I don't understand. How are src/main/gwt/resources different from src/main/resources? Remember that the poll was about GWT-only libraries, not shared libraries (used in GWT client and server, or in GWT and pure-Java clients) or GWT applications. Thanks, RB On Tuesday, November 13, 2012 7:51:37 AM UTC-5, Thomas Broyer wrote: Hi all, As some of view may already know, I'm porting GWT to use Maven as the build system (instead of Ant). I'm also about to reboot GWT+Maven integration (more to come by the end of the week, stay tuned). As part of this effort, I'm wondering which project structure to use as the default, standard layout for GWT projects using Maven? I'm particularly looking for advice/preferences for GWT library projects (such as GWT itself, mgwt, Errai, GXT, etc.), not much for GWT applications (the one you run the GWT Compiler on). NOTE: this poll is cross-posted to the GWT and gwt-maven-plugin groups, please answer only once! (wherever you want) The question is about where to put files such as: GWT module descriptors (*.gwt.xml), GWT processed resources (*.ui.xml, etc.), and super-sources. It comes without saying (for me at least) that Java sources would go into src/main/java and public resources (i.e. the things within **/public/**, e.g. the CSS and image files from the themes) into
Re: [POLL] Maven project layout, what to standardize?
Inline. On Sun, Feb 17, 2013 at 2:12 PM, Thomas Broyer t.bro...@gmail.com wrote: Hmm, there's https://github.com/tbroyer/gwt-sandbox/blob/master/user/gwt-user-core/pom.xml but this is work in progress, and unnecessary complicated in some places. This is ongoing work to moving GWT itself to use Maven as the build system. Many things aren't clear (to me) from the docs. Examples: 1). You say add a resource tag. The problem is if I add a single resource tag then the default src/main/resources seems to be overridden, so my guess is you mean something like the following added to the build tag: resources resource directorysrc/main/resources**/directory /resource resource directorysrc/main/super/**directory targetPathcom/foo/super/**targetPath /resource /resources Yes, that's how Maven works. src/main/resources is only the default if nothing's specified. Understood (now). I'm just making the point that from a docs clarity POV, it's important to tell folks to add both resource tags. And, in com.foo.Foo.gwt.xml contains super-source path=super/ Yes. Again, it's a guess since I still don't have hello-supsersource working. 2). The comments regarding goals are conflicting. E.g., for tests to run it's suggested to add: execution goals goaltest/goal /goals /execution But to get source-jar to run as part of install you need something like: execution phaseinstall/phase goals goalsource-jar/goal /goals /execution If src/main/java and src/main/super are declared as resources, then the sources will be added to the JAR, and you don't need a source-jar. I was hoping not to put src/main/java in resources since it contains many files that are not GWT compatible and I use JAR execution classifiers to filter these (e.g., **/gwt/** and **/android/**, etc.) So having the source-jar pick the appropriate files was convenient. I don't know how to reconcile both exections. Perhaps this is my maven ignorance. 3). Giving up on source-jar for the moment (i.e., just having the top config), when I run tests, they just hang and timeout. In fact, if I just create a blank project from the archetype, that's what happens: [INFO] Running junit.framework.TestSuite@**29edc073 Process 1361122241179 is killed. [WARNING] Forked JVM has been killed on time-out after 60 seconds Is this from surefire:test, failsafe:integration-test or gwt:test? Out of the box, here are the errors I get (command line options given to create archetype below my sig): Error on mvn test Tests in error: initializationError(com.test.client.GwtTestTest): com/google/gwt/dev/cfg/Condition Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 Error on gwt:test [INFO] Running junit.framework.TestSuite@29edc073 [INFO] [ERROR] Errors in 'file:/Users/burdon/projects/src/testing/gwt_test/src/test/java/com/example/client/GwtTestTest.java' [INFO][ERROR] Line 46: No source code is available for type com.example.client.GreetingServiceAsync; did you forget to inherit a required module? [INFO] [ERROR] Unable to find type 'com.example.client.GwtTestTest' [INFO][ERROR] Hint: Previous compiler errors may have made this type unavailable [INFO][ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [INFO] [ERROR] Errors in 'file:/Users/burdon/projects/src/testing/gwt_test/src/test/java/com/example/client/GwtTestTest.java' [INFO][ERROR] Line 46: No source code is available for type com.example.client.GreetingServiceAsync; did you forget to inherit a required module? [INFO] [ERROR] Unable to find type 'com.example.client.GwtTestTest' [INFO][ERROR] Hint: Previous compiler errors may have made this type unavailable [INFO][ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly Again, this is running mvn on a freshly generated, untouched archetype. 4). Frequently, if I don't run clean first, the tests fails with exceptions: e.g., [INFO] Running com.foo.FooTest [INFO] [ERROR] Failure in unit cache map load. [INFO] java.util.concurrent.**ExecutionException: java.lang.StackOverflowError Hmm, this is a pure GWT error, unrelated to Maven (until proven otherwise); have you searched the GWT issue tracker? Errors in Unit cache loading are expected when upgrading GWT or changing JVM (GWT classes don't have a serialization ID), but obviously not in other situations. Yep. It's difficult to search for this kind of thing since so far since I haven't actually started writing any meaningful code -- just trying to build the samples. I know this is all work in progress, but as often the case
Re: How to call javascript mehtod which is defined in another.js file in GWT client
Hello, I can't get it work. I added the script tag to the html hosting page and still get the exception: Cannot call method 'info' of undefined Thanks On Tuesday, September 18, 2007 11:46:08 PM UTC, Sumit Chandel wrote: Hi Rinku, Actually, your initial setup to include the external JavaScript file using the script tag in your module XML file is correct. You would want to include the script tag in module XML file rather than in your the host HTML file. GWT takes care to include external resource references such as JavaScript files described in the module XML into the host page namespace as if you had included them explicitly using the script HTML element. This is covered in the Developer Guide at the link below: http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.AutomaticResourceInjection.html As darkAngel described, to start using methods defined in the external JavaScript file as well as to write your own JavaScript you would use GWT's Java Script Native Interface (JSNI). You can read more details on using JSNI in the Developer Guide ate the link below: http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.JavaScriptNativeInterface.html Hope that helps, -Sumit Chandel On 9/14/07, darkAngel ab.dar...@gmail.com javascript: wrote: Hi: You must include this statement: script type=text/javascript src=js/your_script.js/script in the HTML file not in the XML module. This statement must be included in the head tag before this statement: script language='javascript' src='Name of main module.nocache.js'/ script In your java code you must use JSNI to create a Java method that wraps the JavaScript method. public native void methodWrapper()/*- { // Invoke your javascript method here. }-*/; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems
+1 Same problem since GWT 2.5 (also with GWT 2.5.1-rc1) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems
ERROR: Deferred binding failed for 'com.google.gwt.useragent.client.UserAgentAsserter.UserAgentProperty'; expect subsequent failures ERROR: Error while executing the JavaScript provider for property 'user.agent' com.google.gwt.core.client.JavaScriptException: (TypeError) __gwt_getProperty([string: 'user.agent']): Result of expression 'i[a]' [undefined] is not a function. at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:193) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:130) at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:82) at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.shared.GWT.create(GWT.java:57) at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:680) ERROR: Unable to find value for 'user.agent' com.google.gwt.core.ext.BadPropertyValueException: Property 'user.agent' cannot be set to unexpected value 'failed to compute' at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:201) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:130) at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:82) at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.shared.GWT.create(GWT.java:57) at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526) at
Re: GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems
Does the error go away when you delete the folder war/appname ? I think your war/appname/hosted.html page is maybe outdated and needs to be regenerated by GWT DevMode. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems
So the problem occurs when I use DevMode and either omit the user.agent definition or specify set-property name=user.agent value=safari/ What seems to have a stable positive effect is to use: set-property name=user.agent value=safari, gecko1_8/ Note: before, I was trying all kind of permutations, deleting the IntelliJ/DevMode-cache (including /appname/hosted.html) and browser cache, which seemed to have had an effect but upon reload through the DevMode the error reappeared. I am using the OmniWeb browser (on OsX). Same with Chrome only that Chrome consistently crashes the DevMode. On 19.02.13 22:21, Jens wrote: Does the error go away when you delete the folder war/appname ? I think your war/appname/hosted.html page is maybe outdated and needs to be regenerated by GWT DevMode. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Robert Hoffmann, Phd -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call in Activity onStop()
Not any suggestion ? Thanks Yves Le dimanche 17 février 2013 23:47:12 UTC+1, yves a écrit : Hi, After a search on the net I didn't find an answer to this problem : I need to make an RPC call from the onStop() function in order to inform the server that the application is closing. Apprently this doesn't work : the server never gets RPC-called from onStop(). (I checked that onStop is called...) Thus my questions are : 1) Is it really impossible to make an RPC call during the onStop process ? 2) In case it is impossible, is there any way to know that the app is closing so I can make a last RPC call ? Thank you for your suggestions. Yves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call in Activity onStop()
I don't see why it should not work. You can do an RPC request in Activity.onStop() but you have to be aware of the fact that the activity will continue to stop while the request is pending. So your request's callback should not do anything that depends on the activity state or its view (which will be detached after the activity is stopped). You can also do a RPC request in Window.addClosingHandler() which will be called before the window/tab gets closed. But again in this case the callback is probably never called as the window/tab gets closed while the request is pending. All you could do here is telling the server that the app terminates now and let the server invalidate the users session for example. Have you checked FireBug/Chrome Devtools and verified that no last request is made? -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call in Activity onStop()
hi. do you use onStop of Activiti interface? if you use it, it is call when it's wiget is clised. 2013/02/18 7:47 yves yves.ko...@gmail.com: Hi, After a search on the net I didn't find an answer to this problem : I need to make an RPC call from the onStop() function in order to inform the server that the application is closing. Apprently this doesn't work : the server never gets RPC-called from onStop(). (I checked that onStop is called...) Thus my questions are : 1) Is it really impossible to make an RPC call during the onStop process ? 2) In case it is impossible, is there any way to know that the app is closing so I can make a last RPC call ? Thank you for your suggestions. Yves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Are there any style templates?
Hi, just being curious: are there any gwt style templates out yet? Or am I restricted using the default ones (or of course creating some on my own)? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Disable Chrome focus outline in general?
No I'm just using eg: .gwt-Button { outline: none !important; } But looking for a way to general prevent this in chrome. 2013/2/19 Joe Attardi j...@attardi.net What is the CSS rule you're using? Are you using the :focus pseudo-class? On Tue, Feb 19, 2013 at 7:28 AM, membersound kodyreco...@gmail.comwrote: Hi, how can I disable the yellow/orange Chrome focus outline border in general on all objects, whatsoever they are? I already have the outline: none !important; property on eg gwt button, input. But time and again I find components which suddently have again the outline. Can I disable this in general? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- *Joe Attardi* j...@attardi.net -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Custom GWT CellTree To open its nodes on a click of the whole Text and not just a pointer(image) on to its left
Yea Sure There is a onBrowserEvent in the CellTree.. @Override public void onBrowserEvent(Event event) { AonCellBasedWidgetImpl.get().onBrowserEvent(this, event); if (isRefreshing) { // Ignore spurious events (onblur) while replacing elements. return; } super.onBrowserEvent(event); String eventType = event.getType(); if (focus.equals(eventType)) { // Remember the focus state. isFocused = true; onFocus(); } else if (blur.equals(eventType)) { // Remember the blur state. isFocused = false; onBlur(); } else if (keydown.equals(eventType) !cellIsEditing) { int keyCode = event.getKeyCode(); switch (keyCode) { // Handle keyboard navigation. case KeyCodes.KEY_DOWN: case KeyCodes.KEY_UP: case KeyCodes.KEY_RIGHT: case KeyCodes.KEY_LEFT: handleKeyNavigation(keyCode); // Prevent scrollbars from scrolling. event.preventDefault(); return; case 32: // Prevent scrollbars from scrolling. event.preventDefault(); } } final Element target = event.getEventTarget().cast(); ArrayListElement chain = new ArrayListElement(); collectElementChain(chain, getElement(), target); final boolean isMouseDown = mousedown.equals(eventType); final boolean isClick = click.equals(eventType); final AonTreeNodeView? nodeView = findItemByChain(chain, 0, rootNode); if (nodeView != null) { if (isMouseDown) { Element showMoreElem = nodeView.getShowMoreElement(); try { nodeView.setOpen(!nodeView.isOpen(), true); return; } catch (Exception e) { System.out.println(Error); } if (nodeView.getImageElement().isOrHasChild(target)) { // Open the node when the open image is clicked. nodeView.setOpen(!nodeView.isOpen(), true); return; } else if (showMoreElem != null showMoreElem.isOrHasChild(target)) { // Show more rows when clicked. nodeView.showMore(); return; } } // Forward the event to the cell if (nodeView != rootNode nodeView.getSelectionElement().isOrHasChild(target)) { // Move the keyboard focus to the clicked item. if (isClick) { /* * If the selected element is natively focusable, then we do * not want to steal focus away from it. */ boolean isFocusable = AonCellBasedWidgetImpl.get() .isFocusable(target); isFocused = isFocused || isFocusable; keyboardSelect(nodeView, !isFocusable); } nodeView.fireEventToCell(event); } } } Just use the above one and you are right on the track. Sorry that i didn't post that immediately On Tuesday, 19 February 2013 15:54:35 UTC+5:30, membersound wrote: You're always welcome to share your solution, at least hints for others searching later for those kind of issues. Am Dienstag, 19. Februar 2013 07:03:40 UTC+1 schrieb magesh kumar: Finally i managed to get a solution.. On Friday, 15 February 2013 04:46:33 UTC+5:30, Tomek Kańka wrote: Oh, there are two of us. I just asked the same question day ago:). My ideas: Should I use selectionModel for these items, and somehow find what node was selected (how?), or use CellPreviewEvent.Handlerhttp://../com/google/gwt/view/client/CellPreviewEvent.Handler.htmlin some mysterious way? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] caching EntityProxy instances on the client between sessions
Hi All, I have an issue with caching a list of almost static EntityProxies on the client side. First I checked the possibility to mark the url as cachable but since RequestFactory urls are generated by GWT, it seamed too complicated to do. I then decided to cache the EntityProxies in cookies. Saving to JSON was ok, relaoding was a little tricky since I didn't get the point of all methods declared in EntityProxyCategory (see the code below). Finally things almost work but when I do a request, I receive a *SEVERE: Server Error 413* (which is thrown by the servlet before processing the request) here's my code @Category(LocalEntityProxyCategory.class) protected interface CateoriesForCookieHolderFactory extends AutoBeanFactory { AutoBeanCategoriesForCookieHolder categoriesForCookieHolder(); AutoBeanCategoryProxy category(); AutoBeanContextDynamicFieldProxy contextDynamicFieldProxy(); } public static class LocalEntityProxyCategory { /** * EntityProxies are equal if they are from the same RequestContext and * their stableIds are equal. */ public static boolean equals(AutoBean? extends EntityProxy bean, Object o) { if (!(o instanceof EntityProxy)) { return false; } AutoBeanEntityProxy other = AutoBeanUtils.getAutoBean((EntityProxy) o); if (other == null) { // Unexpected, could be an user-provided implementation? return false; } // Object comparison intentional. True if both null or both the same return stableId(bean).equals(stableId(other)) nonDiffingRequestContext(bean) == nonDiffingRequestContext(other); } /** * Hashcode is always that of the stableId, since it's stable across time. */ public static int hashCode(AutoBean? extends EntityProxy bean) { return stableId(bean).hashCode(); } /** * Effectively overrides {@link BaseProxyCategory#stableId(AutoBean)} to * return a narrower bound. */ public static T extends EntityProxy EntityProxyIdT stableId( final AutoBean? extends T bean) { return new SimpleProxyIdT(bean); } private static AbstractRequestContext nonDiffingRequestContext( AutoBean? bean) { AbstractRequestContext context = requestContext(bean); return context; } } public class SimpleProxyIdT extends EntityProxy implements EntityProxyIdT { long id; ClassT clazz; @SuppressWarnings(unchecked) public SimpleProxyId(AutoBean? extends T bean) { BasicProxy proxy = (BasicProxy) bean.as(); id = proxy.getId(); clazz = (ClassT) proxy.getClass(); } @Override public ClassT getProxyClass() { return clazz; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((clazz == null) ? 0 : clazz.hashCode()); result = prime * result + (int) (id ^ (id 32)); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; SimpleProxyId other = (SimpleProxyId) obj; if (clazz == null) { if (other.clazz != null) return false; } else if (!clazz.equals(other.clazz)) return false; if (id != other.id) return false; return true; } } I think it is too complicated to do such caching (for what it is, maybe, it could be a good idea to include a mechanism either for url resource caching or for EntityProxy json read and write) Best Regards, Zied Hamdi http://1vu.fr -- -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Change in gwt[master]: Removes deprecated com.google.gwt.benchmarks.*
Goktug Gokdogan has uploaded a new change for review. https://gwt-review.googlesource.com/1970 Change subject: Removes deprecated com.google.gwt.benchmarks.* .. Removes deprecated com.google.gwt.benchmarks.* Change-Id: I2432ac4a85be1780e1bf7c9906cf608aa6ab3134 --- M build.xml M common.ant.xml M distro-source/build.xml M distro-source/common.ant.xml M distro-source/core/src/COPYING M distro-source/core/src/COPYING.html D distro-source/src/benchmarkViewer D distro-source/src/benchmarkViewer.cmd M eclipse/lang/.classpath M eclipse/servlet/.classpath D eclipse/tools/benchmark-viewer/.checkstyle D eclipse/tools/benchmark-viewer/.classpath D eclipse/tools/benchmark-viewer/.project D tools/benchmark-viewer/build.xml D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/ReportViewer.gwt.xml D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/Benchmark.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/BrowserInfo.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/Category.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/Report.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/ReportServer.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/ReportServerAsync.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/ReportSummary.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/ReportViewer.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/Result.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/client/Trial.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/BenchmarkXml.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/CategoryXml.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/ReportDatabase.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/ReportImageServer.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/ReportServerImpl.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/ReportXml.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/ResultXml.java D tools/benchmark-viewer/src/com/google/gwt/benchmarks/viewer/server/TrialXml.java D tools/benchmark-viewer/war/ReportViewer.css D tools/benchmark-viewer/war/ReportViewer.html D tools/benchmark-viewer/war/WEB-INF/classes/marker D tools/benchmark-viewer/war/WEB-INF/web.xml D tools/benchmark-viewer/war/gradient.gif M tools/build.xml M user/build.xml D user/javadoc/com/google/gwt/examples/Benchmarks.gwt.xml D user/javadoc/com/google/gwt/examples/benchmarks/AllocBenchmark.java D user/javadoc/com/google/gwt/examples/benchmarks/ArrayListAndVectorBenchmark.java D user/javadoc/com/google/gwt/examples/benchmarks/ArrayListBenchmark.java D user/src/com/google/gwt/benchmarks/BenchmarkReport.java D user/src/com/google/gwt/benchmarks/BenchmarkShell.java D user/src/com/google/gwt/benchmarks/Benchmarks.gwt.xml D user/src/com/google/gwt/benchmarks/MetaData.java D user/src/com/google/gwt/benchmarks/client/Benchmark.java D user/src/com/google/gwt/benchmarks/client/Category.java D user/src/com/google/gwt/benchmarks/client/IntRange.java D user/src/com/google/gwt/benchmarks/client/IterationTimeLimit.java D user/src/com/google/gwt/benchmarks/client/Operator.java D user/src/com/google/gwt/benchmarks/client/RangeEnum.java D user/src/com/google/gwt/benchmarks/client/RangeField.java D user/src/com/google/gwt/benchmarks/client/RangeIterator.java D user/src/com/google/gwt/benchmarks/client/Setup.java D user/src/com/google/gwt/benchmarks/client/Teardown.java D user/src/com/google/gwt/benchmarks/client/impl/BenchmarkResults.java D user/src/com/google/gwt/benchmarks/client/impl/IterableAdapter.java D user/src/com/google/gwt/benchmarks/client/impl/PermutationIterator.java D user/src/com/google/gwt/benchmarks/client/impl/Trial.java D user/src/com/google/gwt/benchmarks/client/package-info.java D user/src/com/google/gwt/benchmarks/package-info.java D user/src/com/google/gwt/benchmarks/rebind/BenchmarkGenerator.java M user/src/com/google/gwt/core/client/impl/StringBufferImpl.java M user/src/com/google/gwt/core/client/impl/StringBuilderImpl.java M user/src/com/google/gwt/junit/CompileStrategy.java M user/src/com/google/gwt/junit/JUnitShell.java M user/src/com/google/gwt/junit/PropertyDefiningStrategy.java M user/src/com/google/gwt/junit/client/GWTTestCase.java D user/super/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java M user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/GWTTestCase.java D user/test/com/google/gwt/benchmarks/BenchmarkNoClientTest.java D user/test/com/google/gwt/benchmarks/BenchmarksSuite.java D