Re: How to make CellTable Header always on top
I see the thread https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/PBhu6RtP4G8 and so I put the datagrid inside a scrollPanel (scrollPanel implements ProvidesResize) and I also set each column width (table.setColumnWidth(addressColumn, 7, Unit.EM);) but still cannot show the datagrid, what happens? On Wed, May 30, 2012 at 2:14 PM, Kei Kei tong123...@gmail.com wrote: When I change my application from using CellTable to DataGrid, then nothing can be shown on the result page!! then I try to test the example in http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/cellview/client/DataGrid.html with just very minor modification (as attahced as DataGridExample.java, just don't impelement entrypoint and use onLoad), the data grid cannot be seen also (DataGrid.jpg). Then I try to replace the DataGrid with CellTable, then the CellTable can be shown!! (as in attached useCellTable.jpg) So what is the problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 make CellTable Header always on top
On Wednesday, May 30, 2012 8:40:12 AM UTC+2, tong123123 wrote: I see the thread https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/PBhu6RtP4G8 and so I put the datagrid inside a scrollPanel (scrollPanel implements ProvidesResize) and I also set each column width (table.setColumnWidth(addressColumn, 7, Unit.EM);) but still cannot show the datagrid, what happens? ScrollPanel is also a RequiresResize, so it won't help. You have to give your DataGrid (or whatever RequiresResize+ProvidesResize parent) a size in pixels. See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize (and don't miss the Recipes section!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PpPCjAW-Px0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make CellTable Header always on top
I really get confused. in my result page, the hierarchy of widget is DialogBox encloses TabLayoutPanel encloses FlexTable, the FlexTable has three rows. in the first row, after I add a SimpleLayoutPanel with setSize(100%, 360px); and then encloses the DataGrid inside SimpeLayoutPanel, the DataGrid can shown now. But the problem is...SimpleLayoutPanel is also implements RequiresResizehttp://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.html, so why can I just use 100% but not an exact px unit? The TabLayoutPanel has an explicit size in unit of px, then the FlexTable has setWidth(100%), is this the cause so I can use just % in the enclosing SimpeLayoutPanel? Also, I see DialogBox has not implements RequiresResizehttp://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.htmland ProvideResizes, so if the outer browser windows shrink, the DialogBox will not resize accordingly, this is expected, right? On Wed, May 30, 2012 at 2:50 PM, Thomas Broyer t.bro...@gmail.com wrote: ScrollPanel is also a RequiresResize, so it won't help. You have to give your DataGrid (or whatever RequiresResize+ProvidesResize parent) a size in pixels. See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize (and don't miss the Recipes section!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PpPCjAW-Px0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Mobile App Widgets
We're having the same problem. We're developing a system to support conferences (http://agenda.genijusz.com). Unfortunately we have the same requirement as you - to support as many phones as possible. Therefore we could not use libraries that are webkit-based. We needed to do everything by ourselves. The downside of this approach is that the app does not look 'native'. The upside is that we're able to support all webkite-based + Opera (Desktop,Mini,Mobile) + Firefox + IE. Was thinking about employing mgwt some time ago, but the lack of support for other than webkit-based browsers made me go away from this idea. I know this does not help you. Just wanted to let you know that there are projects having the same problem. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EoWZRsoNRsIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: the gwt-PopupPanelGlass height increase unexpectedly
On Wednesday, May 30, 2012 11:09:39 AM UTC+2, tong123123 wrote: as show in the image, beforesearch, there is no scrollbar in the right hand side, and then press search, in the searching.png, it show a warning message, and after press ok, the result is shown (result.png), but one point very strange, in the result.png, there is a scrollbar in the background right hand side, and I check with F12 in IE, the reason is the gwt-PopupPanelGlass height expanded, why will this occur? if I search less record, let's said the result only has 3 records, the background right hand side scrollbar will not be shown, and the gwt-PopupPanelGlass will not be expanded when check by F12 in IE. The glass panel is sized to the widest/highest of the viewport (window) or the document (when it's wider/higher than the viewport; i.e. there are scrollbars), and is then resized if the window is resized (but not if the document content changes, because it's nearly impossible to detect). So, the behavior you're seeing is probably due to the document having those scrollbars at the time the glass panel's size is computed. If you really want to debug this, I'd recommend compiling in -style PRETTY and then debugging the JS in IE, setting a breakpoint in PopupPanel#maybeShowGlass. Particularly, check document.documentElement.scrollHeight on each step to try to understand when and why it grows that way. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4D_vlo-A96YJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: the gwt-PopupPanelGlass height increase unexpectedly
*I found if the record exceed 100 warning is not shown even the search result record is really 100 (Searching.png), the glass is shown property and the scrollbar in the background document will not be shown.* in show count warning, I set GlassEnabled(true) and AnimationEnabled(true) and then set the popupPanel.setWidget(FlowPanel), when the user press the ok button in the Flowpanel of show count warning, I create another TabLayoutPanel and set it in the PopupPanel. is this information helpful? On Wednesday, May 30, 2012 5:48:23 PM UTC+8, Thomas Broyer wrote: On Wednesday, May 30, 2012 11:09:39 AM UTC+2, tong123123 wrote: as show in the image, beforesearch, there is no scrollbar in the right hand side, and then press search, in the searching.png, it show a warning message, and after press ok, the result is shown (result.png), but one point very strange, in the result.png, there is a scrollbar in the background right hand side, and I check with F12 in IE, the reason is the gwt-PopupPanelGlass height expanded, why will this occur? if I search less record, let's said the result only has 3 records, the background right hand side scrollbar will not be shown, and the gwt-PopupPanelGlass will not be expanded when check by F12 in IE. The glass panel is sized to the widest/highest of the viewport (window) or the document (when it's wider/higher than the viewport; i.e. there are scrollbars), and is then resized if the window is resized (but not if the document content changes, because it's nearly impossible to detect). So, the behavior you're seeing is probably due to the document having those scrollbars at the time the glass panel's size is computed. If you really want to debug this, I'd recommend compiling in -style PRETTY and then debugging the JS in IE, setting a breakpoint in PopupPanel#maybeShowGlass. Particularly, check document.documentElement.scrollHeight on each step to try to understand when and why it grows that way. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XoghUfKmL7QJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Mobile App Widgets
On Monday, April 30, 2012 4:35:30 PM UTC+2, AgitoM wrote: Does anyone know a decent library that contains GWT Widgets for the development of Mobile Apps in GWT? Over the past few days I've been experimenting with gwt-mobile-gui. Though this library is great, it doesn't appear to be working on all browsers. (or at least I can't get it to work on Firefox). So basically I am looking into other Libraries. Does anyone have any suggestions? Reason I am looking for a mobile widget library is because I am developing a mobile app. I developed a framework for a mobile app myself, and it works fine, but it looks too ugly. If no other library is available, does anyone know any tutorial of guide to how to develop nice looking GUI in GWT? Hope anyone can offer some advice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/YhRrlKk1XbUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Mobile App Widgets
Hi, We are now doing rewrite our mobile application from GWT to (jQueryMobile + operation logic in GWT + GWTQuery). I really like functionality and documentation on JQM. And also themes and transition between pages really works on Android and iOS. They have good community and useful plugins. And we don't want to deal with GUI on mobile devices. Regards, Matic -- GWT stuff twitter - http://twitter.com/#!/gwtstuff On Monday, April 30, 2012 4:35:30 PM UTC+2, AgitoM wrote: Does anyone know a decent library that contains GWT Widgets for the development of Mobile Apps in GWT? Over the past few days I've been experimenting with gwt-mobile-gui. Though this library is great, it doesn't appear to be working on all browsers. (or at least I can't get it to work on Firefox). So basically I am looking into other Libraries. Does anyone have any suggestions? Reason I am looking for a mobile widget library is because I am developing a mobile app. I developed a framework for a mobile app myself, and it works fine, but it looks too ugly. If no other library is available, does anyone know any tutorial of guide to how to develop nice looking GUI in GWT? Hope anyone can offer some advice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ccMZKooL_NwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debugging is terribly slow
Hi, For our project I also give up debugging with FF. The whole process - start project in Eclipse, hosted mode in FF, debug, fix code, refresh hosted mode, etc just took too much time. Now I'm testing JRebel + System.err.println and it really speed up development and debug time. Regards, Matic -- GWT stuff twitter - http://twitter.com/#!/gwtstuff On Tuesday, May 29, 2012 6:51:26 PM UTC+2, Juan Pablo Gardella wrote: Use firefox 2012/5/29 Magnus alpineblas...@googlemail.com I forgot to say that I use eclipse as a ide. Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6m86vZmXCfcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Wn1fWAbinEIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Large Project Structure
Some more details.. Can I have the structure like this way: Core - - Client - Server - Shared Account - Client - Server - Shared Billing - Client - Server - Shared User - Client - Server - Shared like this many more. Each module will have it;s own POM.xml and there will be one overall POM.xml which will the parent one. Now question is : For this structure , each module should not have cyclic reference. is this correct ? Also IF I understand correctly , there will be one project per module in Eclipse. Can show one throw some light weather the upper mentioned structure is right OR I am going on a wrong path. On May 29, 5:03 pm, Thomas Broyer t.bro...@gmail.com wrote: On Tuesday, May 29, 2012 1:26:10 PM UTC+2, Niraj Salot wrote: Hi All, What should be consider as Best Practice for Large Project Structure ? We have multiple modules inside the projects. Also We would like to make sure that single change in one module does not require compile of all the files. It should be just that module only. How to achieve this in GWT Project Structure ? GWT does not provide tools to determine whether a compiled GWT module is up-to-date wrt its sources. If you use Maven though, gwt-maven-pluginhttp://mojo.codehaus.org/gwt-maven-plugin/does it. This is assuming that by module you mean a GWT app module (one that you give to the GWT Compiler), rather than a GWT library module (one that you inherits/ in an app module), because the GWT compilation is monolithic; there's no such thing like incremental compilation of a GWT app. For a large project, I'd rather modularize the build, as Кирилл Карпенко suggests. Using Maven, you can look athttps://github.com/tbroyer/gwt-maven-archetypesas starting point (seehttp://tbroyer.posterous.com/announcing-gwt-maven-archetypes-project for a quick overview), and then simply create as many `client` module as the number of GWT app modules you have. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to apply css file to html content within HTML widget?
Hello: At client side my page contain a com.google.gwt.user.client.ui.HTML, this HTML will contain a large number of div and each div is associated with its own style. all the styles are defined in another css file. My question is how to apply the style to the HTML content? i use g:HTML ui:field=myfield styleName=project_entry.css / but it does not work. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bGL4yPbtpY4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to apply css file to html content within HTML widget?
try like this: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:gwt='urn:import:com.google.gwt.user.client.ui' ui:style src=project_entry.css / On Wed, May 30, 2012 at 6:55 PM, July julyg...@gmail.com wrote: Hello: At client side my page contain a com.google.gwt.user.client.ui.HTML, this HTML will contain a large number of div and each div is associated with its own style. all the styles are defined in another css file. My question is how to apply the style to the HTML content? i use g:HTML ui:field=myfield styleName=project_entry.css / but it does not work. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bGL4yPbtpY4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debugging is terribly slow
It is sad but FF has much better performances when GWT debugging is the subject. I hope that GWT 2.5 will come up with SourceMaps support so debugging will not require any additional plugin. So a new FF versioning approach as well as other incompatibility issues will be solved. On Wednesday, May 30, 2012 1:36:57 PM UTC+2, maticpetek wrote: Hi, For our project I also give up debugging with FF. The whole process - start project in Eclipse, hosted mode in FF, debug, fix code, refresh hosted mode, etc just took too much time. Now I'm testing JRebel + System.err.println and it really speed up development and debug time. Regards, Matic -- GWT stuff twitter - http://twitter.com/#!/gwtstuff On Tuesday, May 29, 2012 6:51:26 PM UTC+2, Juan Pablo Gardella wrote: Use firefox 2012/5/29 Magnus alpineblas...@googlemail.com I forgot to say that I use eclipse as a ide. Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6m86vZmXCfcJ. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jFLBxXWRJu4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debugging is terribly slow
On Wednesday, May 30, 2012 3:59:26 PM UTC+2, Dimitrijević Ivan wrote: It is sad but FF has much better performances when GWT debugging is the subject. I hope that GWT 2.5 will come up with SourceMaps support so debugging will not require any additional plugin. So a new FF versioning approach as well as other incompatibility issues will be solved. 2.5 *should* come with SuperDevMode, but it'll be *experimental*. As for SourceMaps, only Chrome supports them for the moment, so SuperDevMode won't really help with debugging in Firefox until the guys at Mozilla finish their SourceMaps work: https://wiki.mozilla.org/DevTools/Features/SourceMap It will definitely help with debugging in Chrome though, which currently with the DevMode plugin is both slow (due to sandboxing) and broken ( http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65), as well as Chrome for Android, Mobile Safari, and UIWebView-based iOS apps (through http://www.iwebinspector.com/ or similar means). When other browsers catch up on SourceMaps, then we can ditch the DevMode plugins entirely. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1CB4YZzfK3UJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to apply css file to html content within HTML widget?
Thanks for the reply, this is what i do, however no effect. it will generate html like: div class=project_entry.css ... /div but it will not apply the style from the file to the div element automatically. Do i have to style each class in the div one by one? On Wednesday, May 30, 2012 9:44:20 PM UTC+8, Ashu wrote: try like this: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:gwt='urn:import:com.google.gwt.user.client.ui' ui:style src=project_entry.css / On Wed, May 30, 2012 at 6:55 PM, July julyg...@gmail.com wrote: Hello: At client side my page contain a com.google.gwt.user.client.ui.HTML, this HTML will contain a large number of div and each div is associated with its own style. all the styles are defined in another css file. My question is how to apply the style to the HTML content? i use g:HTML ui:field=myfield styleName=project_entry.css / but it does not work. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bGL4yPbtpY4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/T5F5bM_umRsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to apply css file to html content within HTML widget?
July, Any tag in a UiBinder can have a CSS class, but: - Native HTML tags like div must use their class attribute. So div class=somClass/ - GWT classes, like g:HTML / must use the styleName attribute, since otherwise there would be a conflict with the Java class keyword, so use g:HTML styleName=someClass/ *Don't* use the CSS filename in these tags. Include you CSS file via either: - ui:style src=project_entry.css / in the top of the UiBinder file OR - stylesheet src= project_entry.css/ in your project module file. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K7q5-a5DTkkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.5 and beyond
Good News On Friday, May 25, 2012 4:36:11 AM UTC-4, marek.gregor wrote: Finally we will know more at Google IO 2012: https://developers.google.com/events/io/sessions/gooio2012/218/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JT7J_o1y-QQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Basic Mail Using GWT UI
Hi Greetings All, I have a beginner... in GWT. I have been creating User Interface using GWT. But now I want to have a basic mail application in GWT. I have to capture the information entered on the screen and send it as a mail. Can anyone help me in doing this... I have been trying to do this using Javamail and some Remote Procedure Call, but was unsuccessful... may be because I did not code correctly. Please provide the steps to do the said task. Thanks, Regards, Bubby -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Add HTMLelement from entry Point class
I have a `div` in my HTML page. What I need to do is, add `ul` element inside it from my Entry point class. I have tried from onModuleLoad function using below code, UListElement ul=Document.get().createULElement(); ImageElement img=Document.get().createImageElement(); img.setSrc(\\images\\personas); LIElement li=Document.get().createLIElement(); li.appendChild(img); ul.appendChild(li); Document.get().getElementById(divPhotos).appendChild(ul); but my `div` is empty/has no childs when i run it. what am I missing here? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT with RPC
hello all, I have been developing upload a file to my server using RPC, I found a couple of examples that force me to override the service method. When compiling tells me it can not Overriding is an abstract method ... what I can do about it? Thanks: D -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Browser Dev-Plugin
just get it straight from SVN. http://google-web-toolkit.googlecode.com/svn-history/trunk/plugins/ie/prebuilt/ It just looks like the latest build hasn't been copied to the dl-ssl server. On May 22, 5:15 am, Fabio safesfa...@gmail.com wrote: Hi All, I get an error 404 while downloading GWT Dev Plugin for IE9. (https:// dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe) 404. That’s an error. The requested URL /tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this server. That’s all we know. Thank u very much for your help! Fabio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can't download a GWT Plug In For IE
http://download.csdn.net/detail/tigerq326/2401980 useful On 5月24日, 上午1时21分, David dhy...@gmail.com wrote: I cleared my IE cache and now I can't download anew GWT Plugin. No matter what link I follow I am getting 404 error. Does anyone else have this issue? https://dl-ssl.google.com/tag/s/appguid%3D%7B53dae7d2-8c28-440f-920b-... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
synchronized object int GWT
hello all i am new in GWT ..and i have one question : dose it enabled to apply the concept od synchronized objects java in GWT ?? in way that i can synchronize the client and the server ? thank -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FormPanel with FileUpload and HTML5
I know this will only work in Firefox and Chrome... I have access to a HTML5 Blob (JavaScripObject) through DragDrop and now I want to set the value or add it to FileUpload. I'm wanting to do this all with HTML Forms and direct communication with the Browser to Amazon S3 bypassing any server: http://docs.amazonwebservices.com/AmazonS3/latest/dev/HTTPPOSTForms.html I've created my FormPanel() added all the necessary Policies, Signatures, bucket, key, etc I've added FileUpload to the form but how to I add my HTML5 File or Blob? I've tried creating an inputElement, setting my JavaScriptObject Blob to it and then calling FileUpload.wrap(inputElement) - no good. Any ideas on how to attach my JavaScripObject Blob to FileUpload (simulating a file select in the chooser) Hope that makes sense. Thanks! Dana -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT PopupPanel Safari Mobile auto hide
I trying to create and develop new views that are specific for IPad users, and I'm facing a problem with using Popup. What I'm trying to do is that to show up some Popup and make it autohide when user touch out side it, this is working as expected when testing it using the regular desktop browser(mouse click), but it is not working when trying it using IPad Safari(i.e touching) . Is there any solution for this or any workaround? Or at least, how to NOT block the page from being scroll when the popup is shown? Thanks, Osama -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
favicon problem now that I've added call to History.newItem().
Hi, I've written an application using GWT 2.4.0 (and GXT 2.2.5) that compiles to a WAR file, runs successfully in JBoss 6.0.0-Final, and also has its own favicon.ico. However, now that I am starting to add History support I am noticing that my browser is sometimes displaying JBoss's default favicon instead of my application's. Specifically, I have (only) added a select listener to a TabPanel widget, and all this listener does is call History.newItem(value). This listener is correctly adding the # fragment to the URL in the browser, but is also sometimes changing the favicon to the wrong one. The most reliable way to trigger this bug is to switch tabs and then press the browser's refresh button. Can anyone think what might be causing this, please? I'm still thinking that this more likely to be a problem in my own code, but I've run out of ideas as to where. The incorrect favicon has URL http://localhost:8080/favicon.ico, whereas my application's favicon is at http://localhost:8080/myapp/favicon.ico. Thanks for any assistance, Cheers, Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OpaQTu7Kn7EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT podcasts?
Can anyone recommend any good podcasts with some GWT content? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help to implement behavior for popup widget.
Hello, I do not succeed to implement condition (2) and (3) of my popup widget (it looks like a rich tooltip with links inside it) (1) the popup is shown when the mouse is over the image (*it is ok*, I added MouseOverHandler on the image) (2) the user can click on links that are inside the popup (so the popup does not desapear when the mouse is inside it) (3) the popup is hidden when the mouse goes outside the image AND is not inside the popup. Actually, I need to click outside the popup to hide it, and I tried to do it adding many mouseHandler and a Focus Panel inside the popup widget but I have not the result excepted. Maybe you will the see the solution more simple ? Thanks you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Cpq8eNGPAWIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DataGrid rows appear only after sort when using SimplePanel
Hello, I have found a strange behavior when using a DataGrid with SimplePanel and ListHandler. The data is not shown until I click on one of the column headers to sort the data. I tried using VerticalPanel instead and the data is shown correctly when the table is redrawn (no sort yet made). Any ideas what may cause this ? (The work around is easy but still strange it works that way ..) Ronny -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how can i make I18N dynamic in gwt?
i'm using gwtp and i want to make my gwt application's I18N dynamic, i did something likeshowcase example is doing even though it is good i don't want reloade every time when locale is changing. so i just want to change the labels of my view when i change the locale. thanks, krrish. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Question relative to popup and mouseListener...
Hello, I have a solution I can not find. I want to create a custom widget whick looks like a kind of rich tooltip (it is a exactly a popup in my case) that appear when my mouse is over the image. I have various behaviors for this widget : (1) if the mouse is over the image so the popup appear (it is ok, I do it adding a MouseHandler on the image). (2) the user can click on links that are inside the popup (so the popup do not desapear when the mouse goes inside it) (3) if the mouse goes out of the image (and is not obviously inside the popup) so the popup must desapear. My problem is that I do not succeed to implement behavior (2) and (3)...Actually, I have to do a click outside the popup to close it, and I just want the popup to be automatically closed when my mouse goes out of it. I tried to find a solution, but the code becomes complex, using focusPanel, and adding mouseHandlers with conditions...Maybe the solution is quite simple ? Thank you for the help. - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qmzhlxH0fSAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable To install GWT Developer Plug in for IE
The same I have. 404 for IE9 x64. Where can I found some backedup GWT plugin for IE? Середа, 23 травня 2012 р. 21:57:15 UTC+3 користувач David написав: I am getting 404 errors for both the IE and IE 64 bit install urls. I am blocked. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HXRL3r2pzg4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can not add CellList to Pager
I used modifed CwCellList example to display custom Cells in a pager, I couldn't display and scroll the celllist inside Pager, here is the code for Pager: public class PagerPanel extends AbstractPager { /** * The default increment size. */ private static final int DEFAULT_INCREMENT = 20; /** * The increment size. */ private int incrementSize = DEFAULT_INCREMENT; /** * The last scroll position. */ private int lastScrollPos = 0; /** * The scrollable panel. */ private final ScrollPanel scrollable = new Scrollable(); /** * Construct a new {@link ShowMorePagerPanel}. */ public PagerPanel() { // Do not let the scrollable take tab focus. initWidget(scrollable); scrollable.getElement().setTabIndex(-1); //setSize(200,200); // Handle scroll events. /*scrollable.addScrollHandler(new ScrollHandler() { public void onScroll(ScrollEvent event) { // If scrolling up, ignore the event. int oldScrollPos = lastScrollPos; lastScrollPos = scrollable.getVerticalScrollPosition(); if (oldScrollPos = lastScrollPos) { return; } HasRows display = getDisplay(); if (display == null) { return; } int maxScrollTop = scrollable.getWidget().getOffsetHeight() - scrollable.getOffsetHeight(); if (lastScrollPos = maxScrollTop) { // We are near the end, so increase the page size. int newPageSize = Math.min( display.getVisibleRange().getLength() + incrementSize, display.getRowCount()); display.setVisibleRange(0, newPageSize); } } });*/ } /* public void onScroll(Widget widget, int start, int end) { ScrollPanel scrollPanel = (ScrollPanel) widget; // If scrolling up, ignore the event. int oldScrollPos = lastScrollPos; lastScrollPos = scrollPanel.getVerticalScrollPosition(); if (oldScrollPos = lastScrollPos) { return; } HasRows display = getDisplay(); if (display == null) { return; } int maxScrollTop = scrollPanel.getWidget().getOffsetHeight() - scrollPanel.getOffsetHeight(); if (lastScrollPos = maxScrollTop) { // We are near the end, so increase the page size. int newPageSize = Math.min( display.getVisibleRange().getLength() + incrementSize, display.getRowCount()); display.setVisibleRange(0, newPageSize); } }*/ /** * Get the number of rows by which the range is increased when the scrollbar * reaches the bottom. * * @return the increment size */ public int getIncrementSize() { return incrementSize; } @Override public void setDisplay(HasRows display) { assert display instanceof Widget : display must extend Widget; scrollable.setWidget((Widget) display); super.setDisplay(display); } /** * @param incrementSize the incremental number of rows */ public void setIncrementSize(int incrementSize) { this.incrementSize = incrementSize; } @Override protected void onRangeOrRowCountChanged() { } class Scrollable extends ScrollPanel implements ScrollHandler { public Scrollable() { sinkEvents(Event.ONSCROLL); addScrollHandler(this); setSize(200px,200px); } public void onScroll(ScrollEvent event) { GWT.log(scrolling?); } /*public void onBrowserEvent(Event event) { if (DOM.eventGetType(event) == Event.ONSCROLL) { GWT.log(on scroll event!); } else { super.onBrowserEvent(event); } }*/ } } --CwCellList- public class CwCellList extends Composite { /** * The UiBinder interface used by this example. */ //@ShowcaseSource
add timer on panel......
Hello Can anyone plz help me to create timer and how to add it on the panel? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3D-fqY8mtZAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Dialog box without theme has no caption area at the top
Hello, I do not inherit of any theme (Standard, Dark, Chrome). And when I use a Dialog Box, I do not have the TOP CAPTION appearing (so I cannot move my dialog box). Any idea to help me please ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mgjj9oNJD6EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and HttpServletResponse
You need to make an other ajax call after the file is created. From the RPC call send back to the client the url pointing to the newly created file, and: static native void downloadFile(String url) /*-{ $wnd.open(url,'Download'); }-*/; Ml, fenyoapa - Eredeti üzenet - From: Akis Sent: Monday, May 28, 2012 5:26 PM To: Google Web Toolkit Subject: GWT and HttpServletResponse Hi guys. I've got a question for you: i need to create a web app which, starting from an input string given by the user through the browser, generates a file that has to be downloaded by the user self. My approach would be the following: the input string is sent by a RPC to a server-side class that creates the file from the given string, and then the file is sent to the client-side, ready to be downloaded. Now, in classic servlet way, i would use a HttpServetResponse to set the header, the content type, and attach the file... how can i do this with GWT? Thank you mates! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google IO 2012 : no GWT session ?
something big is coming (I'm afraid I can't share details, sorry) I suppose that something big does not refer to Elemental. I think that not because it is not big but because Ray Cromwell made the information public via his Google+ pagehttps://plus.google.com/110412141990454266397/posts/8nmmgp4AChM. But you already know it. Even if you think you can't share details perhaps you can say that there is something more !? Thierry Abaléa. On Thursday, 17 May 2012 12:23:59 UTC+2, Thomas Broyer wrote: On Thursday, May 17, 2012 8:00:00 AM UTC+2, Celinio Fernandes wrote: Hello, I just noticed that the schedule for Google IO 2012 is now available : https://developers.google.com/events/io/sessions Not sure whether it is definitive or not. I see that this year there is no session dedicated to GWT. How come ? But there are 2 sessions dedicated to Dart. Is this a sign ? I've been told (by the GWT manager) that they're planning a session about GWT. No worries, GWT is healthy and something big is coming (I'm afraid I can't share details, sorry). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jXQ2tTgvOM4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Customized confirmation box widget
Hi , I want to make a customized confirmation dialog box in GWT, searched google but not found any clue. Any help would be much appreciate. Thanks, Manish -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt-user.jar not found issue
same situation, cannot locate the gwt-user file RubySmith於 2010年10月19日星期二UTC+8上午6時27分15秒寫道: I just installed GWT and WindowsGUI builder eclipse plug-ins from google update site. The plug-ins does not contain gwt-user.jar and hence i could not create GWTproject. Due to this issue the GWT installation path can not be set on GWT preferences.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8inNZae4iuIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Issue with Rational Software Architect 7.5
I've been trying to install the eclipse plug-in for GWT on my Rational Software Architect 7.5 installation, but it gives me an error related with dependencies. Does anyone knows if this plug-in its compatible with Rational Software Architect? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT for building websites ?
Hi guys Im trying to build a web application in Java ee 6 ... But i don't know which framework to use ... Struts or GWT ... ajax data load without page refresh is important for a *few pages* in the website but not all. I've been researching on building websites with GWT but it's hard to find an answer. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3V99KHfYA4QJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
need steps to debug gwt application serverside form eclipse
hi i am trying to run my eclipse to debug the server side code like async call i am getting below error Failed to connect to remote VM. Connection refused. Connection refused: connect please help me thanks 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to apply css file to html content within HTML widget?
July, styleName is the name of the CSS class. Because the UiBinder syntax of g:HTML/ points to the GWT HTMLPanel class, the class keyword is replaced with styleName in this case. However, in UiBinder, if you are using native HTML tags, like DIV, then you would use the class attribute for the CSS class (like normal HTML). So, put a class name from your project_entry.css in that *styleName* attribute and it should work. Also make sure you have an entry in your .gwt.xml module file to bring in your CSS file (below), where the path is relative to the public/ folder in your project: stylesheet src=project_entry .css/ Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dfxe-Hjwz64J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: guice injecting remote servlet. Error 404 not found
I have this issue also, did you find a solution for it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aymR493mmywJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Getting started
i am new to GWT, please help me in creating and running GWT application in eclipse. i need an tutorial which give the step by step process to create the first GWT project. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Integrating existing html div tag in gwt to genrate new HTML file (from existing html)
Hi i want to integrating existing html div tag in gwt to genrate new HTML file (from existing html) . 1.demo.jsp (existing html) !-- To change this template, choose Tools | Templates and open the template in the editor. -- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head title/title meta http-equiv=Content-Type content=text/html; charset=UTF-8 script type=text/javascript src=org.yournamehere.Main/ org.yournamehere.Main.nocache.js/script /head body TODO write content div id=sample1 input type=text id =un name=uname value=username / input type=text id=ps name=pass value=password / /div /body /html 2. wellcomeGWT.html (Generated Html) !doctype html !-- The DOCTYPE declaration above will set the browser's rendering engine into Standards Mode. Replacing this declaration with a Quirks Mode doctype may lead to some differences in layout. -- html head meta name='gwt:module' content='org.yournamehere.Main=org.yournamehere.Main' link rel = stylesheet type=text/css href=your.css titleMain/title /head body script type=text/javascript src=org.yournamehere.Main/ org.yournamehere.Main.nocache.js/script div id=sample1/div /body /html 3. I written my MainEntryPoint.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.yournamehere.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.DisclosurePanel; import com.google.gwt.user.client.ui.Widget; /** * Main entry point. * * @author HarshaV */ public class MainEntryPoint implements EntryPoint { public void onModuleLoad() { DisclosurePanel dp = new DisclosurePanel(SIP Parameters); dp.setAnimationEnabled(true); Element e1 = DOM.getElementById(sample1); // Element e = RootPanel.getBodyElement(); Widget un = RootPanel.get(un).asWidget(); Widget ps = RootPanel.get(ps).asWidget(); dp.add(un); dp.add(ps); RootPanel.get(sample1).add(dp); } } But I am not able to get the Div (sample1) content in welcomeGWT.html please tell me how to call existing html div content in MainEnterypoint.java and show on WelcomeGWT.html Harsh Vardhan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting started
hi if you are good in french look that : http://www.gwt-france.fr/nos-premiers-pas-en-gwt-1ere-partie 2012/5/30 KAVI ARASAN kaviit...@gmail.com i am new to GWT, please help me in creating and running GWT application in eclipse. i need an tutorial which give the step by step process to create the first GWT project. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Assiya EL Master Qualité du Logiciel Plz consider environment - Only print this if necessary -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: guice injecting remote servlet. Error 404 not found
did you have guice-snapshot.jar in your classpath? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FormPanel with FileUpload and HTML5
What have you achieved so far? I would: 1. Get the AWS POST to S3 example http://aws.amazon.com/articles/1434working with pure HTML (no GWT). 2. Recreate the same form in GWT using UiBinder or imperatively (i.e. new FormPanle()...). 3. Try sending it through the form. From long ago discussionshttp://www.coderanch.com/t/120264/GWT/GWT-HTTP-post-requests, GWT should be able to handle this POST case with XHR in an iFrame for you. I know you're using DnD, but have you got it working sans DnD? Also, are you sharing your AWS keys publicly? Seems like a bit of a security hole to do this sans server. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SeMwALC2ItUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Add HTMLelement from entry Point class
Vivek, Your code works fine for me (GWT 2.4 starter project). Not sure why it is not work for you, so I think it has to be one of the following: - Are you sure the code is getting run? Perhaps you can step through with break points. - Are you sure you have the div id=divPhotosdiv/ in your entry HTML page? Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/h_giF2lMQqEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Question relative to popup and mouseListener...
Axel, Just use onMouseOut event on your popup to close it. When you open the popup, make sure it is place under the cursor at that time. If it is proving more elaborate than that, could you post code and challenges here? You can also use CSS3 transitions to easily add fade outs and delays to the onMouseOut action. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yomQRytDer4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: favicon problem now that I've added call to History.newItem().
Chrisr, Many browsers these days check for a favicon in the root directory. I found the same issue where I was setting the favicon in the HTML header, but some browsers were not getting it. You should make sure that you always have a favicon.ico *and *favicon.*gif *in your root directory, or some servers will use their own. This is also a common source for 404 errors on most servers when the assumed files are not found. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6oyXj-CFtI0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic Mail Using GWT UI
Buddy, Show us your code that is not working and we'll try to help. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/43B4cv-1gzQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: add timer on panel......
Harshal, Why do you need to add the timer to a panel? What do you want the timer to do? It is not clear from your question. Timer timer = new Timer(); Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SD9R1j5efJwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how can i make I18N dynamic in gwt?
Krrish, GWT compiles a different permutation of the code for each language you have implemented i18n for. You thus must reload the app to load the different permutation to switch the language in use. If you want it to behave differently, you'll have to do i18n a different way than the built in GWT i18n tools Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BcUtsx1H8mkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT podcasts?
Besides podcasts (I assume you mean audio), there are many good GoogleIO lectures http://www.youtube.com/results?search_query=GWT+googleio on YouTube that are a staple of learning GWT. Joe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0k9KlDFXOYwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT podcasts?
Hi Joe, Thanks! I'm aware of most of those, but audio would be good while driving. Lee On Wed, May 30, 2012 at 4:17 PM, Joseph Lust lifeofl...@gmail.com wrote: Besides podcasts (I assume you mean audio), there are many good GoogleIO lectures http://www.youtube.com/results?search_query=GWT+googleio on YouTube that are a staple of learning GWT. Joe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0k9KlDFXOYwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory - how to prevent batched requests after constraint violation
I am getting an IllegalArgumentException, Attempting to edit an EntityProxy previously edited by another RequestContext. This is a result of getting constraint violations and automatically batching different Request Factory requests within the RequestContext. I am using GWT 2.4. My RequestContext interface has multiple methods save(), updateCache(), load(),... Here is the scenario: 1. Call save() which encounters server side constraint violations. The RequestContext is still active since the call did not complete. 2. Try to correct the data. Make a change to the value of a field that happens to have an onChange handler that automatically calls updateCache() on the RequestContext. This causes the RequestContext to have 2 batched requests, save() and updateCache(). Both are then invoked via the single Request.fire() call. 3. onSuccess() is called twice, once for save() and then once for updateCache(). OnSuccess() creates a new RequestContext instance and calls edit() on the driver. The second call to edit() within onSuccess() causes the IllegalArgumentException. How can I remove or avoid the queued call to save() when receiving the constraint violations. Depending on the user's action after a constrain violation, a request other than save() may be called, so it is not just a matter of trying to re-fire the initial save() request, I am trying to make a different request and not call save() yet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dQ5uJt3NoYsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: making Anchor look like a normal link
Actually, I made a mistake. The problem doesn't seem to be the authentication (which simply checks the session). I disabled the authentication and it still happens. I believe this is the way GWT is supposed to work. A GWT is one page. The going back and forward through pages is simulated by the Places mechanism. What happens with a Hyperlink when opening in new tab/window is a hard reload. This is the same as cutting and pasting a URL (once inside the app) into a new tab or window. GWT calls onModuleLoad(). That's the way GWT works, unless I fundamentally misunderstand it. The confusion about Hyperlink remains. What is an internal link to the app supposed to do when opening in new tab/window? On Monday, May 28, 2012 12:40:05 PM UTC-7, Thomas Broyer wrote: If loading the app (when you're authenticated) doesn't bring you to the place the URL represents, then your app is broken. Your issue is either with auth or app initialization, not with hyperlinks. Google Groups for instance brings you back to where you were when hitting F5. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/waqm5o3WVn4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to apply css file to html content within HTML widget?
I solved this by using ClientBundle. On Wednesday, May 30, 2012 11:12:07 PM UTC+8, July wrote: Thanks for the reply, this is what i do, however no effect. it will generate html like: div class=project_entry.css ... /div but it will not apply the style from the file to the div element automatically. Do i have to style each class in the div one by one? On Wednesday, May 30, 2012 9:44:20 PM UTC+8, Ashu wrote: try like this: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:gwt='urn:import:com.google.gwt.user.client.ui' ui:style src=project_entry.css / On Wed, May 30, 2012 at 6:55 PM, July julyg...@gmail.com wrote: Hello: At client side my page contain a com.google.gwt.user.client.ui.HTML, this HTML will contain a large number of div and each div is associated with its own style. all the styles are defined in another css file. My question is how to apply the style to the HTML content? i use g:HTML ui:field=myfield styleName=project_entry.css / but it does not work. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bGL4yPbtpY4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ABsa8wE3Ae4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to apply css file to html content within HTML widget?
And thanks for the explanation Joseph Lust , that's helpful. On Thursday, May 31, 2012 10:23:57 AM UTC+8, July wrote: I solved this by using ClientBundle. On Wednesday, May 30, 2012 11:12:07 PM UTC+8, July wrote: Thanks for the reply, this is what i do, however no effect. it will generate html like: div class=project_entry.css ... /div but it will not apply the style from the file to the div element automatically. Do i have to style each class in the div one by one? On Wednesday, May 30, 2012 9:44:20 PM UTC+8, Ashu wrote: try like this: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:gwt='urn:import:com.google.gwt.user.client.ui' ui:style src=project_entry.css / On Wed, May 30, 2012 at 6:55 PM, July julyg...@gmail.com wrote: Hello: At client side my page contain a com.google.gwt.user.client.ui.HTML, this HTML will contain a large number of div and each div is associated with its own style. all the styles are defined in another css file. My question is how to apply the style to the HTML content? i use g:HTML ui:field=myfield styleName=project_entry.css / but it does not work. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bGL4yPbtpY4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FJquizwSxqsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic Mail Using GWT UI
this is my code at server side for sending email (my server is google app engine).. public static void Email(String test) { DateFormat formatter ; Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); try{ Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(Sender email, Automatic email)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(Recepient email)); msg.setSubject(test); msg.setText(test); Transport.send(msg); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); } } On Thu, May 31, 2012 at 4:09 AM, Joseph Lust lifeofl...@gmail.com wrote: Buddy, Show us your code that is not working and we'll try to help. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/43B4cv-1gzQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting started
Eclipse GWT plugin comes with a nice and simple sample project. You are free to run without any changes. On Wednesday, 30 May 2012 18:10:48 UTC+5:30, KAVI ARASAN wrote: i am new to GWT, please help me in creating and running GWT application in eclipse. i need an tutorial which give the step by step process to create the first GWT project. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jQq2wMkjseAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic Mail Using GWT UI
It is looking like nothing to do with GWT. The problem could be more related to GAE or Mail. On Thursday, 31 May 2012 08:36:06 UTC+5:30, buzz_buzz wrote: this is my code at server side for sending email (my server is google app engine).. public static void Email(String test) { DateFormat formatter ; Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); try{ Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(Sender email, Automatic email)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(Recepient email)); msg.setSubject(test); msg.setText(test); Transport.send(msg); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); } } On Thu, May 31, 2012 at 4:09 AM, Joseph Lust lifeofl...@gmail.com wrote: Buddy, Show us your code that is not working and we'll try to help. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/43B4cv-1gzQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wqKFalOHeU8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Add Integer.TYPE, etc. (issue1710804)
I'll submit your change after the API Checker config file is updated. We should just need to add these lines to it: java.lang.Boolean::FALSE FINAL_ADDED java.lang.Boolean::TRUE FINAL_ADDED Great, that sounds good to me. Thanks, John. http://gwt-code-reviews.appspot.com/1710804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Contributor License Agreements question
Ok, thanks. 2012/5/29 Rajeev Dayal rda...@google.com Just verified that you're added to the corporate CLA list. I think I was looking at an outdated spreadsheet. You're all good! On Fri May 25 10:15:54 GMT-400 2012, Alexandre Ardhuin alexandre.ardh...@gmail.com wrote: Confirmation email forwarded. Thanks, Alexandre 2012/5/25 Rajeev Dayal rda...@google.com Hey Alexandre, You're not able to verify that you signed the CLA in the corporate case. I looked at our corporate CLA list, and I don't see your name (or that of your company) listed there. I'll do some more digging to see what happened. Did you receive any sort of confirmation e-mail? If so, could you forward it to me directly? Thanks, Rajeev On Fri May 25 08:55:21 GMT-400 2012, Alexandre Ardhuin alexandre.ardh...@gmail.com wrote: Hi all, A few days ago I submitted a patch ( http://gwt-code-reviews.appspot.com/1712803/ ) after having followed the steps described at https://developers.google.com/web-toolkit/makinggwtbetter#submittingpatches. My CTO had signed the Corporate Contributor License Agreement ( http://code.google.com/legal/corporate-cla-v1.0.html ) . He had provided my name and my corporate email ( alexandre.ardhuin at deveryware com ) in Schedule A. But with that email, I could not sign in at http://gwt-code-reviews.appspot.com , a Google Account was required. So I signed with a google account ( alexandre.ardhuin.dw at gmail com ) to submit my patch. How can I check to be identified as a cla-signer ? Will my patch be taken in account ? I don't see the review made by Thomas in this contributors group and I wonder why. Thanks in advance, Alexandre -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: DefaultProxyStore violated ProxyStore#nextId contract. (issue1622803)
On 2012/05/29 22:07:38, skybrian wrote: Actually, are we working on dead code? Where is serialize/deserialize of a DefaultProxyStore used? I'm looking for the code that calls encode() and I can't seem to find it. I traced back usages of ProxyStore to RequestFactory.getSerializer() but can't find any usages of this method. This is public API: http://code.google.com/p/google-web-toolkit/issues/detail?id=5523 The idea of DefaultProxyStore (I think) is that you could inline some proxies in your host page and load them onModuleLoad; similar to http://jectbd.com/?p=1174 for GWT-RPC. ProxyStore also serves as a foundation for client-caching: http://code.google.com/p/google-web-toolkit/issues/detail?id=5650 and usage with WebStorage (localStorage/sessionStorage): http://code.google.com/p/google-web-toolkit/issues/detail?id=6847 https://gwt-code-reviews.appspot.com/1622803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: DefaultProxyStore violated ProxyStore#nextId contract. (issue1622803)
I just updated the CL with a very minor fix: in encode() I saved nextId + 1 (so as to never store a '0' and be able to detect a payload serialized by the old, broken DefaultProxyStore), but never reverted the + 1 in the constructor, resulting in skipping a value each time to serialize/deserialize the store. http://gwt-code-reviews.appspot.com/1622803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Packaging issue: org.json and RequestFactory
Additional note: requestfactory-client.jar is supposed to be used on Android (not only, but that's one of the advertized goal), so it shouldn't bundle org.json, as this is already provided by the Android platform: http://developer.android.com/reference/org/json/package-summary.html As for Maven, we could add a com.google.web.bindery:requestfactory-dependencies artifact, with packaging=pom (see http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/), that requestfactory-client and requestfactory-server could depend on (or not) Alternately, given that gwt-user.jar is only used for dev, it's not really an issue if it's bloated (other than the perf issues with GWT Compiler and DevMode with a large classpath), we could simply add org.json as a dependency to gwt-user inaddition to javax.validation (we could also instead add a dependency on the requestfactory-dependencies suggested above ;-) ) I still do not understand why javax.validation is not bundled within gwt-user. There might be some note in the issue tracker, commit log, or code reviews, but I haven't searched yet. On Tuesday, May 29, 2012 10:51:07 AM UTC+2, Thomas Broyer wrote: Hi all, it looks like there's an issue in packaging the GWT SDK (and GWT maven artifacts): org.json is not bundled gwt-user. That makes it harder to use RequestFactory out-of-the-box, as DevMode will have NoClassDefFoundErrors when trying to *send* a request to the server. org.json is bundled into requestfactory-server.jar and gwt-servlet-deps.jar, which makes it usable out-of-the-box on the server-side; it's also bundle into requestfactory-client.jar so you can easily run VM client-side code too (in unit-tests, an Android app, etc.) To run RF code in DevMode, you'd have to add the org.json JAR (downloaded somewhere on the internet) or the requestfactory-client.jar (which duplicates a lot of classes from gwt-user.jar), or the gwt-servlet-deps.jar (which is supposedly related to server-side code only) to your classpath; this is not intuitive. What's striking is that javax.validation is *not* bundled that way (except, as expected, in gwt-servlet-deps.jar), it's instead shipped as a separate JAR in the SDK; it's not even bundled into gwt-user.jar. There's a real discrepancy between org.json and javax.validation wrt packaging in the SDK, and none of them is satisfactory. - requestfactory-* JARs contain org.json but not javax.validation - gwt-user contains none of them - gwt-servlet-deps is made of only org.json and javax.validation, so why ship javax.validation in addition to it? IMO, both dependencies should receive equal treatment: either ship as separate JARs in the SDK (json.jar and validation-api.jar), or be bundled where needed (if you ask me, only in gwt-user.jar –similar to what's done with javax.servlet– and gwt-servlet-deps.jar; possibly renamed to or duplicated as requestfactory-deps.jar, as they are dependencies for both requestfactory-client and requestfactory-server). Now, we have similar issues with Maven artifacts: gwt-user.jar depends on javax.validation but not org.json, so the DevMode will fail (whether you launch it with Run As… Web Application in Eclipse or mvn gwt:run) unless you add a dependency on org.json. org.json is not even referenced/documented as an optional dependency (but given that javax.validation is not marked as optional, there's no reason org.json would be marked optional). We're currently facing this issue in gwt-maven-archetypes and I'm not sure what we should do: add a dependency on requestfactory-client (contains duplicate classes from gwt-user) or on org.json (weird as we don't directly use org.json classes, and org.json is not marked as an optional dependency of gwt-user). https://github.com/tbroyer/gwt-maven-archetypes/pull/16 I'll try to submit a patch to have it fixed in 2.5 but we must first settle on the appropriate way to do it (both for the GWT SDK and for Maven artifacts), and I'd also like your feedback on what would be the appropriate workaround while waiting for 2.5. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Generated EditorContext class names take actual parameterization into account. (issue1352806)
On 2012/05/30 01:39:13, skybrian wrote: On 2012/05/26 15:20:15, tbroyer wrote: On 2012/05/25 19:35:47, skybrian wrote: Having two levels of class nesting is rather confusing. Could you move the Driver and other 4 inner classes up a level? Done. Do you think the Intern/Manager/Department should be moved to top-level classes, siblings of Person? Oh drat. I forgot that GWT style requires inner classes to be alphabetized. We really ought to get rid of that, but in the meantime, yes, moving them to top-level classes seems better. Done. http://gwt-code-reviews.appspot.com/1352806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 6710: entities referenced from list of value proxies (issue1646803)
https://gwt-code-reviews.appspot.com/1646803/diff/1/user/src/com/google/web/bindery/requestfactory/server/Resolver.java File user/src/com/google/web/bindery/requestfactory/server/Resolver.java (right): https://gwt-code-reviews.appspot.com/1646803/diff/1/user/src/com/google/web/bindery/requestfactory/server/Resolver.java#newcode365 user/src/com/google/web/bindery/requestfactory/server/Resolver.java:365: new IdentityHashMapBaseProxy, Resolution(); On 2012/05/29 18:41:50, rdayal wrote: On 2012/05/29 17:08:02, rdayal wrote: On 2012/05/27 08:41:35, tbroyer wrote: On 2012/05/23 01:08:29, rdayal wrote: Sorry for the long delay on this, but doing a bit of thinking - it seems incorrect to add an empty ValueProxy object to the clientObjectToResolutionMap when there's no representation of it. It seems that items should be added to this list when they're actually resolved (i.e filled in; not empty). Can we come up with a solution that satisfies this? It may require the addition of another unresolved List, and then migration over to the map when items are filled in. I'll have to think more about it... Though it's going to add more code, I think the workaround we have here is a bit of a hack. I think it's an elegant hack, but it just feels wrong to be working around ValueProxy.equals() because we're trying to add empty value proxies to a resolved map when they really haven't been totally resolved yet. Thoughts? I really think we _need_ an IdentityHashMap here, whether we add an unresolved list or not. We want to map proxy instances to their resolution object, we know we will be modifying the proxies, so a Map that uses equals() is a mistake: a) you shouldn't use mutable objects as keys, and b) we don't care about objects that compare equal, we want to map a very specific instance (be it an entity proxy or value proxy, it really doesn't matter) to a Resolution object. Your justification to use an IdentityHashMap does make sense. It just strikes me as odd that we're using a Map where the key is mutable (in general, regardless of whether or not this is an IdentityHashMap). It just seems that there must be a better way to do this. I'd be happier if the key was some sort of synthetic ID that was generated at creation time (of the ValueProxy or EntityProxy), and that key mapped to both the resolution object and the proxy object. In the interest of expediency, we can defer fixing this issue. I'd request that we add some doc to your existing comment indicating that this map is strange in that the key itself is mutated. Done. I've actually removed the comment from patch-set #2, as this is unnecessary details: as I said previously, we're mapping instances to Resolution objects, independently of their internal state (and thus independently of their hashCode value and equals behavior), so IdentityHashMap is what should have been used from the beginning. The fact that RequestState guarantees there's at most one EntityProxy per domain object only adds confusion. https://gwt-code-reviews.appspot.com/1646803/diff/12001/user/src/com/google/web/bindery/requestfactory/server/RequestState.java File user/src/com/google/web/bindery/requestfactory/server/RequestState.java (right): https://gwt-code-reviews.appspot.com/1646803/diff/12001/user/src/com/google/web/bindery/requestfactory/server/RequestState.java#newcode49 user/src/com/google/web/bindery/requestfactory/server/RequestState.java:49: private final IdentityHashMapObject, SimpleProxyId? domainObjectsToId; domainObjectsToId as only ever assigned an IdentityHashMap instance; and given that an IdentityHashMap breaks the Map contract, I think it's better to use IdentityHashMap here to make it explicit what the behavior of the map is without having to look for the value that has been assigned to the field. https://gwt-code-reviews.appspot.com/1646803/diff/12001/user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java File user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java (right): https://gwt-code-reviews.appspot.com/1646803/diff/12001/user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#newcode78 user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java:78: * ID to a persisted ID in Resolver#resolveClientProxy) in a way that can Note that there's a small bug in resolveClientProxy in that it calls setServerId on the SimpleProxyId instead of calling IdFatory#getId. getId updates an existing ID in a similar way, but Id Factory also keeps track of ephemeral IDs, and getId updates the internal bookmarking in addition to calling setServerId. This causes a SimpleProxyId to *not* be reused (and therefore a new EntityProxy to be created) when having 2 distinct domain-object instances representing the same entity. This is part of
Re: [gwt-contrib] Re: Packaging issue: org.json and RequestFactory
On Wed, May 30, 2012 at 12:24 PM, Ray Cromwell cromwell...@google.com wrote: For GWT 2.5, we might be able to use the elemental json implementation, it has both pure JRE and super-source implementations, and simultaneously replaces org.json and the com.google.gwt.json packages. That'd be great! Any advice about what we should do with 2.4? (more specifically to fix https://github.com/tbroyer/gwt-maven-archetypes/pull/16 ) add org.json? (means another version to manage) add requestfactory-client? (means duplicated classes in the classpath, but they should come from the same GWT build so there shouldn't be conflicts) ...or simply wait for 2.5? (as it'll contain so many fixes to RF!) -- Thomas Broyer /tɔ.ma.bʁwa.je/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] HELP: Generated Javascript contains wrong prototype assignments
Just created an issue for it on the issue tracker with an attached example project. The project contains a Place with a constructor that does not create a valid instance of that place because of missing prototype assignment. The project can be imported into eclipse and should run out of the box. http://code.google.com/p/google-web-toolkit/issues/detail?id=7392 -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Integer.TYPE, etc. (issue1710804)
On 2012/05/30 06:16:52, stephenh wrote: I'll submit your change after the API Checker config file is updated. We should just need to add these lines to it: java.lang.Boolean::FALSE FINAL_ADDED java.lang.Boolean::TRUE FINAL_ADDED Great, that sounds good to me. Thanks, John. Thanks for stepping in, John - I'll review the other CL now. http://gwt-code-reviews.appspot.com/1710804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding the GWT 2.4_2.5 API Checker configuration file. Many API changes were added to the 2.3_2... (issue1721803)
LGTM. Looks like we're missing the deletion of the 23_24 config file? http://gwt-code-reviews.appspot.com/1721803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 6710: entities referenced from list of value proxies (issue1646803)
LGTM. https://gwt-code-reviews.appspot.com/1646803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding the GWT 2.4_2.5 API Checker configuration file. Many API changes were added to the 2.3_2... (issue1721803)
We don't delete the old files, we just add a new file. http://gwt-code-reviews.appspot.com/1721803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding the GWT 2.4_2.5 API Checker configuration file. Many API changes were added to the 2.3_2... (issue1721803)
On 2012/05/30 15:49:24, jlabanca wrote: We don't delete the old files, we just add a new file. But maybe we should revert the changes made to the 23_24 file after the 2.4 release was cut out, no? (re. Many API changes were added to the 2.3_2.4 file because we never created the 2.4_2.5 config file) http://gwt-code-reviews.appspot.com/1721803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding the GWT 2.4_2.5 API Checker configuration file. Many API changes were added to the 2.3_2... (issue1721803)
That would involve creating 2.3-modified jars, syncing to the 2.4 release, and running API Checker, just to update a file that is no longer used. I'll leave it for the next guy to worry about. It's convenient to have the history of conf files when creating a new config file, even if they aren't exactly correct. Rajeev is right that we could delete them, but its not as if they take up any space. I say leave it as is. http://gwt-code-reviews.appspot.com/1721803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding the GWT 2.4_2.5 API Checker configuration file. Many API changes were added to the 2.3_2... (issue1721803)
committed as r11000. http://gwt-code-reviews.appspot.com/1721803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] com.google.gwt.core.client.GWTBridge
Hello, I rebuilt GWT with the latest in the source tree and am now getting a class not found exception for com.google.gwt.core.client.GWTBridge in my servlet RPC implementation. Should that class exist in gwt-servlet.jar? When I add it to that jar file, the class not found exception goes away. [It looks like GWTBridge and some related classes changed earlier this month.] Thanks, Jim -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] com.google.gwt.core.client.GWTBridge
The workaround is to inject a server dependency on :gwt-dev, aka gwt-dev.jar, which supplies that class. It's a side effect of a refector we did recently, but I haven't reviewed for what made it become necessary where it wasn't before. On Tue May 29 16:43:48 GMT-400 2012, Jimo jponei...@gmail.com wrote: Hello, I rebuilt GWT with the latest in the source tree and am now getting a class not found exception for com.google.gwt.core.client.GWTBridge in my servlet RPC implementation. Should that class exist in gwt-servlet.jar? When I add it to that jar file, the class not found exception goes away. [It looks like GWTBridge and some related classes changed earlier this month.] Thanks, Jim -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] com.google.gwt.core.client.GWTBridge
On Tue, May 29, 2012 at 4:43 PM, Jimo jponei...@gmail.com wrote: I rebuilt GWT with the latest in the source tree and am now getting a class not found exception for com.google.gwt.core.client.GWTBridge in my servlet RPC implementation. Should that class exist in gwt-servlet.jar? When I add it to that jar file, the class not found exception goes away. [It looks like GWTBridge and some related classes changed earlier this month.] Do you know what class is referencing c.g.g.client.GWTBridge? There is a shared version (which the client one derives from) that should be there, but referencing client code in the server is dangerous. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] com.google.gwt.core.client.GWTBridge
I rebuilt GWT with the latest in the source tree and am now getting a class not found exception for com.google.gwt.core.client.GWTBridge in my servlet RPC implementation. Should that class exist in gwt-servlet.jar? When I add it to that jar file, the class not found exception goes away. Huh, I'm getting the same exception too after updating to trunk yesterday: [java] java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge [java]at com.google.gwt.user.server.rpc.impl.SerializabilityUtil.computeHasCustomFieldSerializer(SerializabilityUtil.java:513) [java] at com.google.gwt.user.server.rpc.impl.SerializabilityUtil.hasCustomFieldSerializer(SerializabilityUtil.java:366) [java] at com.google.gwt.user.server.rpc.impl.SerializabilityUtil.generateSerializationSignature(SerializabilityUtil.java:868) [java] at com.google.gwt.user.server.rpc.impl.SerializabilityUtil.getSerializationSignature(SerializabilityUtil.java:333) [java] at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateTypeVersions(ServerSerializationStreamReader.java:1112) [java] at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:610) [java] at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:567) [java] at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:140) [java] at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:425) [java] at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:312) [java] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206) [java] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) [java] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) SerializabilityUtil is calling if c.g.g.core.client.GWT.isClient() and that class has a setBridgeMethod method which takes a core.client.GWTBride parameter. Seems like maybe SerializabilityUtil should use shared.GWT.isClient() instead? It has a setBridgeMethod too, but the type there is shared.client.GWTBridge, which is in the servlet jar, so should work. I'll try this locally and see how it goes. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 6710: entities referenced from list of value proxies (issue1646803)
https://gwt-code-reviews.appspot.com/1646803/diff/14003/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java File user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java (right): https://gwt-code-reviews.appspot.com/1646803/diff/14003/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java#newcode590 user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java:590: for (SimpleValueProxy value : response) { Skybrian had a good point - we should add an assert here indicating that we received at least 2 values from returnValueProxies; otherwise, we're not reproducing the bug. https://gwt-code-reviews.appspot.com/1646803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Use shared.GWT to avoid ClassNotFoundExceptions (issue1722803)
Reviewers: rdayal, Please review this at http://gwt-code-reviews.appspot.com/1722803/ Affected files: M user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java Index: user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java diff --git a/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java b/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java index 7aa02db704a8149265b8d744c1036d810d3230a8..2dd668dd50b3dafa80b81e50405999bb380ffdf1 100644 --- a/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java +++ b/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java @@ -15,7 +15,7 @@ */ package com.google.gwt.user.server.rpc.impl; -import com.google.gwt.core.client.GWT; +import com.google.gwt.core.shared.GWT; import com.google.gwt.user.client.rpc.CustomFieldSerializer; import com.google.gwt.user.client.rpc.GwtTransient; import com.google.gwt.user.client.rpc.SerializationException; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] com.google.gwt.core.client.GWTBridge
Seems like maybe SerializabilityUtil should use shared.GWT.isClient() instead? It has a setBridgeMethod too, but the type there is shared.client.GWTBridge, which is in the servlet jar, so should work. This worked. Patch is here: http://gwt-code-reviews.appspot.com/1722803 - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Use shared.GWT to avoid ClassNotFoundExceptions (issue1722803)
LGTM Thanks, this is one of the cases where server-side code was using code from c.g.g.*.client and it was working, but that is always going to be very dangerous. Over time, we should fix all these cases and make it so server-side code can't even see any client packages. http://gwt-code-reviews.appspot.com/1722803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] com.google.gwt.core.client.GWTBridge
Do you know what class is referencing c.g.g.client.GWTBridge? There is a shared version (which the client one derives from) that should be there, but referencing client code in the server is dangerous. You could integrate Macker (http://innig.net/macker/index.html) into your GWT ant script and define a rule that checks for any reference from *.server.* to *.client.* packages. May be helpful to detect such violations. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] com.google.gwt.core.client.GWTBridge
On Wed, May 30, 2012 at 7:09 PM, Jens jens.nehlme...@gmail.com wrote: You could integrate Macker (http://innig.net/macker/index.html) into your GWT ant script and define a rule that checks for any reference from *.server.* to *.client.* packages. May be helpful to detect such violations. There is a ton of stuff we would have to clean up first, and I think we will get that for free by splitting it up into smaller jar's -- you just don't even put the client stuff on the classpath for the server. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 7038: CompositeEditor and ListEditor optimizations (issue1664803)
I got this feedback from someone who requested a rollback but decided to work around it instead. I wonder how widespread this sort of thing is? Our use of the editor/driver stuff assumed the editors would be rebuilt when driver.edit(T) was invoked. This isn't true with this CL, as the point of the CL was to try and avoid rebuilding the editors when the same T is put into the same driver/editor framework. Basically we used the editor/driver thing to show a read-only version of T and then depended on the sub-editors to be recreated when the user clicked our Edit button and we pushed the same model object back into the same top level editor. Our work-around is to push a mock empty object in first, and then push the real object again, forcing the sub-editor list to be cleared and recreated. https://gwt-code-reviews.appspot.com/1664803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix for issue 5952: RequestContext#isChanged. (issue1601806)
LGTM (assuming tests still pass) http://gwt-code-reviews.appspot.com/1601806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors