Re: CloseHandlerWindow, new window problem
Update: it works in hosted mode, not don't in real browsers. On Apr 22, 2:10 am, ivovnenko ivovne...@gmail.com wrote: Hello. I'm trying to open new browser window just before the main window (GWT host page) is closed. Strange thing is that when I write this - public void onClose(CloseEventWindow event) { Window.alert(event.toDebugString()); } alert is being shown, but public void onClose(CloseEventWindow event) { Window.open(http://www.google.com,newWindow,;); } doesn't open new window. Would really appreciate any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 to display a disabled checkbox without changing the appearance
As Lothar mentioned above, its not more appropriate to reset the previous value of a checkbox, as it got checked and become unchecked. so thought of keeping the original disabled appearance as such On Apr 21, 10:32 pm, Ian Bambury ianbamb...@gmail.com wrote: Checkboxes change their appearance for a reason. What are you doing that is so important that you don't mind confusing/pissing off your users? Ian http://examples.roughian.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: A native GWT chart library?
Hi, Tatami http://code.google.com/p/tatami/ project wraps the dojo framework in GWT... it's open source. Regards, Hasan... On Wed, Apr 22, 2009 at 6:38 AM, Ben FS ben.su...@gmail.com wrote: Thanks all for your help. You're welcome! Ben, I looked at the links you gave me, a lot of interesting things but no client-site library that fits my need. For what it's worth, I too would really like a client-side library - mainly so that I can do lots of quick, small updates without much latency. The quality just wasn't adequate for the client-side libraries that I tried, so I switched back to a server-side library. In my case, so far there has been no noticeable increase in latency: you may wish to reconsider your need for a client-side solution, and at least try it with an easy server-side solution (aka Google Chart API or Eastwood) and see what your results are. Maybe you've already tried this, or have other good reasons for a client-side solution. So I think I'm gonna end up doing a wrapper for dojo chart. Sounds like a great project, and one that would be useful to many (including me). If you make progress on this, would you consider establishing a Google Code project? Best of luck, Ben. On Apr 21, 9:47 am, Flemming Boller flemming.bol...@gmail.com wrote: Hi I currently use the GWTCanvas, for creating pies. It works very well. The code I can just copy paste from swing/awt code examples because the GWTCanvas api is very much like the normal jdk canvas. And you can your self attach mouse listeners etc on the pie so it becomes interactive, with the rest of the page. So for pies it is well suited. However I have not cracked the nutt with respect to drawing text in the canvas, last time I checked the versiondid not support drawString(...) method, so that was a no go. /Flemming ps: if you want I can attach the code. On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer t.bro...@gmail.com wrote: On 20 avr, 23:54, plcoirier plcoir...@gmail.com wrote: Hi, I'm looking for a native GWT chart library. I would like to be able to draw all different kinds of chart (line chart, bart chart, area chart, pie chart...). I also would like a client solution. I unfortunately can't use Google Visualization bc it's for an intranet website and users may not have access to google servers. Flash solutions aren't an option either :( I saw gchart but I need pie charts that are completely filled. Any other ideas of library? Huh! no flash?! Which browser(s) are you targetting? If you only plan on supporting relatively modern browsers and/or IE, then you could use SVG or canvas (for the formers) and VML for the latter (I guess silverlight or java applets aren't an option either?). There are a few GWT projects for charting based on canvas but they don't seem maintained... (for examplehttp://code.google.com/p/glotr/ ) You can eventually use the GWTCanvas widget from the GWT Incubator and do the plotting/charting by yourself: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas Unfortunately, Chronoscope doesn't meet your criterias as it doesn't do pies (it's oriented towards time-based data...), otherwise, it's a very well-thought-out project from one of the best GWT user/ contributor out there! http://timepedia.org/chronoscope/-Hide quoted text - - Show quoted text -- 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: CloseHandlerWindow, new window problem
My advice would be to think about why that might be. On Wed, Apr 22, 2009 at 2:57 AM, ivovnenko ivovne...@gmail.com wrote: Update: it works in hosted mode, not don't in real browsers. On Apr 22, 2:10 am, ivovnenko ivovne...@gmail.com wrote: Hello. I'm trying to open new browser window just before the main window (GWT host page) is closed. Strange thing is that when I write this - public void onClose(CloseEventWindow event) { Window.alert(event.toDebugString()); } alert is being shown, but public void onClose(CloseEventWindow event) { Window.open(http://www.google.com,newWindow,;); } doesn't open new window. Would really appreciate any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Strange window popup with Anchor widget in 1.6.4
The anchor widget is just a regular a href= tag so if you use that constructor, clicking on it will open a new browser window. To get an anchor that doesn't do that use the constructor http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Anchor.html#Anchor(java.lang.String,%20boolean,%20java.lang.String) with # as the href. Salvador On Apr 21, 7:53 pm, Clive Cox clive@rummble.com wrote: With 1.6.4 on linux in Hosted mode, if I have something like: Anchor anchor = new Anchor(some text); anchor.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //do something } }); I get a new blank browser window popup and and several warnings in the hosted mode console like: [WARN] Confirmation was required to visit untrusted URL: 'jar:resource:///chrome/toolkit.jar!/content/global/console.xul Any ideas what's going on? The click handler seems to still get fired. --~--~-~--~~~---~--~~ You received 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: serialization to history - bad idea?
I'm not sure I understand what you're trying to do, but it seems to me that you want to use those classes client-side so you might want to look at the JRE emulation reference: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html You'll realize that it's not possible. If you really want consistent history support across all browsers, you should stick to the provided implementation. Cheers, Salvador On Apr 21, 7:48 pm, Keith keiths...@gmail.com wrote: Do you think is it a bad idea to use SerializationStreamWriter and SerializationStreamReader to write an object's state to the history? It seems like it would be a more convenient way to go than for me to try to write my own methods for doing this. I guess it could be a problem if I blow past the URL length limit but I suppose that is a possibility with my own serialization schemes too. Thanks in advance for your advice -Keith --~--~-~--~~~---~--~~ You received 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: OnMouseOver and OnMouseOut on FlexTable
http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#NewFeatures Here's an interesting excerpt from that link: For users who create their own Widgets, you no longer need to manage listeners manually. Every widget has a HandlerManager that manages all of its handlers. For native events, such as ClickEvent, just call addDomHandler() from within your code to register a handler and sink the associated event on the Widget. When the native event is detected, the handler will automatically be called. For logical events, such as SelectionEvent, call addHandler() and fire the event manually using the fireEvent() method. You can see examples of EventHandler usage in many of the updated GWT widgets and samples, or in new projects created with the new webAppCreator tool. Cheers, Salvador On Apr 21, 9:55 pm, serega.shey...@gmail.com serega.shey...@gmail.com wrote: Good day. I've undestood how to get cell which was clicked by user (using new Handler pattern). But I can' get how does other handlers work (early I've used sink events and onBrowserEvent). My task is to hightlight row of FlexTable when the mouse pointer is on it and put away hightlight when mouse goes away from FlexTable row. Can you help me to ndestand the mechanics of handlers in this case? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 Mail sample using Spring Dreamsource ORM
Why would anyone want to use this ORM when theres hibernate ? Hibernate has lots of additional features, caching, different fetch strategies, tooling, the list goes on etc none of which are mentioned in the wiki.. The main page doesnt mention has this package solves the detached enhanced object problem so many people have raised questions and discussed in thsi forumDoes this lib solve that problem - if so please elaborate... On Apr 21, 4:16 pm, Jim jim.p...@gmail.com wrote: I modified the GWT mail sample distributed with GWT. The mail sample can retrieve emails from HSQLDB and update contacts in the database. I use the following features - Spring IOC and Spring AOP transaction, Dreamsource ORM. You can lauch a href=http://www.leeonsoft.com/mail/ Mail.htmlthis application/a. The source code is available fromhttp://dreamsource-orm.googlecode.com/files/mail_1.0.0_04202009.jar. You need Dreamsource ORM source code that is also available fromhttp://dreamsource-orm.googlecode.com/files/dreamsource2_0_1_04202009 Dreamsource ORM is making big difference in developing GWT application. Any feedback is welcome. Jim Xie --~--~-~--~~~---~--~~ You received 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: A native GWT chart library?
The Google Chart API delivers an image instead of Flash. It's a server- side, hosted, URL-based charting API. All input data is provided as URL query parameters and the Google server responds with a chart image. The charts are clean and the API is easy to use This does mean it isn't going to be interactive, as Flash is. http://code.google.com/intl/nl/apis/chart/ --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
i18n in client/server application
Hi, I am a client/server application with a strict separation of client and server code, which means that server code (like domain objects) are allowed to be used by the client, but no client code might be used be the server code (of course). Now I want to externalize all of my strings (error messages, labels etc.). Some of them (like labels) are in the gui code and I can use the gwt i18n concept (Constants interface) for it, but others are in the domain objects (like the default name of some objects). Therefor I would normally use the standard java resource bundle approach, but as the domain objects are also used in the client this isn't possible. Unfortunately I cannot use the gwt approach either as I would have to use client code in the server part then. Is there any solution for my dilemma? ;-) Thanks in advance, Ole --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to know Time Format of System time at client side
Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: How make few pages with GWT ?
Thanks, but I read it. There is a good introduction for a sample application, but my task is more complicated. I have to use 2 pages with Entrypoints , second one accessing from first. I think, problem is in correct designing of web.xml and gwt.properties, but I still did not achive result. On Apr 21, 11:10 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: If page is static - all is OK. Else script is not preforming/ What is wrong here, is any example how to do it? thanks a lot! Google wrote excellent documentation for GWT. This: http://code.google.com/webtoolkit/gettingstarted.html is a great place to start as it describes how to build a sample application. Tony -- Tony Strauss Designing Patterns, LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.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: i18n in client/server application
Explain again why the name of objects can't be internalized using constants on the client side? Anyways, the general solution would be to set the internationalized string using java resource bundles in the server code prior to sending the objects over the wire to the client code. On Wed, Apr 22, 2009 at 4:31 AM, olel lauri...@engram.de wrote: Hi, I am a client/server application with a strict separation of client and server code, which means that server code (like domain objects) are allowed to be used by the client, but no client code might be used be the server code (of course). Now I want to externalize all of my strings (error messages, labels etc.). Some of them (like labels) are in the gui code and I can use the gwt i18n concept (Constants interface) for it, but others are in the domain objects (like the default name of some objects). Therefor I would normally use the standard java resource bundle approach, but as the domain objects are also used in the client this isn't possible. Unfortunately I cannot use the gwt approach either as I would have to use client code in the server part then. Is there any solution for my dilemma? ;-) Thanks in advance, Ole --~--~-~--~~~---~--~~ You received 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 know Time Format of System time at client side
Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you: http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/i18n/client/DateTimeFormat.html A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya joshipriya...@gmail.com wrote: Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: TextBox.setName() and Java Http Servlet request.parameter(arg)
Got the solution. I did use the setDisabled on the client side to disable the forms (not to be editable). Doing this prevent to send the parameters. Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 know Time Format of System time at client side
So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing this at client side. So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. how can i get this? I hope u got my question.. On Apr 22, 2:37 pm, Vitali Lovich vlov...@gmail.com wrote: Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you:http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g... A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya joshipriya...@gmail.com wrote: Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: Creating GWT application
Hi Rajeev, Thanks a ton! for your guide on installing the eclipse plugin. it works great!!! if these steps are listed as part of http://code.google.com/eclipse/ docs/getting_started.html#installing this web page, it would help developers who are working behind a firewall or in the cases where ppl facing problems in updating through eclipse. In the future, we'll make this whole process easier by providing a zip of the plugin. -- Really great wud be easier too!! I just had a thought about this - are you behind a proxy? offcourse i am working inside a secure network (that has firewall, websense etc) i thinks thats blocking eclipse from installing plugins directly... Thanks, Ganesh R On Apr 21, 10:11 am, Rajeev Dayal rda...@google.com wrote: If you can't get Eclipse's install mechanism working, here's how you can install the plugin manually in Eclipse 3.3: Download the following file and place it in a temporary directory: http://dl.google.com/eclipse/plugin/3.3/site.xml Now, download the following into a directory called *features*, underneath your temporary directory: http://dl.google.com/eclipse/plugin/3.3/features/com.google.appengine...http://dl.google.com/eclipse/plugin/3.3/features/com.google.gdt.eclip...http://dl.google.com/eclipse/plugin/3.3/features/com.google.gwt.eclip... Finally, download the following into a directory called *plugins*, underneath your temporary directory: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appenginehttp://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appenginehttp://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclips...http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclips...http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... If on linux:http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... If on mac:http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... If on windows:http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... Now, go into Eclipse, and set up a local update site, and point it to the temporary directory that you created. You should be able to install the plugin from this local update site. In the future, we'll make this whole process easier by providing a zip of the plugin. On Tue, Apr 21, 2009 at 5:51 AM, newtoGWT ganesh@gmail.com wrote: Network connection problems encountered during search. Unable to access http://dl.google.com/eclipse/plugin/3.3;. Error parsing site stream. [Premature end of file.] Premature end of file. Error parsing site stream. [Premature end of file.] Premature end of file. I know this is not the exact stack trace but this is what it shows in eclipse when i click on details button. thanks for your info,http://dl.google.com/eclipse/plugin/3.3/site.xml works! Is there any downloadable jar file? so that i can directly unzip inside eclipse plugins folder...(other than cypal). On Apr 20, 10:47 am, rdayal rda...@google.com wrote: In your first post, when attempting to install the plugin, you mentioned that it throws a network exception. Can you copy and paste the stack trace? Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly in the browser will not work, because this is not a browsable directory. If you want to see if the site works via a browser, try hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml On Apr 20, 7:02 am, newtoGWT ganesh@gmail.com wrote: yes you are right Darkflame!! Its due to firewall... i am unable to connect to server.. i downloaded fromhttp://code.google.com/p/cypal-studio/downloads/list but the downside of cypal-studio is, it doesn't support GWT6 :(. it shows whilecreatingGWTModule.- Hide quoted text - - Show quoted text -- 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: How to know Time Format of System time at client side
Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing this at client side. So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. how can i get this? I hope u got my question.. On Apr 22, 2:37 pm, Vitali Lovich vlov...@gmail.com wrote: Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you:http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g... A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya joshipriya...@gmail.com wrote: Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: CSS in GWT
http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideStyleSheets On Apr 22, 2:02 pm, as_if aihasa...@gmail.com wrote: Hello. How can I use CSS in GWT? Should CSS file be in the public folder or client folder? I use NetBeans. Thanks beforehand. --~--~-~--~~~---~--~~ You received 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 know Time Format of System time at client side
I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing this at client side. So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. how can i get this? I hope u got my question.. On Apr 22, 2:37 pm, Vitali Lovich vlov...@gmail.com wrote: Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you:http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g... A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya joshipriya...@gmail.com wrote: Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: CSS in GWT
Thank you very much! On Wed, Apr 22, 2009 at 3:05 PM, Salvador Diaz diaz.salva...@gmail.comwrote: http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideStyleSheets On Apr 22, 2:02 pm, as_if aihasa...@gmail.com wrote: Hello. How can I use CSS in GWT? Should CSS file be in the public folder or client folder? I use NetBeans. Thanks beforehand. -- Sincerely, Asif Hasanov aihasa...@gmail.com ahese...@rambler.ru ahese...@hotmail.com Tel: +994557007050 15/28, Yeni Ganja, Ganja, Azerbaijan. AZ-2024 --~--~-~--~~~---~--~~ You received 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 know Time Format of System time at client side
Well then pass a java.util.Date object instantiated at the client-side through a RPC and store it. No need to format anything. On Apr 22, 2:10 pm, priya joshipriya...@gmail.com wrote: I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing this at client side. So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. how can i get this? I hope u got my question.. On Apr 22, 2:37 pm, Vitali Lovich vlov...@gmail.com wrote: Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you:http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g... A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya joshipriya...@gmail.com wrote: Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: removing dead code manualy?
What happened to the gwt developers ? Did they lost their creativity ? ;)... Please some advice on this issue above. -- 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: How to know Time Format of System time at client side
Yeah I can do that.. but if client side time is in 12hr format then also I am getting 24hr format time. For 24hr format time it is giving correct time. I want to save the time same as client time (client system time). How can I do this? On Apr 22, 5:32 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well then pass a java.util.Date object instantiated at the client-side through a RPC and store it. No need to format anything. On Apr 22, 2:10 pm, priya joshipriya...@gmail.com wrote: I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing this at client side. So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. how can i get this? I hope u got my question.. On Apr 22, 2:37 pm, Vitali Lovich vlov...@gmail.com wrote: Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you:http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g... A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya joshipriya...@gmail.com wrote: Hi all, In my GWT application I want to know the time format of the system time whether its 12 hr or 24hr at client side. How can i get this? Can anyone help me? Its really urgent... Thanks, 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: How to know Time Format of System time at client side
but if client side time is in 12hr format then also I am getting 24hr format time. What do you mean by that ? Could you be more clear ? I want to help you but I need to know what it is that you're not understanding from what I told you. Maybe paste some code snippets that'll show me how you're tackling this problem because time formats have nothing to do with storing a timestamp. Normally this is what you should do: //client-side: instantiate a date and send it to server to be stored Date executionDate = new Date(); SomeRPCAsyncInterface.storeDate(executionDate, someCallback); //server-side: public void storeDate(Date executionDate){ Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); //the code to persist the timestamp, (JDBC, hibernate, or whatever you use to store things in your database) } So there it is, no need to use formatters anywhere. I hope it's clearer now. If it isn't you should familiarize yourself with the way the Date object works and its API Good luck, Salvador On Apr 22, 2:49 pm, priya joshipriya...@gmail.com wrote: Yeah I can do that.. but if client side time is in 12hr format then also I am getting 24hr format time. For 24hr format time it is giving correct time. I want to save the time same as client time (client system time). How can I do this? On Apr 22, 5:32 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well then pass a java.util.Date object instantiated at the client-side through a RPC and store it. No need to format anything. On Apr 22, 2:10 pm, priya joshipriya...@gmail.com wrote: I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing this at client side. So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. how can i get this? I hope u got my question.. On Apr 22, 2:37 pm, Vitali Lovich vlov...@gmail.com wrote: Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else? Formatting parsing already done for you:http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g... A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23,
Re: How to know Time Format of System time at client side
I got what you explained. I am sending client side date as follows: Date executionDate = new java.uti.Date(); and storing id database same as u told like: Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); But my problem is that I want to store the time in the format same as client side. Means if client side time is 03:45PM then it should save 03:45 and not 15:45. And if client side time is 15:45 then it should save 15:45. But I am getting time as 15:45 if my system time is 03:45PM. I hope u got my problem. Please help me to solve this problem. On Apr 22, 6:08 pm, Salvador Diaz diaz.salva...@gmail.com wrote: but if client side time is in 12hr format then also I am getting 24hr format time. What do you mean by that ? Could you be more clear ? I want to help you but I need to know what it is that you're not understanding from what I told you. Maybe paste some code snippets that'll show me how you're tackling this problem because time formats have nothing to do with storing a timestamp. Normally this is what you should do: //client-side: instantiate a date and send it to server to be stored Date executionDate = new Date(); SomeRPCAsyncInterface.storeDate(executionDate, someCallback); //server-side: public void storeDate(Date executionDate){ Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); //the code to persist the timestamp, (JDBC, hibernate, or whatever you use to store things in your database) } So there it is, no need to use formatters anywhere. I hope it's clearer now. If it isn't you should familiarize yourself with the way the Date object works and its API Good luck, Salvador On Apr 22, 2:49 pm, priya joshipriya...@gmail.com wrote: Yeah I can do that.. but if client side time is in 12hr format then also I am getting 24hr format time. For 24hr format time it is giving correct time. I want to save the time same as client time (client system time). How can I do this? On Apr 22, 5:32 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well then pass a java.util.Date object instantiated at the client-side through a RPC and store it. No need to format anything. On Apr 22, 2:10 pm, priya joshipriya...@gmail.com wrote: I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate = DateTimeFormat.getFormat(dd/MM/ hh:mm).format(myDate); But please tell us what you're trying to do exactly, maybe I'm missing something. On Apr 22, 12:15 pm, priya joshipriya...@gmail.com wrote: Thanks for reply.. I want to know the format of the time at client side whether it is 12hr or 24hr.. because I am using: DateTimeFormat to format my date. It is given that DateTimeFormat.getFormat(dd/MM/ HH:mm) provides 24 hr format and DateTimeFormat.getFormat(dd/MM/ hh:mm) provides 12hr format. (Note HH and hh). I am doing
Re: i18n in client/server application
Explain again why the name of objects can't be internalized using constants on the client side? Maybe that was a bad example. It's easier to explain with exceptions (defined in my application). Exceptions have an errortext that should be internationalized as well. As exceptions are thrown at the server and catch on the client, they are used in all architectural layers. So I cannot use java.util.ResourceBundle as GWT would throw an error (No source code is available for type java.util.ResourceBundle). On the other hand I cannot use the GWT constants interface either as I must not use client code (or client libs) on the server where the exceptions are defined. Anyways, the general solution would be to set the internationalized string using java resource bundles in the server code prior to sending the objects over the wire to the client code. Please explain that to me. How should I set the string? Do you think of some kind of client class that sets all the strings in all server classes that has to be internationalized? That would look crude to 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 -~--~~~~--~~--~--~---
gwt incubator grid grouping
I very much like the feature of grouping in Grids that smartgwt can offer. See: http://www.smartclient.com/smartgwt/showcase/#grid_grouping_dynamic However, I feel a bit locked in by the look and feel that Smartgwt has to offer and therefore tried the ScrollTableDemo provided by the gwt incubator, which is easier to apply my own css to. Can anyone tell me if there is an easy way to implement the grid grouping feature in the incubator Grid? Here is the incubator sample http://collectionofdemos.appspot.com/demo/index.html ( http://code.google.com/p/google-web-toolkit-incubator/ ) johan --~--~-~--~~~---~--~~ You received 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-openlayer
I'm trying to develop an application with gwt and openlayers it's just a mistake in class JObeject follow the steps in this post group only that i fix this class and other errors appear in other class through the cvs eclipse will be someone there that is. jar and repaired may provide for download? help 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: CloseHandlerWindow, new window problem
That's what i'm asking:) Additional research: old WindowCloseListener mechanism works ok! On Apr 22, 10:46 am, Vitali Lovich vlov...@gmail.com wrote: My advice would be to think about why that might be. On Wed, Apr 22, 2009 at 2:57 AM, ivovnenko ivovne...@gmail.com wrote: Update: it works in hosted mode, not don't in real browsers. On Apr 22, 2:10 am, ivovnenko ivovne...@gmail.com wrote: Hello. I'm trying to open new browser window just before the main window (GWT host page) is closed. Strange thing is that when I write this - public void onClose(CloseEventWindow event) { Window.alert(event.toDebugString()); } alert is being shown, but public void onClose(CloseEventWindow event) { Window.open(http://www.google.com,newWindow,;); } doesn't open new window. Would really appreciate any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Creating GWT application
Glad that everything is working for you. As an FYI, if you have a proxy server that you can use to hit the Eclipse update site, you can configure Eclipse to use it when performing an update or an installation. In Eclipse 3.3, go to Windows - Preferences - Network Connections (or Eclipse - Preferences - Network Connections, if on the Mac). We'll definitely add some more documentation to help out people that are suffering with proxy issues. On Wed, Apr 22, 2009 at 5:37 AM, newtoGWT ganesh@gmail.com wrote: Hi Rajeev, Thanks a ton! for your guide on installing the eclipse plugin. it works great!!! if these steps are listed as part of http://code.google.com/eclipse/ docs/getting_started.html#installinghttp://code.google.com/eclipse/%0Adocs/getting_started.html#installing this web page, it would help developers who are working behind a firewall or in the cases where ppl facing problems in updating through eclipse. In the future, we'll make this whole process easier by providing a zip of the plugin. -- Really great wud be easier too!! I just had a thought about this - are you behind a proxy? offcourse i am working inside a secure network (that has firewall, websense etc) i thinks thats blocking eclipse from installing plugins directly... Thanks, Ganesh R On Apr 21, 10:11 am, Rajeev Dayal rda...@google.com wrote: If you can't get Eclipse's install mechanism working, here's how you can install the plugin manually in Eclipse 3.3: Download the following file and place it in a temporary directory: http://dl.google.com/eclipse/plugin/3.3/site.xml Now, download the following into a directory called *features*, underneath your temporary directory: http://dl.google.com/eclipse/plugin/3.3/features/com.google.appengine...http://dl.google.com/eclipse/plugin/3.3/features/com.google.gdt.eclip...http://dl.google.com/eclipse/plugin/3.3/features/com.google.gwt.eclip. .. Finally, download the following into a directory called *plugins*, underneath your temporary directory: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appenginehttp://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appenginehttp://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclips...http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclips...http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips. .. If on linux: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... If on mac: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... If on windows: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips... Now, go into Eclipse, and set up a local update site, and point it to the temporary directory that you created. You should be able to install the plugin from this local update site. In the future, we'll make this whole process easier by providing a zip of the plugin. On Tue, Apr 21, 2009 at 5:51 AM, newtoGWT ganesh@gmail.com wrote: Network connection problems encountered during search. Unable to access http://dl.google.com/eclipse/plugin/3.3;. Error parsing site stream. [Premature end of file.] Premature end of file. Error parsing site stream. [Premature end of file.] Premature end of file. I know this is not the exact stack trace but this is what it shows in eclipse when i click on details button. thanks for your info,http://dl.google.com/eclipse/plugin/3.3/site.xml works! Is there any downloadable jar file? so that i can directly unzip inside eclipse plugins folder...(other than cypal). On Apr 20, 10:47 am, rdayal rda...@google.com wrote: In your first post, when attempting to install the plugin, you mentioned that it throws a network exception. Can you copy and paste the stack trace? Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly in the browser will not work, because this is not a browsable directory. If you want to see if the site works via a browser, try hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml On Apr 20, 7:02 am, newtoGWT ganesh@gmail.com wrote: yes you are right Darkflame!! Its due to firewall... i am unable to connect to server.. i downloaded fromhttp:// code.google.com/p/cypal-studio/downloads/list but the downside of cypal-studio is, it doesn't support GWT6 :(. it shows whilecreatingGWTModule.- Hide quoted text - - Show quoted text -- 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
Re: How to know Time Format of System time at client side
But why do you want to store it in the format of the client ? How is the format relevant ? What are you trying to do with that data ? It's not really a good practice to store dates in inconsistent formats in a database, I'm pretty sure you're subverting the utilization of date formatters to accomplish that should be easier to do differently. Really, don't do that. And one more question, have you read the javadoc for DateTimeFormat ? I have the impression you didn't so here's a useful link: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/i18n/client/DateTimeFormat.html On Apr 22, 3:16 pm, priya joshipriya...@gmail.com wrote: I got what you explained. I am sending client side date as follows: Date executionDate = new java.uti.Date(); and storing id database same as u told like: Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); But my problem is that I want to store the time in the format same as client side. Means if client side time is 03:45PM then it should save 03:45 and not 15:45. And if client side time is 15:45 then it should save 15:45. But I am getting time as 15:45 if my system time is 03:45PM. I hope u got my problem. Please help me to solve this problem. On Apr 22, 6:08 pm, Salvador Diaz diaz.salva...@gmail.com wrote: but if client side time is in 12hr format then also I am getting 24hr format time. What do you mean by that ? Could you be more clear ? I want to help you but I need to know what it is that you're not understanding from what I told you. Maybe paste some code snippets that'll show me how you're tackling this problem because time formats have nothing to do with storing a timestamp. Normally this is what you should do: //client-side: instantiate a date and send it to server to be stored Date executionDate = new Date(); SomeRPCAsyncInterface.storeDate(executionDate, someCallback); //server-side: public void storeDate(Date executionDate){ Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); //the code to persist the timestamp, (JDBC, hibernate, or whatever you use to store things in your database) } So there it is, no need to use formatters anywhere. I hope it's clearer now. If it isn't you should familiarize yourself with the way the Date object works and its API Good luck, Salvador On Apr 22, 2:49 pm, priya joshipriya...@gmail.com wrote: Yeah I can do that.. but if client side time is in 12hr format then also I am getting 24hr format time. For 24hr format time it is giving correct time. I want to save the time same as client time (client system time). How can I do this? On Apr 22, 5:32 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well then pass a java.util.Date object instantiated at the client-side through a RPC and store it. No need to format anything. On Apr 22, 2:10 pm, priya joshipriya...@gmail.com wrote: I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate);
Re: GWT Mail sample using Spring Dreamsource ORM
Why would anyone want to use this ORM when theres hibernate ? Check the author name of that project! Nevertheless, good job! On hibernate: After using hibernate for years, we are seriously considering other options like toplink essentials, cayenne or even ibatis. I think we should remove the blind fold and start using whatever makes sense for a specific problem domain. Rakesh Wagh On Apr 22, 3:11 am, mP miroslav.poko...@gmail.com wrote: Why would anyone want to use this ORM when theres hibernate ? Hibernate has lots of additional features, caching, different fetch strategies, tooling, the list goes on etc none of which are mentioned in the wiki.. The main page doesnt mention has this package solves the detached enhanced object problem so many people have raised questions and discussed in thsi forumDoes this lib solve that problem - if so please elaborate... On Apr 21, 4:16 pm, Jim jim.p...@gmail.com wrote: I modified the GWT mail sample distributed with GWT. The mail sample can retrieve emails from HSQLDB and update contacts in the database. I use the following features - Spring IOC and Spring AOP transaction, Dreamsource ORM. You can lauch a href=http://www.leeonsoft.com/mail/ Mail.htmlthis application/a. The source code is available fromhttp://dreamsource-orm.googlecode.com/files/mail_1.0.0_04202009.jar. You need Dreamsource ORM source code that is also available fromhttp://dreamsource-orm.googlecode.com/files/dreamsource2_0_1_04202009 Dreamsource ORM is making big difference in developing GWT application. Any feedback is welcome. Jim Xie --~--~-~--~~~---~--~~ You received 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: Strange window popup with Anchor widget in 1.6.4
Thanks Salvador, this seems to have worked. What is confusing is the constructor I used has in the javadoc: Creates an anchor for scripting. The anchor's href is set to javascript:, based on the expectation that listeners will be added to the anchor. This seems to imply what I was trying to do, but maybe href set to javascript: doesn't work. Is this a bug? On Apr 22, 8:58 am, Salvador Diaz diaz.salva...@gmail.com wrote: The anchor widget is just a regular a href= tag so if you use that constructor, clicking on it will open a new browser window. To get an anchor that doesn't do that use the constructorhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...) with # as the href. Salvador On Apr 21, 7:53 pm, Clive Cox clive@rummble.com wrote: With 1.6.4 on linux in Hosted mode, if I have something like: Anchor anchor = new Anchor(some text); anchor.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //do something } }); I get a new blank browser window popup and and several warnings in the hosted mode console like: [WARN] Confirmation was required to visit untrusted URL: 'jar:resource:///chrome/toolkit.jar!/content/global/console.xul Any ideas what's going on? The click handler seems to still get fired. --~--~-~--~~~---~--~~ You received 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 Mail sample using Spring Dreamsource ORM
I am developing this ORM for seven years. It has been used in three major applications for over three years. Please check it at www.leeonsoft.com for more information. The ORM solves the following problems: 1. Whatever you codes happens in database. No merge 2. No detached enhanced object. 3. No lazy loading. Just eager loading because you can expect whatever you want during coding. 4. Easy to learn and use because it just mirrors SQL statements. 5. High performance compared to Hibernate 6. High productivity. 7. It can be used in GWT and any other frameworks without third party libraries. 8. It provides most demanding features in a small library. 9. It provides JPA 2.0 query feature in a smart way. 10. Eclipse plugin to generate ORM code will be available by the end of this month. You can find Spring and GWT examples from http://www.leeonsoft.com Any feedback is appreciated. Jim Xie http://www.leeonsoft.com http://code.google.com/p/dreamsource-orm/downloads/list On Apr 22, 10:33 am, Rakesh rake...@gmail.com wrote: Why would anyone want to use this ORM when theres hibernate ? Check the author name of that project! Nevertheless, good job! On hibernate: After using hibernate for years, we are seriously considering other options like toplink essentials, cayenne or even ibatis. I think we should remove the blind fold and start using whatever makes sense for a specific problem domain. Rakesh Wagh On Apr 22, 3:11 am, mP miroslav.poko...@gmail.com wrote: Why would anyone want to use this ORM when theres hibernate ? Hibernate has lots of additional features, caching, different fetch strategies, tooling, the list goes on etc none of which are mentioned in the wiki.. The main page doesnt mention has this package solves the detached enhanced object problem so many people have raised questions and discussed in thsi forumDoes this lib solve that problem - if so please elaborate... On Apr 21, 4:16 pm, Jim jim.p...@gmail.com wrote: I modified the GWT mail sample distributed with GWT. The mail sample can retrieve emails from HSQLDB and update contacts in the database. I use the following features - Spring IOC and Spring AOP transaction, Dreamsource ORM. You can lauch a href=http://www.leeonsoft.com/mail/ Mail.htmlthis application/a. The source code is available fromhttp://dreamsource-orm.googlecode.com/files/mail_1.0.0_04202009.jar. You need Dreamsource ORM source code that is also available fromhttp://dreamsource-orm.googlecode.com/files/dreamsource2_0_1_04202009 Dreamsource ORM is making big difference in developing GWT application. Any feedback is welcome. Jim Xie- 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: Minor documentation error
Thanks for the heads up! Duly noted :) On Tue, Apr 21, 2009 at 11:15 PM, k9mab mab.m...@gmail.com wrote: Found a small documentation error, not sure how to report it. Would someone be good enough to pass this on via the proper channels? http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html First example in Events and Handlers section has the wrong signature for onClick(). Should be ClickEvent event instead of Widget sender. Thanks. -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
ImageBundle and the new war structure
In GWT 1.6, where do you put the image files for the ImageBundle in the new war structure? I tried to put it in a subdirectory called images in the war directory, and set the @Resource annotation value to images/ That did not work. Do I need to create a subdirectory with the module name under the war directory? Thanks Sunil. --~--~-~--~~~---~--~~ You received 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 know Time Format of System time at client side
Priya, you can't do what you are asking. If you are storing a datestamp in a database then you will probably be storing the number of milliseconds since 01 Jan 1970. Whatever format you pass to the database, if it can understand it, it will convert it to that. In a lot of cases, it will guess wrong, -mm-dd HH:mm:ss is usually safe. If you are storing it as text, then that is different. In that case, I think that the only way to get the user's preference is to ask them. Ian http://examples.roughian.com 2009/4/22 priya joshipriya...@gmail.com I got what you explained. I am sending client side date as follows: Date executionDate = new java.uti.Date(); and storing id database same as u told like: Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); But my problem is that I want to store the time in the format same as client side. Means if client side time is 03:45PM then it should save 03:45 and not 15:45. And if client side time is 15:45 then it should save 15:45. But I am getting time as 15:45 if my system time is 03:45PM. I hope u got my problem. Please help me to solve this problem. On Apr 22, 6:08 pm, Salvador Diaz diaz.salva...@gmail.com wrote: but if client side time is in 12hr format then also I am getting 24hr format time. What do you mean by that ? Could you be more clear ? I want to help you but I need to know what it is that you're not understanding from what I told you. Maybe paste some code snippets that'll show me how you're tackling this problem because time formats have nothing to do with storing a timestamp. Normally this is what you should do: //client-side: instantiate a date and send it to server to be stored Date executionDate = new Date(); SomeRPCAsyncInterface.storeDate(executionDate, someCallback); //server-side: public void storeDate(Date executionDate){ Timestamp executionTimestamp = new Timestamp(executionDate.getTime ()); //the code to persist the timestamp, (JDBC, hibernate, or whatever you use to store things in your database) } So there it is, no need to use formatters anywhere. I hope it's clearer now. If it isn't you should familiarize yourself with the way the Date object works and its API Good luck, Salvador On Apr 22, 2:49 pm, priya joshipriya...@gmail.com wrote: Yeah I can do that.. but if client side time is in 12hr format then also I am getting 24hr format time. For 24hr format time it is giving correct time. I want to save the time same as client time (client system time). How can I do this? On Apr 22, 5:32 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well then pass a java.util.Date object instantiated at the client-side through a RPC and store it. No need to format anything. On Apr 22, 2:10 pm, priya joshipriya...@gmail.com wrote: I don't want server side date time. I want to store client side date time as Timestamp in database. On Apr 22, 4:20 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Sorry but I'm still not understanding exactly what you're trying to do. I got the part where you're saying that you want to store a timestamp in a database. But is it the server-side time or client-side time ? Either way, you shouldn't need to format dates to do that, just pass the java.util.Date object in your RPCs and then instantiate your timestamp from the date object before storing it in the database. What are you're storing those timestamps for ? Because depending on that, you might not want to trust the dates handed to you by your clients and instead use the date of the actions you want to timestamp in the server side of your code. On Apr 22, 12:38 pm, priya joshipriya...@gmail.com wrote: I want to send current date time as String at server side and then I am converting this String to java.sql.TimeStamp to store into database. But I want to store the system date and time. And to format this date time at client side I want whether the system time is in 12hr or 24hr format. According to that I am using DatTimeFormat. Is there any other way to do this? I want to use this in my GWT application. On Apr 22, 3:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote: So I have to know the 12hr or 24 hr format for system time to use the DateTimeFormat. No you don't. You decide what format you want to display and use the corresponding pattern in the getFormat method. If you want to display a date in the 24h format, you have to do: Date myDate = new Date(); String formattedDate = DateTimeFormat.getFormat(dd/MM/ HH:mm).format(myDate); If you want to display it in the 12h format you do: String formattedDate =
Re: ImageBundle and the new war structure
You can put your image files in the same package as your ImageBundle Java source code. Jim Xie http://www.leeonsoft.com for GWT ORM. http://code.google.com/p/dreamsource-orm/downloads/list On Apr 22, 11:28 am, Sunil suba...@gmail.com wrote: In GWT 1.6, where do you put the image files for the ImageBundle in the new war structure? I tried to put it in a subdirectory called images in the war directory, and set the @Resource annotation value to images/ That did not work. Do I need to create a subdirectory with the module name under the war directory? Thanks Sunil. --~--~-~--~~~---~--~~ You received 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: ImageBundle and the new war structure
They have to be in the public directory. Read the second bullet point in the New Project Structure section here: http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#NewFeatures And for more information on ImageBundles: http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideImageBundles On Apr 22, 5:28 pm, Sunil suba...@gmail.com wrote: In GWT 1.6, where do you put the image files for the ImageBundle in the new war structure? I tried to put it in a subdirectory called images in the war directory, and set the @Resource annotation value to images/ That did not work. Do I need to create a subdirectory with the module name under the war directory? Thanks Sunil. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to convert Throwable stacktrace to String in client code
Does any one have a way to convert a Throwable's stacktrace to a String in GWT client code? Thanks for any tips. --~--~-~--~~~---~--~~ You received 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 1.6 TreeListener onTreeItemSelected
In previous versions of GWT one could add a tree listener to a tree and use onTreeItemSelected to handle when a tree item was selected by the user. How would this be implemented in GWT 1.6 given the new event handling? There doesn't seem to be much in the way of GWT 1.6 example code out there. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 TreeListener onTreeItemSelected
From a quick glance at the javadoc (http://google-web- toolkit.googlecode.com/svn/javadoc/1.6/index.html) you can get what type of handlers you can add to a Tree. You're looking for SelectionHandler: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Tree.html#addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler) Some code examples: http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideEventsAndHandlers http://code.google.com/webtoolkit/tutorials/1.6/manageevents.html On Apr 22, 5:58 pm, Micky micky.johns...@gmail.com wrote: In previous versions of GWT one could add a tree listener to a tree and use onTreeItemSelected to handle when a tree item was selected by the user. How would this be implemented in GWT 1.6 given the new event handling? There doesn't seem to be much in the way of GWT 1.6 example code out there. 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: i18n in client/server application
Just use the regular java way to look up the exception message throw it. Don't understand your problem. On Wed, Apr 22, 2009 at 9:45 AM, olel lauri...@engram.de wrote: Explain again why the name of objects can't be internalized using constants on the client side? Maybe that was a bad example. It's easier to explain with exceptions (defined in my application). Exceptions have an errortext that should be internationalized as well. As exceptions are thrown at the server and catch on the client, they are used in all architectural layers. So I cannot use java.util.ResourceBundle as GWT would throw an error (No source code is available for type java.util.ResourceBundle). On the other hand I cannot use the GWT constants interface either as I must not use client code (or client libs) on the server where the exceptions are defined. Anyways, the general solution would be to set the internationalized string using java resource bundles in the server code prior to sending the objects over the wire to the client code. Please explain that to me. How should I set the string? Do you think of some kind of client class that sets all the strings in all server classes that has to be internationalized? That would look crude to 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 -~--~~~~--~~--~--~---
JQuery Object in GWT
I am still having trouble getting gwt and Jquery to work well with each other. I have a javascript I am trying to call natively: public static native void callSomeJavaScript(){ divs = $wnd.$(div); console.log(divs); } Now in FireBug divs it shows up as a Jquery Object. Outside of GWT it shows up as a list of elements (essentially). Where I get problems is when trying to call certain functions such as divs.hasClass(foo); in GWT it complains that this function does not exist. The other problem is this code is actually in another file and is going to be used by other non GWT pages: public static native void callSomeJavaScript(){ div = $wnd.$(div#bar); foo = new $wnd.FooClass($wnd.$(div.foo), {text: div.clone().find ('.duplicate').empty().end().html()}); } and in FooClass: window.FooClass = function(node,options){ function initialize(node) { a = $(node).eq(0); a.hasClass(foo-class); } initialize(); } It breaks on a.hasClass --~--~-~--~~~---~--~~ You received 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: java.lang.StackOverflowError with GWT
I also had this problem but worked around it by setting the localWorkers parameter to com.google.gwt.dev.Compiler to at least the number of permutations I'm compiling. Why this should work I have no idea, but it does, at least for me. I'm only building 5 permutations so this is a reasonable solution, and gives a faster compile. On Apr 17, 9:57 am, Gleb iambookmas...@gmail.com wrote: Hi, I have pretty the same problem. My project successfully works in Host- mode, can be compiled and opened in Web-mode (from Host mode or by ant), but when I try to deploy it to Google App Engines by Eclipse plugin, I always get during complication time the following error: [ERROR] Unexpected internal compiler error java.lang.StackOverflowError at java.io.ObjectOutputStream$HandleTable.hash (ObjectOutputStream.java:2321) I set -Xmx1G -Xss1024k as default parameters for JVM (after that Host mode compler started work well), but it looks like Eclipse plugin uses own settings. Can anybody give me a hint, how to overcome this issue? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Date - day issue
I've run into quite a strange issue serializing dates from the browser to the server. When I enter the following dates in the browser I receive for some dates the wrong value at the server side (using date pattern dd-MM- ): 1-1-1968 - Mon Jan 01 00:00:00 CET 1968 - correct 1-3-1968 - Fri Mar 01 00:00:00 CET 1968 - correct 1-4-1968 - Sun Mar 31 23:00:00 CET 1968 - wrong 4-4-1968 - Wed Apr 03 23:00:00 CET 1968 - wrong 1-4-1999 - Thu Apr 01 00:00:00 CEST 1999 - correct Note that in April 1968 there is a 1 day difference. This problem does not occur in hosted mode, only in web mode. Perhaps i've messed up somehow, perhaps someone else can try as well. thanks, Stephan --~--~-~--~~~---~--~~ You received 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: Eclipse Plugin Compile Button Stack Overflow
On Apr 8, 4:11 pm, Brian hibr...@gmail.com wrote: Just installed the GooglepluginforEclipse, and hit the Compile button on my project. It gave me astackoverflowerror. Prior to using theplugin, I'd compile by hitting the Compile button in the hosted mode browser. In the Run/DebugEclipseconfiguration, I have -Xss4k -Xmx256M Compiles worked fine with those flags and the Compile button from hosted mode. How do I set the Xss flag for use by the Compile button in theeclipse toolbar? I tried putting it in the Advanced section, but this just informed me it wasn't an appropriate gwt compiler option. This isn't stopping me from doing anything, as I can still compile from hosted mode, just curious how to set it up. I checked theplugin faq, but couldn't find anything there. I'm having the same problem as you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
Reading xml
Hi, I would like to read some xml from a URL using ajax and gwt. The way it is suppose to work is that maybe someone searches for something and the program would read the xml and find it in a certain node. The result would then be displayed using AJAX. So far I have not been able to read XML using GWT. I have done it in java before but that doesn't seem to work with GWT. Any ideas? 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 -~--~~~~--~~--~--~---
Displaying latin characters on the browser
Hi, I am facing a problem with displaying latin characters on the web browser.I'm using GWT as the front - end and MySQL 5.0 as the back- end. My project allows the user to enter text in european languages like german, swedish, spanish etc. I want to be able to store the correct text format into my MySQL 5.0 database and also when I retrieve the data and display it, the web browser should be able to display the content text correctly. The charset is utf-8 in the meta tag of my html file. Can anyone suggest a solution to this problem? Thanks, Nairutee --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Run same application in both web as well as desktop
Hello, I have written a client/server application using GWT Eclipseand developed a fancy UI in GWT which communicates with Multiple servlets/ servers...its working fine Now according to our design i want to use the same server code as a normal server in desktop application i.e since in server code i need to extend my code with RemoteServlet also IDL used in client service also needs to extend by RemoteService. e.g. public interface GreetingService extends RemoteService ( client side stub ) e.g. public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService ( server side implementation ) Now is there any way to achieve common code by which i can run server in both desktop as well as web.. - Thanks Sandeep --~--~-~--~~~---~--~~ You received 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 Upgradation error from 1.4 to 1.5/1.6
Hi, I am upgrading my existing code from GWT 1.4 to GWT 1.6.we have used the FastTree.java in our code. it is compiling fine with 1.4. I have kept the latest jar files(gwtuser, gwt windows, gwt servlet, and gwt-incubator_1-4_final.jar) in the path, but still it is throwing an error. I have used eclipse editor and also kept all jar file in the reference. i also tested with jdk 1.5 and jdk 1.6 , same problem i am getting. I am getting the below message eror message while trying to compile the code. [ERROR] Errors in 'jar:file:/C:/path/gwt-incubator_1-4_final.jar!/ com/google/gwt/widgetideas/client/FastTree.java' [ERROR] Internal compiler error java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.TreeLogger, but interface was expected at com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenerator.createResourceContext (Unknown Source) at com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator.generate (Unknown Source) at com.google.gwt.dev.cfg.RuleGenerateWith.realize (RuleGenerateWith.java:49) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:113) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:62) at com.google.gwt.dev.shell.StandardRebindOracle.rebind (StandardRebindOracle.java:172) at com.google.gwt.dev.shell.StandardRebindOracle.rebind (StandardRebindOracle.java:161) at com.google.gwt.dev.Precompile $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers (Precompile.java:204) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds (WebModeCompilerFrontEnd.java:128) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process (AbstractCompiler.java:151) at org.eclipse.jdt.internal.compiler.Compiler.compile (Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile (AbstractCompiler.java:85) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile (AbstractCompiler.java:181) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access $400(AbstractCompiler.java:71) at com.google.gwt.dev.jdt.AbstractCompiler.compile (AbstractCompiler.java:473) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations (WebModeCompilerFrontEnd.java:73) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile (JavaToJavaScriptCompiler.java:254) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 300) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:180) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:150) at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:119) at com.google.gwt.dev.CompileTaskRunner.doRun (CompileTaskRunner.java:84) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:78) at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:126) [ERROR] Unexpected java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.TreeLogger, but interface was expected at com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenerator.createResourceContext (Unknown Source) at com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator.generate (Unknown Source) at com.google.gwt.dev.cfg.RuleGenerateWith.realize (RuleGenerateWith.java:49) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:113) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:62) at com.google.gwt.dev.shell.StandardRebindOracle.rebind (StandardRebindOracle.java:172) at com.google.gwt.dev.shell.StandardRebindOracle.rebind (StandardRebindOracle.java:161) at com.google.gwt.dev.Precompile $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers (Precompile.java:204) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds (WebModeCompilerFrontEnd.java:128) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process (AbstractCompiler.java:151) at org.eclipse.jdt.internal.compiler.Compiler.compile (Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile (AbstractCompiler.java:85) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile (AbstractCompiler.java:181) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access $400(AbstractCompiler.java:71) at com.google.gwt.dev.jdt.AbstractCompiler.compile (AbstractCompiler.java:473) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations (WebModeCompilerFrontEnd.java:73) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
Re: CloseHandlerWindow, new window problem
Depends on the browser - you'll probably see the pop-up blocker kick in. On Wed, Apr 22, 2009 at 9:49 AM, ivovnenko ivovne...@gmail.com wrote: That's what i'm asking:) Additional research: old WindowCloseListener mechanism works ok! On Apr 22, 10:46 am, Vitali Lovich vlov...@gmail.com wrote: My advice would be to think about why that might be. On Wed, Apr 22, 2009 at 2:57 AM, ivovnenko ivovne...@gmail.com wrote: Update: it works in hosted mode, not don't in real browsers. On Apr 22, 2:10 am, ivovnenko ivovne...@gmail.com wrote: Hello. I'm trying to open new browser window just before the main window (GWT host page) is closed. Strange thing is that when I write this - public void onClose(CloseEventWindow event) { Window.alert(event.toDebugString()); } alert is being shown, but public void onClose(CloseEventWindow event) { Window.open(http://www.google.com,newWindow,;); } doesn't open new window. Would really appreciate any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to remove the default blue border of TabPanel
Hi, I'm using TabPanel. It has a default blue border. I've edit css for it: .gwt-TabPanel { margin-top: 4px; border: none; width: 100%; text-decoration: none; } .gwt-TabPanelBottom { padding: 10px; display: block; border-width: 0px; border-color: #44; } .gwt-TabBar { padding-top: 2px; border-bottom: 4px solid #ff; background-color: #ff; } and i have set it to the panel weget: tabPanel.setStyleName(gwt-TabPanel); but the blue border is still there Any advice? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 TreeListener onTreeItemSelected
Thanks Salvador...didn't realize there was a SelectionHandler. On Apr 22, 12:08 pm, Salvador Diaz diaz.salva...@gmail.com wrote: From a quick glance at the javadoc (http://google-web- toolkit.googlecode.com/svn/javadoc/1.6/index.html) you can get what type of handlers you can add to a Tree. You're looking for SelectionHandler:http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...) Some code examples:http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#...http://code.google.com/webtoolkit/tutorials/1.6/manageevents.html On Apr 22, 5:58 pm, Micky micky.johns...@gmail.com wrote: In previous versions of GWT one could add a tree listener to a tree and use onTreeItemSelected to handle when a tree item was selected by the user. How would this be implemented in GWT 1.6 given the new event handling? There doesn't seem to be much in the way of GWT 1.6 example code out there. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT import external jar
Oh, i see. Thank you! It works. On Apr 6, 10:06 am, Jason Essington jason.essing...@gmail.com wrote: That is correct, if your external library is only used on the server side (Hibernate, axis, etc) then there is no need to reference it in your gwt.xml file. However, if you do need to use it in your client code then it must contain source (.java files) as well as have a gwt.xml file of its own, AND be translatable (not something that your average java lib is) -jason On Apr 4, 2009, at 7:18 AM,Qingwrote: You mean I don't need to add inherits name='FinancialFookit'/ to the OnlineBanker.gwt.xml? On Apr 4, 1:58 am, Vitali Lovich vlov...@gmail.com wrote: Wait, if you only have a dependancy in your server-side code, why are you trying to integrate the client code? On Sat, Apr 4, 2009 at 2:36 AM,Qingzq.zhangq...@gmail.com wrote: I added FinancialToolkit.gwt.xml into the jar. Doesn't work. do I need to put this file to the folder of OnlineBanker as well? On Apr 4, 12:16 am, Nicanor Babula nicanor.bab...@gmail.com wrote: Hi, It looks like you have to add to your jar file FinancialToolkit.gwt.xml. This may help:http://roberthanson.blogspot.com/2006/05/how-to-package-gwt-component .. On Saturday 04 April 2009 06:49:14Qingwrote: Hi, I'm now using gwt develop my web application. I create a gwt project 'OnlineBanker' in command line and import it into eclipse. The server side code of OnlineBanker need to use the class in another java project 'FinancialToolkit'. I export FinancialTookit as a jar file, and import it into OnlineBanker by following away: OnlineBanker-Properties-Java build path- libraries - Add external Jars and I add inherits name='FinancialFookit'/into OnlineBanker.gwt.xml I run it as OnlineBanker-shell, there's error [ERROR] Unable to find 'FinancialTookit.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Any advice? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Click event fires on double-click
Hello: I'm working on a ListBox subclass, called DoubleClickAwareListBox. On double-click events, the click event fires twice, no matter if I'm using a ClickListener or overriding onBrowserEvent(Event event) like below: public void onBrowserEvent(Event event) { super.onBrowserEvent(event); int type = DOM.eventGetType(event); if (type == event.ONDBLCLICK) { GWT.log(SDD, null); } else if (type == event.ONCLICK) { GWT.log(, null); } } I want double-click and click to be two distinct events. Is it possible to prevent this behavior? Thanks Eric --~--~-~--~~~---~--~~ You received 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: List of Usable Java Packages?
I see now. Thanks for the help. On Tue, Apr 21, 2009 at 1:53 PM, Adam T adam.t...@gmail.com wrote: GWT only implements a subset of Java: http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/RefJreEmulation You should also think of it as client side web code (after all it gets compiled to JavaScript) as such you wouldn't normally be able to connect to a database directly - you'd go through the server which connects. Hope that helps. //Adam On 21 Apr, 15:34, Jonathan Kushner jonkush...@gmail.com wrote: Hi there! I'm sure this is a pretty naive question, but is there a list somewhere of what java objects I can ( or cannot ) use? I tried creating a connection to an oracle instance in the onModuleLoad function, in hopes of using the resultset to populate basic datasets for gwt, but apparently i was wrong. I stumbled upon some of the google-gears gwt source code, and they are using various classes that instantiate custom JavascriptObject(*) classes, which leads me to believe I'm totally lost. I just want to use my java data structures :( Besides that, very pleased! Regards, Jonathan --~--~-~--~~~---~--~~ You received 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 remove the default blue border of TabPanel
Which version of GWT is used? Make sure the css file is in the right location. Jim Xie http://www.leeonsoft.com For GWT ORM http://code.google.com/p/dreamsource-orm/downloads/list On Apr 22, 12:38 pm, Qing zq.zhangq...@gmail.com wrote: Hi, I'm using TabPanel. It has a default blue border. I've edit css for it: .gwt-TabPanel { margin-top: 4px; border: none; width: 100%; text-decoration: none; } .gwt-TabPanelBottom { padding: 10px; display: block; border-width: 0px; border-color: #44;} .gwt-TabBar { padding-top: 2px; border-bottom: 4px solid #ff; background-color: #ff; } and i have set it to the panel weget: tabPanel.setStyleName(gwt-TabPanel); but the blue border is still there Any advice? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
automatically update table with subtotals and totals
I have a single FlexTable that is broken down into sections ( for lack of a better term ) and each section has a total and then the entire table is totaled at the bottom (see below). Currently I don't update the table dynamically because I haven't found an efficient ( or easy ) way to do it ( i.e. at this point I just refresh the browser and rebuild the entire site). However, I am at least considering refreshing what is drawn in place and re-totaling as a starting point ... In other words, at least initially, I won't try to add or remove or change the positions other than just updating the market price and its corresponding effect on the position, section and table totals. I have started to just code a manual process of going through the FlexTable and finding the sections and then the stock symbol and then for each entry grabbing the latest price and such ... So I am busy coding for loop after for loop and wondering if there is a better way I haven't thought of? i.e. is there a way to make every position and it's corresponding totals and section totals 'listen' for changes and if there were, how would that be efficient? I am new to true event based GUI programming, so maybe there are obvious techniques I am not aware of? TECHNOLOGY AAPL 100 $120 $12,000 IBM 100 $103 $10,300 TOTAL $22,300 FINANCIALS JPM 200 $33 $6,600 GS 50 $120 $6,000 TOTAL$12,600 TOTAL$34,900 --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
IE Find Dialog produces an error in our GWT 1.5 app
Hi everyone, This is something unusual with Internet Explorer that I haven't seen before, and haven't found any hits about in my online search. I'm hoping someone has encountered this before... We are using GWT 1.5 for our doctor search: https://www.healthnet.com/portal/providerSearch.do In IE 6 or 7, at any point in time during this search, do a File -- Find or Ctrl+F. Type anything in the Find text box and click next or hit enter A dialog box pops up with an error. Depending on which version of IE you are using it will either be Error 122 or 125. An error has occurred in this dialog. Error: 125 'location' is null or not an object I tried this in the hosted browser and it behaves exactly the same, but there are no JS errors / exceptions in the hosted browser console. How strange that this is an error with the actual dialog box? Thoughts? Guesses? Thanks, -B --~--~-~--~~~---~--~~ You received 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 vs. Facelets/JSF/RichFaces
Hello GWT'ers, I have been looking into the basics of GWT for a few weeks now but haven't touched much code. The company I work for has existing web applications which are pretty big and use J2EE technologies (a combination of JSF / Facelets / Richfaces / Javascript on the front end, and backing beans / session beans / J2EE services on the back end). The websites use google maps heavily, and are very important to our company. Since we are using so many different technologies in the presentation tier (and in order to work on the code, having to jump between them), I have been curious if GWT can simplify things for us. I have a few questions though. Are there any big pitfalls to using GWT? Any problems that are difficult to get around? Can the UI be customized as much as you can customize a HTML page? (As far as changing colors, sizes of things, looking and acting similar to traditional websites, etc...). Thanks! -Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6.4: Exception in DriverManager.getConnection
If you unselect Google App Enginee. Does that me you disable the google Gears Options? I have google app 1.2.0 which correspond to the same version as the gwt-gear that I have installed. Please verify because I do need the use of gears. and If I need to disable gears in order to fix the my mysql problem. Then it is not a solution. Thank you. Churk On Apr 17, 11:18 pm, Seattle_Dave davidco...@gmail.com wrote: Thanks a million. How on earth did you figure that out? I was going crazy. My app worked fine on the server, but failed with a permissions error on my dev box, connecting to localhost. On Apr 13, 4:46 am, martin hotston...@googlemail.com wrote: Ok, I solved the problem ;-) Go to the project's properties and uncheck Use Google App Engine. Additionally, as vitali mentioned, the mysql-connector jar has to be in the war/WEB-INF/lib directory. Cheers, Martin. On Apr 12, 3:16 pm, IvanRdz ivan.rd...@gmail.com wrote: I have the same problem and I am sure it´s due to Jetty and security settings as you have mentioned. Are you using google plugin? On Apr 11, 7:59 pm, martin hotston...@googlemail.com wrote: Ok, I am still stuck :-( Anybody got Mysql working with GWT 1.6.4? It worked fine for GWT 1.5 for me, but something seems to have changed with GWT 1.6.4. Maybe it is due to Jetty and security settings, since I get a java.security.AccessControlException... All I did was to add the / usr/share/java/mysql-connector-java-5.1.6.jar to the referenced libraries. Please help me out! Thanks, Martin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
MouseListener to MouseMoveHandler
Hi people, I used mouseListeners.fireMouseMove(this,x,y) on onBrowserEvent (Event event) to fire this kind of event and modified x and y. I would like to know how to set x and y when I firing an event on 1.6 : addDomHandler(new MouseMoveHandler() { public void onMouseMove(MouseMoveEvent event) { int x = new value; int y = new value; fireEvent(event); // how can I set x and y to modify its original values ? } },MouseMoveEvent.getType()); I'll appreciate any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
Caching of GWT 1.6 JSON Request
Hi there how can i stop caching of the requests sent to the .class file. I just use the getting started example but it seems to be not refreshed the values of the stock at stockwatcher just when I delete or add new items which that means its cached --~--~-~--~~~---~--~~ You received 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 and Maps
Hi There Can I use My own Maps instead of google or any other maps to generate an offline map related database --~--~-~--~~~---~--~~ You received 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: ImageBundle and the new war structure
I created a package hierarchy in the public folder which matches the package for the ImageBundle definition. The compiler gave me [ERROR] No matching image resource was found. It gave me the filenames that would have matched, and I have the files under the exact same matching path in the public directory. If I moved the images to the same source folder as the ImageBundle definition source, it works. Thanks Sunil. On Apr 22, 11:37 am, Salvador Diaz diaz.salva...@gmail.com wrote: They have to be in the public directory. Read the second bullet point in the New Project Structure section here:http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#NewFe... And for more information on ImageBundles:http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#... On Apr 22, 5:28 pm, Sunil suba...@gmail.com wrote: In GWT 1.6, where do you put the image files for the ImageBundle in the new war structure? I tried to put it in a subdirectory called images in the war directory, and set the @Resource annotation value to images/ That did not work. Do I need to create a subdirectory with the module name under the war directory? Thanks Sunil. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6.4: Exception in DriverManager.getConnection
Removing App Engine just means that you don't plan on running the project on appengine. That should not impact Gears at all. On Wed, Apr 22, 2009 at 2:36 PM, Churky chu...@gmail.com wrote: If you unselect Google App Enginee. Does that me you disable the google Gears Options? I have google app 1.2.0 which correspond to the same version as the gwt-gear that I have installed. Please verify because I do need the use of gears. and If I need to disable gears in order to fix the my mysql problem. Then it is not a solution. Thank you. Churk On Apr 17, 11:18 pm, Seattle_Dave davidco...@gmail.com wrote: Thanks a million. How on earth did you figure that out? I was going crazy. My app worked fine on the server, but failed with a permissions error on my dev box, connecting to localhost. On Apr 13, 4:46 am, martin hotston...@googlemail.com wrote: Ok, I solved the problem ;-) Go to the project's properties and uncheck Use Google App Engine. Additionally, as vitali mentioned, the mysql-connector jar has to be in the war/WEB-INF/lib directory. Cheers, Martin. On Apr 12, 3:16 pm, IvanRdz ivan.rd...@gmail.com wrote: I have the same problem and I am sure it´s due to Jetty and security settings as you have mentioned. Are you using google plugin? On Apr 11, 7:59 pm, martin hotston...@googlemail.com wrote: Ok, I am still stuck :-( Anybody got Mysql working with GWT 1.6.4? It worked fine for GWT 1.5 for me, but something seems to have changed with GWT 1.6.4. Maybe it is due to Jetty and security settings, since I get a java.security.AccessControlException... All I did was to add the / usr/share/java/mysql-connector-java-5.1.6.jar to the referenced libraries. Please help me out! Thanks, Martin. -- Miguel --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
SWT seems to think I'm running on Linux and not a Mac ???
Hi, I've been going back and forth with Instantiations tech support over their GET Designer Eclipse plugin. When I try and execute a GWT application in Eclipse that I built with the Designer, I get an Exception immediately. The error is: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in java.library.path. Instantiation's support says that for some reason, GWT's SWT really does think I'm running on Linux. I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet support 1.6.4 according to Instantiation support) and I also have the current Google plugin from Google's Eclipse update site installed. My system is a MacBook Pro with 10.5.6 installed. Does this problem at all sound familiar? Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Multiple Modules in 1 war Sharing RPC
Hi Chris, I'm glad someone else is asking this. I asked some similar questions: where are the controls for naming and locating of important GWT artifacts (RPC connections, directories for HTML files, etc) in GWT 1.6, and reference documentation? See:Issue 3547. http://code.google.com/p/google-web-toolkit/issues/list We are building an application that makes 20 separete calls on as many as 13 GWT modules in the same application (one of the modules is completely reused 7 times) in GWT 1.5.3. Several modules also share the same RPC service.I am not seeing a lot of documentation to begin with on how you deal with multiple modules and sharing of modules with multiple HTML files, or of shared services even for GWT 1.5. However, GWT 1.6 moves a number of objects around, including the RPC calls. - In GWT 1.6, RPCs now use (a lower-case version of) the name of the module prepended to the service name. - This does not match up with the service name annotation in the Service class. So, where is this controlled and what determines it? For most people converting to 1.6, this change requires a changes in web.xml. For some it may require changes in Spring- Servlet.xml if they are using spring-loaded services (there is more information about this. See Issue 3547 for reference info). - The default location of HTML files is now the root level instead of in package.package.modulepackage/public and the URI has been changed so it is no longer package.package.package.ModuleName/HtmlName.html. However, how is this controlled? In general I would like to see more documentation on multi-module projects and server-oriented documentation. The GWT in Practice book has one example with two modules and uses GWT 1.5. Somewhere there needs to be some document that discusses the recommended relationships (1 to 1/many) between modules, HTML files, and services. Regards, Rich On Apr 20, 12:41 pm, Chris chrish...@gmail.com wrote: In 1.5 I have several gwt applications (each with its own EntryPoint) in1wardeployment. I did this because they all share a lot the servlets. Each of the services in the web.xml started with the root path and this worked with the RPC mechanism. /login In 1.6 the deployment/RPC mechanism appears to be working a bit differently. It appears that the RPC mechanism is now prepending the module name (rename-to defined in Module.gwt.xml) to the RPC calls. So my web.xml needs to look like: /moduleA/login /moduleB/login Is there a way to havemodulesin the samewarshare web.xml definitions/servlets as we did in 1.5? Thanks, Chris --~--~-~--~~~---~--~~ You received 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 vs. Facelets/JSF/RichFaces
It is pretty easy to switch to GWT when you have JEE background. I modified GWT mail sample to use Dreamsource ORM to connect to database. You can view this sample from http://www.leeonsoft.com/mail/Mail.html. Dreamsource is designed to target GWT applications. Basically, all GWT widgets are HTML. You can easily figure out how to customize them in debug mode of Eclipse. Jim Xie http://www.leeonsoft.com For GWT ORM http://code.google.com/p/dreamsource-orm/downloads/list On Apr 22, 2:29 pm, Jon Onstott jononst...@gmail.com wrote: Hello GWT'ers, I have been looking into the basics of GWT for a few weeks now but haven't touched much code. The company I work for has existing web applications which are pretty big and use J2EE technologies (a combination of JSF / Facelets / Richfaces / Javascript on the front end, and backing beans / session beans / J2EE services on the back end). The websites use google maps heavily, and are very important to our company. Since we are using so many different technologies in the presentation tier (and in order to work on the code, having to jump between them), I have been curious if GWT can simplify things for us. I have a few questions though. Are there any big pitfalls to using GWT? Any problems that are difficult to get around? Can the UI be customized as much as you can customize a HTML page? (As far as changing colors, sizes of things, looking and acting similar to traditional websites, etc...). Thanks! -Jon --~--~-~--~~~---~--~~ You received 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: A native GWT chart library?
Pierre, Maybe use Walter's vector library here: http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm#download Granted it is lower level - you'd probably have to build on it to make graph classes - there may be some already made for it. On Apr 22, 2:35 am, Rvanlaak rvanl...@gmail.com wrote: The Google Chart API delivers an image instead of Flash. It's a server- side, hosted, URL-based charting API. All input data is provided as URL query parameters and the Google server responds with a chart image. The charts are clean and the API is easy to use This does mean it isn't going to be interactive, as Flash is. http://code.google.com/intl/nl/apis/chart/ --~--~-~--~~~---~--~~ You received 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: SWT seems to think I'm running on Linux and not a Mac ???
On 04/22/2009 12:06 PM, Rob Tanner wrote: Hi, I've been going back and forth with Instantiations tech support over their GET Designer Eclipse plugin. When I try and execute a GWT application in Eclipse that I built with the Designer, I get an Exception immediately. The error is: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in java.library.path. Instantiation's support says that for some reason, GWT's SWT really does think I'm running on Linux. I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet support 1.6.4 according to Instantiation support) and I also have the current Google plugin from Google's Eclipse update site installed. My system is a MacBook Pro with 10.5.6 installed. Does this problem at all sound familiar? Thanks, Rob I'll stake a stab at this, maybe we can isolate the problem... o Is this your first project w/ GWT in this environment? If so, please try establishing a baseline by installing and running the StockWatcher example o Is SWT the Standard Widget Toolkit? The sentence GWT's SWT really does think I'm running on Linux implies ownership of SWT by GWT. Isn't SWT a separate library? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Enclosed: POM fragment that gets Maven to play nice with GWT 1.6.4
After a day or so playing around I have made a Maven pom.xml that respects the directory structure output by the webappCreator tool. Here are the relevant bits. Again, for veteran Maven users, rather than try to make the GWT Eclipse Plugin respect a tried-and-true maven layout, which I've read on this group is kind of tough if not impossible, I went the other way around. That means that you will NOT see a src/main/java directory, and the war source directory will also be used as the target (that's how the GWT tools do it). Another way to put it is that I followed the advice of the plugin authors who said when in doubt try to make your custom build tooling do what the base ant build.xml does. Lastly, this POM fragment uses the Codehaus gwt-maven-plugin, so if you run: mvn package ...you'll get your war file in the good old target directory (where it should be, of course) and your in-place war in the war directory. This should allow Eclipse folks to work normally, as well as hosted mode. I hope this helps someone; it took WAY too long to do this. As of today, April 22, the only known issue is that the gwt-maven- plugin will see your module twice (you can configure it to only look for specific modules and can avoid this; I didn't). That means at the moment that at package time you'll run the resource-hoggy GWT compiler twice. :-( I think that bug will probably be fixed very soon, so I didn't choose to work around it in this pom fragment. dependencies !-- GWT dependencies (from maven central repo) -- dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwt.version}/version scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwt.version}/version scopeprovided/scope /dependency /dependencies build sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory outputDirectorywar/WEB-INF/classes/outputDirectory resources resource directory${project.build.sourceDirectory}/directory targetPath/targetPath excludes exclude**/*.java/exclude /excludes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration encodingutf-8/encoding /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId versionLATEST/version configuration warSourceDirectory${basedir}/war/warSourceDirectory !-- We don't need to include any sources to copy to the target, because the target *is* our source. -- warSourceIncludes/warSourceIncludes warSourceExcludes**/warSourceExcludes webappDirectory${basedir}/war/webappDirectory webXml${basedir}/war/WEB-INF/web.xml/webXml /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version1.1-SNAPSHOT/version executions execution goals goalcompile/goal !-- goalgenerateAsync/goal -- /goals /execution /executions configuration runTargetpath.to.your.Module/../Module.html/runTarget output${basedir}/war/output webXml${basedir}/war/WEB-INF/web.xml/webXml hostedWebapp${basedir}/war/hostedWebapp /configuration /plugin /plugins /build pluginRepositories pluginRepository idCodehaus/id urlhttp://snapshots.repository.codehaus.org/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories properties gwt.version1.6.4/gwt.version /properties I hope this helps. Best, Laird --~--~-~--~~~---~--~~ You received 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: Making a call to more than one server
The Same Origin Policy does not apply to making requests to another domain. It applies to manipulating the properties of another document from a different domain. For example if you had an iframe with document from another domain loaded into it, you won't be able to manipulate the DOM in that iframe. There should be no problem pulling data with a RequestBuilder. On Apr 19, 11:03 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Unfortunately, you're limited by the same origin policy:https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript There are techniques to bypass it though but if you have a server backend, your best bet is to make the calls to the other server there. Cheers, Salvador On Apr 20, 7:53 am, AnaLena tofu...@gmail.com wrote: Sorry for the newbie question. After a lot of searching I finally got sent in the right direction. I assume RequestBuilder is what I want?http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... --~--~-~--~~~---~--~~ You received 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 1.6, Google App Engine, and java.awt.image.*
I am trying to put my application under GWT 1.6, but I am having problems, because I use some java.awt.image classes. I understand that Google is working on App Engine for java and has probably not yet implemented image. How can I proceed, since the new eclipse plugins insist on App Engine, even when I remove the App Engine SDK. Any suggestions? Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
what optimizations are needed to improve performance
His, I am seeing above expected performance on my application that displays a table (17 x 17 Flextable, using only GWT widgets) of rows that should be updated (Timer, RPC) at 1 second intervals. While the application targets IE 6 which run somewhat slowly (updates tend to be perfomed about 3 times slower), for sake of fairness I must attest superior performance in Firefox 3. Are there common optimizations that help improve speed besides what was recently covered in thread http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c5b8141e70a221ec/5ed79b1444d526b9?lnk=gstq=efficiency+of+my+gwt+application#5ed79b1444d526b9 I have already made sure: - to apply styles only when really needed to avoid browser redraws - to use table: fixed to improve table rendering (http:// groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ 4e7ae69a917236a8/f3fa66ce621e9cb5?lnk=gstq=layout%3A +fixed#f3fa66ce621e9cb5) - to use Timer#schedule(1000) instead of timer#scheduleRepeating(1000) to process updates one at a time, as resources free up What else could one think of? Also, facing some memory leak issues (in IE 6) as there are a lot of objects (Labels, Composites) being created for each row update coming from server. It seems to be solved by reloading page every 30 minutes, but I am wondering if there is a better way to free up browser memory automatically and at certain intervals? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Request after request.
Hi. I'm trying to implement chat on my GWT app. So client has getEvents() function implemented like this : public void getEvents( ) { networkSvc.getEvents( new AsyncCallback ArrayListEvent () { public void onSuccess( ArrayList Event events ) { handleEvents( events ); networkSvc.getEvents( this ); } public void onFailure( Throwable caught ) { System.out.println(eventListner + caught ); } } ); } This func in an endless loop with the server . at the server side getEvents goes to sleep for 30 sec or till events approaching. The second function is sendEvent() function. As i see, i can't send an event to server while the server processing the previos request. I mean it looks like the sendEvent() waits till the getEvents() gets the response, and just after that it sends its own request. Is that right, or there is some bug in my algorithm ? --~--~-~--~~~---~--~~ You received 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: what optimizations are needed to improve performance
On Wed, Apr 22, 2009 at 4:39 PM, denis56 denis.ergashb...@gmail.com wrote: His, I am seeing above expected performance on my application that displays a table (17 x 17 Flextable, using only GWT widgets) of rows that should be updated (Timer, RPC) at 1 second intervals. While the application targets IE 6 which run somewhat slowly (updates tend to be perfomed about 3 times slower), for sake of fairness I must attest superior performance in Firefox 3. Are there common optimizations that help improve speed besides what was recently covered in thread http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c5b8141e70a221ec/5ed79b1444d526b9?lnk=gstq=efficiency+of+my+gwt+application#5ed79b1444d526b9 I have already made sure: - to apply styles only when really needed to avoid browser redraws - to use table: fixed to improve table rendering (http:// groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ 4e7ae69a917236a8/f3fa66ce621e9cb5?lnk=gstq=layout%3A +fixed#f3fa66ce621e9cb5http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/%0A4e7ae69a917236a8/f3fa66ce621e9cb5?lnk=gstq=layout%3A%0A+fixed#f3fa66ce621e9cb5 ) - to use Timer#schedule(1000) instead of timer#scheduleRepeating(1000) to process updates one at a time, as resources free up What else could one think of? Also, facing some memory leak issues (in IE 6) as there are a lot of objects (Labels, Composites) being created for each row update coming from server. It seems to be solved by reloading page every 30 minutes, but I am wondering if there is a better way to free up browser memory automatically and at certain intervals? If the structure of your table doesn't change, then pre-create those labels composites simply change the data being displayed. Otherwise, at least for IE, innerHTML is significantly faster (although you lose the ability to do widgets event handling gets more complicated) --~--~-~--~~~---~--~~ You received 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 vs. Facelets/JSF/RichFaces
GWT is essentially a fancy Javascript framework. So in your question replace GWT w/ Javascript you'll have the answer. On Wed, Apr 22, 2009 at 2:29 PM, Jon Onstott jononst...@gmail.com wrote: Hello GWT'ers, I have been looking into the basics of GWT for a few weeks now but haven't touched much code. The company I work for has existing web applications which are pretty big and use J2EE technologies (a combination of JSF / Facelets / Richfaces / Javascript on the front end, and backing beans / session beans / J2EE services on the back end). The websites use google maps heavily, and are very important to our company. Since we are using so many different technologies in the presentation tier (and in order to work on the code, having to jump between them), I have been curious if GWT can simplify things for us. I have a few questions though. Are there any big pitfalls to using GWT? Any problems that are difficult to get around? Can the UI be customized as much as you can customize a HTML page? (As far as changing colors, sizes of things, looking and acting similar to traditional websites, etc...). Thanks! -Jon --~--~-~--~~~---~--~~ You received 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: Request after request.
Most browsers only support 2 outstanding AJAX events - that may be what you are running into. Without knowing what other calls you make, I cannot make a recommendation. One thing that does come to mind is that I hope you only call getEvents once on startup. On Wed, Apr 22, 2009 at 4:47 PM, davidst...@gmail.com davidst...@gmail.comwrote: Hi. I'm trying to implement chat on my GWT app. So client has getEvents() function implemented like this : public void getEvents( ) { networkSvc.getEvents( new AsyncCallback ArrayListEvent () { public void onSuccess( ArrayList Event events ) { handleEvents( events ); networkSvc.getEvents( this ); } public void onFailure( Throwable caught ) { System.out.println(eventListner + caught ); } } ); } This func in an endless loop with the server . at the server side getEvents goes to sleep for 30 sec or till events approaching. The second function is sendEvent() function. As i see, i can't send an event to server while the server processing the previos request. I mean it looks like the sendEvent() waits till the getEvents() gets the response, and just after that it sends its own request. Is that right, or there is some bug in my algorithm ? --~--~-~--~~~---~--~~ You received 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: Robust (cross-browser) check for a specific keycode?
On Apr 7, 8:11 am, Isaac Truett itru...@gmail.com wrote: jchimene, The idea of a suggestBox.showDefaultSuggestions() has been tossed around. That would get you the initial list of suggestions that you're looking for. Unfortunately, this feature didn't make it into GWT 1.6 and I don't think there's even an issue open to track it. But if you're interested, you can take a look at a ComboBox I've been playing with in my SimpleGWT project (link below). That might get you closer to what you want and some feedback might actually encourage me to put time into that library again. ;) http://code.google.com/p/simple-gwt/ Hope that helps. Isaac Thanks, this looks quite usable. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6, Google App Engine, and java.awt.image.*
GWT doesn't support java.awt.anything. You have to use the GWT Imagehttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Image.htmlclass. GWT != Java has nothing to do with App Engine (other than you can host your GWT project on App Engine). To disable App Engine, I believe there's a setting the in the project properties (never used GEP, so I can't help you with more specifics). On Wed, Apr 22, 2009 at 4:35 PM, Danny dhho...@gmail.com wrote: I am trying to put my application under GWT 1.6, but I am having problems, because I use some java.awt.image classes. I understand that Google is working on App Engine for java and has probably not yet implemented image. How can I proceed, since the new eclipse plugins insist on App Engine, even when I remove the App Engine SDK. Any suggestions? Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: SWT seems to think I'm running on Linux and not a Mac ???
On Apr 22, 1:00 pm, Jeff Chimene jchim...@gmail.com wrote: On 04/22/2009 12:06 PM, Rob Tanner wrote: Hi, I've been going back and forth with Instantiations tech support over their GET Designer Eclipse plugin. When I try and execute a GWT application in Eclipse that I built with the Designer, I get an Exception immediately. The error is: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in java.library.path. Instantiation's support says that for some reason, GWT's SWT really does think I'm running on Linux. I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet support 1.6.4 according to Instantiation support) and I also have the current Google plugin from Google's Eclipse update site installed. My system is a MacBook Pro with 10.5.6 installed. Does this problem at all sound familiar? Thanks, Rob I'll stake a stab at this, maybe we can isolate the problem... o Is this your first project w/ GWT in this environment? If so, please try establishing a baseline by installing and running the StockWatcher example o Is SWT the Standard Widget Toolkit? The sentence GWT's SWT really does think I'm running on Linux implies ownership of SWT by GWT. Isn't SWT a separate library? Yes. This is my first project. I went through the first step of of the project: Creating a GWT application. When I created it, a message popped up in the Eclipse console: Encountered a problem: Unexpected exception Please see the logs [/tmp/enhance40780.log] for further information. The contents of the log file: java.lang.RuntimeException: Unexpected exception at com.google.appengine.tools.enhancer.Enhancer.execute (Enhancer.java:59) at com.google.appengine.tools.enhancer.Enhance.init (Enhance.java:60) at com.google.appengine.tools.enhancer.Enhance.main (Enhance.java:41) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.google.appengine.tools.enhancer.Enhancer.execute (Enhancer.java:57) ... 2 more Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:104) at org.datanucleus.plugin.PluginParser.parsePluginElements (PluginParser.java:257) at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensions (NonManagedPluginRegistry.java:233) at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensionPoints (NonManagedPluginRegistry.java:159) at org.datanucleus.plugin.PluginManager.registerExtensionPoints (PluginManager.java:82) at org.datanucleus.OMFContext.init(OMFContext.java:164) at org.datanucleus.enhancer.DataNucleusEnhancer.init (DataNucleusEnhancer.java:153) at org.datanucleus.enhancer.DataNucleusEnhancer.main (DataNucleusEnhancer.java:1138) ... 7 more Step 2, Testing the default project components, resulted in nothing being displayed (although the Eclipse console flickered). Assuming that something got logged about the problem somewhere, do you know where that somewhere would be? With regard to SWT, I believe that's exactly correct. There are 4 jnilibs in the toolkit with swt in their name and I presume they implement at least part of the Software Widget Toolkit. They are clearly carbon and not gtk which makes sense because I'm running on a Mac, not Linux. But the error I get using the GWT Designer is no swt- pi-gtk-3062 in java.library.path. Also, I don't believe the Designer even looks at the GWT Eclipse plugin. The one must-be-set preference in the Designer configuration is where in the file system to find the toolkit. --~--~-~--~~~---~--~~ You received 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: SWT seems to think I'm running on Linux and not a Mac ???
On 04/22/2009 04:15 PM, Rob Tanner wrote: On Apr 22, 1:00�pm, Jeff Chimenejchim...@gmail.com wrote: On 04/22/2009 12:06 PM, Rob Tanner wrote: Hi, I've been going back and forth with Instantiations tech support over their GET Designer Eclipse plugin. �When I try and execute a GWT application in Eclipse that I built with the Designer, I get an Exception immediately. �The error is: �Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in java.library.path. Instantiation's support says that for some reason, GWT's SWT really does think I'm running on Linux. I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet support 1.6.4 according to Instantiation support) and I also have the current Google plugin from Google's Eclipse update site installed. �My system is a MacBook Pro with 10.5.6 installed. �Does this problem at all sound familiar? Thanks, Rob I'll stake a stab at this, maybe we can isolate the problem... o Is this your first project w/ GWT in this environment? � �If so, please try establishing a baseline by installing and running the StockWatcher example o Is SWT the Standard Widget Toolkit? � �The sentence GWT's SWT really does think I'm running on Linux implies ownership of SWT by GWT. Isn't SWT a separate library? Yes. This is my first project. I went through the first step of of the project: Creating a GWT application. When I created it, a message popped up in the Eclipse console: Encountered a problem: Unexpected exception Please see the logs [/tmp/enhance40780.log] for further information. What's enhance? I would have expected StockWatcher? Either way, at this point I'd verify you have a good installation of GWT. Set Eclipse aside for the moment and try building the Showcase samples using the command line. If you make your default directory something like /path/to/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/samples You should find a file named build.xml You may need to set root permissions to write into this directory, but try ant build If that works, try running in Hosted mode ant hosted Step 2, Testing the default project components, resulted in nothing being displayed (although the Eclipse console flickered). Assuming that something got logged about the problem somewhere, do you know where that somewhere would be? With regard to SWT, I believe that's exactly correct. There are 4 jnilibs in the toolkit with swt in their name and I presume they implement at least part of the Software Widget Toolkit. They are clearly carbon and not gtk which makes sense because I'm running on a Mac, not Linux. But the error I get using the GWT Designer is no swt- pi-gtk-3062 in java.library.path. Also, I don't believe the Designer even looks at the GWT Eclipse plugin. The one must-be-set preference in the Designer configuration is where in the file system to find the toolkit. Well, this got me interested to see what's on my system: $ ls /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/lib* /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libgwt-ll.so /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-gtk-3235.so /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-mozilla17-profile-gcc3-gtk-3235.so /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-mozilla17-profile-gtk-3235.so /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-mozilla-gcc3-gtk-3235.so /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-mozilla-gtk-3235.so /usr/local/bin/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-pi-gtk-3235.so So, let's check the libraries on your system? --~--~-~--~~~---~--~~ You received 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 on FreeBSD
Hi, I was able to gwt working at a customer site (where I was give a development machine with free bsd). I used eclipse and the GWT Designer (required support from the GWT Designer Team, which was probably unofficial). I don't have the email they sent me, which had something to do with a swt in eclipse issue. I always used compile and browse button from hosted mode to generate the html and js files. Good Luck! Scott On Apr 21, 9:55 am, Alex Rudnick a...@google.com wrote: I don't have a FreeBSD box handy, but this seems like it'd be workable. Good call about replacing the SWT binaries with your native ones. Would it help, do you think, to compile GWT from source? If you get this working, it would be cool to hear how you did it! On Tue, Apr 21, 2009 at 7:47 AM, Rabbit antonin.bo...@gmail.com wrote: Switching to -client mode fix the build process. Hosted mode still not working -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ You received 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: SWT seems to think I'm running on Linux and not a Mac ???
On 04/22/2009 04:15 PM, Rob Tanner wrote: On Apr 22, 1:00�pm, Jeff Chimenejchim...@gmail.com wrote: On 04/22/2009 12:06 PM, Rob Tanner wrote: Hi, I've been going back and forth with Instantiations tech support over their GET Designer Eclipse plugin. �When I try and execute a GWT application in Eclipse that I built with the Designer, I get an Exception immediately. �The error is: �Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in java.library.path. Instantiation's support says that for some reason, GWT's SWT really does think I'm running on Linux. I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet support 1.6.4 according to Instantiation support) and I also have the current Google plugin from Google's Eclipse update site installed. �My system is a MacBook Pro with 10.5.6 installed. �Does this problem at all sound familiar? Thanks, Rob I'll stake a stab at this, maybe we can isolate the problem... o Is this your first project w/ GWT in this environment? � �If so, please try establishing a baseline by installing and running the StockWatcher example o Is SWT the Standard Widget Toolkit? � �The sentence GWT's SWT really does think I'm running on Linux implies ownership of SWT by GWT. Isn't SWT a separate library? Yes. This is my first project. I went through the first step of of the project: Creating a GWT application. When I created it, a message popped up in the Eclipse console: Encountered a problem: Unexpected exception Please see the logs [/tmp/enhance40780.log] for further information. Sorry, my previous post (deleted) referenced GWT 1.6 Nevertheless, please set Eclipse aside for the moment and try compiling any of the samples/ For example, inside the samples/DynaTable/ you should find the DynaTable-compile and DynaTable-shell scripts. Please try one of the samples/* *-compile or the *-shell scripts. The contents of the log file: java.lang.RuntimeException: Unexpected exception at com.google.appengine.tools.enhancer.Enhancer.execute SNIP I have to admit that I don't understand the log. But, it reinforces my desire to verify the integrity of your GWT installation. Step 2, Testing the default project components, resulted in nothing being displayed (although the Eclipse console flickered). Assuming that something got logged about the problem somewhere, do you know where that somewhere would be? With regard to SWT, I believe that's exactly correct. There are 4 jnilibs in the toolkit with swt in their name and I presume they implement at least part of the Software Widget Toolkit. They are clearly carbon and not gtk which makes sense because I'm running on a Mac, not Linux. But the error I get using the GWT Designer is no swt- pi-gtk-3062 in java.library.path. Also, I don't believe the Designer even looks at the GWT Eclipse plugin. The one must-be-set preference in the Designer configuration is where in the file system to find the toolkit. That is a problem. For example, a listing of my 1.5.3 directory shows: /usr/local/lib/gwt-linux-1.5.3$ ls libswt* -c1 libswt-gtk-3235.so libswt-mozilla17-profile-gcc3-gtk-3235.so libswt-mozilla17-profile-gtk-3235.so libswt-mozilla-gcc3-gtk-3235.so libswt-mozilla-gtk-3235.so libswt-pi-gtk-3235.so So, I can see where Tech Support draws their conclusion. Can you check the corresponding GWT directory on your installation? --~--~-~--~~~---~--~~ You received 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 1.6 in Ubuntu
I recently downloaded the GWT/App Engine Eclipse plugin. I created a new using the create new web application project button on the toolbar. I named my project and unchecked the option to use google app engine. I only want to use GWT. After creating the project I decided to make sure everything was ok and ran it without making any changes. I get the following error: [ERROR] Failure while parsing XML org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.81) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:307) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: 155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java: 536) at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426) at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Please, if you know why this is happening, share any info you may have. Any help would be greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 in Ubuntu
OpenJDK works fine for me, but I believe you need the trunk. Otherwise, you need Sun's 1.6.0.7 (not .10) release. On Wed, Apr 22, 2009 at 8:39 PM, Jeff Chimene jchim...@gmail.com wrote: On 04/22/2009 05:35 PM, Cliff Newton wrote: I recently downloaded the GWT/App Engine Eclipse plugin. I created a new using the create new web application project button on the toolbar. I named my project and unchecked the option to use google app engine. I only want to use GWT. After creating the project I decided to make sure everything was ok and ran it without making any changes. I get the following error: [ERROR] Failure while parsing XML org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.81) Looks like you'll have to install a supported Java Runtime. The Gnu Java that Ubuntu provides doesn't seem to play well w/ GWT. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 in Ubuntu
Sorry - disregard that. That's only for actually building trunk. Just for development, OpenJDK worked fine as far as I remember. On Wed, Apr 22, 2009 at 9:04 PM, Vitali Lovich vlov...@gmail.com wrote: OpenJDK works fine for me, but I believe you need the trunk. Otherwise, you need Sun's 1.6.0.7 (not .10) release. On Wed, Apr 22, 2009 at 8:39 PM, Jeff Chimene jchim...@gmail.com wrote: On 04/22/2009 05:35 PM, Cliff Newton wrote: I recently downloaded the GWT/App Engine Eclipse plugin. I created a new using the create new web application project button on the toolbar. I named my project and unchecked the option to use google app engine. I only want to use GWT. After creating the project I decided to make sure everything was ok and ran it without making any changes. I get the following error: [ERROR] Failure while parsing XML org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.81) Looks like you'll have to install a supported Java Runtime. The Gnu Java that Ubuntu provides doesn't seem to play well w/ GWT. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6, Google App Engine, and java.awt.image.*
Clarifying: I am using Java image classes on the server, where the Java sky should be almost limitless. Right now, I would like to get my application of a few thousand lines of code working under GWT 1.6. It works great under GWT 1.5. I took your advice and told Eclipse to not use App Engine, and Eclipse did stop complaining. I hope this works in the end. Thanks, Danny On Apr 22, 8:15 pm, Ben FS ben.su...@gmail.com wrote: Client-side: GWT lets you use Java language, but only a sub-set of the J2SE library, supplemented by a variety of GWT-specific UI classes. Server-side: You can use whatever you want, including Java. If you wish to use Java (J2EE) on the server, you can - and then the GWT RPC mechanism can be handy. If you wish to deploy to GAE, there are some restrictions - for example, no file access - but the main difference with GAE is how you store data persistently. On Apr 22, 3:35 pm, Danny dhho...@gmail.com wrote: I am trying to put my application under GWT 1.6, but I am having problems, because I use some java.awt.image classes. I understand that Google is working on App Engine for java and has probably not yet implemented image. How can I proceed, since the new eclipse plugins insist on App Engine, even when I remove the App Engine SDK. Any suggestions? Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 in Ubuntu
On 04/22/2009 06:04 PM, Vitali Lovich wrote: Sorry - disregard that. That's only for actually building trunk. Just for development, OpenJDK worked fine as far as I remember. OK, but is that what the OP is using as the JDK (not JRE as I originally wrote)? Since OpenJDK is essentaily the Sun JDK, why does the stack trace show libgcj? On Wed, Apr 22, 2009 at 9:04 PM, Vitali Lovich vlov...@gmail.com mailto:vlov...@gmail.com wrote: OpenJDK works fine for me, but I believe you need the trunk. Otherwise, you need Sun's 1.6.0.7 (not .10) release. On Wed, Apr 22, 2009 at 8:39 PM, Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com wrote: On 04/22/2009 05:35 PM, Cliff Newton wrote: I recently downloaded the GWT/App Engine Eclipse plugin. I created a new using the create new web application project button on the toolbar. I named my project and unchecked the option to use google app engine. I only want to use GWT. After creating the project I decided to make sure everything was ok and ran it without making any changes. I get the following error: [ERROR] Failure while parsing XML org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.81) Looks like you'll have to install a supported Java Runtime. The Gnu Java that Ubuntu provides doesn't seem to play well w/ GWT. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
Hosted mode, restart server, classloader errors
I get classloader errors from (re-)loading the Oracle JDBC driver when I attempt to Restart Server in hosted mode. java.lang.UnsatisfiedLinkError: Native Library /.../oracle/product/10.2.0.4.0/libocijdbc10.so already loaded in another classloader Is there something I can do to get pass this? I'm currently adding the oracle jar to the classpath on the ant hosted target: oracle.home: /.../oracle/product/10.2.0.4.0 oracle.jar: /.../oracle/product/10.2.0.4.0/ojdbc14.jar target name=hosted depends=compile description=Run hosted mode java failonerror=true fork=true classname=com.google.gwt.dev.HostedMode jvm=/usr/java/jdk1.6/bin/java env key=LD_LIBRARY_PATH value=${oracle.home}/ classpath pathelement location=${src.home}/ path refid=project.class.path/ pathelement location=${oracle.jar}/ /classpath jvmarg value=-Xmx256M/ arg value=-startupUrl/ arg value=Foo.html/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=foo.Foo/ /java /target ojdbc14.jar is not in war/WEB-INF/lib. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
JS error in IE
I am getting a JS error/warning pop-up box in IE (not Firefox), which says: Line 1327 Char 16 Error: 'Bzc.j.k' is null or not an object Code: 0 URL: my site's URL This error/warning does not break anything, and if clicked away, the site works just fine. However, it happens on a page which the users first come to, and so creates a bad impression. I opened up the compiled cache.html file mentioned in the error, and used the line/ char coords to locate the problem. There is a line in there which says: function wyc(){b6b((nzc(),Bzc).j.k,true)} This, I believe, is what the IE pop-up is referring to. However, this code isn't exactly readable, so I have no idea what is wrong with it, or in fact, what it does. I also ran the page through several JS debuggers, but that did not help at all. Do you guys have any ideas as to how I should proceed? Any input would be appreciated. --~--~-~--~~~---~--~~ You received 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 RPC for inter-server communication?
Hello, I actually rather like the GWT RPC API and was hoping to use it for more than client/server communication - in fact, I want to use it for server/server communication. Here is some example servlet code: http://gist.github.com/100232 The callService() method would be designed to hit a different server, of course. Has anyone else used GWT RPC in this way? Will it even work? (I can't test this code right now because the Google App Engine plugin on the Mac doesn't seem to run hosted mode correctly). BTW the attributes of GWT RPC that I like is the JSON transport, and the asynchronous API. I also like the idea of dealing with communications in a more homogeneous way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: FormPanel sumbit timeout
On 21 avr, 12:54, Shimi shim...@gmail.com wrote: is there a way to change the FromPanel submit timeout? Given that FormPanel has no timeout by itself, I believe this is a browser thing, so the answer would be no. In which case are you experiencing a timeout with FormPanel? --~--~-~--~~~---~--~~ You received 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: MouseListener to MouseMoveHandler
On 22 avr, 20:49, Kelo mcac...@gmail.com wrote: Hi people, I used mouseListeners.fireMouseMove(this,x,y) on onBrowserEvent (Event event) to fire this kind of event and modified x and y. I would like to know how to set x and y when I firing an event on 1.6 : addDomHandler(new MouseMoveHandler() { public void onMouseMove(MouseMoveEvent event) { int x = new value; int y = new value; fireEvent(event); // how can I set x and y to modify its original values ? } },MouseMoveEvent.getType()); I'll appreciate any help. Have a look at com.google.gwt.dom.client.Document.createMouseMoveEvent and com.google.gwt.event.client.DomEvent.fireNativeEvent, I believe they'll be helpful. But may I ask why (you think) you need such a coordinate transform? --~--~-~--~~~---~--~~ You received 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: JsParserException: invalid label
On 21 avr, 10:02, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! Can anyone help me with the error mentioned above? I try to make an interface to JavaScript so I can call a function. My Java code looks like that: public void onModuleLoad() { setShowTrigger(this); } public native void setShowTrigger(Index x)/*-{ $wnd.showIndex = function () { website.client.Index::runApp()(); Shouldn't that read: x...@website.client.index::runApp()(); }; }-*/; public void runApp() { Window.alert(I am a GWT function); } --~--~-~--~~~---~--~~ You received 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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!
On 21 avr, 04:21, jrray jrobert...@gmail.com wrote: This technique would be more convenient if doLogin wasn't a static method. I tried to change to non-static, such as: private native void injectLoginFunction() /*-{ $wnd.__gwt_login = th...@com.example.myapp.client.app::doLogin (); }-*/; var that = this; $wnd.__gwt_login = function() { th...@com.example.myapp.client.app::doLogin()(); } or change the method's signature: private native void injectLoginFunction(App that) /*-{ $wnd.__gwt_login = function() { th...@com.example.myapp.client.app::doLogin()(); } }-*/; and call it like that: injectLoginFunction(this); That's JSNI 101 ;-) --~--~-~--~~~---~--~~ You received 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: single row in PagingScrollTable does not have proper height in IE7
This sounds like a rendering bug with the PagingScrollTable. All I can suggest to do is a) check out the latest incubator and see if the issue is still there b) if it is, file an issue with the incubator issue tracker. Regards, -- Arthur Kalmenson On Tue, Apr 21, 2009 at 4:18 PM, KaffeineComa kaffeinec...@gmail.com wrote: I'm using the PagingScrollTable from GWT Incubator version 1.5- Dec_28. When I have only a single row in the table, the table height shrinks such that the row is no longer visible. If I add more rows, everything is properly sized. It seems as if maybe the height of the horizontal scrollbar is not being taken into account, or some other off by one error is happening. My current workaround is to add a stylename with an explicit height: 30px to the row using RowFormatter. This is kind of a hack, as the height of my rows varies with the data contained. Any pointers welcome, thanks. PS: it renders fine in Safari Firefox --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---