waiting for help
Hello, I have developed an applicatin Integrating GWT+Spring+Hibernate in the web mode , from the link suggested by you that is, the eggsy Three part Tutorial. Now I want to integrate my application with Struts. Can you help me in doing that and suggest me some of the links which help me in doing the further development. Thanks, Poonam --~--~-~--~~~---~--~~ 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: Set CSS for ListBox Items working in Firefox not in Safari
Hi Shashi Kant This is my css code: .list_box_style{ background-image: url("../images/pkg_image2.bmp"); background-position: right; background-repeat: no-repeat; } Is this correct? I don't think this is CSS problem.. Because its working in FF correctly In Safari and IE it's not working.. If you have another solution then please suggest.. It's really urgent... On Mar 23, 4:26 pm, Shashi Kant wrote: > This might be a CSS issue > Paste you "list_box_style" here. > > On Mar 23, 4:03 pm, Danny Schimke wrote: > > > Could it be, that the style is set but not shown. We're adding CSS- > > classnames to option- elements of a listbox too, but only in FF there is a > > change visible. Because the listbox for example in IE will not refresh its > > GUI after adding styles to its items. I have not found a fix for this yet... > > there should be a way to refresh GWT- components on view. > > > -Danny > > > 2009/3/23 priya > > > > Hi all, > > > > I have one ListBox in my GWT application. > > > I want to set CSS for some of the items in this ListBox.. > > > > I am using following code for this: > > > > DOM.getChild(listBox.getElement(), i + 1).setClassName > > > ("list_box_style"); > > > > This code is working perfect in Firefox but not working in Safari > > > browser. > > > > I don't know this is problem of DOM.getChild() method or setting style > > > for that. > > > > Is Safari supports DOM.getChild() method? > > > > If anyone know another way then please suggest... > > > > Any help is welcome.. > > > > Thanks in advance, > > > > Priya > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
hosting a igoogle gadget within GWT application
Has anybody tried hosting a igoogle gadget within GWT application ? What is the right approach to do 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: Copy to Clipboard
I understand what you are trying to convey here, but I need a code so that i the text from textbox gets copied to system.clipboad, by not using well known ctrl-c, but my own copy button on the form. Ctrl- c is more manul, and it should automated by pressing just the Copy button. - Harry 2009/3/24 Jason Essington > > That is browser default behavior. To copy selected text to the > clipboard, press ctrl-c (windows / linux) or command-c (OS X) or > select copy from the edit menu (all platforms). This is the same way > that you would copy from any other application. To supply a > nonstandard UI element to perform a well known task like that violates > best practices, and annoys users. > > So, basically, you can do it the way everyone is used to (by pressing > the well known "copy" key combination, or select from the well known > edit menu location) or you can attempt to fabricate a nonstandard way > using JSNI that is likely to be fragile and bug prone. > > -jason > > On Mar 23, 2009, at 11:28 AM, Harry wrote: > > > > > Hi, > > > > My project is that user is enabled to copy the content of a text box > > and paste it on another form using 'Copy' button. Please advice how to > > do it as GWT is not support copying to system clipboard. > > > > Please help its important. > > > > Thanks > > Harry > > > > > > > > --~--~-~--~~~---~--~~ 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 charts
These work well, http://www.jfree.org/jfreechart/ On Mar 23, 10:49 am, Matías Costa wrote: > 2009/3/23 Matías Costa > > > On Mon, Mar 23, 2009 at 2:05 PM, JoeB wrote: > > >> The Fusion Charts are very good-looking, but they require the Adobe > >> Flash Player plugin. My customer may be using the app from within a > >> secure network that doesn't have access out to the Internet, so this > >> could be a problem. It seems that at least some browsers come pre- > >> installed with the Flash Player; does anybody have a sense as to how > >> safe it is to assume that "all modern browsers" already have the Flash > >> Player? > > > Any browser comes with flash preinstalled. > > Sorry, I mean "NO browser comes with flash preinstalled" --~--~-~--~~~---~--~~ 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 and GWT 1.6RC
Hey, can you guys do me a favor and try out a fix? Just take the attached jar and put it on your classpath ahead of gwt-dev-.jar. See if it fixes the "not and instance of Servlet" problem (and doesn't cause other problems). Lemme know if that works, thanks, Scott PS: The Jsp compilation problem is unrelated, I think. By default, Eclipse does NOT put Sun's tools.jar on your classpath, even if you're using a JDK. The fix is to explicitly add the JDK's tools.jar to your classpath. On Mon, Mar 23, 2009 at 2:11 PM, Flemming Boller wrote: > Hi > > I have created an issuse, number 3496. > > /Flemming > > > On Mon, Mar 23, 2009 at 4:13 PM, Flemming Boller < > flemming.bol...@gmail.com> wrote: > >> Yes I can, that is the way I use spring and gwt. >> >> /FLemming >> >> >> On Mon, Mar 23, 2009 at 12:37 PM, Alejandro D. Garin wrote: >> >>> Hi, >>> >>> anyone can use Spring context listener in web.xml ? >>> >>> Example: >>> >>> >>> contextConfigLocation >>> /WEB-INF/applicationContext.xml >>> >>> >>> >>> >>> org.springframework.web.context.ContextLoaderListener >>> >>> >>> >>> On Mon, Mar 23, 2009 at 5:45 AM, Ed wrote: >>> Shouldn't this be reported as an "issue" ? I thought these issues would be solved now with the usage of Jetty instead Tomcat as mentioned here: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7254dfe963f479ae?hl=en# -- Ed >>> >>> >>> >> > > > > --~--~-~--~~~---~--~~ 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-dev-patch.jar Description: application/java-archive
Re: Exception when add spring.jar in project GWT 1.6
Hey, can you guys do me a favor and try out a fix? Just take the attached jar and put it on your classpath ahead of gwt-dev-.jar. See if it fixes the "not and instance of Servlet" problem (and doesn't cause other problems). Lemme know if that works, thanks, Scott On Sun, Mar 22, 2009 at 10:14 AM, Gilles B wrote: > > I have the same problem with Hibernate. When I check the error line in > jetty classes sources using Jade I see that my Servlet class is not an > instance of "javax.servlet.Servlet", but this seems to be false > looking to my servlet class inheritance. > > In fact this problem is due to a duplication of Servlet class in my > libraries. Inside Eclise I check it using Ctl-Shift-T to find class > Servlet locations, This class appears in "servlet-api.jar" but also > inside GWT libraries. Il solve it removing "servlet-api.jar", I > presume the Servlet class version doesn't match between jetty and the > class version my compiler generate. May be you have something close to > this with your servlet. May be an upgraded jar version, a change in > libraries order or removeing duplicate (if it's not necessary) help to > solve. > > On 19 mar, 14:03, magbyr wrote: > > I'm having the same problem. Same project worked well on 1.5.3, but > > not on 1.6RC. > > > > Fails on jsp and default servlet from > Jetty:javax.servlet.UnavailableException: Servlet class > > org.apache.jasper.servlet.JspServlet is not a > javax.servlet.Servletjavax.servlet.UnavailableException: Servlet class > > org.mortbay.jetty.servlet.DefaultServlet is not a > > javax.servlet.Servlet > > > > Have you found a solution yet? > > > > wiltonj skrev: > > > > > > > > > Hi, > > > I have a problem (exception) when add "spring.jar" in my project gwt > > > 1.6 (WEB-INF/lib). > > > > > javax.servlet.UnavailableException: Servlet class > > > org.apache.jasper.servlet.JspServlet is not a javax.servlet.Servlet > > >at org.mortbay.jetty.servlet.ServletHolder.checkServletType > > > (ServletHolder.java:377) > > >at > org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: > > > 234) > > >at org.mortbay.component.AbstractLifeCycle.start > > > (AbstractLifeCycle.java:39) > > >at org.mortbay.jetty.servlet.ServletHandler.initialize > > > (ServletHandler.java:616) > > >at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > > >at org.mortbay.jetty.webapp.WebAppContext.startContext > > > (WebAppContext.java:1220) > > >at org.mortbay.jetty.handler.ContextHandler.doStart > > > (ContextHandler.java:513) > > >at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: > > > 448) > > >at br.gov.senado.lib.util.jetty.CustomJettyLauncher > > > $WebAppContextWithReload.doStart(CustomJettyLauncher.java:387) > > >at org.mortbay.component.AbstractLifeCycle.start > > > (AbstractLifeCycle.java:39) > > >at org.mortbay.jetty.handler.HandlerWrapper.doStart > > > (HandlerWrapper.java:130) > > >at org.mortbay.jetty.handler.RequestLogHandler.doStart > > > (RequestLogHandler.java:115) > > >at org.mortbay.component.AbstractLifeCycle.start > > > (AbstractLifeCycle.java:39) > > >at org.mortbay.jetty.handler.HandlerWrapper.doStart > > > (HandlerWrapper.java:130) > > >at org.mortbay.jetty.Server.doStart(Server.java:222) > > >at org.mortbay.component.AbstractLifeCycle.start > > > (AbstractLifeCycle.java:39) > > >at br.gov.senado.lib.util.jetty.CustomJettyLauncher.start > > > (CustomJettyLauncher.java:437) > > >at > com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:367) > > >at > com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590) > > >at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) > > >at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) > > > > -- > > > [WARN] Failed startup of context > > > br.gov.senado.lib.util.jetty.CustomJettyLauncher > > > $webappcontextwithrel...@1f5b5fd{/,D:\Prodasen\ADMU\admu\war} > > > org.mortbay.util.MultiException: Multiple exceptions > > >at org.mortbay.jetty.servlet.ServletHandler.initialize > > > (ServletHandler.java:587) > > >at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > > >at org.mortbay.jetty.webapp.WebAppContext.startContext > > > (WebAppContext.java:1220) > > >at org.mortbay.jetty.handler.ContextHandler.doStart > > > (ContextHandler.java:513) > > >at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: > > > 448) > > >at br.gov.senado.lib.util.jetty.CustomJettyLauncher > > > $WebAppContextWithReload.doStart(CustomJettyLauncher.java:387) > > >at org.mortbay.component.AbstractLifeCycle.start > > > (AbstractLifeCycle.java:39) > > > > --- > > > Spring WebApplictation initialization completed... But, the > > > application not start... > > > > > INFO: Using context cla
Re: 2 timers on one page?
It's all Javascript so it's all going to be UTF AFAIK. As for the updates, I think you're architecture is just wrong (you could potentially see results from the server out of order). A better approach would be myCallback = new AsyncCallback { void onFailure(Throwable t) { fetchDataFromServer(); } void onSuccess(T r) { fetchDataFromServer(); } } fetchDataFromServer() { rpcCall(myCallback); } That way, if you've got a slow client your not going to overwhelm them where you're generating timer events faster than they can be handled. It should also scale up & down gracefully with the performance of the client browser/machine. If you want to ensure a minimum of 2 seconds, then do: fetchDataFromServer() { fetchTimer.schedule(Math.max(1, System.currentTimeMillis() - lastUpdate)); lastUpdate = System.currentTimeMillis(); } & then fetchTimer would actually do the rpc invocation. As for the blinking, I'm not sure how you are doing it, but I would recommend adding & removing a CSS class name (i.e addStyleName or. addStyleDependantName). & have the CSS actually define what the visual representation is. On Mon, Mar 23, 2009 at 10:15 PM, denis56 wrote: > > His, > > does anyone know if there are performance implications with having 2 > timers running on a single page? > > I am designing an application where one timer does background fetching > of updates (2s) while the other (0.5s) updates gui elements to achieve > blinking behavior. It is especially noticeable in IE, that the > background updates take longer than 2s and that the browser is > jittering and fails to respond immediately. Has anyone encountered > something like that. Maybe having 2 timers is too much, have no idea. > > Also, do GWT UI components understand ISO-8859-1 encoding? I cannot > display non-ASCII letters in a label, however, the data coming from a > RPC invocation displays properly. strange. > > > 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: file upload from popup
The problem has been fixed - it was a case of misspelling - silly mistake. I'm using Commons FileUpload. And while we are on the subject of file uploads NOT GWT related: Any gurus give me a pointer on how to upload a file to MS SQL Server using streams (setBinaryStream) when the LENGTH of the stream is NOT available? At the moment, I'm writing to a file and then reading it again with the known length/size of the file. <-- not good :( On Mar 23, 9:32 pm, John Ivens wrote: > What does the server side code look like? I have implemented something like > this, and I would like to see how you did it.. > > On Sun, Mar 22, 2009 at 3:54 AM, Riyaz Mansoor wrote: > > > > > I found my mistake. It a single character misspelled in the form panel > > action url !!! > > > Regardless, it would help if the onSubmitComplete or elsewhere an > > exception is thrown. > > > On Mar 22, 2:16 pm, Riyaz Mansoor wrote: > > > I have added onSubmit and onSubmitComplete handlers and both fire > > > successfully. Have checked the url as well. > > > > But nothing is being submitted to the servlet. I checked this with a > > > log() statement in my servlet service method. > > > > what should i do? > > > > On Mar 22, 12:59 am, Riyaz Mansoor wrote: > > > > > The form panel below is in a vertical panel which has submit link. The > > > > vertical panel is in a popup panel. Clicking submit has no effect! > > > > > The examples seem to show formpanel being added to rootpanel. can't > > > > use popup? > > > > > Grid grid = new Grid(3, 2); > > > > grid.setCellSpacing(8); > > > > grid.setWidget(0, 0, hiddenStmtId); > > > > grid.setWidget(0, 1, hiddenEntityId); > > > > grid.setText(1, 0, "Comment"); > > > > grid.setText(2, 0, "Attachment"); > > > > grid.setWidget(1, 1, txtComment); > > > > grid.setWidget(2, 1, fileUpload); > > > > > formPanel = new FormPanel(); > > > > formPanel.setAction("/uploadservlet"); > > > > formPanel.setMethod(FormPanel.METHOD_POST); > > > > formPanel.setEncoding(FormPanel.ENCODING_MULTIPART); > > > > formPanel.add(grid); --~--~-~--~~~---~--~~ 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: Ideas on Using GWT for a Project
Hi Sean, Thank you for your help. http://code.google.com/p/gwt-dnd/ works perfectly. I've got all my widgets in a composite too. Thank you. Chitra On Mar 14, 12:22 am, Sean wrote: > Yeah, everything done on iGoogle can be done in GWT. > > You are right, you can use GWT's mouse listener class to implement > Drag and Drop. There are a bunch of libraries out there that can't > give you a huge jump forward in that area like :http://code.google.com/ > p/gwt-dnd/ > > As for the widgets themselves, check out Composites. You can combine > any amount of GWT Widgets in one neat object. > > As for the CSS, you could probably keep them all in the same file and > just keep the .css file ordered. This way you're not downloading tons > of .css files, lots of overhead for no gain. Though you CAN have > multiple .css files, just declare them all in your GWT's project .xml > > On Mar 13, 2:58 am,Chitra wrote: > > > Hi all, > > > I am a newbie to GWT. I am trying to create a panel that can display > > multiple widgets. These widgets cab be dragged and dropped to any part > > of the screen and will have configuration values that determine thier > > location on the screen, some user preferences etc. A good example is > > igoogle. the easeness of moving around widgets and editting their > > settings in igoogle is exactly what I am trying to achieve. > > > Can I use GWT for this? I am aware of the GWT's MouseListener class > > which will enable me to listen for drags and drops. And GWT's panels > > will be very useful too. But how can I create multiple widgets (with > > their own html files, java code and css files) and put them all > > together onto a host page? Should I create multiple modules (how do I > > do that)? Or should I create multiple GWT projects (how do I import > > those projects to the hostpage)? > > > Thank you very much for your time. > > > Kind regards, > >Chitra --~--~-~--~~~---~--~~ 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: jUnit 4 support how to
If you're planning on writing GWTTestCases, you can't do it with JUnit 4. You have to extend GWTTestCase, which is based on JUnit 3. However, I only use GWTTestCase for integration tests and TestNG for unit testing by mocking out GWT components. -- Arthur Kalmenson On Mon, Mar 23, 2009 at 12:21 PM, hugo.a.garcia wrote: > > Hi > > I didn't see any jUnit 4 support in GWT 1.6. Is this true? > > Is anyone currently using jUnit 4 with GWT and if so can you post how > to do it? > > -H > > > > --~--~-~--~~~---~--~~ 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 & Maven2 - A real how-to?
I believe that the snapshot of the codehaus gwt-maven plugin (http://mojo.codehaus.org/gwt-maven-plugin/) works with GWT 1.6. I'd try their archetype and go from there. Unfortunately, I haven't tried it for 1.6 yet. -- Arthur Kalmenson On Mon, Mar 23, 2009 at 3:19 AM, Java Services wrote: > So I'm trying to get started with GWT / Maven2 > I googled and found a lot of info but nothing works. > The maven repo's and the section do not work (can not browse to > the jars > with the examples given. > What I would like is GWT 1.6.1 (or latest) and sample pom.xml files > There seem to be 2-3 repo's out there that are not directly from Google and > when > I browse there are too many sub-projects and I do not understand what is > under any of them. > Is there a very simple how-to or example that is up to date, that is not out > of date > that anyone has used recently? > I have spent three hours trying different examples that popped up from a > google search > so am looking for something that someone is using now and not a reference to > some doc > that might be helpful as I have explored those options already. > thanks for your help > jv > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
2 timers on one page?
His, does anyone know if there are performance implications with having 2 timers running on a single page? I am designing an application where one timer does background fetching of updates (2s) while the other (0.5s) updates gui elements to achieve blinking behavior. It is especially noticeable in IE, that the background updates take longer than 2s and that the browser is jittering and fails to respond immediately. Has anyone encountered something like that. Maybe having 2 timers is too much, have no idea. Also, do GWT UI components understand ISO-8859-1 encoding? I cannot display non-ASCII letters in a label, however, the data coming from a RPC invocation displays properly. strange. 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: Shouldn't everyone stop using GWT-Ext so we can get critical mass in a supported library?
David, I understand your point, it's shame. As soon as enough people start adopting smartGWT, critical mass will be built. I know, for example, the Instantiations group is finishing integrating GWT-Ext into their VisualGWT product (which is a great $60 spend IMO). But Ext-JS will never get better from here in a LGPL format. I am planning for smartGWT. Thanks! On Mar 13, 6:33 am, david peters wrote: > Ah.. it's not that easy to cast aside GWT-EXT, unfortunately. While > SmartGWT is coming along.. it still does not have quite the same > polish of EXT. Ext-GWT may be equivalent to GWT-EXT, but the dual- > license is restrictive for some environments. > > Although it's original creator, Sanjiv, may have abandoned the GWT-EXT > project, I believe that others have taken it up, although the backend > EXT library will never be updated. > > On Mar 11, 3:20 pm, tv wrote: > > > > > FWIW: > > > I'm looking at starting a GWT project using a widget library add-in. > > Only after reading for some time did I realize there was some tension > > between the team that created the Ext JS library and the team that > > created the GWT-Ext library (that relies on Ext-JS). So now there are > > two alternatives it seems to me for those that want to carry on using > > a widget library like this: > > > smartGWT (LGPL or commercial) > > > -or- > > > Ext-GWT (GPL or commercial) > > > I don't have a bias in either one, except that it would be great if > > there was a clear leader or at least if people stopped developing > > expertise in GWT-Ext since it is essentially a project that is no > > longer of interest to its creators. I learn so much from other > > people's questions on these topics - I would rather see everyone start > > using a library that will continue to evolve, so we can start helping > > one another. > > > Is there a better alternative out there? > > > Thanks.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-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: Connecting to site 127.0.0.1
I have been using TCPView (http://technet.microsoft.com/en-us/ sysinternals/bb897437.aspx) and found that sometimes after closing a GWT instance, even though the java process has ended theres still a port in TIME_WAIT under a system process. All I can do is wait for it to finish waitingbut maybe this might give someone some hints. http://www.sunny.id.au/gwt/processes.jpg On Mar 9, 11:19 am, Ralph wrote: > Having the same problem here. Isn't there a way to improve the script > running the hosted. Like use a different port when is used, or > close previous instance before opening a new one, or make sure that > the previous run released the port before running a new instance. > Hope someone has a solution. > > On Feb 15, 10:29 pm, "sunny...@gmail.com" wrote: > > > This one has been bugging me for a while now, and I haven't seen > > anything around like this one. > > > I have a Eclipse+Cypal Studio project that has grown to a reasonable > > size, and while testing I still use the GWT hosted mode to run. My > > machine doesn't have anything else running on port , but > > occasionally when I start the project, the hosted browser's status bar > > just says "Connecting to site at 127.0.0.1" but nothing happens > > (browser window is blank). I'd have to close GWT and restart it for it > > to work (sometimes 5 or 6 times before it works). > > > I have no clue what would be causing this or even where to start to > > look to try and fix it. > > > This project uses Hibernate and GWT-Ext, if that helps at all. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: google map getting crowded
You could look at the icon demo if you want to make the markers smaller. It's included in the HelloWorlds sample: http://gwt.google.com/samples/HelloMaps-1.0.3/HelloMaps.html#Creating%20Icons On Mon, Mar 23, 2009 at 3:28 PM, Juan Francisco Gato Luis wrote: > > Hi ytbryan, > > I think I can't help you in this task, but maybe we can talk about your > project with gwt maps. I'm developing and testing geolocation with gwt > in the android browser. I'm testing the geolocation that developed Mark > renouf. > > how about you, what's your project? > > see you! > > ytbryan wrote: > > hi all, > > > > after i put markers on google map, it got really crowded. > > > > is there anyway where i can solve this problem? > > > > ie. making the map bigger? make the marker smaller? > > > > how? need some advice.. thanks > > > > /bryan > > > > > > > > > > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ 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 opening a new Window
This may help you: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/eea48bafbe8eed63 On Mar 23, 5:44 am, Magius wrote: > Ummm, it seems complex. > The DialogBox it's a layer placed on top of the current window, but > it's part of the window and I don't know how to print only it (you > could manipulate the rest of the elements using css to not print them > but I think it not a good idea). > > Probably the best approach is to open another window with only the > contents of the dialogBox. > But you need to pass arguments to the new Window(date, > action=showDetails, ...). > > One way is: > 1. to open a new window with the URL of a generic jsp (.../ > generic.jsp?date=xxx&action=showDetails&...) > 2. to generate in the jsp an GWT-HTML page with a additional js- > variable storing the parameters. The page can use your current > EntryPoint. > 3. to modify the EntryPoint to check if the js-variable exists in > the page and, in this case, to render only the DialogBox inside the > Panel instead of starting the whole application. The parameters are > available in the page. > 4. to call to the print option of the navigator. > > Another way is: > 1. to send to the server the parameters using RPC and to store them > in session > 2. to open a new window using a static GWT-HTML page (with a > different tittle or an additional js-variable or anything that could > be used as a flag). The page can use your current EntryPoint. > 3. to modify the EntryPoint to check if the HTML page has the flag > and, in this case, to render only the DialogBox inside the Panel > instead of starting the whole application. The parameters are > avialable in the user session. > 4. to call to the print option of the navigator. > > There are more approach but I cannot imagine anyone more simple. > I hope it helps! > > On Mar 22, 7:48 pm, "susanne.p...@googlemail.com" > > wrote: > > I'm writing a programm with gwt in Eclipse. It is a calendar where you > > can add dates. I also implemented a method to show an overview of all > > dates. At the moment it is shown in a Dialogbox. Now I want that > > overview to be printed. So I have to questions > > 1. Can I print a dialogbox? If yes HOW? > > > 2. If not: can I open a new window, where the overview is included? > > How can I do this? I saw the function Window.open (URL...) but how can > > I say what the URL is? I don't know what is the name of it. How to > > create a new Window? Can you give me a piece of code? > > > Many questions and hopefully many answers. > > > I hope you can help me > > > Thanks for now --~--~-~--~~~---~--~~ 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: Copy to Clipboard
That is browser default behavior. To copy selected text to the clipboard, press ctrl-c (windows / linux) or command-c (OS X) or select copy from the edit menu (all platforms). This is the same way that you would copy from any other application. To supply a nonstandard UI element to perform a well known task like that violates best practices, and annoys users. So, basically, you can do it the way everyone is used to (by pressing the well known "copy" key combination, or select from the well known edit menu location) or you can attempt to fabricate a nonstandard way using JSNI that is likely to be fragile and bug prone. -jason On Mar 23, 2009, at 11:28 AM, Harry wrote: > > Hi, > > My project is that user is enabled to copy the content of a text box > and paste it on another form using 'Copy' button. Please advice how to > do it as GWT is not support copying to system clipboard. > > Please help its important. > > Thanks > Harry > > --~--~-~--~~~---~--~~ 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 mask page when show a dialog box ?
Forgot to include background-color:black in the css. On Mar 23, 5:03 pm, lukehashj wrote: > I did something like this: > > SimplePanel modalDiv = new SimplePanel(new HTML(" ")); > modalDiv.setStyleName("modalDiv"); > modalDiv.setWidth("100%"); > modalDiv.setHeight("100%"); > > RootPanel.get().add(modalDiv); > > DOM.setStyleAttribute(modalDiv.getElement(), "position", "absolute"); > DOM.setStyleAttribute(modalDiv.getElement(), "left", "0"); > DOM.setStyleAttribute(modalDiv.getElement(), "top", "0"); > > with css: > > .modalDiv { > filter:alpha(opacity=90); > -moz-opacity:.90; > opacity:.90; > > } > > -luke > > On Mar 18, 12:34 am, Saeed Zarinfam wrote: > > > Hi > > I want to mask page element when i show a dialog box over the page > > (like google reader message box). > > please guide me. --~--~-~--~~~---~--~~ 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 mask page when show a dialog box ?
I did something like this: SimplePanel modalDiv = new SimplePanel(new HTML(" ")); modalDiv.setStyleName("modalDiv"); modalDiv.setWidth("100%"); modalDiv.setHeight("100%"); RootPanel.get().add(modalDiv); DOM.setStyleAttribute(modalDiv.getElement(), "position", "absolute"); DOM.setStyleAttribute(modalDiv.getElement(), "left", "0"); DOM.setStyleAttribute(modalDiv.getElement(), "top", "0"); with css: .modalDiv { filter:alpha(opacity=90); -moz-opacity:.90; opacity:.90; } -luke On Mar 18, 12:34 am, Saeed Zarinfam wrote: > Hi > I want to mask page element when i show a dialog box over the page > (like google reader message box). > please guide me. --~--~-~--~~~---~--~~ 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: Scroll to certain position
You have a few options. You can use the ScrollPanel class, and the setScrollBarPosition method. Or, you can use DOM.scrollIntoView(Element e) Good luck On Mar 22, 4:40 pm, "maple...@gmail.com" wrote: > im a newbie > how could i scroll to the certain position in a panel? > > For example: > > Panel pagePanel = new Panel(); > pagePanel.setHtml("aFile"); > > When i click a button, the pagePanel will start to show the from the > 10th line. --~--~-~--~~~---~--~~ 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 Practices for managing GWT 1.6 based Applications, Projects and Modules?
We've been developing a multi-module application and I think the 1 project 1 entry point multiple module approach is the best (of course there are always exceptions). One good reason is that in your main modules' gwt.xml you can inherit everything and then all of the subordinate modules will inherit everything from the main module that inherited them. Other than unique rpc callback servlets, all of our modules' gwt.xml files are an empty set of tags. Another thing is if you have some common 'methods' or 'utilities' you can make a module for them, inherit that in your main module and they will be available for all the other modules. One thing to be careful about though is keep your module naming conventions the same. We do a lot of reflection for multiple instances of given modules and are only able to do so by adhearing to naming conventions. Another thing is try to keep all the 'work' out of your gwt code and keep it in your /server folder or in another designated server side package. You never know when the client will get all hot and heavy and you may have to swap out the presentation layer. On Mar 20, 9:47 pm, Lance Weber wrote: > With the arrival of the new project structure in 1.6 I'm looking for > recommendations/experiences on organizing complex applications > containing several major functional areas. > > For purposes of this discussion, I'm envisioning > -Application A > --Functional Area A1 > --Functional Area A2 > --Functional Area A3 > > Assuming each functional area shares > 50% common entities, business > logic and gui components, it isn't clear to me what approaches to > organizing the codebase will scale with the eventual size of the > application. Here are some of the options as I understand them: > > 1) Monolith Option. One project with one module, possibly supporting > multple entry points. > > 2) One project, multiple modules. Maintain one project, but create > multiple modules to organize common classes and functional areas. (How > do you accomplish this in 1.6? It's not clear to me) > > 3) Multiple projects, one module per project. Create one project for > each module, resulting in a commons project and a project for each > functional area. > > Any thoughts/comments on this would be welcome... > Advantages/Disadvantages? > Options I'm missing? > Good/Bad experiences with these approaches? --~--~-~--~~~---~--~~ 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: Trying to change the style of tabTopLeft and right on tabBars
Sorry, didn't read your question thoroughly enough. It looks like you understand the css inheritence problem. Why not just use .gwt-DecoratedTabBar .tabTopRight { } as the CSS class? Do you have more than one tabbar this would effect? If so, could you wrap the tabbar in a container with a css class name, and then use: .container .gwt-DecoratedTabBar .tabTopRight { } Good luck. On Mar 20, 12:09 pm, ProtoLD wrote: > All the other CSS styles are easily applied after setting a style name > to the tab bar and addressing them as follows: > > .customizedStyleName .tabTopCenter { > background-image: url('images/centerTopImage.gif'); > > } > > but this doesn't appear to work for the two corners, the base GWT > overrides my CSS. The CSS for the right corner looks like this: > > html > body .gwt-DecoratedTabBar .tabTopRight { > > when inspecting it in Firebug (yah Firefox). Can anyone tell me how > to override this? --~--~-~--~~~---~--~~ 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: Trying to change the style of tabTopLeft and right on tabBars
I've had mixed results with CSS inheritence (seems like sometimes IE just doesn't listen...) So here's the idea - Say I have three CSS classes, .test1 { border:1px solid red; } .test2 { background-color:blue; } .test1 .test2 { font-size:16pt; } and the following html: test1 test2 test3 then I would expect the following: test1 will have a red border as it inherits the class ".test1" test2 will have a blue background as it inherits the class ".test2" test3 will have a red border, a blue background, AND MOST IMPORTANTLY, font size 16pt as it inherits the class ".test1 .test2" (note the missing comma in .test1 .test2! its intentionally gone!) -lukehashj On Mar 20, 12:09 pm, ProtoLD wrote: > All the other CSS styles are easily applied after setting a style name > to the tab bar and addressing them as follows: > > .customizedStyleName .tabTopCenter { > background-image: url('images/centerTopImage.gif'); > > } > > but this doesn't appear to work for the two corners, the base GWT > overrides my CSS. The CSS for the right corner looks like this: > > html > body .gwt-DecoratedTabBar .tabTopRight { > > when inspecting it in Firebug (yah Firefox). Can anyone tell me how > to override this? --~--~-~--~~~---~--~~ 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: Keyboard event
Remember, when flaming a forum, not to use your real email address :) You can use the DOM and event listeners to manually monitor events. Just make sure to sink the events properly. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/DOM.html On Mar 23, 3:31 am, "nicanor.babula" wrote: > Very nice though... Useless forum... No help at all... I finally > figured it out. But it doesn't worth sharing the solution with you... > Thank you anyway for your help.. > > On Mar 20, 5:37 pm, "nicanor.babula" wrote: > > > Hello everyone... This is my first post in here so don't be too sharp > > on me.. > > > I have wrote a class that extends AbsolutePanel and implements > > SourcesMouseEvents in order to have an AbsolutePanel that accept mouse > > events. Now, the next step I want to do is to make it accept Keyboard > > events. I won't use any other component existing in other libraries > > (like extjs) because my app must be very light. > > > So, you have any hint? Any tutorial? So far I could handle it just by > > reading the javadocs, but for this one I couldn't figure it out... > > > Sorry for my poor english too.. --~--~-~--~~~---~--~~ 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
congratulations on great work. ;) On 18 mar, 17:32, Bruce Johnson wrote: > Good news! Google Web Toolkit 1.6 RC is ready for you to download and try > out: > > http://code.google.com/p/google-web-toolkit/downloads/list?q=1.6.2 > > For background on what's new in GWT 1.6, please see the still-in-progress > doc: > > http://code.google.com/docreader/?p=google-web-toolkit-doc-1-6&s=goog... > > as well as previous 1.6-related announcements: > > "Announcing GWT 1.6 Milestone > 1"http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > and > > "Announcing GWT 1.6 Milestone > 2"http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > For complete details, the GWT issue tracker has the full list of changes: > > http://code.google.com/p/google-web-toolkit/issues/list?can=2&q=miles... > > We expect this to be a short RC cycle, so a more comprehensive blog post > with an overview of the features in GWT 1.6 should be just around the > corner. > > -- Bruce, on behalf of the GWT team --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
problem integrating gwt with struts2
Hello, I am new to this group and i hope that i can resolve my problems with gwt here. I am trying to integrate gwt with struts but without any result. Probably my knowledges of gwt are not so great :) I have prepared a simple project in maven that can be downloaded : http://www.locatari.info/app.rar The project has everything to be runned in idea. If you run "mvn clean install" in the app dir (main dir) will generate everything to be run. After that if you go to war dir and run "mvn jetty:run-war" will try to start the app. The first problem is with the json . It will not start, i have no idea. Let's say for the test sake that we are replacing with /jsp/Main.jsp in struts.xml. Now after running from war dir "mvn jetty:run-war", the appl will start. The problem is that when accesing http://localhost:8080/Main.action, nothing will be displayed. I have veriffied the paths to the nochache.js The script is there. Every one, if you have 5 minnutes to take a look, i will thank you verry much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-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: Need some help with cookies set by server during RPC call
Just tested & it has something to do with the name of the cookie I'm using. Can someone please explain this to me? Thanks. On Mon, Mar 23, 2009 at 5:31 PM, Vitali Lovich wrote: > Hi, I'm trying to set the session ID in the server response & have the user > pick it up. > > I've verified with firebug: the cookie does get sent back: > > Response Headers > Content-Type > > application/json; charset=utf-8 > > Content-Length > > 146 > > Expires > > Thu, 01 Jan 1970 00:00:00 GMT > > Set-Cookie > > sid=M84W2QQ1Z8E4YCET;Path=/;Domain=localhost;Expires=Mon, 04-May-09 13:26:42 > GMT > > Content-Encoding > > gzip > > content-disposition > > attachment > > Server > > Jetty(6.1.x) > > Request Headers > Host > > localhost:9000 > > User-Agent > > Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030423 > Ubuntu/8.10 (intrepid) Firefox > /3.0.7 > > Accept > > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > > Accept-Language > > en-us,en;q=0.5 > > Accept-Encoding > > gzip,deflate > > Accept-Charset > > ISO-8859-1,utf-8;q=0.7,*;q=0.7 > > Keep-Alive > > 300 > > Connection > > keep-alive > > X-GWT-Permutation > > HostedMode > > Content-Type > > text/x-gwt-rpc; charset=utf-8 > > Referer > > http://localhost:9000/sacredheart/hosted.html?sacredheart > > Content-Length > > 265 > > Cookie > > lastUser=wforte > > Pragma > > no-cache > > Cache-Control > > no-cache > > > However, when I do a Cookies.get(sid) I don't see it. I've also tried > using JSNI (alert(document.cookie)) to print all the cookies, & I don't see > `sid'. > > What am I doing wrong? > > Thanks > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Need some help with cookies set by server during RPC call
Hi, I'm trying to set the session ID in the server response & have the user pick it up. I've verified with firebug: the cookie does get sent back: Response Headers Content-Type application/json; charset=utf-8 Content-Length 146 Expires Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie sid=M84W2QQ1Z8E4YCET;Path=/;Domain=localhost;Expires=Mon, 04-May-09 13:26:42 GMT Content-Encoding gzip content-disposition attachment Server Jetty(6.1.x) Request Headers Host localhost:9000 User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030423 Ubuntu/8.10 (intrepid) Firefox /3.0.7 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive X-GWT-Permutation HostedMode Content-Type text/x-gwt-rpc; charset=utf-8 Referer http://localhost:9000/sacredheart/hosted.html?sacredheart Content-Length 265 Cookie lastUser=wforte Pragma no-cache Cache-Control no-cache However, when I do a Cookies.get(sid) I don't see it. I've also tried using JSNI (alert(document.cookie)) to print all the cookies, & I don't see `sid'. What am I doing wrong? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-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: Copy to Clipboard
I saw in this forums that this is a browser specific code... try searching and using JSNI Oskar On 23 mar, 18:28, Harry wrote: > Hi, > > My project is that user is enabled to copy the content of a text box > and paste it on another form using 'Copy' button. Please advice how to > do it as GWT is not support copying to system clipboard. > > Please help its important. > > Thanks > Harry --~--~-~--~~~---~--~~ 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: Apparently same Remote Service instance across multiple web page on same pc client
That's a servlet lifecycle question, a servlet engine ( f.e. Tomcat ) may create one or many instances of a servlet, as needed. At init, one will be created. There's no way to control or configure this; and this behaviour is determined by servlet specification, nor by GWT If you want to assign some resources /objects to only one session, use this on the servlet code : getThreadLocalRequest().getSession().setAttribute("resource", resoure); Oskar Pd. so much time without posting here excuse me ! On 23 mar, 21:32, Arturo wrote: > Hi all, > may be my question sounds a bit strange, but 'cause I'm approaching an > important project implementation I want to be sure I understood GWT > mechanism. > > My problem is the following: > - I've created a GWT application that uses an RPC Service for > accessing data from database. > In a single user environment it works fine. > > Than I tested a multiuser access and I started from accessing the > deployed application from two different web browser (Firefox and IE) > at the same time (approx...) from the same PC (same ip address). > What I found out is that the Remote Implementation object, that is > subclass of RemoteServiceServlet seems to be the same for both web > page ! > If I put the remote instance out (System.out.println(this)) if > discover that is just the same. Of course this creates a lot of > problems to me. > > Am I missing something or is a normal behaviour because it use a sort > of session context ? > > My worries is what happens when different end-users access to my > application, once deployed ! > > Any help would be appreciated. > > Arturo --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Apparently same Remote Service instance across multiple web page on same pc client
Hi all, may be my question sounds a bit strange, but 'cause I'm approaching an important project implementation I want to be sure I understood GWT mechanism. My problem is the following: - I've created a GWT application that uses an RPC Service for accessing data from database. In a single user environment it works fine. Than I tested a multiuser access and I started from accessing the deployed application from two different web browser (Firefox and IE) at the same time (approx...) from the same PC (same ip address). What I found out is that the Remote Implementation object, that is subclass of RemoteServiceServlet seems to be the same for both web page ! If I put the remote instance out (System.out.println(this)) if discover that is just the same. Of course this creates a lot of problems to me. Am I missing something or is a normal behaviour because it use a sort of session context ? My worries is what happens when different end-users access to my application, once deployed ! Any help would be appreciated. Arturo --~--~-~--~~~---~--~~ 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
Hi there, downloaded RC but I have a problem getting it to work. Specifically If I do: $ mkdir MyProject $ cd MyProject $ webAppCreator org.tests.client.MyApp If I try now to import the project into eclipse(3.4.2), right-click "Debug as->Debug Configurations->Java Application->MyApp", eclipse gives me the error "Project MyApp does not exist". if I click "Browse" and select the correct project name(MyProject) eclipse gives me: "The archive: /MyApp/src which is referenced by the classpath, does not exist." Only if the top-level directory is the same as the main class eg. MyProject->MyApp only then the debug works as expected. (Or if you modify MyApp.lauch and replace all the references of MyApp to MyProject) Let me know if you need more information. Regards, Christos --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
inhibit selection of some TreeItems on Tree
Hi, I'm looking for a way to inhibit the selection of some TreeItems in a Tree. The only way that I see is to override the onSelection method on Tree class, but it is private :(. Thanks Federico --~--~-~--~~~---~--~~ 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: Approaches to develop a stateful application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 In case you're still on the fence, I suggest you keep as much of your state as possible (preferably all of it) on the client. It's just easier. You can think of an instance of your EntryPoint class being around while your app is open in a browser window or tab. That class has fields, and there's your state. GWT apps are a lot like desktop apps in that way. stsch wrote: > Hi, > > I have just started with GWT. What are the approaches to develop a > stateful GWT application? Could any of the experts please summarize > this a bit for a beginner and maybe point me/us to some reference > material? > > Thanks, > -StSch- > > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJx+dlrZoE3ArapxERCFwZAJ0XrijghlJyN9vjwBbr7vvZfyYhLQCfdCqb 1165OOIC2BnZqyrj9YeLTZA= =5aRG -END PGP SIGNATURE- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: google map getting crowded
Hi ytbryan, I think I can't help you in this task, but maybe we can talk about your project with gwt maps. I'm developing and testing geolocation with gwt in the android browser. I'm testing the geolocation that developed Mark renouf. how about you, what's your project? see you! ytbryan wrote: > hi all, > > after i put markers on google map, it got really crowded. > > is there anyway where i can solve this problem? > > ie. making the map bigger? make the marker smaller? > > how? need some advice.. thanks > > /bryan > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
google map getting crowded
hi all, after i put markers on google map, it got really crowded. is there anyway where i can solve this problem? ie. making the map bigger? make the marker smaller? how? need some advice.. thanks /bryan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Runtime link error, libXt got loaded before libXm
Hello, i am new on GWT, all works fine in hosted mode but if i try to compile/ browse an Application i get the following errors. Gtk-Message: Failed to load module "gail": /usr/lib/gtk-2.0/modules/ libgail.so: wrong ELF class: ELFCLASS64 Gtk-Message: Failed to load module "atk-bridge": /usr/lib/gtk-2.0/ modules/libatk-bridge.so: wrong ELF class: ELFCLASS64 Runtime link error - it appears that libXt got loaded before libXm, which is not allowed. my system is Ubuntu 8.10 64Bit plattform running a 32bit version of eclipse 3.4.2 and ia32-java-6-sun version. What i have tried is to disable the prelink in ubuntu with no result and also to unset AWT_TOOLKIT. Hoppe anyone can help. thaks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
jUnit 4 support how to
Hi I didn't see any jUnit 4 support in GWT 1.6. Is this true? Is anyone currently using jUnit 4 with GWT and if so can you post how to do it? -H --~--~-~--~~~---~--~~ 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 and GWT 1.6RC
Hi I have created an issuse, number 3496. /Flemming On Mon, Mar 23, 2009 at 4:13 PM, Flemming Boller wrote: > Yes I can, that is the way I use spring and gwt. > > /FLemming > > > On Mon, Mar 23, 2009 at 12:37 PM, Alejandro D. Garin wrote: > >> Hi, >> >> anyone can use Spring context listener in web.xml ? >> >> Example: >> >> >> contextConfigLocation >> /WEB-INF/applicationContext.xml >> >> >> >> >> org.springframework.web.context.ContextLoaderListener >> >> >> >> On Mon, Mar 23, 2009 at 5:45 AM, Ed wrote: >> >>> >>> Shouldn't this be reported as an "issue" ? >>> >>> I thought these issues would be solved now with the usage of Jetty >>> instead Tomcat as mentioned here: >>> >>> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7254dfe963f479ae?hl=en# >>> >>> >>> -- Ed >>> >>> >>> >> >> >> >> > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Copy to Clipboard
Hi, My project is that user is enabled to copy the content of a text box and paste it on another form using 'Copy' button. Please advice how to do it as GWT is not support copying to system clipboard. Please help its important. Thanks Harry --~--~-~--~~~---~--~~ 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: Approaches to develop a stateful application
On 23 mar, 16:44, Magius wrote: > That's true, the easiest way is to store all the posiblle information > in the client side. And in this way you application is more scalable. > Anyway, there are some information that I have to store in the server. > I have often 1 or 2 servlets for PDF/XLS/JPG generation that need to > shared some basic information with GWT. I do too, but I made them stateless nevertheless (although I concede that it's not always easy and in those cases, a small bit of state on the server side is worth it wrt time/money constraints). (see below however) > And a flag to know if the user is logged or not. Otherwise you have to > send always the user and password (in a non readable way, etc). And if > you use several HTML in the same app or SSO you'll need to. This does not mean your server has to be stateful. Authenticating using a "ticket" associated with a given user (as the result of "calling a resource" with the appropriate credentials), that expires after a few minutes of "inactivities" does not imply using sessions. I am using such a thing, and the tickets are stored somewhere in the database (that's not something we've developed, it comes with the product we're building upon). The same ticket can be used with different "sessions" if you are capable of passing it to the server (we have some cases where we pass it in the query string; looks awful, isn't "restful" at all, but it just works and saves us from some re- authentication needs; specifically, we use this in the URLs of our FormPanel when we do uploads, and in the WebDAV URLs we give to MS Office --through an ActiveX, in the "ie6" permutation only-- to enable online editing of office documents). We do use the "ticket" in a cookie too, but that doesn't imply an HttpSession in the server either. --~--~-~--~~~---~--~~ 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: Keyboard event
On 23 mar, 10:31, "nicanor.babula" wrote: > Very nice though... Useless forum... No help at all... I finally > figured it out. But it doesn't worth sharing the solution with you... > Thank you anyway for your help.. 20 was a friday, and we're now a monday (and in the US, you posted at 2am!) You just cannot expect someone *will* answer during the week end (including friday, because many people have things to get done before the week end so are too busy to come here). I'd also say that, as you found how to get mouse events but not how to get keyboard events, showing a code snippet of what you did for mouse events would have helped understand your problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Does the Timer Class stop after changing clock?
On 23 mar, 17:14, Salman Hemani wrote: > I am seeing a strange behaviour so I'd appreciate if someone can > explain the workings of the Timer class to me. The Timer class uses setTimeout or setInterval behind the scene (depending whether you call schedule() or scheduleRepeating() method), which are "native" browser functions. They're unfortunately not part of any standard, but a draft is available (so expect browsers to align on the same behavior in their next version, if that's not already the case) in HTML5: http://www.w3.org/TR/html5/no.html#timers http://www.whatwg.org/specs/web-apps/current-work/multipage/no.html#timers > I have a piece of code that executes in the run() method when a > disconnection from the server is detected. More specifically, the user > is prompted a message for disconnection if the server stops sending a > ping. If I get a ping I will reset the timer. If I do not get a ping > within 20 seconds I will show the disconnection message. > > So here is the problem. If I change my system time, the disconnection > message is displayed to the user right away. More specifically, I > change the time 1 minute into the future. I also tried 20 seconds into > the future and it also disconnected. But if change the time into the > past it doesn’t matter. I would also say that changing the time into > the future by 5 seconds or anything below 20, does not affect the > timer (although more testing is required). > > Is the time change affecting how the timer operates? Is it determining > the elapsed time based on the system clock? Unfortunately, HTML5 defines setTimeout/setInterval to "asynchronously wait timeout milliseconds" which can be interpreted one way or the other (and seem to be implemented as computing the timestamp when the timer should run and having a thread "poll" timers that have an elapsed timestamp). I suggest you ask the WHATWG or W3C HTML WG for clarification (see the "Status of this document" section of http://www.w3.org/TR/html5/ ) --~--~-~--~~~---~--~~ 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 from popup
What does the server side code look like? I have implemented something like this, and I would like to see how you did it.. On Sun, Mar 22, 2009 at 3:54 AM, Riyaz Mansoor wrote: > > > I found my mistake. It a single character misspelled in the form panel > action url !!! > > Regardless, it would help if the onSubmitComplete or elsewhere an > exception is thrown. > > > On Mar 22, 2:16 pm, Riyaz Mansoor wrote: > > I have added onSubmit and onSubmitComplete handlers and both fire > > successfully. Have checked the url as well. > > > > But nothing is being submitted to the servlet. I checked this with a > > log() statement in my servlet service method. > > > > what should i do? > > > > On Mar 22, 12:59 am, Riyaz Mansoor wrote: > > > > > The form panel below is in a vertical panel which has submit link. The > > > vertical panel is in a popup panel. Clicking submit has no effect! > > > > > The examples seem to show formpanel being added to rootpanel. can't > > > use popup? > > > > > Grid grid = new Grid(3, 2); > > > grid.setCellSpacing(8); > > > grid.setWidget(0, 0, hiddenStmtId); > > > grid.setWidget(0, 1, hiddenEntityId); > > > grid.setText(1, 0, "Comment"); > > > grid.setText(2, 0, "Attachment"); > > > grid.setWidget(1, 1, txtComment); > > > grid.setWidget(2, 1, fileUpload); > > > > > formPanel = new FormPanel(); > > > formPanel.setAction("/uploadservlet"); > > > formPanel.setMethod(FormPanel.METHOD_POST); > > > formPanel.setEncoding(FormPanel.ENCODING_MULTIPART); > > > formPanel.add(grid); > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Does the Timer Class stop after changing clock?
I am seeing a strange behaviour so I'd appreciate if someone can explain the workings of the Timer class to me. I have a piece of code that executes in the run() method when a disconnection from the server is detected. More specifically, the user is prompted a message for disconnection if the server stops sending a ping. If I get a ping I will reset the timer. If I do not get a ping within 20 seconds I will show the disconnection message. So here is the problem. If I change my system time, the disconnection message is displayed to the user right away. More specifically, I change the time 1 minute into the future. I also tried 20 seconds into the future and it also disconnected. But if change the time into the past it doesn’t matter. I would also say that changing the time into the future by 5 seconds or anything below 20, does not affect the timer (although more testing is required). Is the time change affecting how the timer operates? Is it determining the elapsed time based on the system clock? --~--~-~--~~~---~--~~ 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: Keyboard event
Very nice though... Useless forum... No help at all... I finally figured it out. But it doesn't worth sharing the solution with you... Thank you anyway for your help.. On Mar 20, 5:37 pm, "nicanor.babula" wrote: > Hello everyone... This is my first post in here so don't be too sharp > on me.. > > I have wrote a class that extends AbsolutePanel and implements > SourcesMouseEvents in order to have an AbsolutePanel that accept mouse > events. Now, the next step I want to do is to make it accept Keyboard > events. I won't use any other component existing in other libraries > (like extjs) because my app must be very light. > > So, you have any hint? Any tutorial? So far I could handle it just by > reading the javadocs, but for this one I couldn't figure it out... > > Sorry for my poor english too.. --~--~-~--~~~---~--~~ 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: Set CSS for ListBox Items working in Firefox not in Safari
This might be a CSS issue Paste you "list_box_style" here. On Mar 23, 4:03 pm, Danny Schimke wrote: > Could it be, that the style is set but not shown. We're adding CSS- > classnames to option- elements of a listbox too, but only in FF there is a > change visible. Because the listbox for example in IE will not refresh its > GUI after adding styles to its items. I have not found a fix for this yet... > there should be a way to refresh GWT- components on view. > > -Danny > > 2009/3/23 priya > > > > > Hi all, > > > I have one ListBox in my GWT application. > > I want to set CSS for some of the items in this ListBox.. > > > I am using following code for this: > > > DOM.getChild(listBox.getElement(), i + 1).setClassName > > ("list_box_style"); > > > This code is working perfect in Firefox but not working in Safari > > browser. > > > I don't know this is problem of DOM.getChild() method or setting style > > for that. > > > Is Safari supports DOM.getChild() method? > > > If anyone know another way then please suggest... > > > Any help is welcome.. > > > Thanks in advance, > > > Priya --~--~-~--~~~---~--~~ 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 & Maven2 - A real how-to?
So I'm trying to get started with GWT / Maven2 I googled and found a lot of info but nothing works. The maven repo's and the section do not work (can not browse to the jars with the examples given. What I would like is GWT 1.6.1 (or latest) and sample pom.xml files There seem to be 2-3 repo's out there that are not directly from Google and when I browse there are too many sub-projects and I do not understand what is under any of them. Is there a very simple how-to or example that is up to date, that is not out of date that anyone has used recently? I have spent three hours trying different examples that popped up from a google search so am looking for something that someone is using now and not a reference to some doc that might be helpful as I have explored those options already. thanks for your help jv --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Internet Explorer 6/7, iframes and events
Hello, I'm trying to listen to events from an iframe (the GWT javascript is loaded in the page containing the iframe). This works well on Firefox 2 / 3, but I always get an error script on Internet Explorer 6 /7. Here is the code: The Module === public void onModuleLoad() { IFrameElement frame = IFrameElement.as(DOM.getElementById ("myFrame")); DOM.sinkEvents( (com.google.gwt.user.client.Element) frame.getContentDocument().getBody().cast(), Event.ONCLICK | Event.ONMOUSEDOWN | Event.ONMOUSEUP); DOM.setEventListener( (com.google.gwt.user.client.Element) frame.getContentDocument().getBody().cast(), new EventListener() { public void onBrowserEvent(Event arg0) { Window.alert("Event in frame!"); } }); } index.html == The frame: frame.html === in the frame When I click on the iframe, the script error I get is that 'event' is null on the line: 'if ($wnd.event.returnValue == null)' located in the method com.google.gwt.user.client.impl.DOMImplIE6#initEventSystem() I guess it's because $wnd refers to the window in which the GWT javascript is loaded, so that 'event' only refers to an event fired in that window (at least for IE). Any known workaround about this? Thanks in advance, Thomas --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
warning when compiling RPC method with long[] return type
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 -~--~~~~--~~--~--~---
how about the gwt Geolocation accuracy
hello, I have some test with this tool and the latitude an longitude that show me is : (40,-3) but I'm in the (40.28723552052237, -3.8025999069213867) , maybe im making a mistake? or there are something to configure a best accuracy. I'll use the "op.setHighAccuracy(true)" but I think that not usefull in the way I was thinking. any idea? ;) thanks for your support , and good work Mark!! this tool is really interesting ^o^ !! --~--~-~--~~~---~--~~ 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 charts
2009/3/23 Matías Costa > On Mon, Mar 23, 2009 at 2:05 PM, JoeB wrote: > >> >> The Fusion Charts are very good-looking, but they require the Adobe >> Flash Player plugin. My customer may be using the app from within a >> secure network that doesn't have access out to the Internet, so this >> could be a problem. It seems that at least some browsers come pre- >> installed with the Flash Player; does anybody have a sense as to how >> safe it is to assume that "all modern browsers" already have the Flash >> Player? >> > > Any browser comes with flash preinstalled. > Sorry, I mean "NO browser comes with flash preinstalled" --~--~-~--~~~---~--~~ 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 charts
On Mon, Mar 23, 2009 at 2:05 PM, JoeB wrote: > > The Fusion Charts are very good-looking, but they require the Adobe > Flash Player plugin. My customer may be using the app from within a > secure network that doesn't have access out to the Internet, so this > could be a problem. It seems that at least some browsers come pre- > installed with the Flash Player; does anybody have a sense as to how > safe it is to assume that "all modern browsers" already have the Flash > Player? > Any browser comes with flash preinstalled. Anyway, flash is not a big dependency. May be you could host it in the app web server for the user to install it without internet connection. If user can't install flash, you have to go with gcharts. --~--~-~--~~~---~--~~ 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: Approaches to develop a stateful application
That's true, the easiest way is to store all the posiblle information in the client side. And in this way you application is more scalable. Anyway, there are some information that I have to store in the server. I have often 1 or 2 servlets for PDF/XLS/JPG generation that need to shared some basic information with GWT. And a flag to know if the user is logged or not. Otherwise you have to send always the user and password (in a non readable way, etc). And if you use several HTML in the same app or SSO you'll need to. On Mar 23, 2:44 pm, Thomas Broyer wrote: > On 22 mar, 23:13, stsch wrote: > > > > > I have just started with GWT. What are the approaches to develop a > > stateful GWT application? Could any of the experts please summarize > > this a bit for a beginner and maybe point me/us to some reference > > material? > > Keep your server stateless and store all state information in the > client (you can use static fields for example). > > I find it much easier to "think stateless" on the server side (aside > from "ReST" arguments), but of course YMMV and you're still free to > choose HttpSession (or other session mechanism, if you don't use Java > server-side) if you prefer... --~--~-~--~~~---~--~~ 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: using of classes outside gwt's class list
On Mon, Mar 23, 2009 at 4:10 PM, ytbryan wrote: > > thanks thomas. > > I wonder which method is better? thomas's or David's? > > I don't quite get how to "emulate" the java class... > > but if i simply put it at the server, it will slow down my system > greatly. eg. if i want to fetch the geocode from google geocode, the > data will go to my server and then transmitted to my client through > RPC. > > is there a standard way of doing this? given that the classes needed > are outside the JRE Emulation provided by gwt. > Google provides a gwt "bindings" to his google maps api. Think again, your app runs inside a big HTTP client. --~--~-~--~~~---~--~~ 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 and GWT 1.6RC
Yes I can, that is the way I use spring and gwt. /FLemming On Mon, Mar 23, 2009 at 12:37 PM, Alejandro D. Garin wrote: > Hi, > > anyone can use Spring context listener in web.xml ? > > Example: > > > contextConfigLocation > /WEB-INF/applicationContext.xml > > > > > org.springframework.web.context.ContextLoaderListener > > > > On Mon, Mar 23, 2009 at 5:45 AM, Ed wrote: > >> >> Shouldn't this be reported as an "issue" ? >> >> I thought these issues would be solved now with the usage of Jetty >> instead Tomcat as mentioned here: >> >> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7254dfe963f479ae?hl=en# >> >> >> -- Ed >> >> >> > > > > --~--~-~--~~~---~--~~ 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: using of classes outside gwt's class list
thanks thomas. I wonder which method is better? thomas's or David's? I don't quite get how to "emulate" the java class... but if i simply put it at the server, it will slow down my system greatly. eg. if i want to fetch the geocode from google geocode, the data will go to my server and then transmitted to my client through RPC. is there a standard way of doing this? given that the classes needed are outside the JRE Emulation provided by gwt. /bryan On Mar 23, 2:46 pm, Thomas Broyer wrote: > On 23 mar, 13:18,ytbryan wrote: > > > i can't find the com.google.gwt.emul.Emulation module. can you point > > me to the link? > > It's in the gwt-user.jar, or if you look at the SVN, in > user/super:http://code.google.com/p/google-web-toolkit/source/browse/releases/1 --~--~-~--~~~---~--~~ 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: Trying to change the style of tabTopLeft and right on tabBars
Can I bump this? Bump? Still haven't found a solution to this. On Mar 20, 1:09 pm, ProtoLD wrote: > All the other CSS styles are easily applied after setting a style name > to the tab bar and addressing them as follows: > > .customizedStyleName .tabTopCenter { > background-image: url('images/centerTopImage.gif'); > > } > > but this doesn't appear to work for the two corners, the base GWT > overrides my CSS. The CSS for the right corner looks like this: > > html > body .gwt-DecoratedTabBar .tabTopRight { > > when inspecting it in Firebug (yah Firefox). Can anyone tell me how > to override this? --~--~-~--~~~---~--~~ 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: JSONP with Authentication
Yeah I'm wondering whether I need to do a slight overhaul and make it an authenticating web service rather than JSONP requests. The application won't be storing any important information but as users tend to use the same password for their web services it is an issue. On Mar 23, 11:47 am, Thomas Broyer wrote: > On 23 mar, 00:42, eggsy wrote: > > > Are there any other ways? > > > For example if I code a GWT form with username and password and pass > > the values through with the JSONP request as parameters (doing my own > > verification server side) I'm getting the feeling that this would be a > > bad way to do it? > > Yup; unless you make your request over SSL/TLS (HTTPS) (but even then, > it would be "bad looking") > > You can eventually use HTTP-level authentication (using HTTP Basic -- > which sends credentials in the clear, so should be used over SSL/TLS > only-- or HTTP Digest on your server's side), and use an URL such as: > http://user:p...@example.net/my.module.nocache.js > > > Could people strip/sniff the parameters because they would be in plain > > text?? > > Over SSL/TLS, no; otherwise, yes. --~--~-~--~~~---~--~~ 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: using of classes outside gwt's class list
On 23 mar, 13:18, ytbryan wrote: > i can't find the com.google.gwt.emul.Emulation module. can you point > me to the link? It's in the gwt-user.jar, or if you look at the SVN, in user/super: http://code.google.com/p/google-web-toolkit/source/browse/releases/1.5/user/super/com/google/gwt/emul/ --~--~-~--~~~---~--~~ 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: Approaches to develop a stateful application
On 22 mar, 23:13, stsch wrote: > > I have just started with GWT. What are the approaches to develop a > stateful GWT application? Could any of the experts please summarize > this a bit for a beginner and maybe point me/us to some reference > material? Keep your server stateless and store all state information in the client (you can use static fields for example). I find it much easier to "think stateless" on the server side (aside from "ReST" arguments), but of course YMMV and you're still free to choose HttpSession (or other session mechanism, if you don't use Java server-side) if you prefer... --~--~-~--~~~---~--~~ 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 charts
How to show the ToolTipData on onmouseover event which is currently shown on onmouseclick event ? any idea ? On Mon, Mar 23, 2009 at 6:35 PM, JoeB wrote: > > The Fusion Charts are very good-looking, but they require the Adobe > Flash Player plugin. My customer may be using the app from within a > secure network that doesn't have access out to the Internet, so this > could be a problem. It seems that at least some browsers come pre- > installed with the Flash Player; does anybody have a sense as to how > safe it is to assume that "all modern browsers" already have the Flash > Player? > > -- Joe > > > -- "Face Your Fears Live Your Dreams" Lead your DESTINY the way YOU want ... Sachin Survase. --~--~-~--~~~---~--~~ 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 charts
The Fusion Charts are very good-looking, but they require the Adobe Flash Player plugin. My customer may be using the app from within a secure network that doesn't have access out to the Internet, so this could be a problem. It seems that at least some browsers come pre- installed with the Flash Player; does anybody have a sense as to how safe it is to assume that "all modern browsers" already have the Flash Player? -- Joe --~--~-~--~~~---~--~~ 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 charts
GCharts are ok. but Would like something which provides me with a pie- chart & gauge On Mar 23, 2:53 pm, Ravi Mundoli wrote: > If you can live with somewhat not-so-sexy graphs (especially pie > charts), GChart (http://code.google.com/p/gchart/) is pretty easy to > integrate into a GWT app. > > Ravi > > On Mar 23, 2:01 pm, robinson wrote: > > > This still mentions of using > >
Re: using of classes outside gwt's class list
i can't find the com.google.gwt.emul.Emulation module. can you point me to the link? On Mar 21, 1:44 am, Thomas Broyer wrote: > On 20 mar, 10:36,ytbryan wrote: > > > hi all, > > > i wanted to be able to use the following class > > > import java.net.HttpURLConnection; > > import java.net.MalformedURLException; > > import java.net.URL; > > import java.net.URLConnection; > > com.google.gwt.http.client.RequestBuilder > > > import org.cyberneko.html.parsers.DOMFragmentParser; > > import org.cyberneko.html.parsers.DOMParser; > > com.google.gwt.dom.client.Document > com.google.gwt.dom.client.Element > > Element div = Document.get().createElement("div"); > div.setInnerHTML(someHtmlToParse); > div.getFirstChild(); // and other DOM accesses > > > import org.apache.html.dom.HTMLDocumentImpl; > > import org.w3c.dom.Document; > > import org.w3c.dom.DocumentFragment; > > import org.w3c.dom.Node; > > import org.w3c.dom.html.HTMLDocument; > > com.google.gwt.dom.client.* > --or-- > com.google.gwt.xml.client.* > > > i tried to find a substitute within the gwt permit class but to no > > avail. > > > I was told that i can deploy it seperately from my gwt application and > > call it. But I am not sure how to. > > > can someone advise me what to do ? > > If you do want to "emulate" those Java classes rather than convert the > code to GWT classes, you can provide your own implementations (that > are translatable to JavaScript, i.e. that wrap GWT classes calls). You > have to include your classes source code (do *not* compile them to > *.class files) in a subfolder/package of your modules' base folder/ > package and set this subfolder/package as a in your > module's *.gwt.xml. > Have a look at the com.google.gwt.emul.Emulation module in GWT, which > is the one that emulates the Java Runtime (i.e. the one providing the > GWT "translatable" implementations of classes listed in "JRE") --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Integrating GWT into Spring MVC ("The serialization policy file was not found;")
Hi All >From looking in the archives (and not finding what I was looking for) I have a feeling I may be about to open a can of worms and possibly leave myself open to abuse. Please go gently with me. I've managed to get GWT integrated into Spring MVC when deployed to a real tomcat server. I've configured web.xml to redirect urls to Spring and then an MVC class passes back my GWT page as a view. It works well! But not in hosted mode. This is how I've got the hosted mode (\tomcat\webapps\ROOT\WEB-INF) web.xml configured: org.springframework.web.context.ContextLoaderListener shell org.springframework.web.servlet.DispatcherServlet 1 shell /* and the shell-servlet.xml looks like this: SpringGWTShellServlet basically takes GWTShellServlet and makes it into a Spring Controller: public class SpringGWTShellServlet extends GWTShellServlet implements Controller, ServletContextAware { private static final long serialVersionUID = 6499284524261360631L; private ServletContext servletContext; @Override public ModelAndView handleRequest(HttpServletRequest request,HttpServletResponse response) throws Exception { this.doPost(request, response); return null; } @Override public void setServletContext(ServletContext servletContext) { this.servletContext = servletContext; } @Override public ServletContext getServletContext() { return servletContext; } } It works if I have a simple RPC service interface (e.g. a single method that returns a string), but anything more complicated, like passing back a List of user defined objects doesn't. In both cases I get the error: [INFO] StandardContext[]ERROR: The serialization policy file '/co.uk.marauder.MyApplication/5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc' was not found; did you forget to include it in this deployment? [INFO] StandardContext[]WARNING: Failed to get the SerializationPolicy '5BA8A5B3E35F40698BB0BF65F390BCF2' for module 'http://localhost:/co.uk.marauder.MyApplication/'; a legacy, 1.3.3 compatible, serialization policy will be used. You may experience SerializationExceptions as a result. I'm assuming my problem is that my server side RPC class is no longer accessed via GWTShellServlet...? Has anyone else tried this or know how I can fix it? Or do I have the wrong approach? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w: http://www.marauder-consulting.co.uk b: paulgrenyer.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to configure web.xml to include RPC service?
It works fine for me including the full package name. For tomcat, in the module's xml I use the servlet name: In the web.xml for Weblogic I used the "fullModuleNameWithDots/ servletName": Common giros.server.services.common.CommonServiceImpl Common /giros.MenuNavegacion/rpcCommon And the URL in java is: GWT.getModuleBaseURL() + "rpcCommon"; On Mar 22, 11:28 am, stsc...@schliwinski.de wrote: > > The requested resource (/gwtejb/de.stsch.gwtejb.GwtEjb/GwtEjbSrc) is > > not available. > > Hm, it works when I change my web.xml to > > /de.stsch.gwtejb.GwtEjb/GwtEjbSrc > > Why do I have to include the full package name? --~--~-~--~~~---~--~~ 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: WEB-INF in hosted mode
Hi > Where is the WEB-INF located when running in hosted mode? Found it! \tomcat\webapps\ROOT\WEB-INF\web.xml Thanks 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: Approaches to develop a stateful application
In general, It's as easy as to create a HttpSession in the RemoteServiceServlet. I've created an abstract BaseService that only accepts RPC calls when the child Service NOT "isSecured()" OR when (the child Service "isSecured()" AND there's a HttpSession previously stablished). abstract public class BaseService extends RemoteServiceServlet { private static final Logger logger = Logger.getLogger ( BaseService.class); public abstract boolean isSecured( ); @Override public String processCall( String payload) throws SerializationException { HttpSession session = getThreadLocalRequest().getSession (false); DatosThread.setSession( session); if( isSecured( )) { if( (session == null) || (session.getAttribute ( "user") == null)) { // User not authenticated! logger.error( "User not authenticated!"); try { getThreadLocalResponse().sendError( 401); } catch (IOException e) { logger.error("ERROR sending HTTP 401", e); } return ""; } } String result = super.processCall( payload); return result; } } public class SecurityImpl extends BaseService implements Security { private static final Logger logger = Logger.getLogger ( SecurityImpl.class); public User authenticateUser( String username, String password) { logger.debug( "INIT logging " + username); User user = findUser( username); if( (user != null) && user.getPassword( ).equals( password)) { HttpSession session = getThreadLocalRequest( ).getSession( true); session.setAttribute("user", user); logger.debug( "User logged"); return new User( user.getLogin( ), "", user.getProfile( )); } logger.debug( "Logging rejected"); return null; } @Override public boolean isSecured( ) { return false; } } public class ModelImpl extends BaseService implements Model { private static final Logger logger = Logger.getLogger ( ModelImpl.class); .. rpc methods ... @Override public boolean isSecured( ) { return true; } } On Mar 22, 11:13 pm, stsch wrote: > Hi, > > I have just started with GWT. What are the approaches to develop a > stateful GWT application? Could any of the experts please summarize > this a bit for a beginner and maybe point me/us to some reference > material? > > Thanks, > -StSch- --~--~-~--~~~---~--~~ 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 Practices for managing GWT 1.6 based Applications, Projects and Modules?
On 23 mar, 02:50, "ni...@stsoftware.com.au" wrote: > does anyone know if we can have more than one gwt module per page in > 1.6 ? AFAICT, you already can with 1.5. It's just that the hosted mode makes it a bit "harder" to debug (you have to tweak your HTML page wrt the path of the nocache.js for the "other modules"). >From what I've read, it should be easier (read: straightforward, supported out-of-the-box) in 1.6 with the new HostedMode: just pass it your modules names as arguments and it "just works". --~--~-~--~~~---~--~~ 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: JSONP with Authentication
On 23 mar, 00:42, eggsy wrote: > Are there any other ways? > > For example if I code a GWT form with username and password and pass > the values through with the JSONP request as parameters (doing my own > verification server side) I'm getting the feeling that this would be a > bad way to do it? Yup; unless you make your request over SSL/TLS (HTTPS) (but even then, it would be "bad looking") You can eventually use HTTP-level authentication (using HTTP Basic -- which sends credentials in the clear, so should be used over SSL/TLS only-- or HTTP Digest on your server's side), and use an URL such as: http://user:p...@example.net/my.module.nocache.js > Could people strip/sniff the parameters because they would be in plain > text?? Over SSL/TLS, no; otherwise, yes. --~--~-~--~~~---~--~~ 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 opening a new Window
Ummm, it seems complex. The DialogBox it's a layer placed on top of the current window, but it's part of the window and I don't know how to print only it (you could manipulate the rest of the elements using css to not print them but I think it not a good idea). Probably the best approach is to open another window with only the contents of the dialogBox. But you need to pass arguments to the new Window(date, action=showDetails, ...). One way is: 1. to open a new window with the URL of a generic jsp (.../ generic.jsp?date=xxx&action=showDetails&...) 2. to generate in the jsp an GWT-HTML page with a additional js- variable storing the parameters. The page can use your current EntryPoint. 3. to modify the EntryPoint to check if the js-variable exists in the page and, in this case, to render only the DialogBox inside the Panel instead of starting the whole application. The parameters are available in the page. 4. to call to the print option of the navigator. Another way is: 1. to send to the server the parameters using RPC and to store them in session 2. to open a new window using a static GWT-HTML page (with a different tittle or an additional js-variable or anything that could be used as a flag). The page can use your current EntryPoint. 3. to modify the EntryPoint to check if the HTML page has the flag and, in this case, to render only the DialogBox inside the Panel instead of starting the whole application. The parameters are avialable in the user session. 4. to call to the print option of the navigator. There are more approach but I cannot imagine anyone more simple. I hope it helps! On Mar 22, 7:48 pm, "susanne.p...@googlemail.com" wrote: > I'm writing a programm with gwt in Eclipse. It is a calendar where you > can add dates. I also implemented a method to show an overview of all > dates. At the moment it is shown in a Dialogbox. Now I want that > overview to be printed. So I have to questions > 1. Can I print a dialogbox? If yes HOW? > > 2. If not: can I open a new window, where the overview is included? > How can I do this? I saw the function Window.open (URL...) but how can > I say what the URL is? I don't know what is the name of it. How to > create a new Window? Can you give me a piece of code? > > Many questions and hopefully many answers. > > I hope you can help me > > Thanks for now --~--~-~--~~~---~--~~ 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 charts
On Mon, Mar 23, 2009 at 7:02 AM, robinson wrote: > > Hi there guys, > > I am developing a java based application and require a charting > utility. But when i started using google visualizations for this I > figured out that it has a dependency on internet. Is there any way for > me to get charts using GWT, without depending on internet. > I am using ofcgwt for charting. The main problem for me is, until you get OOPHM working (I haven't even tried, I am in a rush) watching the charts require full app compilation. The process , code -> test -> discover bug -> code -> test is slow. --~--~-~--~~~---~--~~ 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 and GWT 1.6RC
Hi, anyone can use Spring context listener in web.xml ? Example: contextConfigLocation /WEB-INF/applicationContext.xml org.springframework.web.context.ContextLoaderListener On Mon, Mar 23, 2009 at 5:45 AM, Ed wrote: > > Shouldn't this be reported as an "issue" ? > > I thought these issues would be solved now with the usage of Jetty > instead Tomcat as mentioned here: > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7254dfe963f479ae?hl=en# > > > -- Ed > > > > --~--~-~--~~~---~--~~ 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: JSNI question (extending ManagedIFramePanel, wrapping some other methods)
On 22 mar, 20:51, DanG wrote: > public native Document getFrameDocument()/*-{ > var panel = > th...@com.gwtext.client.widgets.component::getOrCreateJsObj()(); > var doc = panel.getFrameDocument(); > //alert(doc); > if (doc) > return doc; > return null; > }-*/; > > if in my native javascript code (using a 3rd party library, i'm > wrapping ManagedIFrame extension) I get back an object HTMLDocument. > Can I just return this to a com.google.gwt.dom.client.Document? no > type conversion needed? Right. (actually, you could return any javascript object --anything that's not a String, Number or Boolean--, it would work... until you try to call a method or access a field, that would most likely not exist on the given object). > well it doesn't seem to work and not sure how > to proceed for debugging this. > > The commented out alert tells me me I have a [object HTMLDocument] > > but when I try to call methods (i.e. getNodeValue) on the returned > document the debugger tells me (in eclipse) > 'Method "getNodeValue" with signature "()Ljava/lang/String;" is not > applicable on this object' Evaluating things from the debugger just doesn't work for JavaScriptObject's (or any "native"/JSNI method), it's a known issue that won't be fixed anytime soon: http://code.google.com/p/google-web-toolkit/issues/detail?id=2912 > How do I turn this HTMLDocument into a working Document? Obviously > something I'm missing because I'm not familiar with this technology or > the library in question. Your code is OK, you just cannot use the debugger facilities... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Open Flash Charts and negative values
Hello people. I am using ofcgwt for charting, and it looks like you can't pass the y_min parameter supported by ofc to get proper negative values rendering. ¿Any idea of how to get a negative range Y axis? 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: getting a site's GWT version
On 22 mar, 17:29, Avishay wrote: > Hi > i am considering using GWT as my framework for my RIA and i conducting > a survey to identify which versions are been used by your posted sites > that uses GWT. how can i identify the version of the GWT a spcefic > website is using ? It's in the compilation result files (.cache.*) For instance, Google Document Reader is using 1.5.1: http://code.google.com/docreader/E6EABEE66146EAD895C9EA5851C4B122.cache.html > is there a way to access $gwt_version via javascript? You mean from within your own GWT module/application? Otherwise, no (apart from getting the source of the iframe --provided the standard linker has been used-- in a string and using a regexp or other search'n'extract mechanism) --~--~-~--~~~---~--~~ 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: Set CSS for ListBox Items working in Firefox not in Safari
Could it be, that the style is set but not shown. We're adding CSS- classnames to option- elements of a listbox too, but only in FF there is a change visible. Because the listbox for example in IE will not refresh its GUI after adding styles to its items. I have not found a fix for this yet... there should be a way to refresh GWT- components on view. -Danny 2009/3/23 priya > > Hi all, > > I have one ListBox in my GWT application. > I want to set CSS for some of the items in this ListBox.. > > I am using following code for this: > > DOM.getChild(listBox.getElement(), i + 1).setClassName > ("list_box_style"); > > This code is working perfect in Firefox but not working in Safari > browser. > > I don't know this is problem of DOM.getChild() method or setting style > for that. > > Is Safari supports DOM.getChild() method? > > If anyone know another way then please suggest... > > Any help is welcome.. > > Thanks in advance, > > Priya > > > > --~--~-~--~~~---~--~~ 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 charts
If you can live with somewhat not-so-sexy graphs (especially pie charts), GChart (http://code.google.com/p/gchart/) is pretty easy to integrate into a GWT app. Ravi On Mar 23, 2:01 pm, robinson wrote: > This still mentions of using >
Set CSS for ListBox Items working in Firefox not in Safari
Hi all, I have one ListBox in my GWT application. I want to set CSS for some of the items in this ListBox.. I am using following code for this: DOM.getChild(listBox.getElement(), i + 1).setClassName ("list_box_style"); This code is working perfect in Firefox but not working in Safari browser. I don't know this is problem of DOM.getChild() method or setting style for that. Is Safari supports DOM.getChild() method? If anyone know another way then please suggest... Any help is welcome.. Thanks in advance, Priya --~--~-~--~~~---~--~~ 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 charts
This still mentions of using http://www.google.com/jsapi";> which requires internet On Mar 23, 12:45 pm, Sachin Survase wrote: > http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis... > > > > On Mon, Mar 23, 2009 at 12:43 PM, robinson wrote: > > > But is there any way to use Google Visualization without internet > > connection? > > > On Mar 23, 10:22 am, Sachin Survase wrote: > > > Hi, > > > >http://www.fusioncharts.com/free/ > > > you can integrate this with your GWT app. > > > > On Mon, Mar 23, 2009 at 11:32 AM, robinson wrote: > > > > > Hi there guys, > > > > > I am developing a java based application and require a charting > > > > utility. But when i started using google visualizations for this I > > > > figured out that it has a dependency on internet. Is there any way for > > > > me to get charts using GWT, without depending on internet. > > > > -- > > > "Face Your Fears Live Your Dreams" > > > Lead your DESTINY the way YOU want ... > > > Sachin Survase. > > -- > "Face Your Fears Live Your Dreams" > Lead your DESTINY the way YOU want ... > Sachin Survase. --~--~-~--~~~---~--~~ 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 and GWT 1.6RC
Shouldn't this be reported as an "issue" ? I thought these issues would be solved now with the usage of Jetty instead Tomcat as mentioned here: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7254dfe963f479ae?hl=en# -- Ed --~--~-~--~~~---~--~~ 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 charts
http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=VisualizationGettingStarted On Mon, Mar 23, 2009 at 12:43 PM, robinson wrote: > > But is there any way to use Google Visualization without internet > connection? > > > > > > On Mar 23, 10:22 am, Sachin Survase wrote: > > Hi, > > > > http://www.fusioncharts.com/free/ > > you can integrate this with your GWT app. > > > > On Mon, Mar 23, 2009 at 11:32 AM, robinson wrote: > > > > > Hi there guys, > > > > > I am developing a java based application and require a charting > > > utility. But when i started using google visualizations for this I > > > figured out that it has a dependency on internet. Is there any way for > > > me to get charts using GWT, without depending on internet. > > > > -- > > "Face Your Fears Live Your Dreams" > > Lead your DESTINY the way YOU want ... > > Sachin Survase. > > > -- "Face Your Fears Live Your Dreams" Lead your DESTINY the way YOU want ... Sachin Survase. --~--~-~--~~~---~--~~ 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 hosted mode ubuntu 8.10 - does not show content
Hi, I am running 32 only since my hardware does not support 64 bit. The hosted mode starts but doesnt render the page (in this case, the "click me" button). I've tried everything I could find in these forums. I've also tried installing the GWT 1.6, in which case I get an "error while parsing xml" in the hosted mode loader (and the browser does not start, in this case). Any other ideas? On Mar 23, 2:36 am, Jeremiah Elliott wrote: > Are you running the 32 or 64 bit version of ubuntu? The hosted browser runs > only in 32 bit mode. I can't remember if your symptoms match what the hosted > browser does in a 64bit environment or not. There is a simple workaround > that requires downloading a 32 bit version of the jdk. Search the group for > the details. > > -Jeremiah Elliott > > On Sun, Mar 22, 2009 at 4:51 PM, jakob.ga...@gmail.com < > > jakob.ga...@gmail.com> wrote: > > > Hi, > > > After reading, searching and trying, I still can't get hosted mode to > > work on my system. > > > The shell starts just fine, but even the "Hello" sample doesn't > > render. Nothing happens and the Compile/Browse button is grayed out. > > > Anyone who was able to fix this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and charts
But is there any way to use Google Visualization without internet connection? On Mar 23, 10:22 am, Sachin Survase wrote: > Hi, > > http://www.fusioncharts.com/free/ > you can integrate this with your GWT app. > > On Mon, Mar 23, 2009 at 11:32 AM, robinson wrote: > > > Hi there guys, > > > I am developing a java based application and require a charting > > utility. But when i started using google visualizations for this I > > figured out that it has a dependency on internet. Is there any way for > > me to get charts using GWT, without depending on internet. > > -- > "Face Your Fears Live Your Dreams" > Lead your DESTINY the way YOU want ... > Sachin Survase. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---