Re: CellTable of Strings
Yes, create an object that will have column1, etc as attributes, then create a ListWord and populate it with your source list however you want to (preferably you might want to send this list like your CellTable will use already populated from the server): public class Word { String column1; String column2; String column3; String column4; // add setters and getters } ListWord wordList = new ArrayListWord(); // or whatever List implementation you like/need // populate wordList as needed from your source list(s) and add it to your ListDataProvider. // Create column1 TextColumnWord columnOne = new TextColumnWord() { @Override public String getValue(Word word) { return word.getColumn1; } }; On Friday, August 23, 2013 2:24:58 PM UTC-4, Noel Reforma wrote: Hello. I'm trying to build a table (20 rows x 4 columns) of just Strings. I'm using a CellTable and use the ListDataProvider but since my datasource is just a ListString, I'm having trouble trying to figure out how to split my list so that it will put 20 per column. Initially, I'm thinking about just creating an object that will have column1, column2, column3 and column4 as attributes but I'm not sure if this is the best way to do it. public Word { ListString column1; ListString column2; ListString column3; ListString column4; } I guess this is more of a design question. i'm just looking for a cleaner way of doing it. Since I can't do the following because I just have a ListString, I how can I distinguish the set that will go to col1 and col2...etc. // Create address column. TextColumnContact addressColumn = new TextColumnContact() { @Override public String getValue(Contact contact) { return contact.address; // I cannot do something like this...should I use an Array so I can point to the next column? } }; Thanks. Any advice is appreciated. NR -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: RequestFactoryEditorDriver (or any type of Editor) and ValueChangedEvent
I think you can do what you want with ValueAwareEditor: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/editor/client/ValueAwareEditor.html On Thursday, March 14, 2013 12:34:09 PM UTC-4, Jonathan Jones wrote: Hi all, I am new to GWT 2.5 so please forgive me. I have successfully managed to bind my Editor (RequestFactoryEditorDriver) to my Proxy objects and am saving away etc all very well. However, I would really like to listen for change events (on the proxy or any of the fields in my delegate). This would allow me to check the driver.isDirty() and subsequently enable or disable my save button. I have played with HasValueChangeHandlers,ValueChangeHandler... added ValueChangedEvent to my event bus but I'm not having any joy. Any ideas would be greatfully appreciated. Thanks in advance. JJ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid vertical scrollbar overlaps the last column
I don't understand that documentation sentence you just quoted. What I've done is one of two things as a workaround: 1) set a ~20 pixels padding-right on the last column, or 2) set a size to the column to be ~20 pixels wider than what expect the content to be on the last column. On Friday, February 8, 2013 1:49:22 PM UTC-5, Alex opn wrote: It's caused by CustomScrollPanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/CustomScrollPanel.htmlwhich is used internally by DataGrid afaik. The documentation suggests: If the scrollbars obscures the content, you can set the padding-top and padding-bottom of the content to shift the content out from under the scrollbars. Hope this helps a bit? Am Freitag, 8. Februar 2013 07:53:24 UTC+1 schrieb kedar vyawahare: Hi all, I am facing a DataGrid horizontal/Vetricle Scrollbar overlaps the last row issue. While displaying the data grid, It overlaps the last row as well as column. Attached is the screen shot. This issue is not specific to IE8. You can reproduce it any browser. For vertical scroll bar, even if I add some padding or make the last column wider , the issue is still persist. Please suggest workaround to sort out this. Thanks in advance. Kedar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
State of client-side pdf file generation
Some time ago, the gwt4air project to do client-side file generation was mentioned (see https://groups.google.com/d/topic/google-web-toolkit/nhevJ3qxtMs/discussion). Now emitrom http://www.emitrom.com has taken ownership of that project according to the project's website (http://code.google.com/p/gwt4air/). I'm wondering if the most up-to-date version of this library is now flex4j ( http://www.emitrom.com/flex4j). Can anyone comment on that? I'm interested in pdf file generation on the client side and possibly excel file generation which seems to be supported as well. Alternatively, is anybody aware of other libraries or ways to accomplish the same thing (if you think there's a better way/library)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: State of client-side pdf file generation
Thanks for your answer nino. So did the gwt4air project ever support the pdf-generation from withing GWT projects? Looking at pages like these ones (below) made me have some hope that it did or does if I use that project's code, even if it's old or outdated: http://code.google.com/p/gwt4air/wiki/WebAlivePDF http://code.google.com/p/gwt4air/wiki/GWTAndFlex On Thursday, January 31, 2013 11:45:59 AM UTC-5, nino wrote: Yes the most uptodate version is the one on that link. At the moment clientside file generation is only supported in Flex based projects. 3.1 will have it for regular GWT based projects. Similar to this http://gwt4air.googlecode.com/svn/trunk/exporter/GwtAir.html 2013/1/31 El Mentecato Mayor rogelio...@gmail.com javascript: Some time ago, the gwt4air project to do client-side file generation was mentioned (see https://groups.google.com/d/topic/google-web-toolkit/nhevJ3qxtMs/discussion). Now emitrom http://www.emitrom.com has taken ownership of that project according to the project's website (http://code.google.com/p/gwt4air/). I'm wondering if the most up-to-date version of this library is now flex4j (http://www.emitrom.com/flex4j). Can anyone comment on that? I'm interested in pdf file generation on the client side and possibly excel file generation which seems to be supported as well. Alternatively, is anybody aware of other libraries or ways to accomplish the same thing (if you think there's a better way/library)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. To post to this group, send email to google-we...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: use visualization javascript api in GWT
If you really need something not provided here: http://code.google.com/p/gwt-google-apis/ or here: http://code.google.com/p/gwt-charts/ (see demo: http://gwt-charts.appspot.com/) (they're both GWT wrappers), look at the source code on how they've done it for the existing functionality. On the other hand, if you're just missing some advanced options of existing charts, you can get away by using JSNI to implement them (but use the GWT wrapped library above for all other functionality). That's what we do successfully using gwt-visualization-1.1.2 (first library referenced above). I just recently learned of the gwt-charts project. Apparently it implements more (or all?) capabilities than gwt-visualization and it's more up-to-date, even if gwt-visualization comes from google. On Tuesday, January 29, 2013 5:16:43 AM UTC-5, oussama abid wrote: hi all, i want to use the visualization javascript api in my gwt project, i use the JSNI methods but it didn't work, i want to use the javascript api because it contain more features and more charts, can anyone have an exemple or an idea to make it work ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to execute afterStartup commands?
You probably want to schedule a deferred command: https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsDelayed#deferred On Tuesday, January 29, 2013 5:44:16 AM UTC-5, membersound wrote: Hi, how can I execute statements after the whole application has started up? Some kind of afterInit() method. Is there anything beside placing these calls at the end of the EntryPoint onModuleLoad(). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RequestFactory Could not parse payload: payload[0] = N
I should have thought of that, sorry. Unfortunately (fortunately for me), I don't see the error anymore. Lots of things changed in the mean time (source code and db schema) as this project is under heavy development. Yes, I could go back-trace using my repository and maybe make it fail again, but time is a scarce commodity, so I choose to continue development. I did notice one anomaly the day it happened, not sure it's related to the issue; I had a copy of a src directory under my WEB-INF folder, (I blame eclipse, but who knows, could have been user-error; me), which I deleted. I'll make sure to capture the payload if I see this again. On Wednesday, January 16, 2013 1:47:11 PM UTC-5, Thomas Broyer wrote: Would be great if any of you could log the request payload when this error happens. In the mean time, we might want to modify the RequestFactoryServlet to log the payload when there's an unrecoverable error, in addition to the exception. Could you please open an issue? (if there's none already) On Wednesday, January 16, 2013 7:08:44 PM UTC+1, El Mentecato Mayor wrote: Just saw this error myself as well, slightly different message: Unexpected error: java.lang.RuntimeException: Could not parse payload: payload[0] = I using GWT 2.5 and no GAE. Stacktrace is exactly the same though. Don't know why or what it means, just that I get it so far when a specific request is made. Has anybody found out what this means? On Monday, January 14, 2013 11:17:27 AM UTC-5, Nick Siderakis wrote: Hey Sydney, I've been seeing the same error message recently. Did you figure it out? On Saturday, July 28, 2012 3:46:00 PM UTC-4, Sydney wrote: After deploying my app on appengine, I get the following exception: com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost: Unexpected error java.lang.RuntimeException: Could not parse payload: payload[0] = N at com.google.web.bindery.autobean.vm.impl.JsonSplittable.create(JsonSplittable.java:70) at com.google.web.bindery.autobean.shared.impl.StringQuoter.create(StringQuoter.java:46) at com.google.web.bindery.autobean.shared.ValueCodex$Type$7.encode(ValueCodex.java:122) at com.google.web.bindery.autobean.shared.ValueCodex.encode(ValueCodex.java:315) at com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$ValueCoder.extractSplittable(AutoBeanCodexImpl.java:500) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:277) at com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.setProperty(ProxyAutoBean.java:253) at com.google.web.bindery.autobean.vm.impl.BeanPropertyContext.set(BeanPropertyContext.java:44) at com.google.web.bindery.requestfactory.server.Resolver$PropertyResolver.visitValueProperty(Resolver.java:154) at com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:289) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101) at com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:395) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127) at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) Any idea of what the exception means? 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/-/paboiMYiBNEJ. 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: server support
GWT is mostly a client-side library, so any server you want. The only restrictions depend on the client-server communication method you want to use. GWT comes with basically three ways of doing that; 1) RequestBuilder, which you can use to transfer any format (text, xml, JSON) or style (RESTful, SOAP), 2) RPC, and 3) RequestFactory. For these last two you need a JVM-based server. GWT comes with an embedded Jetty server out of the box. On Wednesday, December 19, 2012 4:18:27 AM UTC-5, nalin...@googlemail.com wrote: Hi, I am new to GWT and I am planning to build a prototype for a company.. Could any one tell me what servers are supported by GWT? -- 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/-/samrTso991cJ. 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: Web Viewer for the ALMA Radio Telescope
Satoshi, The link you provided doesn't work for me. It returns: Forbidden You don't have permission to access /portal/alma/sv.do on this server. On Monday, September 24, 2012 3:03:30 AM UTC-4, Satoshi Eguchi wrote: Hello! I'm Satoshi Eguchi, a posdoc of National Astronomical Observatory of Japan, working on Virtual Observatory. I have recently developed a web data viewer for the ALMA Radio Telescope, which is built on Atacama Dessert, utilizing with GWT. URL : http://jvo-dev.mtk.nao.ac.jp/portal/alma/sv.do?action=dataset.infodatasetId=ALMA0006 In the area of radio astronomy, we observe radio signal distributions in space and frequency at the same time, that is, we have to handle 3-dimensional data in an analysis phase, and this is different from optical astronomy. I believe that this arouses new children's curiosity from a different aspect which google sky gives, and that this can be a important turning point for astronomy. I would like to know there are someone who is interested in my/our work and collaboration. Or, why don't you mention about our project on Google Web Toolkit in Action, Real world projects page? I appreciate reading the letter. Yours, Satoshi Eguchi ** -- 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/-/_yJ5lix2gtcJ. 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: Cloning EntityProxies
This works! Thanks. (just wanted to state that for the record). On Thursday, April 12, 2012 11:57:27 AM UTC-4, gwtomni gwtomni wrote: try with this: AutoBeanT oldBean = AutoBeanUtils.getAutoBean(oldProxy); AutoBeanT newBean = AutoBeanUtils.getAutoBean(newProxy); AutoBeanCodex.decodeInto(AutoBeanCodex.encode(oldBean), newBean); newProxy = newBean.as(); context.edit(newProxy); -- 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/-/l09JgT65m-cJ. 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: DevMode for Firefox 14
Many thanks to Allan! ALL: Please star this issue: https://code.google.com/p/chromium/issues/detail?id=138557thanks=138557ts=1343057729 it might help to have better support for GWT devmode development (GWT plugin) for Chrome, and we can forget about firefox. On Monday, July 23, 2012 8:02:49 AM UTC-4, P.G.Taboada wrote: Thank you for jumping in and building the plugins. Do you know if someone else from the team will jump in? Just curious... I know I am a slightly off-topic here, I just don't want to start another thread. It might be that OSX users, especially Safari users don't have a big end-user market share. I have no hard data, but I would not agree it's the same when it comes down to the developers. Since Safari 5.1 we can't use it anymore (Omniweb sucks) and Chrome is not an option (way too slow). We are stuck with Firefox. Is there any plan to get the situation on OSX any better? At least make Chome DevMode usable? brgds Papick On Wednesday, July 18, 2012 2:08:06 AM UTC+2, Alan Leung wrote: While I am technically no longer on the team, I got curious and started looking at the FF14 changes. There were some slight changes in the JS Object layout again but they seem easy enough to fix. I have built it for Linux 32 bit: http://acleung.com/ff14-linux32.xpi -Alan -- 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/-/TZKHRwf0G6EJ. 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: Problem creating custom gwt theme
(this is from an old thread I know, but the question hasn't been answered fully in this forum anywhere I see) So I want to create a custom gwt theme. To do this, I created a standalone maven project with a similar dir structure that I see with the gwt standard theme inside gwt-user.jar. I package it as a jar so it looks like this: com/mycompany/mytheme/StandardRTL.gwt.xml com/mycompany/mytheme/Standard.gwt.xml com/mycompany/mytheme/StandardResources.gwt.xml com/mycompany/mytheme/public/css/standard.css com/mycompany/mytheme/public/css/standard_rtl.css com/mycompany/mytheme/public/images/thumb_vertical.png com/mycompany/mytheme/public/images/circles.png com/mycompany/mytheme/public/images/vborder_ie6.png com/mycompany/mytheme/public/images/thumb_horz.png com/mycompany/mytheme/public/images/vborder.png com/mycompany/mytheme/public/images/corner_ie6.png com/mycompany/mytheme/public/images/hborder_ie6.png com/mycompany/mytheme/public/images/circles_ie6.png com/mycompany/mytheme/public/images/corner.png com/mycompany/mytheme/public/images/hborder.png then I specify this mytheme.jar as a maven dependency on a gwt project, the idea being that more than one project will use it. In the gwt project, I inherit my custom theme in my gwt module file like this: inherits name='com.mycompany.mytheme.Standard' / and all css styles from standard*.css are used so it works fine, *except* for the images which are simply not used/found. What do I need to do so that the images are found and used properly when referenced from the css file? (how are custom themes supposed to be packaged?) On Thursday, November 18, 2010 6:40:37 AM UTC-5, Thomas Broyer wrote: On 17 nov, 21:16, mitratul mitratul2...@gmail.com wrote: Hi, I am trying to create my own theme and use it. But while launching Dev mode, it is giving the following errors in eclipse console: Initializing AppEngine server Loading modules com.mitratul.theme.standard.Standard Translatable source found in... [WARN] No source path entries; expect subsequent failures Bootstrap link for command-line module 'com.mitratul.theme.standard.Standard' Linking module 'com.mitratul.theme.standard.Standard' Constructing StandardLinkerContext [ERROR] Primary linker is null. Does your module inherit from com.google.gwt.core.Core or com.google.gwt.user.User? com.mitratul.theme.standard.Standard is my theme module. I have followed the same directory structure inside the module as i found inside GWT inbuilt themes. Can anybody tell me why is this error coming? Your theme has to be inherit/ed in an application, not compiled standalone. -- 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/-/9aANxl0A2osJ. 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: Problem creating custom gwt theme
I realized soon after posting how to solve my problem... so here's the solution; you have to use the path conventions that the gwt themes use so that your resources can be found. I should have known that because long time ago I got a custom theme from the GWT Theme Generator ( http://works.sen-sei.in/gtg/). The css and image files need to be in the public directory and then follow a gwt/{projectName}/ subdirectory, so the project looks like this now: com/mycompany/standard/StandardRTL.gwt.xml com/mycompany/standard/Standard.gwt.xml com/mycompany/standard/StandardResources.gwt.xml com/mycompany/standard/public/gwt/standard/standard.css com/mycompany/standard/public/gwt/standard/standard_rtl.css com/mycompany/standard/public/gwt/standard/images/thumb_vertical.png com/mycompany/standard/public/gwt/standard/images/circles.png com/mycompany/standard/public/gwt/standard/images/vborder_ie6.png com/mycompany/standard/public/gwt/standard/images/thumb_horz.png com/mycompany/standard/public/gwt/standard/images/vborder.png com/mycompany/standard/public/gwt/standard/images/corner_ie6.png com/mycompany/standard/public/gwt/standard/images/hborder_ie6.png com/mycompany/standard/public/gwt/standard/images/circles_ie6.png com/mycompany/standard/public/gwt/standard/images/corner.png com/mycompany/standard/public/gwt/standard/images/hborder.png and it works... that's what I get from trying to optimize/modify the structure I copied from the GWT Clean theme. On Thursday, April 5, 2012 3:13:20 PM UTC-4, El Mentecato Mayor wrote: (this is from an old thread I know, but the question hasn't been answered fully in this forum anywhere I see) So I want to create a custom gwt theme. To do this, I created a standalone maven project with a similar dir structure that I see with the gwt standard theme inside gwt-user.jar. I package it as a jar so it looks like this: com/mycompany/mytheme/StandardRTL.gwt.xml com/mycompany/mytheme/Standard.gwt.xml com/mycompany/mytheme/StandardResources.gwt.xml com/mycompany/mytheme/public/css/standard.css com/mycompany/mytheme/public/css/standard_rtl.css com/mycompany/mytheme/public/images/thumb_vertical.png com/mycompany/mytheme/public/images/circles.png com/mycompany/mytheme/public/images/vborder_ie6.png com/mycompany/mytheme/public/images/thumb_horz.png com/mycompany/mytheme/public/images/vborder.png com/mycompany/mytheme/public/images/corner_ie6.png com/mycompany/mytheme/public/images/hborder_ie6.png com/mycompany/mytheme/public/images/circles_ie6.png com/mycompany/mytheme/public/images/corner.png com/mycompany/mytheme/public/images/hborder.png then I specify this mytheme.jar as a maven dependency on a gwt project, the idea being that more than one project will use it. In the gwt project, I inherit my custom theme in my gwt module file like this: inherits name='com.mycompany.mytheme.Standard' / and all css styles from standard*.css are used so it works fine, *except* for the images which are simply not used/found. What do I need to do so that the images are found and used properly when referenced from the css file? (how are custom themes supposed to be packaged?) On Thursday, November 18, 2010 6:40:37 AM UTC-5, Thomas Broyer wrote: On 17 nov, 21:16, mitratul mitratul2...@gmail.com wrote: Hi, I am trying to create my own theme and use it. But while launching Dev mode, it is giving the following errors in eclipse console: Initializing AppEngine server Loading modules com.mitratul.theme.standard.Standard Translatable source found in... [WARN] No source path entries; expect subsequent failures Bootstrap link for command-line module 'com.mitratul.theme.standard.Standard' Linking module 'com.mitratul.theme.standard.Standard' Constructing StandardLinkerContext [ERROR] Primary linker is null. Does your module inherit from com.google.gwt.core.Core or com.google.gwt.user.User? com.mitratul.theme.standard.Standard is my theme module. I have followed the same directory structure inside the module as i found inside GWT inbuilt themes. Can anybody tell me why is this error coming? Your theme has to be inherit/ed in an application, not compiled standalone. -- 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/-/2ECySJRBQeEJ. 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: Is multi-level fetch depth with RequestFactory possible?
Thanks guys! That was it, I assumed those relationships would be fetched automatically. On Mar 20, 6:55 pm, Thomas Broyer t.bro...@gmail.com wrote: Are you passing settings.settingDefinition to the with() of your Request? If not (only giving settings) then that's expected. -- 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- Quirks mode :Is there any way to force Document mode to Quirks in GWT ?
Using the Transitional doctype will make your app run in quirks mode: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd See: http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#components Keep in mind that the layout panels introduced in GWT 2.0 work properly only under standards mode, at least at the time they were introduced. On Jan 19, 7:34 am, vaibhav bhalke bhalke.vaib...@gmail.com wrote: How to force Document mode to Quirks mode ? I am using GWT application My Iframe is not completely appear in IE8. But works in IE7 and Mozila FF. I tried meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / to solve this isssue bt no suceess :( IE8 wrks only when I am setting document mode to Quirks using developer tools Is there any way to force Document mode to Quirks in GWT ? -- Best Regards, Vaibhav Bhalke http://about.me/vaibhavbhalke -- 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: Data-binding, Konckout.js
Take a look at Editors in GWT: http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html On Apr 30, 9:35 am, Artem Nikulchenko a...@cloudwk.com wrote: I've recently seen Knockout.js presentation at MIX 11 and it looks amazing. It removes all boilerplate code around data-binding and looks really amazing!!! We do have a lot of development in both GWT and Silverlight, and Silverlight data-binding is probably the only advantage left (and we really miss it when switch to GWT and write data oriented applications). And it looks like Knockout.js could give same experience, if it would be integrated into GWT. Is there are any plans to integrate Knockout.js into GWT? Or maybe make same binding experience in GWT by it's own? Best regards, Artem -- 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: shuttle component
No, but it's very easy to create one. On Mar 30, 4:11 am, Vik vik@gmail.com wrote: right so is this available in gwt? Thankx and Regards Vik Founderhttp://www.sakshum.orghttp://blog.sakshum.org On Wed, Mar 30, 2011 at 1:12 PM, nino ekambi jazzmatad...@googlemail.comwrote: Do you mean something like this ?: http://www.sencha.com/examples/explorer.html#duallistfield http://www.sencha.com/examples/explorer.html#duallistfield 2011/3/30 Vik vik@gmail.com anyone on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 27, 2011 at 3:31 PM, Vik vik@gmail.com wrote: Hie Does gwt has any shuttle component in which we can chose options from left and move to right as selected? If no then whatis the alternative? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 API for the Flash Platform http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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: problema de integracion con Eclipse
No estoy seguro de como bajaste el plugin del que hablas (y qué plugin es), pero yo acabo de instalar el Google Plugin que incluye la última versión de GWT SDK y otras cosas en una instalación nueva de eclipse Helios también en Windows XP. Yo simplemente usé este url para instalarlos: http://dl.google.com/eclipse/plugin/3.6 (que encuentras en la página gwt.google.com --- Download) y todo salió sin problemas. On Mar 28, 8:04 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Es raro, probá desinstalar los plugins que tengas instalados de gwt y reintenta de esta forma:http://code.google.com/intl/es/eclipse/docs/install-from-zip.htmlhttp://www.google.com/url?sa=Dq=http://code.google.com/intl/es/eclip... Juan 2011/3/25 David davidvarg...@gmail.com Hola: Quiero comenzar a utilizar el framework GWT y para esto quisiera integrarlo con Eclipse. Estoy usando ademas Windows XP. Ya me he bajado el Eclipse Helios Service Release 2. Y ademas tengo descargado el plugin: com.google.gdt.eclipse.suite.e36.update.site_2.2.0.v201102111811 He seguido las instrucciones para la instalacion local y me deja este mensaje de error: Cannot complete the install because one or more required items could not be found. Software being installed: Google App Engine Java SDK 1.4.2 1.4.2.v201102111811 (com.google.appengine.eclipse.sdkbundle.e36.feature. 1.4.2.feature.group 1.4.2.v201102111811) Missing requirement: Google Plugin for Eclipse 3.6 2.2.0.v201102111811 (com.google.gdt.eclipse.suite.e36.feature.feature.group 2.2.0.v201102111811) requires 'org.eclipse.pde.core 0.0.0' but it could not be found Cannot satisfy dependency: From: Google App Engine Java SDK 1.4.2 1.4.2.v201102111811 (com.google.appengine.eclipse.sdkbundle.e36.feature. 1.4.2.feature.group 1.4.2.v201102111811) To: com.google.gdt.eclipse.suite.e36.feature.feature.group 2.2.0 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. 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: How to implement Enter Key Submit Form in GWT
If you want to do it when a PasswordTextBox is on focus for example (this is from my sign-in page): passwordTextBox.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (((int)event.getCharCode()) == 13) { // User hit Enter key submitForm(); } } }); On Feb 24, 4:55 pm, Néstor Boscán nesto...@gmail.com wrote: Hi I need to simulate the Enter Key submit form in GWT where hay hit the enter key and the form is submitted. Any ideas on how to acomplish this? Regards, Néstor Boscán -- 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: I need 2 Google IO tickets
Well, I'm interested in getting a ticket too :-( (didn't expect the event to be sold out in half an hour or so). I'd also be interested in a get-together for GWT Developers, but I will only be in SF if I get a google IO ticket. On Feb 10, 6:41 am, István Szoboszlai mrsz...@gmail.com wrote: Hello, Sorry to post about this, but I am desperate about going to Google IO. I develop in GWT for more than 3 years. We already bought the plain tickets from Hungary, but could not buy IO tickets. We also have a gwt framework called IneForm, that is going to be opensourced soon (I think it is a decent framework, I will announce it here, when it's out). So I really want to meet other GWT developers, and I thought IO is a great opportunity. I will be in SF form May 6 to May 29. *If anybody have some ticket to sell, I would pay decent amount of money for it!* Irrespectively of me being able to get tickets, we could organize some event in SF in the time of IO for GWT developers. Anybody Interested ether in selling ticket or in some GWT event? Üdvözlettel / Best Regards - István Szoboszlai istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT+SpringSecurity - handling session-timeout
A few suggestions about sign-in are already here although maybe they don't touch much about session expiration: http://code.google.com/webtoolkit/articles/dynamic_host_page.html About the redirect you mentioned getting lost, my educated guess is that most likely the redirection is working but your responses (through RPC or whatever you use) don't handle them. Try printing the response text and most likely you'll see your login.jsp being sent. A couple of ways to handle session expiration: - A quick and dirty solution: parse a specific string that you will always have in your login.jsp within your callback(s). Once you know this is the response, then you can call Window.Location.assign(redirectUrl) to redirect to login.jsp, or display a login dialog. - A better but more involved solution is to throw a GWT-compatible exception once authentication fails (session expires) and have an abstract callback or one that all others extend to handle that exception in one place and do the same as I explained above. On Feb 7, 3:24 pm, andrew andrej.sla...@gmail.com wrote: Hi, we are implementing an application using GWT2.1 + Spring security 3.0. We use a SSO Kerberos authentication, if this fails, user can still log in through a login page. Our basic configuration is something like this: sec:http entry-point-ref=entryPoint sec:session-management invalid-session-url=/login.jsp / sec:intercept-url pattern=/login.jsp* filters=none / sec:intercept-url pattern=/images/* filters=none / sec:intercept-url pattern=/css/* filters=none / sec:intercept-url pattern=/* access=IS_AUTHENTICATED_FULLY / sec:custom-filter ref=spnegoProcessingFilter position=BASIC_AUTH_FILTER / sec:form-login login-page=/login.jsp default-target-url=/ Portal.html always-use-default-target=false authentication-failure- url=/login.jsp?login_error / sec:logout logout-success-url=/login.jsp?logout invalidate- session=true / /sec:http The authentication process works fine. Our problem is, how to deal with the session time-out. SpringSecurity recognizes the the session is invalid and calls in the filter chain a DefaultRedirectStrategy-response.redirect(/login.jsp), how expected. But the redirect gets lost and nothing happens. The user has to restart the browser or recall the login URL by him self. I read somewhere, that redirects are ignored by the GWT client, but I'm not sure with this. Any idea how to handle session-timeouts in GWT or how to make filter redirects work for GWT clients? Thanks for any advice, Andrej -- 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: onHover text on Tab
You can set the title text on a widget that you use for the tab text, for instance: Label label = new Label(My Tab); label.setTitle(This is my very helpful text); tabPanel.add(myPageWidget, label); On Jan 10, 5:42 am, mohit monu@gmail.com wrote: How can we show Help Text on hover of Tab element of GWT ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dropping support for ie6?
-1 for dropping ie6 (same here; big clients still use ie6-- unfortunately) +1 for adding ie9 On Dec 30 2010, 10:43 am, Peter Ondruska peter.ondru...@gmail.com wrote: I am very aware of that (working for very big bank which is still at IE6)... Something has to be done. And there are already possibilities like Google Chrome Frame. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I collapse either the right or left child of a SplitLayoutPanel?
How about mySplitPanel.setSplitPosition(0px)? On Oct 13, 1:49 pm, Blackberet ramonjsanti...@gmail.com wrote: Is there a programmatic hook for this? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: accents problem
You don't have to do any conversion unless you can't change the encoding of your file. With GWT, I only have been able to display these characters correctly using utf-8 (as specified in the GWT i18n documentation). Even if your characters look OK in whatever software program you're looking at, if the file is not encoded in utf-8, most likely it won't display correctly within a GWT app. On May 18, 8:04 am, Marcos Vinícius Soares mavsoa...@gmail.com wrote: You will have to do some kind of conversion using table below before using any text with accentuation. á = \u00e1 à = \u00e0 â = \u00e2 ã = \u00e3 ä = \u00e4 Á = \u00c1 À = \u00c0 Â = \u00c2 Ã = \u00c3 Ä = \u00c4 é = \u00e9 è = \u00e8 ê = \u00ea ê = \u00ea É = \u00c9 È = \u00c8 Ê = \u00ca Ë = \u00cb í = \u00ed ì = \u00ec î = \u00ee ï = \u00ef Í = \u00cd Ì = \u00cc Î = \u00ce Ï = \u00cf ó = \u00f3 ò = \u00f2 ô = \u00f4 õ = \u00f5 ö = \u00f6 Ó = \u00d3 Ò = \u00d2 Ô = \u00d4 Õ = \u00d5 Ö = \u00d6 ú = \u00fa ù = \u00f9 û = \u00fb ü = \u00fc Ú = \u00da Ù = \u00d9 Û = \u00db ç = \u00e7 Ç = \u00c7 ñ = \u00f1 Ñ = \u00d1 = \u0026 ' = \u0027 Hope this helps. * Taken fromhttp://programandosemcafeina.blogspot.com/2007/04/caracteres-especiai... On Tue, May 18, 2010 at 7:40 AM, Matt mydevmailingli...@gmail.com wrote: Hi, with your problem description being a bit vague, there are a few points where you might be going wrong: 1) The encoding of the file you're reading - you said you changed it to iso-8859-1, which might be fine - you can check if it displays correctly in e.g. Eclipse. However, when working with GWT I would suggest always working with UTF-8 if possible to avoid most encoding problems 2) I guess you're reading the file on the server. It will quite probably run using UTF-8 as default encoding, which you can check e.g. with System.getProperty(file.encoding). The encoding when reading the file needs to match the encoding of the file itself, you can specify that in your InputStreamReader's (or however you read the file) constructor. 3) The encoding of data coming from the server needs to match the content-type meta tag in your app's HTML page Hth, Matt On 18 Mai, 10:46, laurent bagno_laur...@hotmail.com wrote: I've a problem when i try to print accents.My application parse a csv file with the persons(first-lastName).Some having like Véronique,Benoît,... With Eclipse, doing click-droit, 'properties', 'Resources', i change to iso-8859-1.It's the same for firefox but never doing. I've a printing with a question mark inside a little square. Thanks for your request -- 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dialog is hidden behind Earth Map
A solution (kind of the third option you mentioned, but you don't have to hide the map completely unless you want to move the dialog around-- on top of the map) is to use a shimmer. Read it in this old thread, I use this method to get around this limitation with a Java applet: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/134c8a5d2fc5b71b/f6e245ecab6192f5?lnk=gstq=shimmer#f6e245ecab6192f5 On Apr 26, 8:36 pm, Chad chad...@gmail.com wrote: Eric, Thanks. So I guess I'm out of luck unless: * I change my UI layout so that the dialogs don't cover the map (or get covered by the map in this case) * I swap map types before displaying any dialogs and change it back after (when the Earth map type is being used) * I hide the map completely when I need to show a dialog (could be done with no regard to map type) Are there any other possible routes I haven't thought of here? Thanks, Chad On Apr 26, 3:16 pm, Eric Ayers zun...@google.com wrote: Hmm. I think this is because the Earth map type is actually a Flash plugin. On Mon, Apr 26, 2010 at 3:40 PM, Chad chad...@gmail.com wrote: I was able to find the earth div, but even setting the z-index on it down seems to have no effect. Anyone? Chad On Apr 26, 1:27 pm, Chad chad...@gmail.com wrote: Hi all, I have an application written in GWT 2.0.3 using GWT Maps 1.0.4. At times, I display a modal dialog (with the glass panel enabled). This works as expected if the map is displaying a normal map type (Map, Satellite, Hybrid, Terrain), but if the map is displaying an Earth map, the map stays on top of the dialog. The map is still usable, but the rest of the browser client area is grayed out (due to the glass panel) and the dialog itself is behind the map (the map covers most of the client area). I've tried setting the z-index of the map widget down and I've tried setting the z-index of the dialog up, but neither seem to make any difference. I tried to debug it in FF, but Firebug can't even select anything to do with the map as far as I can tell. Any Ideas? TIA, Chad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP question
I currently don't use MVP, but more like MVC where the View and Controller are sometimes in the same class (when the views/controllers are rather trivial), but regarding the example that Supercobra gave, and to answer your question Yaakov: Another way of sending model information is using interfaces. For instance, if I knew that I would be displaying a speedometer for car and a bike (and maybe something else as well), I would have done something like: new SpeedoMeterView(Vehicle vehicle)... where Vehicle is an interface with methods that provide access to all properties that the SpeedometerView needs. I do this a lot to with my views. To me, this is a lot better in terms of maintainability, readability and productivity, than just using primitives, especially when you have complex models. On Feb 16, 11:31 am, Yaakov Chaikin yaakov.chai...@gmail.com wrote: On Tue, Feb 16, 2010 at 8:53 AM, Supercobra Thatbytes dan...@metadot.com wrote: My first take away was that their were a few rules: 1) Presenters don't know about specific GWT widgets (so that you can test your business logic without GWTTestCase) 2) Displays don't know about business logic 3) Displays don't know about application logic 4) Displays don't know about model classes I still consider the first 3 to be sacrosanct, but I have pretty much dropped rule #4. Dropping rule #4 maybe saving time and make the code read more clearly but it will still tie your display class to a model - which may be OK - if you accept the constraints. For example if you have a speedometer display and want to display your car speed new SpeedoMeterView(Car car)... then you won't be able to display a motorbike speed: new SpeedoMeterView(Bike bike) ... unless you modify your SpeedoMeterView which is why you should NOT use a model but use primitive types instead: new Speedometer(float mph) This seems like a very valid point. Thanks for pointing that out. You can't reuse your view code for other (similar, but not the same) models. That's certainly an advantage. The question in my mind (which I still have to think about): Aren't most (if not all) views already very much tied to what the model represents? Sure, if you are writing a view that's very generic in nature and you want to reuse it in several places in your app, but practically speaking are there a lot of cases like that? I.e., in practice, are there a significant number of views that you end up reusing with several different models in your app? Not sure that a lot come to mind. In general, I don't think *any* design patterns are sacrosanct. I very often find that parts of those patterns need to be tweaked a bit to better fit into a particular situation while still maintaining the original idea (and most other components) of the pattern. I think it's very helpful to try to come up with reasons pro/against a certain component of a pattern (MVP in this case). In my particular case, I am trying to convince myself that pure MVP is better (or worse - whatever it comes out to be)... So, I think so far, it looks like not having your View depend in ANY way on the Model has the following advantages: 1) Can't (easily) reuse the view for other Models. 2) Poses a risk (if not careful yourself, have other less experienced developers on the team, tempting to cut corners, etc.) of introducing state into your View. (from Nathan's next posting). Advantages of passing the Model object directly to the view 1) Since View knows its own visual components very well, it's easier to unwrap the property values of Model and set those components to those values. All this without having to expose every visual field to the Presenter. Did I miss anything we've mentioned? Can anyone come with some others (pro or against)? Regards, Yaakov. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DialogBox broken in Firefox 3.6
I actually fixed my problem by just specifying a background color for the iframe that is behind the dialog. JY: You might want to try upgrading gwt, 1.4.60 is rather old. On Jan 28, 11:37 am, El Mentecato Mayor rogelio.flo...@gmail.com wrote: I noticed a slightly different problem a couple of days ago when I upgraded to FF3.6: I can drag fine a dialog (a specific dialog in my application, haven't tried the specific code above), but the dialog now appears below (in the Z direction) an applet on my page. Even with the shimmer solution that I posted long time ago on this forum, where the z-index is modified to be higher than both the applet and an iframe added on top of the applet, and it appears that the iframe has 0 or very small size. I noticed that the caption part of the dialog does appear above the applet, but not the rest (dialogContent). Not sure what changed in FF to break this. Can't seem to be able to fix with CSS alone. I will need to investigate and fix this, but while I get to it, if anybody knows more information about a fix or workaround, please post. On Jan 28, 5:32 am, JY chueny...@gmail.com wrote: Problem: The native DialogBox component in GWT 1.4.60 is broken in Firefox 3.6. It works in FF 3.5.x and all other major browsers. Behavior: You will not be able to drag the dialogbox in Firefox 3.6 Test Code: public class MyApplication implements EntryPoint { public MyApplication() { } public void onModuleLoad() { Button show = new Button(Show); final DialogBox box = new DialogBox(false, false); box.setText(Testing); box.setPopupPosition(100, 100); box.setSize(100px, 100px); VerticalPanel contents = new VerticalPanel(); contents.add(new Label(Hi)); Button close = new Button(Close); close.addClickListener(new ClickListener() { public void onClick(Widget sender) { box.hide(); } }); contents.add(close); box.setWidget(contents); show.addClickListener(new ClickListener() { public void onClick(Widget sender) { box.show(); } }); RootPanel.get().add(show); } } Other notes: I've not tried with other versions of GWT. Anyone else has this problem? Please post here if you've a solution or workaround. Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DialogBox broken in Firefox 3.6
I noticed a slightly different problem a couple of days ago when I upgraded to FF3.6: I can drag fine a dialog (a specific dialog in my application, haven't tried the specific code above), but the dialog now appears below (in the Z direction) an applet on my page. Even with the shimmer solution that I posted long time ago on this forum, where the z-index is modified to be higher than both the applet and an iframe added on top of the applet, and it appears that the iframe has 0 or very small size. I noticed that the caption part of the dialog does appear above the applet, but not the rest (dialogContent). Not sure what changed in FF to break this. Can't seem to be able to fix with CSS alone. I will need to investigate and fix this, but while I get to it, if anybody knows more information about a fix or workaround, please post. On Jan 28, 5:32 am, JY chueny...@gmail.com wrote: Problem: The native DialogBox component in GWT 1.4.60 is broken in Firefox 3.6. It works in FF 3.5.x and all other major browsers. Behavior: You will not be able to drag the dialogbox in Firefox 3.6 Test Code: public class MyApplication implements EntryPoint { public MyApplication() { } public void onModuleLoad() { Button show = new Button(Show); final DialogBox box = new DialogBox(false, false); box.setText(Testing); box.setPopupPosition(100, 100); box.setSize(100px, 100px); VerticalPanel contents = new VerticalPanel(); contents.add(new Label(Hi)); Button close = new Button(Close); close.addClickListener(new ClickListener() { public void onClick(Widget sender) { box.hide(); } }); contents.add(close); box.setWidget(contents); show.addClickListener(new ClickListener() { public void onClick(Widget sender) { box.show(); } }); RootPanel.get().add(show); } } Other notes: I've not tried with other versions of GWT. Anyone else has this problem? Please post here if you've a solution or workaround. Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make FileUpload widget readonly?
Not as far as I know. What we do is hide the textbox (it's more of a hack though) by setting its size to zero if possible and/or placing a blank panel on top of it (varies by browser). Only the Browse... button is visible. On Dec 29, 12:51 am, Lakindu laki...@gmail.com wrote: Hi, Is there a way to make FileUpload widget readonly? i.e. user should not be able to type on the text field of the FileUpload. Thanks in advance, Lakindu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FileUpload widget path name
1) As far as I remember, you won't be able to get the full path to the filename in all browsers on the client side. You can do it on the server-side (in your servlet). 2) I don't think you will be able to do that (assuming your G: drive is either mapped to a unix directory using samba maybe, or to another windows directory). The form of the path name will depend on the OS of the client that sends the files and in your case, I don't think there's a way for the browser to know that G:\abc.psr corresponds to /home/aa20/abc.psr. On Dec 30, 6:15 am, Shivi shivi.chan...@gmail.com wrote: Hi I am trying to use the FileUpload widget and when I call the getFileName() method it returns me the filename without the path name in firefox. If I try the same in IE the method returns the filename along with the path. e.g: If I browse and select file abc.psr in G: drive . getFileName() returns abc.psr in firefox and returns G:\abc.psr in IE. I would always like to get the path name along with the file name . How can I achieve this? Ques2) Is it possible for me to get the unix pathname with a file name instead of Windows? I am using Windows but instead of G:\abc.psr I would like to see /home/aa20/abc.psr Thanks for your help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FileUpload widget path name
1) As far as I remember, you won't be able to get the full path to the filename in all browsers on the client side. You can do it on the server-side (in your servlet). 2) I don't think you will be able to do that (assuming your G: drive is either mapped to a unix directory using samba maybe, or to another windows directory). The form of the path name will depend on the OS of the client that sends the files and in your case, I don't think there's a way for the browser to know that G:\abc.psr corresponds to /home/aa20/abc.psr. On Dec 30, 6:15 am, Shivi shivi.chan...@gmail.com wrote: Hi I am trying to use the FileUpload widget and when I call the getFileName() method it returns me the filename without the path name in firefox. If I try the same in IE the method returns the filename along with the path. e.g: If I browse and select file abc.psr in G: drive . getFileName() returns abc.psr in firefox and returns G:\abc.psr in IE. I would always like to get the path name along with the file name . How can I achieve this? Ques2) Is it possible for me to get the unix pathname with a file name instead of Windows? I am using Windows but instead of G:\abc.psr I would like to see /home/aa20/abc.psr Thanks for your help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Constants server-side?
Search this list for a couple of solutions that allow you to reuse the client-side interfaces. You will need to make sure that both the properties files and the interfaces exist on both the client and server sides. I opted to simply use ResourceBundle and make my properties files available on the server-side. The only other thing you need to take care of (in both scenarios) is knowing what Locale to use. You usually want to set it according to the locale that the client is using, which doesn't necessarily correspond to the same locale that the server-side JVM is running as. On Dec 21, 10:07 am, omsrobert robert.lafe...@o-ms.com wrote: I need to use the same localization mappings on the server as on the client. I can't instantiate Constants server-side. I suppose one method would be to read in the raw properties file and do a key lookup but I'd like to reuse the Java method interface if I can. Ideas??? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Geolocation without Gears?
It's working for me (off by about a mile). On Dec 15, 4:24 pm, Sekhar Ravinutala sek...@allurefx.com wrote: Thanks, this would've been great, except it's always returning null (even tried with the API key). A few others seem to have the same problem (e.g., herehttp://groups.google.com/group/google-ajax-search-api/browse_thread/t...), I wonder if it's a policy change by Google. Are you seeing your location? On Tue, Dec 15, 2009 at 12:28 PM, Adrian ahay...@gmail.com wrote: Apparently you can use Google's JS API as described here: http://news.ycombinator.com/item?id=978549 Might not be what you're after though. - Adrian On Dec 15, 10:25 am, Sekhar sek...@allurefx.com wrote: Is it possible to get the browser's geolocation without using Gears? I'm building a GWT app that needs the geolocation; and it's working fine with Gears, but I'm trying to avoid having the user install Gears. I understand HTML 5 has some support, but it's not here yet... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email togoogle-web-tool...@googlegroups.com. To unsubscribe from this group, send email togoogle-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- AllureFX LLChttp://www.allurefx.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: python gwt
I think the answer relies not only in the popularity of Java vs. Python, but in the fact that Java is a static typed language, and one with a lot of tools already in existence which can help you debug and develop faster. One of the reasons you want to avoid coding in a scripting language (javascript to begin with) for the web, is the inability to tell if there are some syntax/compiler errors before you deploy and run on the browser. On Oct 15, 9:01 am, Arthur Kalmenson arthur.k...@gmail.com wrote: You could always look at Pyjamas project as an alternative:http://code.google.com/p/pyjamas/. I've never used it so I can't say how good it is, but it has quite a few people on the project, if that says anything :P -- Arthur Kalmenson On Sun, Oct 4, 2009 at 4:44 PM, alf alberto@gmail.com wrote: Why google team choose java to compile into javascript when create GWT I think best had been python compile into javascript this away server and client will be same and in my case python is better than java. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT documentation available for download?
There's an outdated version here: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/6cadca3f1e1c9fcf/0235d6eb2c9df85d#0235d6eb2c9df85d On Oct 14, 7:37 am, jAY jaychandra...@gmail.com wrote: Is it available for download? On Oct 2, 8:25 pm, mo moritz.peter...@gmail.com wrote: Hi everyone, maybe you can help me out. I know the documentation online athttp://code.google.com/webtoolkit. But I'd like to download the documentation to my local disc so I can browse it while I'm not online (happens at some intercontinental flights for example). Any suggestions? Thank you, Mo. --~--~-~--~~~---~--~~ 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: Best practice for several html pages
In my case, the login page needs functionality shared with the regular app, so it is better to have a single module with two entry points. Anoher option is to divide it in three modules, login, app, shared- stuff and the first two inherit the shared-stuff. On Aug 5, 6:42 am, Insano doktor.ins...@googlemail.com wrote: I am currently developing a tool using Spring Security and and have two pages. One for the login and the other one for the actual tool. Both pages are built with GWT. What would be the best practice here? Would a module per page make sense? Or a simple module with two entry entry point classes? Thanks for any advice --~--~-~--~~~---~--~~ 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: History -- invalidating a page
1) Use the History mechanism (search the GWT docs or this forum for details) 2) Use something like this in your spring security config (withing your http tag, assuming you have one): intercept-url pattern=/** access=ROLE_USER / or intercept-url pattern=/** access=IS_AUTHENTICATED_FULLY / where you might also have this to enable the login page to be accessible: intercept-url pattern=/login.html* filters=none/ If you don't have a separate login page, then maybe you want to differentiate the login page with a history token or some query parameter so that the patter becomes something lilke index.html? loginScreen=true. On Jul 22, 8:14 pm, John Ivens john.wagner.iv...@gmail.com wrote: I hope that this is an easy question for all of you. I apologize if this has been answered before. I have set up security with LDAP and ACEGI, using jsp pages that are called when requests are intercepted via ACEGI. It works great. Upon successful login and determining that the user has the appropriate role, the gwt application is entered. There are two problems I have, and I think that they are related. 1.) When you press the back button, you are left with the original state of the page you first came to. So, tab pages have default values and all of that. How do you keep that information when you go back in the browser? 2.) Once I logout the user, it is still possible to visit the old page and do work on it, even though in reality the session has been invalidated. If I were to branch to another page from the original one, I would be redirected to the login page, but not upon orginally hitting the back button. How do I tell the browser that the old page is now invalidated? --~--~-~--~~~---~--~~ 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: problem with FileUpload
No. What you want is only possible with an applet (be it a flash, java, activex, etc applet which will request more permissions from the user to do what you need). Search for multiple file uploads in this group if you want to get into that. On Jul 17, 1:20 pm, jucimarjr junior.juci...@gmail.com wrote: Hi, I'm dealing with the following problem: I'm using the class FileUpload to upload a photo file. But I would like that, when I open a dialog box to the user choose his picture, the file formats appear only image formats. Now is showing All files. Is it possible do that? Regards, Jucimar --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Make selected item visible in ListBox on IE
I have a ListBox that in most cases will have more items than are visible at a time (visibleItemCount). I then add a new item dynamically and set it to be selected using setItemSelected(idx, true). The item is added to the bottom of the ListBox, which is fine, but I would like the item to be visible which is not working on IE. In Firefox 3.5.2 and Chrome 3.0.195.6 the item becomes visible (the scroll bar moves to the bottom), but in IE 7, the scroll bar doesn't move so the item is out of view. I verified that the item is selected by scrolling to the bottom, but I'd really like this to be automatic. Anybody know how can I force the ListBox to show this new (selected) item? --~--~-~--~~~---~--~~ 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: reading from files other than english contains unwanted squares
I'd check two things: 1. Are your files saved with the proper encoding? (utf8) 2. Does your html host file or whatever html file that displays your files' content has this: content=text/html;charset=utf-8? On Jun 16, 6:30 am, zujee sujeesh...@gmail.com wrote: Hi All, I have some files which contains english, french and japanese. When I try to read file from server and try to poup in client side , it seems some unwanted squres in between of each line. I read the file in serverside like private String readFile(String fileName) { try { String contents = new String(.getBytes(UTF-8), UTF-8); FileInputStream fstream = new FileInputStream(fileName); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine = new String(.getBytes(UTF-8), UTF-8); // Read File Line By Line while ((strLine = br.readLine()) != null) { contents += strLine + '\n'; } // Close the input stream in.close(); return contents; } catch (Exception e) {// Catch exception if any e.printStackTrace(); return null; } } In client side i tried to popup the message through asynchrmous call. What might be the issue Please help thanks zuje --~--~-~--~~~---~--~~ 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: sizing ListBoxes inside container
AFAIK, there's no way to do that, it's a limitation or bug that GWT has. If you do this (set a visible item count larger to what you know it will fit in the page), it will work on IE, but not on Firefox: VerticalPanel ui = new VerticalPanel(); ui.setBorderWidth(1); ui.setHeight(100%); ui.setWidth(100%); ListBox box1 = new ListBox(); box1.setSize(100%, 100%); box1.addItem(item1); box1.addItem(item 1.1); box1.setVisibleItemCount(100); ui.add(box1); ui.setCellHeight(box1, 20%); ListBox box2 = new ListBox(); box2.addItem(item 2); box2.setSize(100%, 100%); box2.setVisibleItemCount(100); ui.add(box2); ui.setCellHeight(box2, 20%); ListBox box3 = new ListBox(); box3.setSize(100%, 100%); box3.setVisibleItemCount(300); box3.addItem(item 3); ui.add(box3); ui.setCellHeight(box3, 60%); Maybe a way to accomplish this is to get the size of the window, and then divide it in whatever percentages, and then set the size in pixels for each listBox. You'll also need to have a windowResizeListener to resize the listboxes when the window size changes. On Jun 14, 11:26 pm, otismo tomcat.subscript...@gmail.com wrote: I want to create a layout with 3 listboxes that are 20%, 20%, and 60% of the page height. I tried: ui = new VerticalPanel(); ui.setStyleName(test); ui.setBorderWidth(3); ui.setHeight(100%); ui.setWidth(100%); ListBox box1 = new ListBox(); box1.addItem(item1); box1.setHeight(20%); ui.add(box1); ui.setCellHeight(box1, 20%); ListBox box2 = new ListBox(); ui.add(box2); ui.setCellHeight(box2, 20%); ListBox box3 = new ListBox(); ui.add(box3); ui.setCellHeight(box3, 60%); The above code renders a table with the proper sizing, but the list boxes don't expand to fill their surrounding cells. I've also tried styling the list boxes with: .gwt-ListBox { width: 100%; height: 100%; } The width setting works but not the height. Is there any way to get the height setting to work? I know I can set the visible count on the list box, but I want the list box to resize dynamically. What I want can be done with css as follows: div select size=4 style=height: 20%; width:100%; option value=item1item 1/option /select /div div select size=4 style=height: 20%; width:100%; option value=item2item 2/option /select /div div select size=4 id=test2 style=height:60%;width:100%; option value=item3item 3/option /select /div What am I doing wrong? Thanks for any tips! Peter --~--~-~--~~~---~--~~ 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: GAE + GWT + password transfer
For what you're doing and the limitations you have mentioned, I would go with OpenID, that way you rely on third parties to do the authentication, and I think in most cases it will use https. I have used Spring Security to quickly setup openID as an authentication method (although I have never run within appspot, so can't help with specifics for your case). On Jun 12, 11:45 am, Shane shanelstev...@gmail.com wrote: Maybe the question got lost in my research. I'm not from a Web background (C++ + video games), so this may be painfully obvious, but I want to know how people authenticate over non- HTTPS connections, specifically using GAE (Java). My point is that any app that stores any sort of user specific data will need the user to log into their app. I've had a look around at various public sites, and watched the data going back and forth over the wire, and the results are surprising. A lot of public sites use basic auth over http, which surprises me. As I mention above, even Twitter doesn't use HTTPS in its default state for users loggin in, and same goes for their REST API. So, what do people do? I am going to look into OpenID and OAuth next. Cheers, Shane On Jun 13, 12:57 am, Isaac Truett itru...@gmail.com wrote: I'm not sure what your question is. Do you have a specific question? You mentioned problems with HTTPS on GAE, which is probably a topic more appropriate for the GAE group. As far as GWT is concerned, I think you've already got the gist: HTTPS is a must-have for sending passwords over a public network in anything that can come close to being called a secure way. On Fri, Jun 12, 2009 at 7:46 AM, Shaneshanelstev...@gmail.com wrote: I really wish I had an answer to this. On Jun 10, 5:04 pm, Shane shanelstev...@gmail.com wrote: Sorry to keep talking to myself here, but I find what other sites are doing really interesting, and pertinent to GAE because there doesn't seem to be an agreed upon solution. Facebook uses a form for their logins that posts to an HTTPS url: https://login.facebook.com/login.php? So does Google for that matter. Twitter also allows forhttp://twitter.comandhttps://twitter.com, although the default is plaint http, probably because https is slower and more computationally expensive. So it looks like https is the most secure way, but I noticed that Google App Engine doesn't allow SSL unless you are using a *.appspot.com domain. http://code.google.com/appengine/docs/python/config/appconfig.html#Se... So if I have have my blah.mydomain.com pointing via DNS CNAME, to my blah.appspot.com, I can't usehttps://blah.mydomain.com. All this just to not send the password to the server plain text. :| Cheers, Shane On Jun 10, 4:15 pm, Shane shanelstev...@gmail.com wrote: I've actually just noticed that Twitter itself uses Basic Auth: http://apiwiki.twitter.com/Authentication It says OAuth is in development, but that Basic Auth won't be going anywhere for the foreseeable future. The trouble is, Basic Auth is insecure: http://en.wikipedia.org/wiki/Basic_access_authentication Although the scheme is easily implemented, it relies on the assumption that the connection between the client and server computers is secure and can be trusted. Specifically, the credentials are passed as plaintext and could be intercepted easily. The scheme also provides no protection for the information passed back from the server. I am going to look around at other public web API's, but if a site as large as Twitter is content to use this system, should I be all that worried? I would really like to know what experienced web programmers do here, either in GAE+GWT, or just generally. Cheers, Shane On Jun 10, 1:02 am, Shane shanelstev...@gmail.com wrote: I've seen some pretty heated debates around the discussion boards about this, but I haven't seen a solution that people decide on. Simply put, any application that I want to write will likely perform some sort of mashup between other services, like Twitter. For me to do anything interesting, I need the user to enter their Twitter username and password into a GWT client-side control on my site, which I then send back to my app on running on GAE. I'll then use the password to log into Twitter with their credentials and do whatever if is I want to do, all the while not saving the users password in plain text anywhere. I have no interest in holding onto anyone's credentials. So what is the best way for me to do this? I am hearing people say that anything short of HTTPS is a waste of time. I guess this also becomes the larger issue of authentication generally, and I'm surprised there are still such heated discussions on the subject. I thought it'd be a done deal by now. So, if anyone could
Re: So Many Forum Messages per day... Can things be split up at all?
Just select to receive one daily digest message instead of each email if you think this is too much. Or you could even turn off receiving messages at all and only use the web interface to see the messages and read only those that are of interest to you. I personally don't see a need to split up this group. GWT is specific enough to have this group as it is. I think most of the bulk come from questions that have been asked already (people not doing their research before asking), questions that are too general or almost impossible to understand to merit any kind of response. On Jun 10, 5:36 pm, Dalla dalla_man...@hotmail.com wrote: I was actually thinking the same thing earlier today. There are propably a bunch of topics that never get answered simply because it there are so many new posts each day. Guess this is sort of a mailing discussion group rather than a forum though. But a forum would be great :-) On 10 Juni, 22:06, Paul Hargreaves cbassthef...@yahoo.co.uk wrote: There are so many messages appearing on this forum that my inbox is so full that there are rivers of unseen questions floating down the road. I am not sure whether this is run by google or publicly run. In any case it is hard to keep track of messages. Is there any way you can create different forums for different levels of experience/platforms/requirements? One is a start I suppose :o) Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: ListBox CSS
Try adding a large z-index number to your CSS style like z-index: 1000; and report back. On Jun 10, 10:03 am, stephen.sm...@paretopartners.com stephen.sm...@paretopartners.com wrote: I have 2 seperate problems although im sure there related. Firstly i have a greyout panel (custom made), that is added to the RootPanel, the full height and width of the page and has the following css style: .panel-GlassPanel { background-color: black; filter:alpha(opacity=50); /** 50% is hardcoded in fade */ -moz-opacity:.50; opacity:.50; } This works perfectly for all elements apart from ListBox which stays the same colour as it was previously. Secondly i have a popup that im fading out by using a timer to slowly decrease the opacity. again, works great, apart from the list box which isnt faded at all! any ideas why? Im adding the ListBox to a grid on the PopupPanel like so: listBox = new ListBox(true); grid.setWidget(0, 0, new Label(Roles: )); grid.setWidget(0, 1, dropBox); Its like it has styles that are unnessacerily overriding its parent elements. (i say unnessacery but perhaps theres a good reason?) Thanks in advance, Steve --~--~-~--~~~---~--~~ 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: Spring Security login forwarding to blank page issue
I'm experiencing the same. So far I'm blaming the problem on the application not being production ready yet, so it is buggy and sometimes I see some javascript errors. As these errors go away and the application stabilizes, I'll take a look at the problem more closely. But of course, if somebody has some clues about how to solve the problem, I'd like to hear them... (sorry I'm of no help). On Jun 1, 2:58 pm, tim.clymer tim.cly...@gmail.com wrote: Perhaps this may help in providing an answer. When I log out from my app and go to a different browser tab and go to the URL of my app, I'd expect to see a login screen. Instead, it seems as though the browser is caching the page and attempting to make calls to my services. In the response to these services, the server (tomcat) is sending back the login page (since I'm not logged in) as a response. It seems like the correct approach in this case would be to make sure the browser attempts to refresh my entry point every time so that it will be redirected to the login. I've tried adding meta http- equiv=Pragma content=no-cache to the top of my html file to force this like so: html head meta http-equiv=Pragma content=no-cache meta http-equiv=content-type content=text/html; charset=UTF-8 But to no avail. Any ideas? I'm in uncharted waters here with this caching stuff so your help would be greatly appreciated. Tim On Jun 1, 1:00 pm, tim.clymer tim.cly...@gmail.com wrote: I've done a bit of searching around the forums but haven't seen this issue crop up (though there are plenty of blank page issues from what I've seen). I'm having an intermittent issue where when I login to my application (I use Spring Security as my security framework), it forwards to my app's HTML page (my application's entry point). Sometimes it will then load and show the application, other times it shows just a blank page. If I refresh the blank page, my application comes up without fail. This would lend me to believe that this is a caching issue. Has anyone else experienced this and have any advice on solving it? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can we set Locale in GWT Hosted mode browser?????
The same way you would set it in web mode (?locale=en appended to your app's URL). If you want it to be that locale by default when you launch hosted mode, then modify the URL in whatever launcher you have for Hosted mode to always have this locale. On May 8, 6:08 am, Nim chaudhary.nim...@gmail.com wrote: Hi , How can we set Locale in GWT Hosted mode browser. --Nimish Chaudhary --~--~-~--~~~---~--~~ 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: Ant problem
If you're using eclipse (and probably most of the other IDEs), ant comes bundled with it so you can just use it. I just do this: set PATH=%PATH%;[ECLIPSE_HOME]/plugins/org.apache.ant_ [VERSION_BUILD_NUM]/bin and have ant available to run a build. On Apr 12, 4:26 am, chandrashekhar mekala chandub...@gmail.com wrote: Hi, http://www.strutsworld.com/2008/08/19/ant-a-java-build-tool/ This link might be helpful for you to install ant under windows. Thanks, Chandu. On 4/12/09, Tamachi tama...@gmail.com wrote: How to install ant under windows? GWT 1.6 requires ant now. However it seems like ant distribution is not available for windows users. --~--~-~--~~~---~--~~ 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 1.6 - How do I change the default war directory name
I'm curious, did you then use something like: -war src/your/app/path/public/WebContent assuming your static content was in a subdirectory of the public directory (?). And now you will need to have WEB-INF/lib inside your WebContent dir? I will need to do migrate to 1.6 sometime, and I just don't like the war-WEB-INF directory imposition and mixing source-control files with generated files. My build.xml is already handling all that for me (incl. generating the WEB-INF dir and subdirs dynamically). On Apr 1, 4:04 pm, Jan jan.ja...@gmail.com wrote: Thank you very much! That's easier than expected. Best regards, Jan. On Apr 1, 5:36 pm, Jason Essington jason.essing...@gmail.com wrote: use the switch -war WebContent -jason On Apr 1, 2009, at 12:46 AM, Jan wrote: Dear GWT community, I am considering using GWT 1.6 in a project, but have one major concern: GWT 1.6 no longer places the public files (like the host page or the module XML) in the public sub directory of the root package but inside a war/module directory. As all my projects already exist and e.g. use WebContent or Web etc. as root for the directory containing all the static content, it would be nice to reuse the existing structure. My question is therefore: Is there a way to change the default directory name war to something else. I would be surprised if not, but I haven't found any info in the GWT documentation pages. It would be great if someone could help me. Thanks in advance, Jan. --~--~-~--~~~---~--~~ 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: warning when compiling RPC method with long[] return type
Don't know, but try using Long instead. In general, if I remember right, the long type requires some extra processing due to the fact that JavaScript doesn't really support it, so some manipulation takes place in JavaScript to make it appear that it does. If you can, avoid using longs in your RemoteServices. On Mar 23, 5:09 am, snorbi sandor.norb...@erinors.com wrote: Hello, I have an RPC interface: public interface Generator extends RemoteService { long generate(); long[] generate(int count); } I get the warning during compiling: [WARN] Line 14: Referencing class 'long_Array_Rank_1_FieldSerializer: unable to resolve class, expect subsequent failures What does this mean? I use gwt-1.6.1, and there was no warning until I upgraded from 1.5.3. Thanks for your help! Regards: Norbi --~--~-~--~~~---~--~~ 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: Announcing GWT 1.6 Release Candidate
Just to report back on the problem I reported, I was able to uncompress fine the GWT 1.6 download using the gnome application File Roller. I guess bunzip2 can't handle a directory like gwt-linux/./ mozila but FileRoller can. Still the GWT team might want to modify the download file. On Mar 19, 11:32 am, El Mentecato Mayor rogelio.flo...@gmail.com wrote: I downloaded the file under openSUSE. After bunzip2 does its thing, the tar file has the mozilla* directory containing an extra ./ at the start, and I get this error when trying to untar (for each file under this mozilla* subdirectory): gwt-linux-1.6.2/./mozilla-1.7.12/gwt-dl-loadorder.conf: Cannot open: No such file or directory tar: Error exit delayed from previous errors Do you know of a way to extract it regardless of that? Or could you provide a different file? Thanks. On Mar 19, 1:36 pm, Lance Weber weber.la...@gmail.com wrote: Awesome! Go team go! --~--~-~--~~~---~--~~ 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: file upload like orkut
e) Via a Java Applet f) Via an ActiveX Applet (IE/windows-only I think) On Mar 16, 7:51 am, Thomas Broyer t.bro...@gmail.com wrote: On 16 mar, 09:06, Adam T adam.t...@gmail.com wrote: File upload is done via either: a) The FileUpload widget - if your happy for the user to select one file at a time, or b) Via a Flash Movie that allows multiple file selects. c) Google Gears (as used by YouTube) http://code.google.com/p/gwt-google-apis/ b) Yahoo! BrowserPlus http://browserplus.yahoo.com http://code.google.com/p/gwt-in-the-air/(preliminary support) --~--~-~--~~~---~--~~ 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: como agregar imagen bmp en backround
Pacholi, En tu página principal, simplemente usa un estilo CSS en el Panel que uses ahí que tenga una imagen de fondo, luego cambias en las demás páginas, si cambias el Panel, entonces se irá, si no, entonces simplemente cambias el estilo CSS por uno que no tenga esa imagen (usando .setStyleName(tu-estilo)) en el Panel o widget al que le quieras cambiar el estilo (imagen). On Mar 16, 4:59 pm, Pacholi aguirre.a.marc...@gmail.com wrote: necesito agregar imagen que se cargue una sola vez en pagina principal, luego la navegar por las demas paginas que omita esta imagen de fondo,. --~--~-~--~~~---~--~~ 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: PDF version of the GWT Developer Guide -- any time soon?
I seem to remember somebody from google mentioning in this forum about the doc reader being added Gears support (for off-line access), but couldn't find it... sure would be nice to have a PDF version as well though. On Mar 18, 10:19 am, Brian hibr...@gmail.com wrote: Yeah it is too bad it's not accessible offline. Just noticed it also doesn't work to view the pages to cache the app, going offline, and re- viewing -- guess it's trying to pull data off the server. Think you're stuck until an offline version of some sort is provided... On Mar 18, 2:10 am, Peter Ondruška peter.ondru...@gmail.com wrote: Nice, but not downloadable for offline access. Perhaps some Gears offline functionality (pretty easy) needs to be added... On Wed, Mar 18, 2009 at 1:55 AM, Brian hibr...@gmail.com wrote: Moribund? I loved their games, especially Raid On Bungling Bay... :) I don't know anything about a PDF version of the docs -- just pointing out that the GWT Developer Docs are themselves a GWT app, which is kind of nice to see. On Mar 17, 7:32 pm, jcox j...@experiments.com wrote: I'd love it if the GWT Developer Guide were also be available in PDF format. Here's why: o It's a fairly long book-like document o It changes fast enough to make 3rd party books perpetually obsolete o Being forced to read long paginated html docs is annoying o It causes less eye strain to read long documents when they're printed I don't see much need to render the javadocs as pdf, just the Developer Guide. I filed this bug recently (see below), but then got depressed when I noticed all the moribund discussion threads on the same topic (see below). Even if the current docs do have printer-friendly CSS, printing them one page at a time isn't a particularly attractive option. At this point, I'd even settle for an ugly but readable everything one page version I just don't like reading this much book-like content off a screen. Compounding matters is that if you *do* read the docs online, screen width issues tend to arise once the fonts are made slightly bigger. Are there plans to make an up-to-date PDF version? If that's too hard, what about an easily-printable-all-on-one-html- page version? If either of these seem like they might happen sometime soon, is there any idea when? They'd be greatly appreciated ! Cheers, -Jon -- Related Links --- Issue tracker - http://code.google.com/p/google-web-toolkit/issues/detail?id=3470 Moribund discussion threads --- http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1... http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5... --~--~-~--~~~---~--~~ 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: Translating on the server-side
I'm not familiar with XLIFF, but I wonder how you distinguish there between \n and br (if you want your paragraph to be on an html page as opposed to a console or some other output. Properties files at least allow you to distinguish between the two. If I remember correctly, XLIFF support is planned for 2.0. On Feb 26, 12:19 pm, jbdhl jbirksd...@gmail.com wrote: 1) GWT's i18n can't be used as is, since the interfaces are meant to be used at compile-time and the actual text from the properties files gets put into the js/html files. So there is no way to re-use the plural-technology in the Messages class on the server side? Are we really forced to use two different technologies then? E.g. the GWT methods on the client side and gettext on the server? This is kind of ugly IMHO. prop2 = first line of prop2 \n \ second line of prop2 \n \ third line of prop2 But then translators (which are non-technicans) have to use \n when breaking lines? Is that really the only way of doing it? I look forward to the XLIFF support in GWT as these property files are very limited in many ways. --~--~-~--~~~---~--~~ 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: Translating on the server-side
1) GWT's i18n can't be used as is, since the interfaces are meant to be used at compile-time and the actual text from the properties files gets put into the js/html files. You could reuse the properties files though if you ship them with your war/ear file, and on the server side, just use old ResourceBoundle. 2) properties files are not limited to one-line messages. These are both valid entries: prop1 = first part of prop1 \ second part of prop1 \ third part of prop1 prop2 = first line of prop2 \n \ second line of prop2 \n \ third line of prop2 On Feb 25, 8:52 pm, jbdhl jbirksd...@gmail.com wrote: Consider a case where some RPCs in a GWT application will trigger the server to send an email to the user where the email should be sent in the language used at the requesting client. 1) How should I approach this server-side internationalization (i18n)? Can GWTs i18n be used in this situation? 2) The email will have multiple paragraphs of text, not just one-line messages as the property files are limited to (as far as I know). Similarly, our help-page and about-page have many large paragraphs of text. How can I translate these multi-line texts? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT + FlowPanel + CSS = Tableless
Except you forgot to mention that JQuery's Themeroller doesn't display properly on IE (not that I have anything against JQuery--a great library, but the things you are pointing out don't look as nice or as intended on the most popular browser, so that alone can make it undesirable in many cases). On Feb 20, 9:29 am, CJ Wilks jeoffwi...@gmail.com wrote: Geraldo, that Eric Meyer post is fantastic, most importantly because he wrote it, and so perhaps people will listen and do something about it. Certain GWT uses of tables are clearly an abomination (e.g. DecoratorPanel, DialogBox). There is no need to introduce a table and 9 cells, when other kits like jquery-ui's Themeroller are doing the same thing with CSS -- for example see .ui-corner-all athttp://docs.jquery.com/UI/Theming/API#Corner_Radius_helpers See it in action athttp://jqueryui.com/themeroller/-- fyi, since the jquery theming api is well documented, there's no reason you can't apply the same style classes to GWT widgets. On the other hand, sometimes tables are the simplest tool for the job. I am working on a GWT layout that needs to be 3 columns (33% each) at times, and 2 columns (200px + remainder) at other times, depending on which UI elements are present onscreen. I was trying to make it work by applying YUI Grids but the css became too complicated. Some browsers rendered it fine and others would push the righthand column downscreen. More importantly the markup was full of nested divs sprinkled with yui-gb and yui-u and yui-b and doc3 lots of other css junk that I won't remember next week. On Feb 18, 2:27 pm, Geraldo Lopes geraldo...@gmail.com wrote: José Vicente, Please read this: http://meyerweb.com/eric/thoughts/2009/02/17/wanted-layout-system/ Hope this helps, Geraldo On 18 fev, 07:44, Zé Vicente josevicentec...@gmail.com wrote: Hello All, I am currently developing an application with GWT. It has all I need in order to create a smart/dynamic user interface. But I just would like to start a discussion about the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel and all other component in GWT that generates after the compilation HTML Table structures. When I started my developing I did use a lot those components. But today, I can create my layout organization only using the FlowPanel component which generates a HTML div. By using FlowPanel and CSS I can build my layout and place my fields, images, links where I want. Now I only use GRID, FlexTable when I really want to display a search result. That is the goal of Tableless right? This is my feedback: I found out that is much more easy and fast to use FlowPanel + CSS to build layouts than any other GWT components. I only use GRID, FlexTable and similar when I am displaying a real Grid. I chose FlowPanel to organize my layout because it generates after the compilation a div element. If I add CSS to it, I can do whatever I want with my layout without changing the Java code. What I expect from the community: 1. I would appreciate if you can share your experience in terms of layout organization with GWT and the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel components in your code. 2. Are there others developers with similar strategy: FlowPanel + CSS? 3. Does anyone know if GWT can be faster if it has to build a layout with less table tags? Thank you in advance. José Vicente --~--~-~--~~~---~--~~ 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: Hosted Mode crashes when embedding applet
I don't think this is a bug. It's just one of the drawbacks of rapid prototyping/development that hosted mode provides. You see, hosted mode uses this custom browser (the GWT Shell) that is not really running in a normal mode; it's drawing your html elements directly from your Java code, instead of displaying html/js pages, so applets don't fit into the equation or intended purpose. I guess it could be made to work but I would imagine it would require too much time and energy and it would cater only to the small percentage of us that use applets (I only use applets when there's no better option to do what we need to do). I think the best you can hope for is that maybe this will work using OOPHM (out of process hosted mode) which is in the works. If somebody has tested OOPHM (you can build a GWT version from source that has it) with applets, please report your findings here! Otherwise, use the workaround I provided. On Feb 18, 3:56 pm, DAve smith.davi...@gmail.com wrote: Thanks! Is there a bug filed with Sun or Google that I can track? El Mentecato Mayor wrote: Yes, this is a known problem. Hosted mode doesn't support applets (not running a real html/javascript page), so you'll have to test your applet integration on web-mode only. I do something like this: if (GWT.isScript()) { // running on web mode applet = new AppletPanel(); } else { // running on hosted mode applet = // new Dummy panel such as SimplePanel(); } so that you can test evrything else in hosted mode, and only go to web mode when you really need to test something on the applet or its interactions with your other widgets. On Feb 16, 8:54 am, DAve smith.davi...@gmail.com wrote: I'm writing a GWT app that embeds a Java applet (for legacy reasons). Whenever I try to run it in Hosted Mode, the host browser crashes, so I have to compile it and load it in a real browser, slowing down my development process and preventing me from using the step-through debugger. Is this a known problem? Is there a workaround? Thanks, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted Mode crashes when embedding applet
Yes, this is a known problem. Hosted mode doesn't support applets (not running a real html/javascript page), so you'll have to test your applet integration on web-mode only. I do something like this: if (GWT.isScript()) { // running on web mode applet = new AppletPanel(); } else { // running on hosted mode applet = // new Dummy panel such as SimplePanel(); } so that you can test evrything else in hosted mode, and only go to web mode when you really need to test something on the applet or its interactions with your other widgets. On Feb 16, 8:54 am, DAve smith.davi...@gmail.com wrote: I'm writing a GWT app that embeds a Java applet (for legacy reasons). Whenever I try to run it in Hosted Mode, the host browser crashes, so I have to compile it and load it in a real browser, slowing down my development process and preventing me from using the step-through debugger. Is this a known problem? Is there a workaround? Thanks, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Embedding a JavaScript-based widget in GWT?
No, you need to add it to your host html page, not to an HTML widget, as Sumit described already. On Feb 17, 2:40 am, Venkat venkivo...@gmail.com wrote: Hi Sumit. I have to embed below javascript within HTML panel , is it possible, if so please guide how to do that. div id=containera href=http://www.macromedia.com/go/ getflashplayerGet the Flash Player/a to see this player./div script type=text/javascript src=swfobject.js/script script type=text/javascript var s1 = new SWFObject(player- viral.swf,ply,500,400,9,#FF); s1.addParam(allowfullscreen,true); s1.addParam(allownetworking,all); s1.addParam(allowscriptaccess,always); s1.addParam (flashvars,file=Animator_vs__Animation_by_alanbecker.swf); s1.write(container); /script Thanks Regards, Venkat On Feb 6, 3:20 pm, Sumit Chandel sumitchan...@google.com wrote: Hi Adam, Try including the script tag referencing the tweetgrid widget in your host HTML page directly. The reason why this won't work if you insert the script tag through an HTML widget is because GWT application load up in their own iframes. This means that references to variables that aren't properly scoped in a third party library (or in your own handwritten JavaScript code) might not be properly resolved since the window object would now refer to the iframe window rather than the main window. Placing the script tag in your host HTML page should solve this problem. If you want to interact with the embedded widget from within your GWT code (through JavaScript Native Interface methods, a.k.a. JSNI), you can do this by referring to the objects defined on the main window through the $wnd handle. You can find more documentation on using JSNI at the link below:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... Hope that helps, -Sumit Chandel On Tue, Jan 27, 2009 at 1:32 PM, adambossy adambo...@gmail.com wrote: It just occurred to me that this pretty obviously won't work, because it is calling the script src=.../script widget tag inside of an existing script/script enclosure. How do I call this aside from ripping out the widget internals and rewriting them myself? Adam On Jan 27, 12:02 pm, adambossy adambo...@gmail.com wrote: This seems so simple, that I must be overlooking some obvious GWT characteristic. I would like to embed a TweetGrid from here: http://tweetgrid.com/searchtips The code is short and simple: script src=http://tweetgrid.com/widget/widget.js; type=text/ javascript/script I wrap this as an HTML element, and add it to the main panel: HTML widget = new HTML(script src=http://tweetgrid.com/widget/ widget.js type=text/javascript/script) It seems as though the widget loads, but the callback to populate the widget does not recognize the function it's supposed to call. The exact error is as follows (on a brand-new GWT project, no other complications): jtw_searchfunc is not defined, line 1 search.json?callback=jtw_searchfuncq=twitterrpp=20()() How do I properly add this widget so that this does not occur? Thanks, Adam --~--~-~--~~~---~--~~ 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: Question: How can I get login user from Windows in GWT?
If the windows authentication uses some type of LDAP (ActiveDirectory for instance has some lever of LDAP compliance), you can achieve what you want with Spring Security (http://static.springframework.org/ spring-security/site/reference/html/springsecurity.html). On Feb 13, 5:24 am, Damien Picard picard.dam...@gmail.com wrote: Hi, Good to know that. As I understand, it only works with IE (via active directory), right ? 2009/2/13 Matías Costa m.costac...@gmail.com Damien is 50% right. You can't get windows credentials from any internet user. But both IE and mozilla on windows support http auth negotiate. IE for same active directory hosts out of the box, and in both you can add exceptions. I know it, because I worked in a web single sign on project for a company intranet. The mechanism is called SPNEGO. Other guy in the project integrated it with jass and/or acegui, but I don't remember too much. On Fri, Feb 13, 2009 at 7:46 AM, Roger rogerhasem...@gmail.com wrote: Hi all, Greeting from Roger. I do not know how to get login user from Windows in GWT. I try solving this in the way below, unfortunately does not work. In RemoteServiceServlet, ... Principal principal = getThreadLocalRequest().getUserPrincipal () // principal is NULL!! String userName = principal.getName(); Is there anyone can help me on this ? Thanks a ton. BR, Roger --~--~-~--~~~---~--~~ 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 FileUpload
Yes, and your question kdahm has been answered in this same forum. Just search and you'll find even sample code to do both client and server sides. On Feb 10, 4:29 pm, Ben Tilford bentilf...@gmail.com wrote: I think the apache commons file upload project is usually used.http://commons.apache.org/fileupload/using.html On Tue, Feb 10, 2009 at 4:08 PM, ken.d...@googlemail.com ken.d...@googlemail.com wrote: Hi guys, i've got some trouble with FormPanel and FileUpload. On the client side I would like to provide a possibility to upload .jar files. But the thing I don't understand: How can I send this .jar file to my server? Is there any possibility to send a file to a servlet on server side or what are my options? My current code fragment looks like the follows: final FormPanel form = new FormPanel(); form.setAction(/uploadHandler); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); visualComponent.add(new FileUpload()); // Add an event handler to the form. form.addFormHandler(new FormHandler() { public void onSubmit(FormSubmitEvent event) { } public void onSubmitComplete(FormSubmitCompleteEvent event) { } }); I would be very glad if anybody can help me. Thanks. kdahm --~--~-~--~~~---~--~~ 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 we load an html file and add it as a Widget?
You could also pass your URL to a Frame widget. Of course if you don't mind framing an external page (although if it lives on your own server, not a big deal). On Feb 2, 2:10 am, alex.d alex.dukhov...@googlemail.com wrote: It's not really a widget(though you can probably make one). Just make an RPC-call, let your backend read the file and send it back, and put your html into the HTMLPanel widget. On 2 Feb., 08:04, Joshua Partogi joshua.j...@gmail.com wrote: Dear all, I know that there is an HTML class in GWT for buffering out a plain html. But I have a case where it would be too much having to write all the html in my Java class. So I was wondering whether we can just load an HTML file and add that loaded HTML file as a widget. Is there any such class like that in GWT? Or does anyone has the trick for that? Thank you in advance. -- If you can't believe in God the chances are your God is too small. Read my blog:http://joshuajava.wordpress.com/ Follow me on twitter:http://twitter.com/jpartogi --~--~-~--~~~---~--~~ 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: acentos en gwt
Primero, di en dónde están tus caracteres (en tu archivo html--hosting page?) o en un archivo .properties? En el último caso, tu archivo debe grabarse con el set de caracteres apropiado (por ejemplo, utf8) para que funcione. Yo tengo una aplicación hecha con GWT que tiene inglés y español y no he tenido ningún problema en mostrar la ñ o cualquier acento una vez que mis archivos de i18n han sido grabados en utf8 (tuve el mismo problema cuando usé el formato por defecto de mi editor de text--vim). Si quieres tener varios idiomas en tu aplicación, también debes de incluir esta línea en el archivo XML de tu aplicación: inherits name=com.google.gwt.i18n.I18N / Si tienes otras preguntas, no dudes en contactarme. On Jan 30, 5:30 am, Locovich siste...@sistemasintegrados.com.ar wrote: gracias, por responder tan rápido Salvador. Pero sigo si ver las ñ. No se que puede estar pasando. Debo estar haciendo algo mal. Este es mi html head !-- -- !-- Any title is fine -- !-- -- titleWrapper HTML for Login/title !-- -- !-- The module reference below is the link -- !-- between html and your Web Toolkit module -- !-- -- meta http-equiv=Content-Type content=ISO-8859-1 meta name='gwt:module' content='com.Pruebas.Login'/ /head y este mi xml ?xml version=1.0 encoding=ISO-8859-1? module inherits name=com.google.gwt.user.User/ inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name='com.gwtext.GwtExt'/ inherits name=com.google.gwt.JasperReports/ stylesheet src=Login.css/ entry-point class=com.Pruebas.client.Login/ servlet path=/LoginRPC/log class=com,Pruebas.server.LoginRPCImpl/ /module On 29 ene, 14:06, SalvadorDiaz diaz.salva...@gmail.com wrote: No olvides añadir lo siguiente a tu html dentro del tag head: meta http-equiv=Content-Type content=ISO-8859-1 Espero que esto te ayude On Jan 29, 2:06 pm, Locovich siste...@sistemasintegrados.com.ar wrote: como ver las ñ, oacentosen las aplicacionesgwt. Ya cambié ?xml version=1.0 encoding=ISO-8859-1? en el xml de entrada y en el project pero sigo sin ver cuando por ejemplo pongo una label y seteo el contenido con una ñ oacentos. Si alguien saben por favor espero su respuesta. --~--~-~--~~~---~--~~ 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 and applets
Looks like you're trying to compile your Applet code with GWT. That will never work (not emulated; obviously you don't want to convert your applet into Javascript, even if it were possible). Compile it with plain Javac outside your GWT project or on the server side of your project and then you include the class or jar file that defines your applet in the public directory so that it is visible to your AppletPanel class. Then you'll have to run your application in web mode to test your applet. On Jan 2, 11:39 am, DAve smith.davi...@gmail.com wrote: Hi, I'm probably missing something simple here, but I can't find the answer elsewhere. I just want to display an applet in my GWT code. OS: Windows XP Java: JDK 1.6.0_10 Other: GWT, GWT-Ext 2.0.5 Here is the applet (obviously simplified for testing): precodepackage foo.applet; import javax.swing.JApplet; import java.awt.Graphics; public class HelloApplet extends JApplet { public void paint(Graphics g) { g.drawRect(0, 0, getSize().width - 1, getSize().height - 1); g.drawString(Hello world!, 5, 15); }} /code/pre Here is the code calling it: precode package foo.applet; import com.google.gwt.user.client.ui.HTML; import com.gwtext.client.widgets.Panel; public class AppletPanel extends Panel { /code/pre public AppletPanel() { HTML applet = new HTML(); applet.setHTML(applet name=\HelloApplet\ code= \HelloApplet.class\ width=\300\ height=\300\ ); this.add(applet); } } When I launch the app in hosted mode, the jvm crashes (filed incident 1425130 with Sun). When I try to compile the GWT code for running in a browser, I get this: [ERROR] Errors in 'file:/C:/blah/applet/ HelloApplet.java' [ERROR] Line 3: The import javax.swing cannot be resolved [ERROR] Line 4: The import java.awt cannot be resolved [ERROR] Line 6: JApplet cannot be resolved to a type [ERROR] Line 8: Graphics cannot be resolved to a type [ERROR] Line 11: The method getSize() is undefined for the type HelloApplet [ERROR] Line 12: The method getSize() is undefined for the type HelloApplet Obviously I'm missing some applet library, but I've grepped through all the jars in the jdk and tried including all of the ones that list JApplet or awt (plugin.jar, resources.jar, rt.jar, deploy.jar, javaws.jar). Also, I'm pretty sure once I solve this problem there's another one lurking right after it, but I'll save that for another question. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.4: Getting file path for FileUpload?
AFAIK, there's no way to do what you want with just JavaScript. We achieve what you described with a Java Applet, saving the preferred path on the server for each user. Of course it has the overload and drawbacks of an applet (heavier, JRE plugin required, etc), but on the plus side we support multiple-file uploads (including entire directories), drag-n-drop, and uploading very large files by breaking them into chunks. On Jan 2, 10:01 am, zilvonias zilvon...@gmail.com wrote: I'll do some experiments and see if I can fetch it from the DOM. The use case is that the user is attempting to store the filepath of a chosen file. I thought it'd be nice to have the user use the FileUpload to choose the file instead of manually typing the file path. If there's another way to create a file-browsing widget and get the file path that way, I'd consider it. On Dec 29 2008, 1:10 pm, Lothar Kimmeringer j...@kimmeringer.de wrote: Kevin Tarn schrieb: You cannot rely on getFilename to return full path of file. It depens on browser. For example, Firefox did not return full path of it. Maybe you can achieve something accessing DOM directly. At least the full path shows up in the text-field of the FileUpload-widget in Firefox as well. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: SuggestBox list in another Panel
If I remember well, the Incubator has an RPC/Remote SuggestBox/Oracle that can take any widget to display the list. Search this group or the incubator project website/code to find out more details. I haven't tried doing this, so I can't provide more help. Good luck, and report back if you find or come up with an implementation. On Nov 12, 12:49 am, zujee [EMAIL PROTECTED] wrote: any clue? On Nov 11, 6:39 pm, zujee [EMAIL PROTECTED] wrote: Hi Experts, I created a suggest box like MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); oracle.add(Cat); oracle.add(Dog); oracle.add(Horse); oracle.add(india); oracle.add(Canada); oracle.add(France); oracle.add(uk); oracle.add(Japan); oracle.add(Russia); SuggestBox box = new SuggestBox(oracle); RootPanel.get().add(box); The list is showing like a combo box. But i want to display that list in another panel according to the user type in text box. Is that possible Please help. Thansk and regads zuje --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating a main site *and* an admin site
I have the same requirement. At first, I thought about creating three projects, one that holds all shared functionality in it, and make it into a module that the other two would import, but since we're creating everything simultaneously, it becomes cumbersome (it would work well if we create the shared widgets and functionality first, and then we just use it in the other projects). In this case you end up with three eclipse projects. However, I'm now thinking that we can get away with simply creating another Entry Point class that will be the Admin entry point, and we compile the application using it for the admin site (files would need to be change for each option--main/admin-- e.g. web.xml, gwt.xml file, etc), but we will have just one eclipse project. After the first release we could split the projects, but doing it this way would speed up development. Does anyone see anything wrong with this approach? In your approach, the problem I see is the conflict you mentioned (.project file), and I'm not sure how you can compile client shared code for both projects. On Nov 6, 3:27 pm, jbdhl [EMAIL PROTECTED] wrote: I want to create a web site together with a separate administration site. Clearly the two sites will share a lot of code. I create them in the same dir with the following two commands $ applicationCreator com.mycompany.mysite.mainsite.client.MainSite $ applicationCreator com.mycompany.mysite.adminsite.client.AdminSite Would you also do it this way? And would you create one or two eclipse projects? (If you would create two projects there is a problem with the .project file - as both projects would need such a file) Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Popups and dialogs appear below Java applets
There's nothing like answering your own post! I went ahead and implemented the shim solution referenced below. It works great in IE6 and 7. In Firefox, only the area covered by the iframe is on top of the applet, meaning that if you move the dialog, it goes behind the applet as soon as it is over the same area of the screen. I see three possible workarounds for the Firefox issue: 1) make the iframe move along with the dialog 2) put the iframe on top of the applet only (it would look weird as the applet GUI would disappear while the dialog is being shown), and 3) somehow disable dragging/ moving on the dialog. Probably the first one would be the cleanest solution, although it could be more involved. Anyway, for now it is good enough for me since the great majority of our users are on IE. This is how you do it: // on an onClick() method that will display the dialog: myDialog.center(); int left = myDialog.getPopupLeft(); int top = myDialog.getPopupTop(); int width = myDialog.getOffsetWidth(); int height = myDialog.getOffsetHeight(); // create the iframe element iframe = DOM.createElement(iframe); iframe.setClassName(shimmer); frameStyle.setPropertyPx(left, left); frameStyle.setPropertyPx(top, top); frameStyle.setPropertyPx(width, width); frameStyle.setPropertyPx(height, height); IFrameElement iframeElem = IFrameElement.as(iframe); iframeElem.setFrameBorder(0); DOM.appendChild(RootPanel.getBodyElement(), iframe); myDialog.show(); // on the onClick() method of the close dialog button: DOM.removeChild(RootPanel.getBodyElement(), iframe); myDialog.hide(); It also uses these CSS properties: .shimmer { position: absolute; z-index: 999; } .gwt-DialogBox { z-index: 1000; } On Oct 27, 5:51 pm, El Mentecato Mayor [EMAIL PROTECTED] wrote: Has GWT solved to the known problem of displaying html elements on top of Java applets? GWT already solves the similar problem around ListBoxes, so I would guess a similar solution applies to Java applets. What I'm seeing is that popups (SuggestBox) and dialogs appear behind Java applets (I need to have one on my application), and I don't see a way of avoiding this. There's a workaround (non-GWT) explained here:http://www.oratransplant.nl/2007/10/26/using-iframe-shim-to-partly-co... but I'm wondering if there's something already in gwt to trigger something like that or if anybody has created JSNI code already to achieve the same functionality. Thanks in advance for any pointers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Popups and dialogs appear below Java applets
Has GWT solved to the known problem of displaying html elements on top of Java applets? GWT already solves the similar problem around ListBoxes, so I would guess a similar solution applies to Java applets. What I'm seeing is that popups (SuggestBox) and dialogs appear behind Java applets (I need to have one on my application), and I don't see a way of avoiding this. There's a workaround (non-GWT) explained here: http://www.oratransplant.nl/2007/10/26/using-iframe-shim-to-partly-cover-a-java-applet/ but I'm wondering if there's something already in gwt to trigger something like that or if anybody has created JSNI code already to achieve the same functionality. Thanks in advance for any pointers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Your opinion sought: Jetty or Tomcat?
I think it is broken in the sense that it does take a lot of time to get the app running when in development mode (and hosted mode), or at least more time that I would like it to. I would welcome Jetty if that improves the performance. I have nothing specific to tomcat so far, so nothing should be broken. I actually use Jetty to deploy and test the application quickly in web mode. On Oct 14, 3:44 am, Fred Janon [EMAIL PROTECTED] wrote: I use Tomcat for all our customer deployments and as a server to host the development. If Tomcat is used as the server for development, there are probably less chances that something would not work when deployed. I am not sure of how popular is Jetty for real deployments compared to Tomcat, but I have the feeling that Tomcat is ahead of Jetty. The startup time in development mode is not really important for me, considering that there are not that many cases where the server needs to be restarted. We don't use any specific feature to a particular server, so Comet or continuations are not in the balance. A few weeks ago I deployed successfully a GWT app on Tomcat on a Windows server in about 30 mins. It still took me about 1 day to do the same on Ubuntu, not because of GWT, but because of the way Tomcat is configured by default on Ubuntu. Since it was the same server from beginning to end, I had less to investigate. If it was another server engine, I would have doubts on many more configuration issues. I am looking at the Widgets and the incubator and I wish a lot more work was done there. Lots of customers and developers have ext on their lips, I'd like to see more development in that area. The ScrollTable is hardly usable at the moment. And some comments have been there with no responsehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ScrollTable = Comment by di.zhao http://code.google.com/u/di.zhao/, Oct 01, 2008 Hi, this is pretty nice widget. For those who is puzzled by the demo not working in Firefox. I would suggest you to download the latest source code and run it locally. The ScrollTablehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ScrollTableworks nicely in both Firefox/Chrome IE. One question though, will column drag and drop be supported in the future? Comment by [EMAIL PROTECTED]http://code.google.com/u/@VRFTQFdRDxdFWAJ1/, Oct 07 (6 days ago) Please can someone update the docs and example. This is a brilliant widget but in this state its almost unusable :( == The more I use GWT and the more I love it, I think it's a brilliant idea and implementation (I still have to find a bug in it!), but my priorities are not in the server startup time. In summary the current use of Tomcat is pretty good, why change and spend time and $$$ instead of spending time on other nice features? If it ain't broken, why fix it? But if you are already all decided then... Fred On Tue, Oct 14, 2008 at 14:53, Jason Morris [EMAIL PROTECTED] wrote: I personally use Tomcat a lot more, mainly because it started as the reference implementation (though I know it no longer technically holds that position). The few times I've wanted to use Jetty I've had to switch back to Tomcat due to lack of system admin knowledge (ie: the various admins I was working with didn't know it). That all said, I almost never use Hosted Mode, and system admins don't have to deal with a development time engine. Tomcat does have much better IDE support than Jetty, but since Hosted Mode is in charge of that, again it makes no real difference. When I do run Hosted Mode it's with the -noserver option. So my end opinion: I think the change is a good idea, since the additional speed and lower memory load will encourage people trying out GWT for the first time. Tim wrote: jetty is awesome. In their latest drop (6.1.12.rc2 and rc3) there is a new feature in maven-jetty-plugin to reload jetty on keyboard events in console rather than automatically - it's indispensable when java GWT code lives in the same source tree as the server side java code (just in different package). And generally, maven jetty plugin is way better than Cargo stuff that's used for Tomcat. Also, Jetty Continuations are just some much easier to work with than Tomcat's Comet. No wonder they are including it into Servlet spec 3.0. Nothing particularly wrong with Tomcat but I think it's just lagging in terms of developer productivity features behind Jetty. On Oct 13, 9:42 pm, Michael Vogt [EMAIL PROTECTED] wrote: Hi Bruce. As part of this effort, we've all but decided to switch the hosted mode embedded HTTP server from Tomcat to Jetty. Would this break you? (And if so, how mad would you be if we did it anyway?) We figure most people who really care about the web.xml and so on are already using
Re: RPC SuggestOracle on high latency connections
Can someone post a sample implementation of RPCSuggestOracle? A client-side SuggestOracle is straight forward per the documentation, but I'm not sure how the new Incubator classes are used together with an RPC request. I have my RPC service working which returns a List, so I just need to know how to wire up the Remote-friendly SuggestOracle to take advantage of SuggestBoxOverride and all the other goodies inherited by the incubator extensions. Thanks. On Sep 4, 12:38 pm, Emily Crutcher [EMAIL PROTECTED] wrote: It was moved into gwt-incubator here:http://code.google.com/p/google-web-toolkit-incubator/source/browse/t... It is using the SuggestBoxOverride as its base, which is basically SuggestBox but copied to incubator to allow us to add some extra features we needed. On Thu, Sep 4, 2008 at 12:30 PM, Isaac Truett [EMAIL PROTECTED] wrote: @Oscar You might be interested in Emily's patch a few months ago on the contributor's list: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse... @Emily I never saw this patch committed. Did something happen off-list to put the kibosh on it? I've looked for a related issue and couldn't find one in the tracker. I think this is the second time in as many weeks that I've referred someone to the patch as a possible aid to their suggestion-related problems and I've been using it for months without ill effect. Is this still on anyone's radar? On Thu, Sep 4, 2008 at 1:52 AM, Oscar [EMAIL PROTECTED] wrote: Solved it! My bad... For anyone else who gets stuck on this problem, the answer is that you need to provide some sort of sequencing in your SuggestOracle/ Callback. What I ended up doing was maintaining a sequence number in the SuggestOracle and passing the current sequence number into the callback. Then before the RPC Callback writes its results to the Suggest Callback, ensure that its sequence number is = the current sequence number in the Suggest Oracle. This way, if newer results come in before older results, only the newer results will ever be displayed. This is obviously due to the fact that the RPC is async, so you have no guarantees on when you will end up receiving your suggestions. All in all, an easy solution to the problem and it seems to make the widget flow a little nicer in the application since the suggestions dont end up fluttering so much. On Sep 3, 9:58 am, Oscar [EMAIL PROTECTED] wrote: Sorry if this post appears twice... I posted yesterday, and now I can't find it! :) I am having a problem using GWT's SuggestBox on FF3 when the custom SuggestOracle calls an RPC on a webserver that is geographically far away. What seems to be happening is that an earlier query completed AFTER the final query, which ultimately results in the wrong suggestions being displayed. For example, assume X displays 20 results, and XYZ displays 1 result. If the user types XYZ really quickly, multiple RPC requests will be sent to the webserver, which is fine. I can see these requests being processed, and I can see each one of them sending the correct results back to the client. However, the suggestions that end up being displayed are the results for the X or XY query, not XYZ. Has anyone else encountered this? Any idea how to resolve it? So far I have only been able to reproduce this issue with FF3, but if it is an ordering issue, it should be reproducible with any browser. I will try to test this later today to make sure, but I was hoping someone else has seen this problen and resolved it already. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---