Re: Set the title attribute of option elements in ListBox
import com.google.gwt.dom.client.Element; ... String title = some title ListBox listbox= new Listbox(); int index = 0; ... Element.as(listbox.getElement().getChild(index)).setTitle(title) i think that should do it On Jan 11, 5:20 pm, rmuller rmul...@xiam.nl wrote: Using the standard GWT API this is not possible. Is there a hack available? Ronald -- 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: DockLayoutPanel inside a FormPanel
the divs are created by GWT... It's the html code corresponding to a docklayoutpanel. On Jan 12, 1:52 am, UJ upendra.jar...@gmail.com wrote: Hi, Can you try using td/tr (table) as we do in the hello world example instead of using DIV? I am not sure but there might be integration issues in integration of DIV and GWT content. Regards, Upendra Jariya -- 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: DockLayoutPanel inside a FormPanel
On Jan 11, 6:56 pm, julien.dram...@gmail.com julien.dram...@gmail.com wrote: Hello all, I try to do something like that in a ui.ml file : !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui g:FormPanel ui:field=formPanel g:DockLayoutPanel unit='EM' g:north size='15' ..widget /g:north g:center ..widget /g:center g:south size='5' ..widget /g:south /g:DockLayoutPanel /g:FormPanel /ui:UiBinder I try to encapsulate a dockLayoutPanel inside a form panel. Indeed, I have a complicated form to submit and I want to use a DockLayoutPanel to layout it. But the center and south part of the docklayoutpanel will become invisible. Indeed, the DockLayoutPanel create an html like this one : div style=position: relative; div style=position: absolute; z-index: -32767; left: -20em; top: -20ex; width: 10em; height: 10ex; /div div style=overflow: hidden; position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; div style=position: absolute; z-index: -32767; left: -20em; top: -20ex; width: 10em; height: 10ex; /div div style=overflow: hidden; position: absolute; left: 0em; top: 0em; right: 0em; height: 15em; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; .. north widgets /div /div div style=overflow: hidden; position: absolute; left: 0em; right: 0em; bottom: 0em; height: 5em; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; ..south widgets /div /div div style=overflow: hidden; position: absolute; left: 0em; top: 15em; right: 0em; bottom: 5em; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; .. center widget /div /div /div /div /div The first div style=position: relative; breaks the layout... If I specify a height to this div, or if I remove position: relativ or if I remove the overflow:hidden of the north and south main div, that's works fine. If the dockLayoutpanel is not encapsulated by the form panel the first div style=position: relative; is not present and the docklayoutpanel is right displayed. Suggestions ? Problem on my side or on GWT side ? I'd say on your side. By that I mean that this behavior is documented: see the Using a LayoutPanel without RootLayoutPanel section on http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design -- 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.
Line 37: No source code is available for type com.google.code.gwt.geolocation.client.Geolocation; did you forget to inherit a required module?
I am trying to run HelloGeolocation from http://code.google.com/p/gwt-mobile-webkit/ then I just add HelloGeolocation class to an exsisting project in this line Label providerLabel = new Label(Geolocation provider: + Geolocation.getProviderName()); I also get error that Geolocation.getProviderName() , getProviderName () is not defined when I run I get the following errors. 09:09:26.823 [ERROR] [tracking] Errors in 'file:/home/DEVS/eclipse/ workspace/Tracking/src/ml/client/HelloGeolocation.java' 09:09:26.895 [ERROR] [tracking] Line 37: No source code is available for type com.google.code.gwt.geolocation.client.Geolocation; did you forget to inherit a required module? I have add -- 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: RichTextArea Entities
I just wonder, why you would want to do that? what's wrong with the unicode chars? On 11 Jan., 20:03, DCYorke d...@yorkemail.org wrote: When setting HTML to a RichTextArea, some HTML entities are converted to unicode. For instance, laquo; is converted to «, copy; is converted to © and so forth. The problem seems to originate in the innerHTML property that is used by RichTextArea. Anyone know of a workaround such that when I call getHTML() on the RichTextArea the HTML entities are included instead of the unicode? Thanks in advance. DCYorke -- 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: DockLayoutPanel inside a FormPanel
thanks! I specified a height To my dock layout panel and it's working fine. On 12 jan, 11:21, Thomas Broyer t.bro...@gmail.com wrote: On Jan 11, 6:56 pm, julien.dram...@gmail.com julien.dram...@gmail.com wrote: Hello all, I try to do something like that in a ui.ml file : !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui g:FormPanel ui:field=formPanel g:DockLayoutPanel unit='EM' g:north size='15' ..widget /g:north g:center ..widget /g:center g:south size='5' ..widget /g:south /g:DockLayoutPanel /g:FormPanel /ui:UiBinder I try to encapsulate a dockLayoutPanel inside a form panel. Indeed, I have a complicated form to submit and I want to use a DockLayoutPanel to layout it. But the center and south part of the docklayoutpanel will become invisible. Indeed, the DockLayoutPanel create an html like this one : div style=position: relative; div style=position: absolute; z-index: -32767; left: -20em; top: -20ex; width: 10em; height: 10ex; /div div style=overflow: hidden; position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; div style=position: absolute; z-index: -32767; left: -20em; top: -20ex; width: 10em; height: 10ex; /div div style=overflow: hidden; position: absolute; left: 0em; top: 0em; right: 0em; height: 15em; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; .. north widgets /div /div div style=overflow: hidden; position: absolute; left: 0em; right: 0em; bottom: 0em; height: 5em; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; ..south widgets /div /div div style=overflow: hidden; position: absolute; left: 0em; top: 15em; right: 0em; bottom: 5em; div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; .. center widget /div /div /div /div /div The first div style=position: relative; breaks the layout... If I specify a height to this div, or if I remove position: relativ or if I remove the overflow:hidden of the north and south main div, that's works fine. If the dockLayoutpanel is not encapsulated by the form panel the first div style=position: relative; is not present and the docklayoutpanel is right displayed. Suggestions ? Problem on my side or on GWT side ? I'd say on your side. By that I mean that this behavior is documented: see the Using a LayoutPanel without RootLayoutPanel section onhttp://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#De... -- 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: Seeking freelance GWT developer for a web app prototype
you have already send a message to all so now you can share with all and interested peop will revert back cheers vasem On Mon, Jan 11, 2010 at 9:58 PM, dbakerweb dbaker...@gmail.com wrote: We have an RFP for a number of web apps to demonstrate data reuse and interoperability based on our data standards (casrai.org). We would like each of the prototypes to be based on a different web framework. We have posted the RFP to the Rails, Django and Drupal communities and would like GWT to be one of the frameworks. Where should I post this RFP to get GWT developers seeing it and considering responding? Can I post such a thing here? Please advise. David Baker CASRAI -- 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: DockLayoutPanel sample code
I have the same problem :( -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Open Dialog Box
Hi everybody! What I want to do is make up a button that will be open an dialog box to select a file of my hard disk. This is the first time I am using GWT 2.0 framework but is so strange that this platform doesn't has the tipical OpenFileDialog class. Someone knows something about this? Best greetings!! Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Open Dialog Box
You need to use FileUpload - Abdullah On Tue, Jan 12, 2010 at 4:27 PM, Juan M.M.M. knn0n@gmail.com wrote: Hi everybody! What I want to do is make up a button that will be open an dialog box to select a file of my hard disk. This is the first time I am using GWT 2.0 framework but is so strange that this platform doesn't has the tipical OpenFileDialog class. Someone knows something about this? Best greetings!! Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: MultiWordSuggestOracle and HTML display
Two changes will be needed: . CollectionSuggestion defaults = new ArrayListSuggestion(); . . defaults.add(new MultiWordSuggestOracle.MultiWordSuggestion(Something, ht)); . On 1/11/10, Amos Sam amos...@gmail.com wrote: I've been searching for solution for my problem, but i'm unable to find it. I have SuggestBox and MultiWordSuggestOracle. I populate oracle with suggestions on page's load time (not that many of them). Now, i would like to format suggestion popup, so it display's some KEY values on the left and VALUE on the right side: __ KEY | VALUE - Something1 Somewhere 2 ..... If I create default suggestions, and I set it to oracle by code public static MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); public static SuggestBox sb_suggestBox = new SuggestBox(oracle); CollectionString defaults = new ArrayListString(); String ht = span style=\display: block; position: absolute; text- align:left\Something/spanspan style=\display: block; width: 100%; position: relative; text-align:right\1/span ; defaults.add(ht); oracle.setDefaultSuggestionsFromText(defaults); /code And if I do suggestBox.showSuggestionList(); it shows me correctly what I want. but as soon as I type in a letter, it shows complete HTML code, and select whatever it finds in it! What I'm doing wrong? 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.
Re: Read-only RichTextArea?
You can try setting on/off the iframe designMode attribute , something like this. RichTextArea area = new RichTextArea(); setEnabled(area.getElement(), false); native void setEnabled(Element iframe, boolean b) /*-{ iframe.contentWindow.document.designMode = b ? 'On' : 'Off'; }-*/; It works for ff and webkit, ie seems not working. Regards Manuel Carrasco Moñino On Sun, Jan 3, 2010 at 6:05 AM, vacorda victoraco...@gmail.com wrote: You can try something like this this: DOM.setElementPropertyBoolean(getElement(), disabled, true or false); On Jan 2, 5:56 pm, Elchin elchin.asga...@gmail.com wrote: One way would be catching all events, and redoing them, but that is a big time hassle, I wonder if there is any way to do it from DOM? On Dec 16 2009, 6:28 pm, Elchin elchin.asga...@gmail.com wrote: Is there a way to makeRichTextArearead-only like TextArea.setReadOnly (true)? What I need in my application is the possibility to edit the rich text only by buttons in toolbar, and not through typing. -- 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: Open Dialog Box
Thanks!!! On 12 ene, 12:02, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: You need to use FileUpload - Abdullah On Tue, Jan 12, 2010 at 4:27 PM, Juan M.M.M. knn0n@gmail.com wrote: Hi everybody! What I want to do is make up a button that will be open an dialog box to select a file of my hard disk. This is the first time I am using GWT 2.0 framework but is so strange that this platform doesn't has the tipical OpenFileDialog class. Someone knows something about this? Best greetings!! Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
MVP and FormPanel with submit handlers
Hi there, I'm using MVP pattern in a GWT project. So, I usually add the handler in the presenter, exposing from view the object through an interface like: HasClickHandlers getAddButton(); Now I have a problem with FormPanel: I need to add a SubmitHandler to this object, but apparently there isn't any interface for that. I guess it's a lacks of GWT, probably due to moving from FiresFormEvents interface to the new approach. As far as I know, there are three options: 1) Create my own HasSubmitHandlers interface, my FormPanel class that only extend the original one and implements my HasSubmitHandlers interface. 2) Expose the Form object using the deprecated FiresFormEvents interface. 3) Add the submit handler in the view, and call a callback/command or whatever added by presenter So my question is: what's the good way to manage this kind of situation? There is something that I missed? Thank you in advance. -- 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: Read-only RichTextArea?
This method also works in IE private native void setEnabled(Element iframe, boolean b) /*-{ var doc = iframe.contentWindow.document; if (doc.body.contentEditable) doc.body.contentEditable = b; else doc.designMode = b ? 'On' : 'Off'; }-*/; On Tue, Jan 12, 2010 at 12:10 PM, Manuel Carrasco Moñino man...@apache.orgwrote: You can try setting on/off the iframe designMode attribute , something like this. RichTextArea area = new RichTextArea(); setEnabled(area.getElement(), false); native void setEnabled(Element iframe, boolean b) /*-{ iframe.contentWindow.document.designMode = b ? 'On' : 'Off'; }-*/; It works for ff and webkit, ie seems not working. Regards Manuel Carrasco Moñino On Sun, Jan 3, 2010 at 6:05 AM, vacorda victoraco...@gmail.com wrote: You can try something like this this: DOM.setElementPropertyBoolean(getElement(), disabled, true or false); On Jan 2, 5:56 pm, Elchin elchin.asga...@gmail.com wrote: One way would be catching all events, and redoing them, but that is a big time hassle, I wonder if there is any way to do it from DOM? On Dec 16 2009, 6:28 pm, Elchin elchin.asga...@gmail.com wrote: Is there a way to makeRichTextArearead-only like TextArea.setReadOnly (true)? What I need in my application is the possibility to edit the rich text only by buttons in toolbar, and not through typing. -- 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: SmartGWT?!
Hello again :) It would be fantastic if you could maybe attach a few more words to this: SmartGWT is a javascript wrapper - which means you don't get the advantages of the compiler, browser specific code compiles, code elimination, and runAsync (code splitting). ... I am not sure I understand it ~:/ *Sigh* Thanks a lt, Stine :) -- 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: Problems with SSL and hosted mode
I think that you have to change some settings... I have developed a GWT 1.5 app with the same declaration in web.xml and it worked perfect on development systems. I was using a external Tomcat 6.0.17, not the built-in tomcat do you have changed the -startupUrl to https:// ? On Mon, Jan 11, 2010 at 2:05 PM, Rob Tanner caspersg...@gmail.com wrote: Hi, I moved a new application (my first using GWT) on to our production Tomcat server and then realized that I wasn't requiring SSL. The way I normally do that is in the web.xml file under the security- constraint: security-constraint web-resource-collection web-resource-namesome-resource-name/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Naturally, I made the change on my development system since the war file that gets copied to the production server includes the web.xml file. The problem is that in hosted mode on my development system, instead of the app coming up I get a 403 Forbidden error. All the apps I write require SSL and I don't want to have to remember to modify the web.xml file each time a move a GWT app into production. I can't imagine that there's not a solution to this, I just don't know what it is. Can anybody help? Thanks, Rob -- 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: SplitLayoutPanel
I have the feeling that it is because I have to include the CSS needed directly in my host page... -- 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: SplitLayoutPanel
I have the feeling that it is because I have to include the CSS needed directly in my host page... but where do I find the relevant CSS?! :} -- 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: SmartGWT?!
A wrapper means that it is not written in Java. It is javascript code, with just a calling Java wrapper around it so that it can be used from GWT. By not being written in Java you don't get the advantages the GWT compiler offers. Some of those I listed. First was code elimination. GWT compiler can tell what code is never referenced (in the Java written code, not javascript) and eliminate the code so you don't ever download code that is not being used. And download time is a big problem in web apps. You don't want an app that takes a long time to show display. Another thing the GWT compiler does is compile different versions of the code for different browsers using the javascript that is tailored to that browser (it will also do this for different (human) languages you want to display your app in). The another big advantage of the GWT compiler is code splitting. You can tell the compiler where to break up the code so that code that is not needed initially can be downloaded when needed and doesn't take up bandwidth when it first loads. I hope that helps :) On Jan 12, 6:56 am, Stine Søndergaard stinespl...@gmail.com wrote: Hello again :) It would be fantastic if you could maybe attach a few more words to this: SmartGWT is a javascript wrapper - which means you don't get the advantages of the compiler, browser specific code compiles, code elimination, and runAsync (code splitting). ... I am not sure I understand it ~:/ *Sigh* Thanks a lt, Stine :) -- 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: SplitLayoutPanel
Gosh - now I know!! ;D I just need to include one of these lines in the project XML file... inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name=com.google.gwt.user.theme.chrome.Chrome/ inherits name=com.google.gwt.user.theme.dark.Dark/ Well, so far so good ;) Cheers, Stine -- 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: SplitLayoutPanel
Okay :) ... But to me it was not that obvious how to construct the names of the relevant style classes... -- 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: SplitLayoutPanel
(Btw - the inclusion of a theme in the project XML did not seem to make a difference anyway ;)) On 12 Jan., 14:39, Stine stinespl...@gmail.com wrote: Gosh - now I know!! ;D I just need to include one of these lines in the project XML file... inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name=com.google.gwt.user.theme.chrome.Chrome/ inherits name=com.google.gwt.user.theme.dark.Dark/ Well, so far so good ;) Cheers, Stine -- 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.
Format number on ComboBox / ComboBoxItem
Does anybody know how can I format a number value on ComboBox (GWT- EXT) or ComboBoxItem (SmartGwt)? The data is a json string sent from server generated by new Gson ().toJson(listOfObjects). -- 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: SplitLayoutPanel
no they are no style defined in themes. If you want to know the different style classes for a Widget, look at the javadoc of the associated class. for SplitLayoutPanel : http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/SplitLayoutPanel.html On Jan 12, 3:00 pm, Stine stinespl...@gmail.com wrote: (Btw - the inclusion of a theme in the project XML did not seem to make a difference anyway ;)) On 12 Jan., 14:39, Stine stinespl...@gmail.com wrote: Gosh - now I know!! ;D I just need to include one of these lines in the project XML file... inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name=com.google.gwt.user.theme.chrome.Chrome/ inherits name=com.google.gwt.user.theme.dark.Dark/ Well, so far so good ;) Cheers, Stine- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: SplitLayoutPanel
The names of the relevant style classes can be found in the JavaDoc :) http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html Just in case someone else but me does not see things clearly right away ;) On 12 Jan., 14:45, Stine Søndergaard stinespl...@gmail.com wrote: Okay :) ... But to me it was not that obvious how to construct the names of the relevant style classes... -- 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.
Can I Cast a ResultSet to an ArrayList/DTO?
Is there any way to cast a JDBC ReultSet to an ArrayList of Strings (or another type of DTO) with a single assignment statement? Otherwise I end up iterating through the ResultSet twice - once on the server to assign its values to an ArrayList of DTOs - and once after its returned to the client in order to display the results. I'd rather just assign (cast) the resultSet to the ArrayList and return it. For example: Rather than do this on the server: resultSet = statement.executeQuery(SELECT first_name from Employees); while (resultSet.next()) { arrayList.add(resultSet.getString(first_name)); //Loops through over a hundred records } return arrayList; It would be nice to simply do this: resultSet = statement.executeQuery(SELECT first_name from Employees); arrayList = (ArrayListNames) resultSet; //Assign the entire resultSet to the ArrayList return arrayList; Is this (or something similar) possible? Thanks in advance, -Russ -- 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: Can GWT project have multiple EntryPoint
Each GWT module can have only one entry point and you should have only one entry point per page. A GWT module doesn't have to have any entry point though so common code used by more than one page/module can be moved to a common module inherited by them both. Is there a specific scenario you have in mind that requires more than one entry point? On Jan 11, 6:32 am, QterMgnus luc...@yahoo.com wrote: when you create a Google Web application porject, it creates automatically a class called EntryPoint. For examplehttp://code.google.com/p/gwt-mobile-webkit/source/browse/trunk/gwt-mo... my question is it possible to create multiple class that implements EntryPoint in the same project ? if so how ? -- 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: Can I Cast a ResultSet to an ArrayList/DTO?
Russ schrieb: Is there any way to cast a JDBC ReultSet to an ArrayList of Strings [...] Is this (or something similar) possible? No Regards, Lothar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
[gwt-presenter]: how to switch presenters
Hi, i am having difficulties making my views to switch. Here is my code: Here is my hierarchy of presenters: AppPresenter, that contains HeaderPresenter and BodyPresenter: public class AppPresenter extends WidgetContainerPresenterAppPresenter.Display { public interface Display extends WidgetContainerDisplay { } @Inject public AppPresenter(Display display, EventBus bus,HeaderPresenter header, BodyPresenter body) { super(display,bus, header, body); } } HeaderPresenter and BodyPresenter will never be changed. public class BodyPresenter extends WidgetContainerPresenterBodyPresenter.Display { public interface Display extends WidgetContainerDisplay { } @Inject public BodyPresenter(Display display, EventBus eventBus, LeftMenuPresenter menu, ContentPresenter content) { super(display, eventBus, menu, content); } } BodyPresenter contains LeftMenuPresenter and ContentPresenter And ContentPresenter must switch different presenters in it when something is picked from the left menu(or some buttons in the header are clicked). public class ContentPresenter extends WidgetContainerPresenterContentPresenter.Display { public interface Display extends WidgetContainerDisplay { } private MyDefaultPresenter dPresenter; @Inject public ContentPresenter(Display display, EventBus eventBus, MyDefaultPresenter dPresenter) { super(display, eventBus, dPresenter); this.dPresenter =dPresenter; } @Override protected void onBind() { super.onBind(); registerHandler(eventBus.addHandler(PresenterChangedEvent.getType(), new PresenterChangedHandler() { @Override public void onPresenterChanged(PresenterChangedEvent event) { Debugger.log(receive PresenterChangedEvent); ContentPresenter.this.setCurrentPresenter((WidgetPresenter?) event.getPresenter()); } })); } } The PresenterChangedEvent is fired onClick event from the menu or header links/buttons, but nothing happens. And i had to pass my other presenters in the Header or LeftMenuPresenter, which is not quite right, they should all be passed to the ContentPresenter and somehow swich on event. Any ideas? Regards. -- 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: Can I Cast a ResultSet to an ArrayList/DTO?
No, there isn't a way to do that. In the great scheme of things, cycling through hundreds of items twice, isn't that big of a time sink. If it's taking too long from request to display, think about cutting up your query to only get say, 50 items. Display those and only grab the next 50 when requested. On Jan 12, 9:14 am, Russ r...@epcinternet.com wrote: Is there any way to cast a JDBC ReultSet to an ArrayList of Strings (or another type of DTO) with a single assignment statement? Otherwise I end up iterating through the ResultSet twice - once on the server to assign its values to an ArrayList of DTOs - and once after its returned to the client in order to display the results. I'd rather just assign (cast) the resultSet to the ArrayList and return it. For example: Rather than do this on the server: resultSet = statement.executeQuery(SELECT first_name from Employees); while (resultSet.next()) { arrayList.add(resultSet.getString(first_name)); //Loops through over a hundred records} return arrayList; It would be nice to simply do this: resultSet = statement.executeQuery(SELECT first_name from Employees); arrayList = (ArrayListNames) resultSet; //Assign the entire resultSet to the ArrayList return arrayList; Is this (or something similar) possible? Thanks in advance, -Russ -- 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: RichTextArea Entities
We're using RichTextArea to compose emails. The problem seems to be that some email clients aren't seeing the characters correctly. So © shows up as a ?, but copy; shows up correctly. On Jan 12, 3:50 am, Martin Trummer martin.trum...@24act.at wrote: I just wonder, why you would want to do that? what's wrong with the unicode chars? On 11 Jan., 20:03, DCYorke d...@yorkemail.org wrote: When setting HTML to a RichTextArea, some HTML entities are converted to unicode. For instance, laquo; is converted to «, copy; is converted to © and so forth. The problem seems to originate in the innerHTML property that is used by RichTextArea. Anyone know of a workaround such that when I call getHTML() on the RichTextArea the HTML entities are included instead of the unicode? Thanks in advance. DCYorke -- 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: SplitLayoutPanel
Refer http://gwt.google.com/samples/Showcase/Showcase.html for more detailed examples. This is a tutorial cum showcase of all the GWT display widgets. Here you can see the desired type of widgets and learn how to use them on the Source Code tab. -- 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: SplitLayoutPanel
But what about the new panels introduced in GWT 2.0? They are not on that page, are they? :/ Sorry, if I am a bit slow here! :8 Thanks, Stine -- 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.
DomEvent.preventDefault() doesn't work in IE
Hi, All, I try to catch key down event for F1 key and display my own help popup. I wrote following code to handle KeyDownEvent. The method is bind by UI Binder. @UiHandler(takenByTextBox) void handleKeyPress(KeyDownEvent event) { int key = event.getNativeKeyCode(); if (key == 112) { // F1 key event.stopPropagation(); event.preventDefault(); Window.alert(F1 pressed.); } } The method firstly check if F1 is pressed. If yes, stop propagation and preventDefault, then popup alert window. It works in Firefox. But IE still pops up its own help window, event my alert window is also popped up. Does anyone have the same problem, and would you give me a hand? Thank you in advance. -- 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: SuggestBox hides RootLayoutPanel and all its contents
I have never experienced this but its seems a browser specific problem. Specially when we try to populate GWT content in DIV, the display creates one or other problem for sure :-). The GWT is in itself a dynamic content so my personal suggestion is to render your code directly using GWT API only for example using classes like VerticalPenel, HorizontalPanel etc. and using setStyleName() method to set the CSS applicable for the concerned widget to position or decorate the content accordingly. I do not see any requirement for the DIV since GWT itself handles all the possible facilities of dynamic HTML. Hope it helps you! Regards, Upendra Jariya. -- 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: SplitLayoutPanel
:-) You are very fast (at least in responding). For new content, you can always go through the API reference. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html?overview-summary.html Actually I like the API reference most for any Java library. Regards, Upendra Jariya -- 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: SplitLayoutPanel
Hehe ;D - you are doing pretty good yourself as well!! Yes, I have learned that I can find the relevant style class names in the JavaDoc :) But what if I don't want to start completely from scratch in styling those GWT 2.0 panels? :} Thanks again, Stine -- 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: Simple UiBinder question about ui:image resource=....
Do you have the following in your ui.xml file: ui:with field='res' type='com.google.gwt.sandbox.client.Resources'/ ...where 'com.google.gwt.sandbox.client.Resources' is replaced with your resources class. On Thu, Jan 7, 2010 at 5:24 AM, emerix rafa...@gmail.com wrote: Hello, I tried using relative paths for the resource property : ui:image field='logo' resource='../resources/my_logo.png'/ui:image but I got the error : No com.google.gwt.resources.client.ClientBundle $Source annotation and no resources found with default extensions if I use the src property, everything is ok : ui:image field='logo' src='../resources/my_logo.png'/ui:image hope someone find this useful :) However what I really wanted is using your 2nd solution : ui:image field='logo' resource='{res.logo}'/ui:image but when I load the page I also get the error : No com.google.gwt.resources.client.ClientBundle$Source annotation and no resources found with default extensions am I missing something ? thanks a lot :) ++emerix On Jan 4, 11:15 pm, Chris Ramsdale cramsd...@google.com wrote: One option would be to use relative paths within the ui:image element. For example: ui:image field='logo' resource='../resources/my_logo.png'/ui:image Another option would be to use ui:with, get a hold of the ClientBundle, and reference an image within it. public interface Resources extends ClientBundle { @Source(com/google/gwt/sandbox/resources/my_logo.png) ImageResource logo(); } ui:UiBinder ... ui:with field='res' type='com.google.gwt.sandbox.client.Resources'/ ui:image field='logo' resource='{res.logo}'/ui:image ... /ui:UiBinder Underscores within the filename are completely valid (the above examples compile and run w/o issue). On Thu, Dec 31, 2009 at 3:30 AM, Daniel doubleagen...@gmail.com wrote: Here's a valid ui.xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/ xhtml.ent ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style field=IekyStyle .anchorWrapper a { display: block; } @sprite .left { gwt-image: 'left'; } @sprite .logo { gwt-image: 'logo'; background-position: 0 -197px; height: 197px; } div.logo:hover { background-position: 0 0; } @sprite .slogans { gwt-image: 'animatedSloganArea'; } @sprite .menuTop { gwt-image: 'menuTop'; } @sprite .right { gwt-image: 'right'; } @sprite .home { gwt-image: 'home'; height: 25px; } div.home:hover { background-position: 0 -25px; } @sprite .services { gwt-image: 'services'; height: 25px; } div.services:hover { background-position: 0 -25px; } @sprite .about { gwt-image: 'about'; height: 25px; } div.about:hover { background-position: 0 -25px; } @sprite .contact { gwt-image: 'contact'; height: 25px; } div.contact:hover { background-position: 0 -25px; } @sprite .menuBottom { gwt-image: 'menuBottom'; } @sprite .floatingBar { gwt-image: 'floatingBarArea'; } @sprite .bottom { gwt-image: 'bottom'; } /ui:style ui:image field=about resource=about.png/ui:image ui:image field=animatedSloganArea resource=animatedSloganArea.png/ui:image ui:image field=bottom resource=bottom.png/ui:image ui:image field=contact resource=contact.png/ui:image ui:image field=floatingBarArea resource=floatingBarArea.png/ ui:image ui:image field=home resource=home.png/ui:image ui:image field=left resource=left.png/ui:image ui:image field=logo resource=logo.png/ui:image ui:image field=menuBottom resource=menuBottom.png/ui:image ui:image field=menuTop resource=menuTop.png/ui:image ui:image field=right resource=right.png/ui:image ui:image field=services resource=services.png/ui:image g:HTMLPanel div class={IekyStyle.anchorWrapper} table border=0 cellspacing=0.0 cellpadding=0 tr td rowspan=6div class={IekyStyle.left} //td td rowspan=6a href=#homediv class={IekyStyle.logo} //a/td td colspan=5div class={IekyStyle.slogans}/div/td /tr tr td colspan=4div class={IekyStyle.menuTop}/div/td td rowspan=5div class={IekyStyle.right}/div/td /tr tr tda href=#homediv class={IekyStyle.home} //a/ td tda href=#business_servicesdiv class={IekyStyle.services} //a/td tda href=#aboutdiv class={IekyStyle.about} //a/ td tda
Re: SmartGWT?!
Also, when debugging the java code version, you can step into all the code easily, but this breaks down for the javascript code, which is in fact the vast majority of the library. The wrappers essentially package parameters/options and then call the javascript, making it much harder to do useful subclassing and debugging. Note that ext gwt is all java, so it doesn't have this issue if the licensing terms meet your needs. Same for vaadin, though it uses a very distinct model more akin to servlet than client-server. -- 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: Open Dialog Box
Once I have selected the file (It will allways be an Image), how can I get the URL of the image to use it in an Image object? On 12 ene, 12:02, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: You need to use FileUpload - Abdullah On Tue, Jan 12, 2010 at 4:27 PM, Juan M.M.M. knn0n@gmail.com wrote: Hi everybody! What I want to do is make up a button that will be open an dialog box to select a file of my hard disk. This is the first time I am using GWT 2.0 framework but is so strange that this platform doesn't has the tipical OpenFileDialog class. Someone knows something about this? Best greetings!! Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
how to call EJB from GWT
hi, i'm new with gwt, My question is, how is the best way to call stateful and stateless enterprise bean from gwt rpc ? -- 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: how to call EJB from GWT
other way.. the documentation is good (in the site).. and have articles developed by gwt team.. http://code.google.com/intl/pt-BR/webtoolkit/articles/using_gwt_with_hibernate.html On 12 jan, 14:59, NahumMor nahum...@gmail.com wrote: hi, i'm new with gwt, My question is, how is the best way to call stateful and stateless enterprise bean from gwt rpc ? -- 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.
eclipse plugin - dont show its debuggin or running
like tomcat, the eclipse plugin should be if my application its running or debuggin.. what the communitty think? -- 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: how to call EJB from GWT
@ Diego: Calling EJB method (almost) has nothing to do with glead. @NahumMor: It's simple lookup your ejb with InitialContext and call your method. I didn't manage to get injecting working. If it is statefull just find way to keep the reference in some cache after you lookup it. -- 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.
GWT MySQL PHP
Hi everybody! I have a question about mysql, gwt and php, how can I connect all this in a web Application with the new version of GWT? I'm really novice in this but I want to learn and to practice, I need a guide for dummies. I have a php script, and I have a Mysql Database and I have connected this but I don't know how connect all this with the new version of GWT. I know the way is JSON-RPC but I don't know how this works and How I have to develop them. Thank you for your colaboration. Regards. Andres -- 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: DockLayoutPanel sample code
On Tue, Jan 5, 2010 at 9:18 AM, N G nistar...@gmail.com wrote: Hi, I tried the DockLayoutCode which is presented in http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html: DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(header), 2); p.addSouth(new HTML(footer), 2); p.addWest(new HTML(navigation), 10); p.add(new HTML(some content)); // I added this: RootLayoutPanel.get().add(p); All this code was obviously placed inside the onModuleLoad substituting the sample Eclipse startup code when you create a new GWT app. The output looked nothing like what was presented on that page. I also tried the SplitLayoutPanel code right below that one. Likewise, the result was nothing that I expected. For one, there were no grab area to drag. I inspected the generated page in Firebug and I can certainly see the grab area there, but I don't see anything to drag. Moving the mouse around that area doesn't change the mouse into a hand and doesn't let me grab the separation, etc... What am I doing wrong here? The new layout system does not include default styles, and the example within the Dev Guide is using CSS that wasn't included. When we get a chance, we'll add it to examples (as a download, or within the doc itself). In the meantime, there is already an issue for this, and you can tracks its progress here: http://code.google.com/p/google-web-toolkit/issues/detail?id=4429 On a similar note... I was surprise to see the Eclipse autogenerate HTML page say that it is in quirks mode and changing to standards mode could have layout consequences (etc.) when the goals of GWT 2.0 clearly state that they only aim to support standards mode. Could someone guide me on this one? I've entered the following issue for this: http://code.google.com/p/google-web-toolkit/issues/detail?id=4480 Thanks, NG. -- 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: Problem upgrading to GWT 2.0
Before deploying the updated 2.0 code to your server, did you try deleting your war/module directory and recompiling? Also, is there anything significant about the objects you are passing over the wire? - Chris On Sun, Jan 10, 2010 at 10:07 PM, Cliff Newton cliff.new...@gmail.comwrote: A couple of days ago I was reading about the numerous improvements to GWT in 2.0. I set off to upgrade from 1.5.2 and I managed to get my project running in 1.6.4 and from there I moved on to 2.0. The problem I'm having is that my project runs fine in hosted mode, but when I try to deploy my code to my server I get the following exception stack upon making an RPC call to the server. I did some searching and there are a few people reporting this problem for various versions of GWT yet none of them have received a response with a solution. I upgraded all of the gwt jar files on my server and I still get this error. I'm at a loss, please help. Jan 10, 2010 7:40:44 PM org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract (ServerSerializati$ at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt (ServerSerializati$ at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead (AbstractS$ at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead (ServerSeria$ at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:163) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:$ at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:183) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:325) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:6$ at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) -- 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: GWT 2.0 RPC not picking up custom generated Serializable classes
Chris, Thanks for trying to help me with this. As for your questions, I'm not sure I understand the second one, but I'll exemplify better what my code is doing: First there is a listener interface: public interface TestMessageListener { void messageReceived(String message); } Then there is the RPC service (client side version here): public interface TestServiceAsync { void addMessageListener(TestMessageListener listener, AsyncCallbackVoid callback); void removeMessageListener(TestMessageListener listener, AsyncCallbackVoid callback); } Then there is the concrete listener class in the client: public class TestMessageListenerImpl extends AbstractRpcObserver implements TestMessageListener { @Override public void messageReceived(String message) { System.out.println(message + received); } } The extended class AbstractRpcObserver looks like this: public abstract class AbstractRpcObserver implements RpcObserver, Serializable { protected int rpcReversedSessionId; protected int observerId; protected transient Object source; protected AbstractRpcObserver() { } public void setSource(Object source) { this.source = source; } public void setRpcReversedSessionId(int rpcReversedSessionId) { this.rpcReversedSessionId = rpcReversedSessionId; } } The generated class extends this AbstractRpcObserver (and is thereby Serializable) and implements the TestMessageListener interface. An instance of the generated class is used as argument in the addMessageListener method invoction in the RPC service. This is part of a framework for asynchronous invocations of observers in the client from the server. The idea is to have the framework generate the plumbing code so that any interface can be used as a listener to be added to the server. Everything works like a charm in GWT 1.7.1, but as you say, that could be just a happy coincidence. /Martin On 11 Jan, 23:03, Chris Ramsdale cramsd...@google.com wrote: Martin, The RPC serialization generator is most likely being run before your custom generator. As a result serialization code, whitelisting, etc... are not being created. Unfortunately there is no way of guaranteeing that your generator is run before the RPC serialization generator. That said, I did have a couple of thought: 1. Within your RPCs, what class is your server expecting? 2. Rather than generate classes that you send across the wire, would it be possible to send an interface, and generate client-side classes that understand how to instantiate themselves based on said interface? 2010/1/11 Martin Söderström martin.k.soderst...@gmail.com Hi, I have a custom Generator (subclassing com.google.gwt.core.ext.Generator) class that generates a class to be used as argument in an RPC method. The generated class implements Serializable and the interface that the RPC method expects. This used to work in GWT 1.7, but with GWT 2.0 I get a com.google.gwt.user.client.rpc.SerializationException. Using IsSerializable instead of Serializable does not make any difference. It feels like, in GWT 2.0, the scanning for RPC serializable classes does not take into consideration the custom generated classes. Does anyone know anything about this? A possible workaround? /Martin -- 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%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. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RichTextArea Entities
I'd just check, if the encoding of the mail is set correctly. If the client does not support unicode at all, you're out of luck anyway, because users could include all other sorts of unicode chars (for which no html-entity exists) you could of course implement a way to convert the chars to their html-entities (XSLT?), but since would only be a partial solution it may not be worth the effort. maybe you could use another editor that can keep the entites. these links might be helpful for you: * http://sourceforge.net/projects/xmlchar/ * http://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html On 12 Jan., 16:13, DCYorke d...@yorkemail.org wrote: We're using RichTextArea to compose emails. The problem seems to be that some email clients aren't seeing the characters correctly. So © shows up as a ?, but copy; shows up correctly. On Jan 12, 3:50 am, Martin Trummer martin.trum...@24act.at wrote: I just wonder, why you would want to do that? what's wrong with the unicode chars? On 11 Jan., 20:03, DCYorke d...@yorkemail.org wrote: When setting HTML to a RichTextArea, some HTML entities are converted to unicode. For instance, laquo; is converted to «, copy; is converted to © and so forth. The problem seems to originate in the innerHTML property that is used by RichTextArea. Anyone know of a workaround such that when I call getHTML() on the RichTextArea the HTML entities are included instead of the unicode? Thanks in advance. DCYorke -- 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: MVP and FormPanel with submit handlers
On Jan 12, 12:27 pm, ZER0 zer0.k...@gmail.com wrote: Hi there, I'm using MVP pattern in a GWT project. So, I usually add the handler in the presenter, exposing from view the object through an interface like: HasClickHandlers getAddButton(); Now I have a problem with FormPanel: I need to add a SubmitHandler to this object, but apparently there isn't any interface for that. I guess it's a lacks of GWT, probably due to moving from FiresFormEvents interface to the new approach. As far as I know, there are three options: 1) Create my own HasSubmitHandlers interface, my FormPanel class that only extend the original one and implements my HasSubmitHandlers interface. 2) Expose the Form object using the deprecated FiresFormEvents interface. 3) Add the submit handler in the view, and call a callback/command or whatever added by presenter So my question is: what's the good way to manage this kind of situation? There is something that I missed? 4) use an addFormSubmitHandler(FormPanel.SubmitHandler handler) on your view, and just registers your SubmitHandler (which lives in your presenter) that way (instead of using a HasSubmitHandlers getForm() method and getForm().addSubmitHandler(handler) as you proposed in 1) You usually have a single form per view so it's generally not a problem to directly add the SubmitHandler to the view And if you still wonder, the view can just delegate the call to the FormPanel: private FormPanel form; public HandlerRegistration addFormSubmitHandler (Formpanel.SubmitHandler handler) { return form.addSubmithandler(handler); } -- 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: Format number on ComboBox / ComboBoxItem
A way to format number value on .toJson(listOfObjects) invoke is usefull. On 12 jan, 12:03, Rogério Valente rogerio.vale...@gmail.com wrote: Does anybody know how can I format a number value on ComboBox (GWT- EXT) or ComboBoxItem (SmartGwt)? The data is a json string sent from server generated by new Gson ().toJson(listOfObjects). -- 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: MultiWordSuggestOracle and HTML display
On Jan 12, 12:07 pm, Fazeel Kazi fazzze...@gmail.com wrote: Two changes will be needed: . CollectionSuggestion defaults = new ArrayListSuggestion(); . . defaults.add(new MultiWordSuggestOracle.MultiWordSuggestion(Something, ht)); . Thank's for the answer, but After the line witch states: defaults.add(ht); goes also (what i forgot to wrote in OP): oracle.add(ht); And if i don't put oracle.add(ht); i won't get any suggestions when i start to write inside suggestBox widget! is this event posible with SuggestBox and MultiWordSuggestOracle? Conclusion: When i change the code to match one in Fazeel's post, I get the same result as with original code. if I call suggestBox.showSuggestionList() on emtpy suggestBox (i mean empty suggestBox's textbox), it will show me what i wan't to see (well formated list). but as soon as i type in single letter it won't show anything without oracle.add(ht);, and with it it will show me and filter complete HTML code. I hope I didn't make this more complicated more then needed!! 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.
Re: DockLayoutPanel sample code
Looking very much forward to the default styles :) To me the way to even just a sample application seems endless without them... *sigh*... -- 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.
Where to get started with GWT and Federated login? (php only)
I'm interested in adapting my site to work with a federated login system. (you can see a beta of my site here to get the general idea; http://www_rateoholic.co.uk/test/Rateoholic/main/Rateoholic_Frame.html#titlepage ) Ive looked over the; http://code.google.com/apis/accounts/docs/OpenID.html pages and I see a wealth of helpfull information and advice. But to be honest its overwealming me and I really dont know where to get started. My requirements are; 1. Has to be PHP/GWT based...my server cant use servlets. 2. Not worried about getting other user data, just a login will do. 3. thats it really. Can someone help put me on the best road to get started? Is there any gwt/php based methods established already? -- 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: SplitLayoutPanel
Hmm... wonder what other developers do they just avoid using the new panels from GWT 2.0 maybe? :) Or is there a secret place where some default styles can be fetched? ;D Know that this post is not really asking anything new... hmm ;) -- 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: how to call EJB from GWT
lol On 12 jan, 15:10, mariyan nenchev nenchev.mari...@gmail.com wrote: @ Diego: Calling EJB method (almost) has nothing to do with glead. @NahumMor: It's simple lookup your ejb with InitialContext and call your method. I didn't manage to get injecting working. If it is statefull just find way to keep the reference in some cache after you lookup it. -- 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: SuggestBox hides RootLayoutPanel and all its contents
Jorge, Can you use a DOM inspector to examine that white overlay? I would guess that you have an opaque glass panel and you just need to set some CSS to make it transparent. Knowing what that white thing really is would help. - Isaac On Mon, Jan 11, 2010 at 10:38 PM, Jorge jsle...@gmail.com wrote: It's been a couple of weeks since I posted this, I wonder if I'm asking a dumb newbie cuestion. I've searched this group and I can't find any solutions. Could anyone be so kind to point me in to the right direction? Thank you. On Dec 30 2009, 3:46 pm, Jorge jsle...@gmail.com wrote: I'm running 2.0 with Eclipse, plus IE 7. I created an application that uses UIBinder. The main object is a DockLayoutPanel that is added to the RootLayoutPanel, exactly like the Mail sample for 2.0. The Center container has a Widget that has aSuggestBoxand some TextBoxes, my problem is that when the pop-up of theSuggestBoxis shown, all the background goes white, and when its closed the form goes back to normal (the dialog contains the correct suggestions, so besides the visual problem, it's working fine) Since I'm using UIBinder, I used @UiField(provided=true) and then instantiated theSuggestBoxin the constructor of my Widget, because the constructor takes the Oracle. If I go to the EntryPoint and instead of creating the RootLayoutPanel, I add the Widget to RootPanel, works fine. Plus, this problem is not present in FF 3.5.6 I replicated the same problem, adding aSuggestBoxto the TopPanel on the Mail sample. I did the following: In TopPanel.ui.xml, inside an existing Div, added g:SuggestBoxui:field=test/g:SuggestBox In TopPanel.java added @UiField(provided=true)SuggestBoxtest; public TopPanel() { MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); oracle.add(Dog); oracle.add(Cat); oracle.add(Bird); test = newSuggestBox(oracle); initWidget(binder.createAndBindUi(this)); } And that generates the problem. Any ideas would be kindly appreciated Thank You Jorge -- 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: Blank Screen in IE8 but Normal in FF3.5
I have the same problem and also for me the x-ua-compatible tag fixed it. I created a project using the gwt eclipse plugin, here's the java file: === import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.ui.LayoutPanel; import com.google.gwt.user.client.ui.RootLayoutPanel; public class GwtSandbox implements EntryPoint { interface Binder extends UiBinderLayoutPanel, GwtSandbox { } private static final Binder binder = GWT.create(Binder.class); public void onModuleLoad() { LayoutPanel panel = binder.createAndBindUi(this); RootLayoutPanel.get().add(panel); } } === Here's the ui xml file: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:LayoutPanel g:layer g:LabelLorem ipsum.../g:Label /g:layer g:layer left='25%' right='25%' top='4px' height='10em' g:LabelHeader/g:Label /g:layer /g:LayoutPanel /ui:UiBinder I can see it working in Chrome and in FF, however in IE8 I don't see anything, if I inspect it using the DeveloperTool I see that the markup is there but is not displayed. If I add the x-ua-compatible tag to the html where the gwt script (nocache.js) is included, then it works in IE8. On Dec 30 2009, 3:12 am, jd jdpatter...@gmail.com wrote: I am having exactly the same problem with 2.0. Yes I am in standards IE8 standards mode and the problem is fixed by changing to IE7 standards mode with the tag meta http-equiv=X-UA-Compatible content=IE=7/ However, I have tested a simple DockLayoutPanel including a map (which I thought could be the problem) and it all seems to work fine in IE8 standards mode - so there must be some other factor in my code that prevents the DockLayoutPanel from displaying. I am happy for now with the meta tag but will try to figure out what the cause is some time. -- 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: MVP design help for Display interface
My solution to this problem was to create one presenter/view pair for the table as a whole and then a seperate presenter/view pair for the rows. This way the Cell click handlers are all in the same context. The table presenter gets new row instances from gin and initializes it by passing in a backing bean, that row presenter then exposes the cells as widgets which can be added to the table view. On Jan 8, 6:16 pm, Jeff Irving jeffirvin...@gmail.com wrote: Hello everyone. I'm hoping to elicit some suggestions regarding how to apply an MVP design to my particular application. My situation is that I have some tabular model data that includes row-specific user actions (ex. 'discard', 'reprocess', 'submit', etc.) that are ultimately presented as widgets (ex Label) to which action-specific ClickHandlers should be attached. Getting the model into the view has been discussed in other postings and I'm leaning towards passing in the model objects directly rather than having the Presenter decompose them into more generic elements. But I'm totally at a loss as to how the Presenter.Display interface should be structured to retrieve the row-specific user actions in a way that allows me to attach the correct ClickHandler logic. I've looked at the Contacts example and it was very helpful to demonstrate how to determine which row/Contact was clicked. But the same ClickHandler logic is applicable to each row. In my case, each displayed user action requires unique processing. I'd be happy to include some code examples if it helps clarify the question. But really, my situation is indicative of a generic design question: How can the Presenter.Display interface be structured to pass in values for display but to which specific ClickHandler logic be applied? In case it's worth mentioning, my current working solution has the Display interface simply provide a get method to retrieve the underlying Grid used in the View. The Presenter therefore controls the particular View and ClickHandler logic. It's working but it breaks the MVP design pattern. Any thoughts or suggestions are most welcome. Jeff -- 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: how to call EJB from GWT
What? ejb is much much more than, persistence layer. NahumMor may want to call ejb method that calculates something and does other processes so other things that do not involve persitence. So, explain to me how glead will answer his question, which is how is the best way to call stateful and stateless enterprise bean from gwt rpc ? I don't see the word persistence, do you? On Tue, Jan 12, 2010 at 8:19 PM, Diego Lovison diegolovi...@gmail.comwrote: lol On 12 jan, 15:10, mariyan nenchev nenchev.mari...@gmail.com wrote: @ Diego: Calling EJB method (almost) has nothing to do with glead. @NahumMor: It's simple lookup your ejb with InitialContext and call your method. I didn't manage to get injecting working. If it is statefull just find way to keep the reference in some cache after you lookup it. -- 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: SuggestBox MVP problem
this is so annoying! i cant bind my suggestBox to the view... is there any hope for this beeing fixed? or is suggestionBox just not supported? -- 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.
DialogBox issue with IE
Good day, I am facing a really strange problem with IE, which I think it is caused by the DialogBox, but I am not sure of this. I have A DialogBox which contains a DataTable ( one of our widgets) with some buttons. Every time I hover over one of the buttons (which fires a MouseOver event changing the style for the button) . The DataTable disappears and this only happens when is contained inside a DialogBox. Also I have notice if I don't change the style name of the button on the MouseOver event, this doesn't happens. This only happens on IE8, not in Firefox or Chrome or Safari. Does anyone know what could be the reason for this? I am suspecting IE doesn't handle the RootPanel correctly. I am using GWT 1.6. Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
GWT Incubator Status Update and Schedule
Incubator Users - The Google Web Toolkit Incubator project began as a proving grounds for new widgets to be vetted before joining the ranks of the GWT trunk. We've seen some success stories over the last year with EventHandlers, ClientBundle, and DatePicker, but for many of the widgets and libraries, Incubator has become an elephant graveyard. In order to address this issue, we will start graduating some of the libraries to GWT trunk, move some into separate projects, and discontinue development on others. Ultimately, we will wind down the incubator project completely. The schedule below shows the fate of each subproject in incubator. It's a tentative schedule, meaning that it could change as priorities shift. GWT 2.1 - *PagingScrollTable and FastTree* We are working on a new set of data backed widgets for GWT 2.1 that will include APIs for trees and tables. We will build upon the lessons learned with these incubator widgets, but the API for the new data backed widgets will evolve significantly from the current APIs. When the data backed widgets are added to GWT trunk, we will stop development on the PagingScrollTable and FastTree. - *Locale Selection* Selecting the locale on the server requires one less round trip to the server on startup and is needed for effective use of runtime locales selection. This library will be included in GWT 2.1. GWT 2.2 - *CollapsiblePanel* This widget will probably become a subclass of DockingLayoutPanel, similar to SplitLayoutPanel. - *SliderBar and ProgressBar* Both of these widgets currently require the use of a global timer, which has performance implications. If we can implement these without a resize timer, we will include them in GWT 2.2. If we cannot, we will discontinue development on them. - *Logging* The logging API may make it into GWT 2.1 if time permits. - *Form Validation* We will take a closer look at the form validation API in GWT 2.2.. Separate Project: - *SoundResource* SoundResource is a promising API for including sound in an application, but it makes sense to wait for HTML 5 features to become widely adopted before including it. We would like to move SoundResource into the gwt-voices project: http://code.google.com/p/gwt-voices/. - *Graphics* The graphics library provides a single, platform independent API that works on top of Canvas and VML. The library is not ready for GWT trunk, but this project is worth pursuing. - *HtmlDecorators* We will continue to work on this project to arbitrarily add decorations to widgets. As always, please feel free to reply with comments or suggestions. Thanks, John LaBanca on behalf of the GWT team -- 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.
How to listen to keyboard events in a Panel?
I'm really new to GWT so please point me in the right direction. I'm trying to create a Panel with widgets in it, in this case I created a FocusPanel and would like for the FocusPanel to listen to keyboard input. Just any buttonclick would be fine. But I can't seem to get it to get any events. See the code below for what I tried. What is wrong? public class VMyComponent extends FocusPanel { public VMyComponent() { addKeyPressHandler(new KeyPressHandler() { setElement(Document.get().createDivElement()); @Override public void onKeyPress(KeyPressEvent event) { Window.alert(OMG GWT PLZ ACTUALLY WURKZ FOR ONCE!); } }); } } -- 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: OOPHM is slow
I just started using OOPHM on my Mac (10.6.2) and it is very, very slow. I've tried all of the recommendations about changing the URL to include only localhost or 127.0.0.1 but I still have to wait nearly three minutes for my application to start. The program I'm writing is currently very small and only consists of less than 200 lines of code. It does import a JAR that contains definitions of a lot of objects and has some dependencies (Gilead, Hibernate, GXT) for the server side components but right now I'm just using basic GWT components. Does the size of the dependencies and included JARs matter? I ask because I notice that as soon as I start the application the traffic on port 9997 to and from my loopback interface is pegged at 1.5MB/sec in each direction for the entire three minutes the application is starting up. I stepped through my code with a debugger and the client side code gets set up, runs, then there's a three minute pause where all of this data goes back and forth, and then the server-side code runs. The client and server side code takes less than 1 second to finish so I don't think it's a bug in my code. I tried to capture the traffic in Wireshark to figure out what is getting sent but it looks like all of the packets are very small (~56 bytes) and trying to capture the whole session causes Wireshark to crash. Is anyone else seeing this loopback traffic problem? I assumed maybe the debugger is communicating my dependencies to the OOPHM plugin but my dependencies are nowhere near this large. What other information can I provide to help this get debugged? Thanks, Tim Mattison -- 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: MAC compatible
http://code.google.com/webtoolkit/gettingstarted.html#installing On Jan 9, 6:31 am, fmac81 fma...@gmail.com wrote: Is the Google SDK MAC compatible? It is a .zip file and does not work on my mac. 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.
Re: ImageResource: How to resize ?
Hello ppl, Well DataResources worked fine, but, what about the power of create a single set of images for many little images? There isn't a way to keep using the set of images (ImageResource) and resize one of those images? The example would be a resizable icon. -- Francisco Bischoff On 2 Jan, 21:48, fvisticot fvisti...@gmail.com wrote: Thank you thomas, your help is very usefull !!! Complete solution is available on my blog: http://fvisticot.blogspot.com/2010/01/scalable-image-with-gwt20-and.html On 2 jan, 17:55, Thomas Broyer t.bro...@gmail.com wrote: On Jan 2, 4:31 pm, fvisticot fvisti...@gmail.com wrote: I have anImageResourceused in an Image widget with an image size 800x600. I would like to resize this image dynamicaly. The pb seems to be that the image is part of the CSS background property...so when i resize or set the size of the image, only the viewport is modified, the image is not rescaled.. How to fill the image src attribute with the imageResourceData and not use the CSS background property ? Use a DataResource and its getUrl() instead of anImageResource. -- 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: MAC compatible
http://code.google.com/webtoolkit/gettingstarted.html#installing On Jan 9, 6:31 am, fmac81 fma...@gmail.com wrote: Is the Google SDK MAC compatible? It is a .zip file and does not work on my mac. 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.
GWT Validation Best Practice
Hi GWT Community I am in the process of evaluating GWT as a basis for building RIA's so am building out a basic form based application to test out GWT. So far my GWT experience has been really good however I appear to have hit a brick wall in terms of validation (such as basic client side form validation) as from what I can see GWT does not have any built in validation components so I would have to build validation components manually. From my investigations (including searching this group) I have not been able to come to any conclusions on best practice for validation with GWT, I have seen there are a number of separate GWT validation projects available however I have not been able to come to a conclusion on a best practice. Please could you share your personally experiences around GWT validation and share any best practices? NOTE: I know that there are also a couple of 3rd party libraries such as SmartGWT and Ext GWT that provide built in validation techniques however I would like to discount these for now due to licensing questions (particularly over Ext GWT) and as I understand from my research these libraries do not seem to benefit from key GWT features such as code splitting, code elimination, etc and don't really adhere to GWT 'best practice' (I hope I'm not opening a can of worms with this statement) Many Thanks Simon -- 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: MVP Architecture source code?
Hi, Can someone post the link to the MVP/DI/Event Bus/Best Practices Contacts source example. I've looked around and don't see it. Thanks, Ralph On Jan 4, 10:31 am, Walter waltervanderl...@gmail.com wrote: @Chris: Thanks for the source code! The Contacts example is clear and well written and I finally start to understand the best practices mentioned on Google I/O. Thanks! - Walter On 28 dec 2009, 04:18, Chris Ramsdale cramsd...@google.com wrote: I'll be adding the source for this tutorial asap, and will update everyone when it's available. - Chris On Tue, Dec 22, 2009 at 4:11 PM, Dalla dalla_man...@hotmail.com wrote: Don´t know if it´s been there for some time now, but I noticed that a section named MVP Architecture has been added to the GWT Tutorial section. It looks a lot like the best practice example that Ray Ryan used in hos GWT Best practice session on Google I/O 2009. It there any chance of the community seeing the entire source code of this example? -- 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%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. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CodeSplitting and External Javascript
I am using an external javascript (for gwt-OpenLayers specifically) and currently have this being included in my host page by adding script src=http://openlayers.org/api/2.8/OpenLayers.js;/script This script is quite large and I would like to load this in a separate split point. I have tried adding the script node dynamically inside the onSuccess method GWT.runAsync(new RunAsyncCallback() { public void onSuccess() { Element node= DOM.createElement(script); node.setAttribute(src, http://openlayers.org/api/2.8/ OpenLayers.js); RootPanel.getBodyElement().append(node); //Code requiring that OpenLayers.js be loaded Using Firebug it looks like the node is being added to the DOM unlike the other method there is no guarantee that the script is loaded before the onModuleLoad is called so the script isn't loaded yet. Any sugesstions? -- 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: Getting RuntimeException in development mode for gwt2.0
I'm also seeing this problem with gwt 2.0 and gwt-log 3.0.1. Full build works well. Development mode gets the message: java.lang.RuntimeException: Deferred binding failed for 'com.allen_sauer.gwt.log.client.impl.LogImpl' (did you forget to inherit a required module?) On Dec 28 2009, 7:19 am, Vikas vikas.m.ya...@gmail.com wrote: It is working fine with gwt-log-2.6.2, but I've upgraded gwt-log with 3.0.0 which is compatible with gwt2.0 On Dec 24, 3:57 pm, Shawn Brown big.coffee.lo...@gmail.com wrote: inherits name=com.allen_sauer.gwt.log.gwt-log-ERROR / I'm using that with 2.0 fine. What version do you have. I've got 2.6.2 which is I think for gwt 1.7 but ...seems ok. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Read-only RichTextArea?
com.google.gwt.core.client.JavaScriptException: (TypeError): iframe.contentWindow is null What do you think might be causing this null pointer exception ? On Jan 12, 1:23 pm, Manuel Carrasco Moñino man...@apache.org wrote: This method also works in IE private native void setEnabled(Element iframe, boolean b) /*-{ var doc = iframe.contentWindow.document; if (doc.body.contentEditable) doc.body.contentEditable = b; else doc.designMode = b ? 'On' : 'Off'; }-*/; On Tue, Jan 12, 2010 at 12:10 PM, Manuel Carrasco Moñino man...@apache.orgwrote: You can try setting on/off the iframe designMode attribute , something like this. RichTextArea area = new RichTextArea(); setEnabled(area.getElement(), false); native void setEnabled(Element iframe, boolean b) /*-{ iframe.contentWindow.document.designMode = b ? 'On' : 'Off'; }-*/; It works for ff and webkit, ie seems not working. Regards Manuel Carrasco Moñino On Sun, Jan 3, 2010 at 6:05 AM, vacorda victoraco...@gmail.com wrote: You can try something like this this: DOM.setElementPropertyBoolean(getElement(), disabled, true or false); On Jan 2, 5:56 pm, Elchin elchin.asga...@gmail.com wrote: One way would be catching all events, and redoing them, but that is a big time hassle, I wonder if there is any way to do it from DOM? On Dec 16 2009, 6:28 pm, Elchin elchin.asga...@gmail.com wrote: Is there a way to makeRichTextArearead-only like TextArea.setReadOnly (true)? What I need in my application is the possibility to edit the rich text only by buttons in toolbar, and not through typing. -- 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%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. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Return a JDBC ResultSet from RPC via DTO
Hi Russ, i am also new to GWT but i think Gilead (http://sourceforge.net/ projects/gilead/) should help you to get the info as a DTO ! br johannes On 11 Jan., 16:38, Russ r...@epcinternet.com wrote: Hi, I understand that I can't return an actual JDBC ResultSet from an RPC. Can someone point me to an easy example of how to use a ArrayList or a custom DTO that I can use to transfer the ResultSet data back to the client? Hopefully this example can include the definitions for TheService.java, TheServiceAsync.java and TheServiceImpl.java. I don't need the entire code - just the function/class definitions, and the line that casts the ResultSet. Much thanks in advance. -- 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 - Problem with Eclipse plugin and UiBinder Field xxx has no corresponding field in template file yyy.ui.xml
Hi, I had the same problem. Source folder in my buildpath had Include: (All) I replaced it to Included : **/*.java. It worked correctly. After than I removed that (so my buildpath had Include: (All) again) and now it is working correctly also. I hope it's help for you! (Sorry for my easy sentences, I am learning english ;) On 2009 dec. 14, 11:46, Julien Ortega dun7...@gmail.com wrote: Hi, I had the same problem and it was only a matter of buildpath. Your source folder in your buildpath can not have an Included : **/ *.java but Included : (All) because of the ui.xml files. Maybe you have the same problem ? On Dec 14, 9:47 am, hoxbro shox...@gmail.com wrote: Hi, Thanks for feedback and sorry for my late reply. First, could you try forcing a clean build of your project? (Project Clean) This will force a re-indexing of the UiBinder indices. A clean build removes Eclipse warnings. Stopping/Starting Development Mode does the same. Also, could you check your Eclipse log for any errors? The log file lives at your workspace/.metadata/.log . Using the Wizard to add a new UiBinder generates no entries in the log file.. - Which package does your Pjat class live in? com.hoxbro - What version of Eclipse are you using? java.version=1.6.0_12 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Eclipse Build: 20090621-0832 Eclipse distro: Galileo JEE (win32) GWT and GWT Eclipse Plugin installed from Eclipse (following the instructionshttp://code.google.com/intl/da/webtoolkit/usingeclipse.html) - What operating system are you running? Win XP (SP3) Thanks, /Søren -- 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.
avoid the use of ActiveX-Objects
Hi there, we are writing an GWT Business Application and have to roll it out on IE6-Browsers with ActiveX disabled :'(. Is it possible to tell the compiler not to use activeX or how can we avoid the use of ActiveX-Objects. Asking for alms Tobias -- 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: MVP Architecture source code?
http://code.google.com/webtoolkit/doc/latest/tutorial/projects/Contacts.zip On Mon, Jan 11, 2010 at 11:42 PM, Ralph fed...@gmail.com wrote: Hi, Can someone post the link to the MVP/DI/Event Bus/Best Practices Contacts source example. I've looked around and don't see it. Thanks, Ralph On Jan 4, 10:31 am, Walter waltervanderl...@gmail.com wrote: @Chris: Thanks for the source code! The Contacts example is clear and well written and I finally start to understand the best practices mentioned on Google I/O. Thanks! - Walter On 28 dec 2009, 04:18, Chris Ramsdale cramsd...@google.com wrote: I'll be adding the source for this tutorial asap, and will update everyone when it's available. - Chris On Tue, Dec 22, 2009 at 4:11 PM, Dalla dalla_man...@hotmail.com wrote: Don´t know if it´s been there for some time now, but I noticed that a section named MVP Architecture has been added to the GWT Tutorial section. It looks a lot like the best practice example that Ray Ryan used in hos GWT Best practice session on Google I/O 2009. It there any chance of the community seeing the entire source code of this example? -- 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.comgoogle-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.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: OOPHM is slow
Although this smells of a network configuration issue, one suggestion you could try is to set the log level to Debug or lower. Debug-Debug Configurations-GWT-Log level. Try that, and let us know if anything suspect is output. - Chris On Mon, Jan 11, 2010 at 11:56 AM, timmattison timmatti...@gmail.com wrote: I just started using OOPHM on my Mac (10.6.2) and it is very, very slow. I've tried all of the recommendations about changing the URL to include only localhost or 127.0.0.1 but I still have to wait nearly three minutes for my application to start. The program I'm writing is currently very small and only consists of less than 200 lines of code. It does import a JAR that contains definitions of a lot of objects and has some dependencies (Gilead, Hibernate, GXT) for the server side components but right now I'm just using basic GWT components. Does the size of the dependencies and included JARs matter? I ask because I notice that as soon as I start the application the traffic on port 9997 to and from my loopback interface is pegged at 1.5MB/sec in each direction for the entire three minutes the application is starting up. I stepped through my code with a debugger and the client side code gets set up, runs, then there's a three minute pause where all of this data goes back and forth, and then the server-side code runs. The client and server side code takes less than 1 second to finish so I don't think it's a bug in my code. I tried to capture the traffic in Wireshark to figure out what is getting sent but it looks like all of the packets are very small (~56 bytes) and trying to capture the whole session causes Wireshark to crash. Is anyone else seeing this loopback traffic problem? I assumed maybe the debugger is communicating my dependencies to the OOPHM plugin but my dependencies are nowhere near this large. What other information can I provide to help this get debugged? Thanks, Tim Mattison -- 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.
[ANN] Gilead 1.3
Hello, I am pleased to announce the new release of Gilead, an Open-Source framework for seamless intregration of Hibernate and GWT. This new release brings new features, such as - Predefined remote services, for both GWT : * The Loading service allows you to load an entity or a lazy association from the GWT side, * The Request service brings the ability to execute a HQL request directly from the GWT side, - A new specific transport annotation (@LimitedAccess) to implement custom access to entity fields (role based for example) - Lazy property checking on GWT side, to know if a null association on client side was already null on server or just lazy but not loaded (and thus replaced with null by Gilead) - A ConfigurationHelper class, to limit Gilead configuration to one line of code A specific effort has also been made to improve performances and GWT serialization. Finally, this release also fixes many issues, reported since 1.2.3, especially on persistent collections. Hope this helps ! Bruno -- 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: Gilead 1.3
Oups, I forgot to post the project URL : http://gilead.sourceforge.net Regards Bruno On 12 jan, 21:09, noon bruno.marches...@gmail.com wrote: Hello, I am pleased to announce the new release of Gilead, an Open-Source framework for seamless intregration of Hibernate and GWT. This new release brings new features, such as - Predefined remote services, for both GWT : * The Loading service allows you to load an entity or a lazy association from the GWT side, * The Request service brings the ability to execute a HQL request directly from the GWT side, - A new specific transport annotation (@LimitedAccess) to implement custom access to entity fields (role based for example) - Lazy property checking on GWT side, to know if a null association on client side was already null on server or just lazy but not loaded (and thus replaced with null by Gilead) - A ConfigurationHelper class, to limit Gilead configuration to one line of code A specific effort has also been made to improve performances and GWT serialization. Finally, this release also fixes many issues, reported since 1.2.3, especially on persistent collections. Hope this helps ! Bruno -- 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.
How to dynamically update AnnotatedTimeLine?
Hello, How do I dynamically update an AnnotatedTimeline in the GWT Visualization toolkit? I changed its underline DataTable but the chart was not refreshed automatically after the change. I noticed that the redraw() function in the JavaScript API but didn't see the same redraw function on the Java side. What am I missing? Thanks, yc -- 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 RPC not picking up custom generated Serializable classes
My comments/questions inline: The generated class extends this AbstractRpcObserver (and is thereby Serializable) and implements the TestMessageListener interface. An instance of the generated class is used as argument in the addMessageListener method invoction in the RPC service. If I understand this correctly, your custom generator is generating the TestMessageListenerImpl class you reference above. Correct? This is part of a framework for asynchronous invocations of observers in the client from the server. The idea is to have the framework generate the plumbing code so that any interface can be used as a listener to be added to the server. Everything works like a charm in GWT 1.7.1, but as you say, that could be just a happy coincidence. Yes. Either happy coincidence, or the order in which we ran the generators was different in 1.7.1. Not necessarily my area of expertise, but I'm asking around back here. Would you mind emailing me your gwt.rpc file? I would like to see what classes have been whitelisted. /Martin On 11 Jan, 23:03, Chris Ramsdale cramsd...@google.com wrote: Martin, The RPC serialization generator is most likely being run before your custom generator. As a result serialization code, whitelisting, etc... are not being created. Unfortunately there is no way of guaranteeing that your generator is run before the RPC serialization generator. That said, I did have a couple of thought: 1. Within your RPCs, what class is your server expecting? 2. Rather than generate classes that you send across the wire, would it be possible to send an interface, and generate client-side classes that understand how to instantiate themselves based on said interface? 2010/1/11 Martin Söderström martin.k.soderst...@gmail.com Hi, I have a custom Generator (subclassing com.google.gwt.core.ext.Generator) class that generates a class to be used as argument in an RPC method. The generated class implements Serializable and the interface that the RPC method expects. This used to work in GWT 1.7, but with GWT 2.0 I get a com.google.gwt.user.client.rpc.SerializationException. Using IsSerializable instead of Serializable does not make any difference. It feels like, in GWT 2.0, the scanning for RPC serializable classes does not take into consideration the custom generated classes. Does anyone know anything about this? A possible workaround? /Martin -- 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.comgoogle-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.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: GWT Validation Best Practice
There is a validation library in gwt-incubator but I haven't used it yet. It is on my todo list to explore it. There isn't much doc to it so you will have to dissect the code in the jar file. On Jan 12, 6:30 am, simonob007 simonob...@googlemail.com wrote: Hi GWT Community I am in the process of evaluating GWT as a basis for building RIA's so am building out a basic form based application to test out GWT. So far my GWT experience has been really good however I appear to have hit a brick wall in terms of validation (such as basic client side form validation) as from what I can see GWT does not have any built in validation components so I would have to build validation components manually. From my investigations (including searching this group) I have not been able to come to any conclusions on best practice for validation with GWT, I have seen there are a number of separate GWT validation projects available however I have not been able to come to a conclusion on a best practice. Please could you share your personally experiences around GWT validation and share any best practices? NOTE: I know that there are also a couple of 3rd party libraries such as SmartGWT and Ext GWT that provide built in validation techniques however I would like to discount these for now due to licensing questions (particularly over Ext GWT) and as I understand from my research these libraries do not seem to benefit from key GWT features such as code splitting, code elimination, etc and don't really adhere to GWT 'best practice' (I hope I'm not opening a can of worms with this statement) Many Thanks Simon -- 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: OOPHM is slow
I changed my debug level from Info to Debug and got lots of additional output but nothing that looked like it was the culprit. My application runs like this: 1) onModuleLoad is called, builds the UI, and fires off a GWT-RPC call 2) The server receives the GWT-RPC call, connects to a Hibernate database, pulls some data (~150K) and sends it to the client 3) The client receives the response and populates a FlexTable with the data Between 2 and 3 is where the storm of traffic occurs. With the new debug level I don't really get much more insight since I see that Jetty has sent the response to the browser and that's it. I have breakpoints set on my GWT-RPC callback's onFailure and onSuccess method and it doesn't get to either of those branches until minutes later. Is there somewhere else I can look or something else I can try? The last message in the log before the storm: 200 - POST /app/service (127.0.0.1) 165739 bytes Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: no-cache Referer: http://localhost:/app/hosted.html?app X-GWT-Permutation: HostedMode X-GWT-Module-Base: http://localhost:/app/ Content-Type: text/x-gwt-rpc; charset=utf-8 Content-Length: 175 Pragma: no-cache Response headers Content-Encoding: gzip Content-Length: 165739 Content-Type: application/json; charset=utf-8 Content-Disposition: attachment The first message after it hits onSuccess and then keeps going at a normal speed: 304 - GET /app/gwt/standard/images/hborder.png (127.0.0.1) Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:/app/gwt/standard/standard.css If-Modified-Since: Tue, 03 Nov 2009 15:44:06 GMT Cache-Control: max-age=0 Response headers Any help would be great. Tim On Tue, Jan 12, 2010 at 3:04 PM, Chris Ramsdale cramsd...@google.comwrote: Although this smells of a network configuration issue, one suggestion you could try is to set the log level to Debug or lower. Debug-Debug Configurations-GWT-Log level. Try that, and let us know if anything suspect is output. - Chris On Mon, Jan 11, 2010 at 11:56 AM, timmattison timmatti...@gmail.comwrote: I just started using OOPHM on my Mac (10.6.2) and it is very, very slow. I've tried all of the recommendations about changing the URL to include only localhost or 127.0.0.1 but I still have to wait nearly three minutes for my application to start. The program I'm writing is currently very small and only consists of less than 200 lines of code. It does import a JAR that contains definitions of a lot of objects and has some dependencies (Gilead, Hibernate, GXT) for the server side components but right now I'm just using basic GWT components. Does the size of the dependencies and included JARs matter? I ask because I notice that as soon as I start the application the traffic on port 9997 to and from my loopback interface is pegged at 1.5MB/sec in each direction for the entire three minutes the application is starting up. I stepped through my code with a debugger and the client side code gets set up, runs, then there's a three minute pause where all of this data goes back and forth, and then the server-side code runs. The client and server side code takes less than 1 second to finish so I don't think it's a bug in my code. I tried to capture the traffic in Wireshark to figure out what is getting sent but it looks like all of the packets are very small (~56 bytes) and trying to capture the whole session causes Wireshark to crash. Is anyone else seeing this loopback traffic problem? I assumed maybe the debugger is communicating my dependencies to the OOPHM plugin but my dependencies are nowhere near this large. What other information can I provide to help this get debugged? Thanks, Tim Mattison -- 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
Re: GWT Incubator Status Update and Schedule
It's great to see that there's a road map for migrating those widgets to the trunk! We can use most of those features now (in particular: Validation, Slider, ProgressBar, Graphics, and Locale selection). Can we still expect to see a 2.0-compatible version of the current gwt- incubator.jar? On Jan 12, 10:05 am, John LaBanca jlaba...@google.com wrote: Incubator Users - The Google Web Toolkit Incubator project began as a proving grounds for new widgets to be vetted before joining the ranks of the GWT trunk. We've seen some success stories over the last year with EventHandlers, ClientBundle, and DatePicker, but for many of the widgets and libraries, Incubator has become an elephant graveyard. In order to address this issue, we will start graduating some of the libraries to GWT trunk, move some into separate projects, and discontinue development on others. Ultimately, we will wind down the incubator project completely. The schedule below shows the fate of each subproject in incubator. It's a tentative schedule, meaning that it could change as priorities shift. GWT 2.1 - *PagingScrollTable and FastTree* We are working on a new set of data backed widgets for GWT 2.1 that will include APIs for trees and tables. We will build upon the lessons learned with these incubator widgets, but the API for the new data backed widgets will evolve significantly from the current APIs. When the data backed widgets are added to GWT trunk, we will stop development on the PagingScrollTable and FastTree. - *Locale Selection* Selecting the locale on the server requires one less round trip to the server on startup and is needed for effective use of runtime locales selection. This library will be included in GWT 2.1. GWT 2.2 - *CollapsiblePanel* This widget will probably become a subclass of DockingLayoutPanel, similar to SplitLayoutPanel. - *SliderBar and ProgressBar* Both of these widgets currently require the use of a global timer, which has performance implications. If we can implement these without a resize timer, we will include them in GWT 2.2. If we cannot, we will discontinue development on them. - *Logging* The logging API may make it into GWT 2.1 if time permits. - *Form Validation* We will take a closer look at the form validation API in GWT 2.2.. Separate Project: - *SoundResource* SoundResource is a promising API for including sound in an application, but it makes sense to wait for HTML 5 features to become widely adopted before including it. We would like to move SoundResource into the gwt-voices project:http://code.google.com/p/gwt-voices/. - *Graphics* The graphics library provides a single, platform independent API that works on top of Canvas and VML. The library is not ready for GWT trunk, but this project is worth pursuing. - *HtmlDecorators* We will continue to work on this project to arbitrarily add decorations to widgets. As always, please feel free to reply with comments or suggestions. Thanks, John LaBanca on behalf of the GWT team -- 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: OOPHM is slow
Tim, Are you filtering your Hibernate objects or translating them to DTOs (to remove dynamic proxies etc) before serialising them? If the answer is no to the above, then you might be falling foul to circular references or Hibernate fetching more data than you expect. As an experiment, is it possible to try hardcoding some of your objects with a minimal data set and see how your app performs? Cheers, Chris. 2010/1/12 Tim Mattison timmatti...@gmail.com I changed my debug level from Info to Debug and got lots of additional output but nothing that looked like it was the culprit. My application runs like this: 1) onModuleLoad is called, builds the UI, and fires off a GWT-RPC call 2) The server receives the GWT-RPC call, connects to a Hibernate database, pulls some data (~150K) and sends it to the client 3) The client receives the response and populates a FlexTable with the data Between 2 and 3 is where the storm of traffic occurs. With the new debug level I don't really get much more insight since I see that Jetty has sent the response to the browser and that's it. I have breakpoints set on my GWT-RPC callback's onFailure and onSuccess method and it doesn't get to either of those branches until minutes later. Is there somewhere else I can look or something else I can try? The last message in the log before the storm: 200 - POST /app/service (127.0.0.1) 165739 bytes Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: no-cache Referer: http://localhost:/app/hosted.html?app X-GWT-Permutation: HostedMode X-GWT-Module-Base: http://localhost:/app/ Content-Type: text/x-gwt-rpc; charset=utf-8 Content-Length: 175 Pragma: no-cache Response headers Content-Encoding: gzip Content-Length: 165739 Content-Type: application/json; charset=utf-8 Content-Disposition: attachment The first message after it hits onSuccess and then keeps going at a normal speed: 304 - GET /app/gwt/standard/images/hborder.png (127.0.0.1) Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:/app/gwt/standard/standard.css If-Modified-Since: Tue, 03 Nov 2009 15:44:06 GMT Cache-Control: max-age=0 Response headers Any help would be great. Tim On Tue, Jan 12, 2010 at 3:04 PM, Chris Ramsdale cramsd...@google.comwrote: Although this smells of a network configuration issue, one suggestion you could try is to set the log level to Debug or lower. Debug-Debug Configurations-GWT-Log level. Try that, and let us know if anything suspect is output. - Chris On Mon, Jan 11, 2010 at 11:56 AM, timmattison timmatti...@gmail.comwrote: I just started using OOPHM on my Mac (10.6.2) and it is very, very slow. I've tried all of the recommendations about changing the URL to include only localhost or 127.0.0.1 but I still have to wait nearly three minutes for my application to start. The program I'm writing is currently very small and only consists of less than 200 lines of code. It does import a JAR that contains definitions of a lot of objects and has some dependencies (Gilead, Hibernate, GXT) for the server side components but right now I'm just using basic GWT components. Does the size of the dependencies and included JARs matter? I ask because I notice that as soon as I start the application the traffic on port 9997 to and from my loopback interface is pegged at 1.5MB/sec in each direction for the entire three minutes the application is starting up. I stepped through my code with a debugger and the client side code gets set up, runs, then there's a three minute pause where all of this data goes back and forth, and then the server-side code runs. The client and server side code takes less than 1 second to finish so I don't think it's a bug in my code. I tried to capture the traffic in Wireshark to figure out what is getting sent but it looks like all of the packets are very small (~56 bytes) and trying to capture the whole session causes Wireshark to crash. Is anyone else seeing this loopback traffic problem? I assumed maybe the debugger is communicating my dependencies to the OOPHM
Multiple Methods Within One RPC Service?
I have a single app that needs to call several different methods from the server. Is it better to have all the methods contained in one RPC service, or should I have a speerate service for each method? (By Service I mean the Service.java, ServiceAsync.java and ServiceImpl.java files) Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 Incubator Status Update and Schedule
And the now wondering projected release date for GWT 2.1 to make it's debut -- 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: OOPHM is slow
That's what I thought originally but I can see that it's only pulling back 165739 bytes from the RPC. When I don't return anything it turns out that it runs quickly so it obviously must be related to that. I'm not using DTOs but where is it trying to fetch the data from if it's not getting pulled back from the POST? I don't see any traffic to the database server so it must be doing something weird locally (like a circular reference as you suggested). Shouldn't it give up on circular references a bit faster than that if that's the case? Tim On Tue, Jan 12, 2010 at 3:56 PM, Chris Lowe chris.lowe...@gmail.com wrote: Tim, Are you filtering your Hibernate objects or translating them to DTOs (to remove dynamic proxies etc) before serialising them? If the answer is no to the above, then you might be falling foul to circular references or Hibernate fetching more data than you expect. As an experiment, is it possible to try hardcoding some of your objects with a minimal data set and see how your app performs? Cheers, Chris. 2010/1/12 Tim Mattison timmatti...@gmail.com I changed my debug level from Info to Debug and got lots of additional output but nothing that looked like it was the culprit. My application runs like this: 1) onModuleLoad is called, builds the UI, and fires off a GWT-RPC call 2) The server receives the GWT-RPC call, connects to a Hibernate database, pulls some data (~150K) and sends it to the client 3) The client receives the response and populates a FlexTable with the data Between 2 and 3 is where the storm of traffic occurs. With the new debug level I don't really get much more insight since I see that Jetty has sent the response to the browser and that's it. I have breakpoints set on my GWT-RPC callback's onFailure and onSuccess method and it doesn't get to either of those branches until minutes later. Is there somewhere else I can look or something else I can try? The last message in the log before the storm: 200 - POST /app/service (127.0.0.1) 165739 bytes Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: no-cache Referer: http://localhost:/app/hosted.html?app X-GWT-Permutation: HostedMode X-GWT-Module-Base: http://localhost:/app/ Content-Type: text/x-gwt-rpc; charset=utf-8 Content-Length: 175 Pragma: no-cache Response headers Content-Encoding: gzip Content-Length: 165739 Content-Type: application/json; charset=utf-8 Content-Disposition: attachment The first message after it hits onSuccess and then keeps going at a normal speed: 304 - GET /app/gwt/standard/images/hborder.png (127.0.0.1) Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:/app/gwt/standard/standard.css If-Modified-Since: Tue, 03 Nov 2009 15:44:06 GMT Cache-Control: max-age=0 Response headers Any help would be great. Tim On Tue, Jan 12, 2010 at 3:04 PM, Chris Ramsdale cramsd...@google.comwrote: Although this smells of a network configuration issue, one suggestion you could try is to set the log level to Debug or lower. Debug-Debug Configurations-GWT-Log level. Try that, and let us know if anything suspect is output. - Chris On Mon, Jan 11, 2010 at 11:56 AM, timmattison timmatti...@gmail.comwrote: I just started using OOPHM on my Mac (10.6.2) and it is very, very slow. I've tried all of the recommendations about changing the URL to include only localhost or 127.0.0.1 but I still have to wait nearly three minutes for my application to start. The program I'm writing is currently very small and only consists of less than 200 lines of code. It does import a JAR that contains definitions of a lot of objects and has some dependencies (Gilead, Hibernate, GXT) for the server side components but right now I'm just using basic GWT components. Does the size of the dependencies and included JARs matter? I ask because I notice that as soon as I start the application the traffic on port 9997 to and from my loopback interface is pegged at 1.5MB/sec in each direction for the entire three minutes the application is starting up. I stepped through
Re: GWT maps: multiple maps InfoWindow problem
Thanks for your answer! The code crashes only if the first map with the same code was initialized previously. This means that I can't initialize another map with info window if I have another map already initialized. Is there some workaround? For example can I manualy unwrap info window object if I would create another? Thank you. On 11 янв, 21:47, Eric Ayers zun...@google.com wrote: What this exception means is that the same JavaScript object has been attempted to be 'wrapped' more than once by the JSIO library used in the Maps API to interface with JavaScript. One divergence between the Maps JavaScript API and the GWT bindings to the API is that in the Maps API, there is one info window per map. The GWT bindings make it seem as though you can make as many info window objects as you like, but in fact, there is only one underneath. I can see how this might cause a problem. Can you reproduce this in a small complete sample showing both adds? Besides the InfoWindow thing I just mentioned, I'm wondering what Grid is, as you're passing it as a parameter to construct the info window. Also, make sure to step through the code to see if it is crashing in info.open() somewhere or within the constructor for InfoWindowContent. -Eric. On Mon, Jan 11, 2010 at 11:03 AM, morfeusys morfeu...@gmail.com wrote: Hi. I found next problem with my gwt-maps based project. I use several map components on one page. The both components are in pop-up windows. The both components should provide handler for on map click event. When the first map component initialized - everything works ok. But when the second tries to add onclick handler - the runtime error occurs: Deferred binding failed for 'com.google.gwt.maps.client.impl.EventImpl' (did you forget to inherit a required module?) Stack trace: com.google.gwt.maps.jsio.client.MultipleWrapperException: null at com.google.gwt.maps.jsio.client.impl.JSONWrapperUtil.throwMultipleWrapperEx ception (JSONWrapperUtil.java:169) 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.MethodAdaptor.invoke (MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke (MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke (OophmSessionHandler.java:157) ... My code is: ... Grid grid = new Grid(4, 2); Marker marker = new Marker(point); map.addOverlay(marker); InfoWindow info = map.getInfoWindow(); info.open(marker, new InfoWindowContent(grid)); ... The program crashes on line info.open(marker, new InfoWindowContent (grid));. The interesting thing is that if I change the order of initialization of first and second map components in pop-up windows, the problem occurs only on those component which was initialized last. Has anybody seen such problem? 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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: SplitLayoutPanel - Is there a way to set splitter position programmatically?
Hi Shiang I posted a solution for this in the following thread http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/d08a30d356aef5c1 Cheers Gabriel On Dec 5 2009, 12:23 pm, shiang sfk...@gmail.com wrote: Hi all, Do you know is there any workaround solutions to set the splitter position programmatically of aSplitLayoutPanel? (example: HoriozontalSplitPanel has the setPosition() method butSplitLayoutPaneldoes not have). Thank you, Shiang -- 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.
GWT RPC calls run in a separate thread on the server??
Hello all, My understanding was that each call to a method in GWT service class that implements RemoteService would run in a new thread on the server. However , we have logged using, System.out.println (Thread.currentThread()), the threads running on the server-side code and get something that looks like: Thread[http--Processor2,5,main] Thread[http--Processor2,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor2,5,main] Thread[http--Processor2,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor3,5,main] Thread[http--Processor2,5,main] It looks like only 2 threads are being used in the server code and there is some random slection happening as to which one is active when the service call occurs. Am I mistaken? Namely, erver calls do not run in a separate thread? Any help would be appreciated. -Danny -- 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 Incubator Status Update and Schedule
On Jan 12, 1:05 pm, John LaBanca jlaba...@google.com wrote: Incubator Users - The Google Web Toolkit Incubator project began as a proving grounds for new widgets to be vetted before joining the ranks of the GWT trunk. We've seen some success stories over the last year with EventHandlers, ClientBundle, and DatePicker, but for many of the widgets and libraries, Incubator has become an elephant graveyard. Will the TableModel classes and the CellRenderer classes make it into the GWT trunk? If the table widgets go across, will they be redone to work with GWTEvents instead of AbstractEvent? Can I work with only one type of HandlerManager? Respectfully, Eric Jablow -- 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 Incubator Status Update and Schedule
+1 For at least doing another release compatible with gwt 2, I use the FastTree and the PagingScrollTable, and it will be nice to have a version of those widgets that support the new layout system, for what I saw in the trunk the seem to be already compatible with the new layout, although I have not tested them Cheers Gabriel On Jan 12, 6:05 pm, John LaBanca jlaba...@google.com wrote: Incubator Users - The Google Web Toolkit Incubator project began as a proving grounds for new widgets to be vetted before joining the ranks of the GWT trunk. We've seen some success stories over the last year with EventHandlers, ClientBundle, and DatePicker, but for many of the widgets and libraries, Incubator has become an elephant graveyard. In order to address this issue, we will start graduating some of the libraries to GWT trunk, move some into separate projects, and discontinue development on others. Ultimately, we will wind down the incubator project completely. The schedule below shows the fate of each subproject in incubator. It's a tentative schedule, meaning that it could change as priorities shift. GWT 2.1 - *PagingScrollTable and FastTree* We are working on a new set of data backed widgets for GWT 2.1 that will include APIs for trees and tables. We will build upon the lessons learned with these incubator widgets, but the API for the new data backed widgets will evolve significantly from the current APIs. When the data backed widgets are added to GWT trunk, we will stop development on the PagingScrollTable and FastTree. - *Locale Selection* Selecting the locale on the server requires one less round trip to the server on startup and is needed for effective use of runtime locales selection. This library will be included in GWT 2.1. GWT 2.2 - *CollapsiblePanel* This widget will probably become a subclass of DockingLayoutPanel, similar to SplitLayoutPanel. - *SliderBar and ProgressBar* Both of these widgets currently require the use of a global timer, which has performance implications. If we can implement these without a resize timer, we will include them in GWT 2.2. If we cannot, we will discontinue development on them. - *Logging* The logging API may make it into GWT 2.1 if time permits. - *Form Validation* We will take a closer look at the form validation API in GWT 2.2.. Separate Project: - *SoundResource* SoundResource is a promising API for including sound in an application, but it makes sense to wait for HTML 5 features to become widely adopted before including it. We would like to move SoundResource into the gwt-voices project:http://code.google.com/p/gwt-voices/. - *Graphics* The graphics library provides a single, platform independent API that works on top of Canvas and VML. The library is not ready for GWT trunk, but this project is worth pursuing. - *HtmlDecorators* We will continue to work on this project to arbitrarily add decorations to widgets. As always, please feel free to reply with comments or suggestions. Thanks, John LaBanca on behalf of the GWT team -- 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: Multiple Methods Within One RPC Service?
I would only use one service until it got too big, or until your service calls fall into some sort of natural hierarchy, e.g., CustomerServices, OrderServices, etc. More Service classes mean more overhead in the web.xml, in the app xml file, etc. However, clarity of intent should be the guiding principle. On Jan 12, 1:59 pm, Russ r...@epcinternet.com wrote: I have a single app that needs to call several different methods from the server. Is it better to have all the methods contained in one RPC service, or should I have a speerate service for each method? (By Service I mean the Service.java, ServiceAsync.java and ServiceImpl.java files) Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Use smartgwt or not
Incorrect, SmartGWT allows both. Purchasing a license does not imply that you *must* use the closed-source server-side portion. If you use just the capabilities of SmartGWT LGPL, you can offer the LGPL licensing terms to customers that prefer it, and you can purchase a license from Isomorphic to obtain different terms for customers who do not want the LGPL license. Several of our customers do this for precisely this reason (needing an all-OSS version of their product). On Jan 4, 3:44 pm, Open eSignForms yoz...@gmail.com wrote: As for SmartGWT, their LGPL product looks great and would pose no issue, but if you want their more advanced stuff for server-side code, you'd need to go commercial, which itself is not bad for us, but then it makes it impossible for us to offer our code as open source -- we want to do both open source for the open source community, but know that we have to offer commercial licenses to our business customers who demand that their systems be allowed to be proprietary. -- 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: OOPHM is slow
Hi Tim, It's still conceivable for a circular reference (or at least massively repeated objects) to be at play here. Your response size is 165739 bytes *compressed* size - many identical objects could compress to something relatively small and their expansion could cause issues. Also with Hibernate you most likely won't see a lot of database traffic from repeated objects as subsequent fetch requests will hit the session's level 1 cache. A quicker test could be to temporarily disable gzip encoding in your browser, for example here are instructions for FireFox: http://kb.mozillazine.org/Network.http.accept-encoding With gzip disabled, what size response does Jetty report? BTW - which browser are you using? Cheers, Chris. http://kb.mozillazine.org/Network.http.accept-encoding 2010/1/12 Tim Mattison timmatti...@gmail.com That's what I thought originally but I can see that it's only pulling back 165739 bytes from the RPC. When I don't return anything it turns out that it runs quickly so it obviously must be related to that. I'm not using DTOs but where is it trying to fetch the data from if it's not getting pulled back from the POST? I don't see any traffic to the database server so it must be doing something weird locally (like a circular reference as you suggested). Shouldn't it give up on circular references a bit faster than that if that's the case? Tim On Tue, Jan 12, 2010 at 3:56 PM, Chris Lowe chris.lowe...@gmail.comwrote: Tim, Are you filtering your Hibernate objects or translating them to DTOs (to remove dynamic proxies etc) before serialising them? If the answer is no to the above, then you might be falling foul to circular references or Hibernate fetching more data than you expect. As an experiment, is it possible to try hardcoding some of your objects with a minimal data set and see how your app performs? Cheers, Chris. 2010/1/12 Tim Mattison timmatti...@gmail.com I changed my debug level from Info to Debug and got lots of additional output but nothing that looked like it was the culprit. My application runs like this: 1) onModuleLoad is called, builds the UI, and fires off a GWT-RPC call 2) The server receives the GWT-RPC call, connects to a Hibernate database, pulls some data (~150K) and sends it to the client 3) The client receives the response and populates a FlexTable with the data Between 2 and 3 is where the storm of traffic occurs. With the new debug level I don't really get much more insight since I see that Jetty has sent the response to the browser and that's it. I have breakpoints set on my GWT-RPC callback's onFailure and onSuccess method and it doesn't get to either of those branches until minutes later. Is there somewhere else I can look or something else I can try? The last message in the log before the storm: 200 - POST /app/service (127.0.0.1) 165739 bytes Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: no-cache Referer: http://localhost:/app/hosted.html?app X-GWT-Permutation: HostedMode X-GWT-Module-Base: http://localhost:/app/ Content-Type: text/x-gwt-rpc; charset=utf-8 Content-Length: 175 Pragma: no-cache Response headers Content-Encoding: gzip Content-Length: 165739 Content-Type: application/json; charset=utf-8 Content-Disposition: attachment The first message after it hits onSuccess and then keeps going at a normal speed: 304 - GET /app/gwt/standard/images/hborder.png (127.0.0.1) Request headers Host: localhost: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:/app/gwt/standard/standard.css If-Modified-Since: Tue, 03 Nov 2009 15:44:06 GMT Cache-Control: max-age=0 Response headers Any help would be great. Tim On Tue, Jan 12, 2010 at 3:04 PM, Chris Ramsdale cramsd...@google.comwrote: Although this smells of a network configuration issue, one suggestion you could try is to set the log level to Debug or lower. Debug-Debug Configurations-GWT-Log level. Try that, and let us know if anything suspect is output. - Chris On Mon, Jan 11, 2010 at 11:56 AM, timmattison timmatti...@gmail.comwrote: I just
Re: Multiple Methods Within One RPC Service?
I use one too. I think a single point is better than multiple points. -- 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: Gilead 1.3
I never understand how to use hibernate. It seems so complex and doing normal mysql commands seems a whole lot eaiser. On Jan 12, 12:19 pm, noon bruno.marches...@gmail.com wrote: Oups, I forgot to post the project URL :http://gilead.sourceforge.net Regards Bruno On 12 jan, 21:09, noon bruno.marches...@gmail.com wrote: Hello, I am pleased to announce the new release of Gilead, an Open-Source framework for seamless intregration of Hibernate and GWT. This new release brings new features, such as - Predefined remote services, for both GWT : * The Loading service allows you to load an entity or a lazy association from the GWT side, * The Request service brings the ability to execute a HQL request directly from the GWT side, - A new specific transport annotation (@LimitedAccess) to implement custom access to entity fields (role based for example) - Lazy property checking on GWT side, to know if a null association on client side was already null on server or just lazy but not loaded (and thus replaced with null by Gilead) - A ConfigurationHelper class, to limit Gilead configuration to one line of code A specific effort has also been made to improve performances and GWT serialization. Finally, this release also fixes many issues, reported since 1.2.3, especially on persistent collections. Hope this helps ! Bruno -- 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.