Re: fileupload: ensuring the same file being uploaded
filename = item.getName(); On Sat, Jul 18, 2009 at 12:27 AM, twittwit ytbr...@gmail.com wrote: ok thank you. i found the answer: public class MyFormHandler extends HttpServlet{ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ServletFileUpload upload = new ServletFileUpload(); try{ FileItemIterator iter = upload.getItemIterator(request); while (iter.hasNext()) { FileItemStream item = iter.next(); String name = item.getFieldName(); InputStream stream = item.openStream(); // Process the input stream FileOutputStream out = new FileOutputStream (example.csv); //ByteArrayOutputStream out = new ByteArrayOutputStream (); int len; byte[] buffer = new byte[8192]; while ((len = stream.read(buffer, 0, buffer.length)) ! = -1) { out.write(buffer, 0, len); } //... } } catch(Exception e){ e.printStackTrace(); } } } however, how can i extract the name of the csv file(client side) so that the csv file in my server can have the same name? thanks!! On Jul 18, 12:19 am, Manuel Carrasco manuel.carrasc...@gmail.com wrote: In the dialog between the browser and the server, the client sends a multipart/form-data request and there is more information besides the file content, like form elements values, boundary tags, etc. I recommend you to use apache commons-fileupload library to handle multipart/form-data request in your servlets. On Fri, Jul 17, 2009 at 11:44 PM, imgnik ytbr...@gmail.com wrote: hi all, i posted a question about fileupload here http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa. .. but i think i didn't phrase my question correctly. so gonna do another attempt. I tried to use a gwt fileupload widget to send a csv file to the server. and at the server i will write it as a file (for other usage) it by doing : (where request is the httpservletrequest and bw is the bufferedwriter) BufferedReader r = request.getReader(); while((thisread= r.readLine())!=null){ bw.write(thisread); } bw.close(); } catch(Exception e1){} however, i realised that the csv file send out contains : --WebKitFormBoundaryN8Z6DOy7DqEWTwtLContent-Disposition: form- data; name=uploadFormElement; filename=first.csvContent-Type: application/octet-streamBank which results in the file created not the same as the file upload. I might be wrong in my analysis. can someone advice 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: Question about using user defined serializable types in GWT
Writing client code, you have to use classes supported by GWT JRE Emulation: http://code.google.com/intl/es/webtoolkit/doc/1.6/RefJreEmulation.html. So you have to use only these classes in serializable objects that are used in both the client and server sides. Unfortunately java.lang.Thread is not supported so you can not use it. On Fri, Jul 17, 2009 at 10:38 PM, Srinivas Ramabhadran srinivas.ramabhad...@gmail.com wrote: Hi, I am relatively new to GWT and am trying to define a user defined serialiable type Foo in order to do GWT RPC. public class Foo implements IsSerializable { private String foo; private transient Thread thread; public Foo() { } public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } } When I try to run this in a GWT module, I get the error: [ERROR] No source code is available for type java.lang.Thread; did you forget to inherit a required module? Why is GWT even bothering with the Thread field when it has been marked transient? Am I missing something here? Thanks, Srini. --~--~-~--~~~---~--~~ You received 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 client side annotations
Hi, Client side java code is a subset of the entire JRE as it has to be translate to javascript. You should have a look here : http://code.google.com/intl/fr/webtoolkit/doc/1.6/RefJreEmulation.html --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Ubuntu 9.04: com.google.gwt.core.client.JavaScriptException: (SyntaxError): syntax error
Hi all, I have the problem as following exception. Initially, i am using window os to run my application, everything going smooth, but when i switched to Ubuntu, it seem like cannot recognize the JSON syntax reply by the servlet. So may i know what is going on? Thanks in advance. [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (SyntaxError): syntax error fileName: file:/home/simon/workspace/ReadMe/src/com/iselab/gwt/sample/ readme/client/ReadMe.java lineNumber: 383 stack: eval(pre[\n {\n\source\: \Hello world\,\n\size \: 100\n,\n\language\: \English\},\n]\n/pre)@:0 (pre[\n {\n\source\: \Hello world\,\n\size\: 100\n, \n\language\: \English\},\n]\n/pre)@file:/home/simon/ workspace/ReadMe/src/com/iselab/gwt/sample/readme/client/ReadMe.java: 383 final void com.google.gwt.user.client.Timer.fire()()@:0 (1)@jar:file:/home/simon/opt/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907131030/gwt- linux-1.7.0/gwt-user.jar!/com/google/gwt/user/client/Timer.java:62 @:0 at com.iselab.gwt.sample.readme.client.ReadMe.asArrayOfJsonData (Native Method) at com.iselab.gwt.sample.readme.client.ReadMe.handleTextArea (ReadMe.java:362) at com.iselab.gwt.sample.readme.client.ReadMe.access$9(ReadMe.java: 361) at com.iselab.gwt.sample.readme.client.ReadMe$4.onSubmitComplete (ReadMe.java:290) at com.google.gwt.user.client.ui.ListenerWrapper $WrappedOldFormHandler.onSubmitComplete(ListenerWrapper.java:637) at com.google.gwt.user.client.ui.FormPanel $SubmitCompleteEvent.dispatch(FormPanel.java:117) at com.google.gwt.user.client.ui.FormPanel $SubmitCompleteEvent.dispatch(FormPanel.java:1) at com.google.gwt.event.shared.HandlerManager $HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1 (HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent (HandlerManager.java:178) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52) at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java: 659) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands (CommandExecutor.java:310) at com.google.gwt.user.client.CommandExecutor$2.run (CommandExecutor.java:205) at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160) at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146) at com.google.gwt.user.client.Timer.fire(Timer.java:138) --~--~-~--~~~---~--~~ You received 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: Integrating Google Docs into GWT
Not to my knowledge, but you could just use a Frame element, seeing as Google docs can provide url links to each document. Not particularly neat though. On Jul 17, 11:53 am, abhiram abhir...@gmail.com wrote: Hi, Is there a way to integrate the 'Google Docs' with the GWT application so that I can conveniently display the spreadsheets and all in my web application. Just wanted to know if there is any jar available for 'Google Docs'. And a sample application also would be of great help. Regards, Abhiram --~--~-~--~~~---~--~~ You received 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: fileupload: ensuring the same file being uploaded
perfect! thanks Manuel! common-fileupload is great! On Jul 18, 8:51 am, Manuel Carrasco manuel.carrasc...@gmail.com wrote: filename = item.getName(); On Sat, Jul 18, 2009 at 12:27 AM, twittwit ytbr...@gmail.com wrote: ok thank you. i found the answer: public class MyFormHandler extends HttpServlet{ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ServletFileUpload upload = new ServletFileUpload(); try{ FileItemIterator iter = upload.getItemIterator(request); while (iter.hasNext()) { FileItemStream item = iter.next(); String name = item.getFieldName(); InputStream stream = item.openStream(); // Process the input stream FileOutputStream out = new FileOutputStream (example.csv); //ByteArrayOutputStream out = new ByteArrayOutputStream (); int len; byte[] buffer = new byte[8192]; while ((len = stream.read(buffer, 0, buffer.length)) ! = -1) { out.write(buffer, 0, len); } //... } } catch(Exception e){ e.printStackTrace(); } } } however, how can i extract the name of the csv file(client side) so that the csv file in my server can have the same name? thanks!! On Jul 18, 12:19 am, Manuel Carrasco manuel.carrasc...@gmail.com wrote: In the dialog between the browser and the server, the client sends a multipart/form-data request and there is more information besides the file content, like form elements values, boundary tags, etc. I recommend you to use apache commons-fileupload library to handle multipart/form-data request in your servlets. On Fri, Jul 17, 2009 at 11:44 PM, imgnik ytbr...@gmail.com wrote: hi all, i posted a question about fileupload here http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa. .. but i think i didn't phrase my question correctly. so gonna do another attempt. I tried to use a gwt fileupload widget to send a csv file to the server. and at the server i will write it as a file (for other usage) it by doing : (where request is the httpservletrequest and bw is the bufferedwriter) BufferedReader r = request.getReader(); while((thisread= r.readLine())!=null){ bw.write(thisread); } bw.close(); } catch(Exception e1){} however, i realised that the csv file send out contains : --WebKitFormBoundaryN8Z6DOy7DqEWTwtLContent-Disposition: form- data; name=uploadFormElement; filename=first.csvContent-Type: application/octet-streamBank which results in the file created not the same as the file upload. I might be wrong in my analysis. can someone advice 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: Dose GWT 1.7 support debug on java 6?
There's a bug in java 1.6.0_14 - you need to downgrade to 1.6.0_13 to make debugging work properly. tfreitas wrote: Hi, I was using a version of java6 (I do not remember the version) and worked with the debugging eclipse Trunk / OOPHM in ubuntu 9.04 and firefox 3.0. After an auto-update, install java 1.6.0_14, the debugging not work (not breakpoint, nothing) I recompile my GWT_TRUNK, with the new java version 1.6.0_14 and again work debugging. I hope this helps, greetings On Jul 18, 2:42 pm, Rajeev Dayal rda...@google.com wrote: Hi, Are you talking about debugging your GWT Application in Eclipse when it's running in hosted mode? What is the problem that you're experiencing. We've heard reports of people running into problems with debugging when using JDK 1.6.0_14. What JDK are you using? Rajeev On Fri, Jul 17, 2009 at 11:59 AM, AndOrNot hwave...@gmail.com wrote: if support, how? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to 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.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)
Id use these libuarys a lot in a online adventure game engine under development (beta version here; http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html (an educational game being developed with it, but the engine will be used for a lot more). You can see DnD used for the inventory and sound used all over the place. These libs are fantastic and have been much help. I'll be updateing to 1.7 now :) As for specific features, theres nothing really else I need. I guess a global stop/disable for sounds might be usefull though. -Thomas Wrobel On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote: Hi With GWT 1.7.0 out the door I thought it would be a good time to provide an update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user agent deferred binding property value 'ie8' which is a breaking change for any project using user agent based deferred binding. To accommodate the new value all three libraries have a new version available for download. Links and additional details for the three projects can be found below. Before I talk about what's new for each of these projects though I'd like to take a moment to reach out and thank everyone who reported a bug, submitted a feature request or contributed a patch. It's really amazing how the efforts of individuals can be compounded for the benefit of all the developers in the community using these libraries and ultimately all the users of their apps. Thank you! While I have your attention, I'd like to express my interest in hearing more about how you are using these libraries in your web applications, what features you appreciate the most and which ones you think could use some improvement. In particular, I'm interested in how you might be using these libraries in team settings or in more complex development scenarios. It could be that you or one of your colleagues has built a library or higher level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you collaborate with a group of developers on an enterprise application which has specific needs and requirements which aren't typically found in smaller application. Please send me an email. I'd very much like to hear what you're working on. I'm also interested in hearing about the apps you didn't build or couldn't convince your co-workers to build. Perhaps you're an avid GWT developer at nights and on the weekends, but you can't convince the rest of your team at work to take GWT for dry run. On to release notes: In each case, be sure to check the Compatibility Matrix (see links below) so that you're using the correct one wirth your version of GWT. *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser A notable recent change is the now automatic scrolling into view during dragging. This should make dragging in the context of scrollbars a lot easier for your users. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... - Main project page -http://code.google.com/p/gwt-dnd/ - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-dnd/downloads/list - Building from trunk - http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse *gwt-log-2.6.2.jar* - Client side logging with a very large number of features Recent changes include a fix for those of you trying to use gwt-log inside of GWTTestCase. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html - Main project page -http://code.google.com/p/gwt-log/ - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-log/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-log/downloads/list - Building from trunk - http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse *gwt-voices-1.6.0.jar* - Cross platform browser sound support Recent change to allow streaming MP3 sounds to be replayed after sound.stop() has been called. More exciting features can be found in trunk. - Demo site - http://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/Voi... - Main project page -http://code.google.com/p/gwt-voices/ - Release notes -http://code.google.com/p/gwt-voices/wiki/ReleaseNotes - Getting Started Guide - http://code.google.com/p/gwt-voices/wiki/GettingStarted(includes compatibility matrix) - Downloads -http://code.google.com/p/gwt-voices/downloads/list - Building from trunk - http://code.google.com/p/gwt-voices/wiki/UsingSourceWithEclipse Thanks-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043
Re: GWT URL Parameters
You cant actualy change the url parameters like you can the history, because changing them would refresh the page. google.com#?blah=blah would be a history token that just pretends to be a normal parameter. (and Window.Location.getParameter wouldnt work for it). This can be changed without a page refresh Any change before a #, however (such as google.com?blah=blah) would cause a page refresh, and thus cant be done with a continuously running app. This cause's much announce in combination with the fact severs cant access #, as it makes it very hard to give your users url's which both always link to the same data, and work for clients without javascript. (such as google bots) On Jul 16, 5:46 pm, KevMo kevinps...@gmail.com wrote: Thanks Max, I did find that post earlier, however since there is a built in way of getting URL parameters I thought there would also be a built in way of setting them. That post suggests using the history to set the parameters, but then I would need to make my own functions to parse the history token for the parameters. Cheers, Kevin On Jul 15, 9:24 pm, Max maks...@gmail.com wrote: Hi KevMo, I think you can find this information in this post:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... Also you can search for URL Parameters or Parameters in this group so find more posts. Regards, Max On Jul 15, 11:00 am, KevMo kevinps...@gmail.com wrote: I know I can getURLparametersby using Window.Location.getParameter (), but how does one programatically set theurlparameter? --~--~-~--~~~---~--~~ You received 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: HTML 5 video
meh, we should all just use Ogg and let the rest catch up. Dailymotion and Wikipedia are big enough supporters for me. On Jul 16, 6:55 am, Ivan Ooi olibr...@gmail.com wrote: http://www.infoq.com/news/2009/07/HTML-5-Video-Codec Parties Fail to Agree on the HTML 5 Video Codechttp://www.infoq.com/news/2009/07/HTML-5-Video-Codec CommunityArchitecture http://www.infoq.com/architectureTopics Specifications http://www.infoq.com/Specifications Ian Hickson, the editor of the HTML 5 Specification, has recently removed the required codecs from the video and audio tags of the respective draft standard citing difficulties in reaching consensus among major companies involved in distributing video and audio content on the web. - By * Abel Avram http://www.infoq.com/author/Abel-Avram * on Jul 15 - Discuss http://www.infoq.com/news/2009/07/HTML-5-Video-Codec On Thu, Jul 16, 2009 at 2:10 AM, Joseph Arceneaux joe.arcene...@gmail.comwrote: Greetings, anyone know of any tutorials, code, or other information for using the video tag with GWT? Even a simple explanation of the video API would be helpful. Thanks, Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Why ImageBundleGenerator does not optimize the generated icon set?
This is a very good idea. On Jul 15, 4:31 am, Kelvin kelvin...@gmail.com wrote: I create a SilkImageBundle and put all silk icons library to it. the silk icon library contains 1000 icons and just a few hundreds of them are being used by the application. And I supposed that GWT can optimize the icon set and contains only the icons that being used. However, the generated icon set is the full set of silk 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 -~--~~~~--~~--~--~---
Re: New problem of blurHandler and setFocus on GWT 1.6
Problem solved (but not clean). I still have not found the true answer, but I wanted a way to show you a trick to avoid it. It is due to the propagation of the Click-Event and to solve it I have add event.stopPropagation() in the first line of the function onClick, and it works even though not very clean. public void onClick(ClickEvent event) { event.stopPropagation(); edit(); } Regards, Nono Hi, Could you try to addBlurEvent after setting focus to true ? Regards, 2009/6/28 Arnaud Blanchard blanchardarn...@gmail.com Hi, When I set setFocus on a object it is focussed and immediatly after, an onBlur event is send. I did not have this problem on 1.5 with focus listener. You can see the code below. solidify is call immediatly after we have time to see that the area of text has been selected. Maybe the onClick event haven't been destroyed ? Thank for your help, Nono public void edit() { this.clear(); areaOfText = new SuggestBox(Text.suggestions); areaOfText.setText(text.content); areaOfText.addStyleDependentName(Integer.toString(level)); /* PROBLEM HERE */ areaOfText.getTextBox().addBlurHandler(new BlurHandler(){ public void onBlur(BlurEvent event) { solidify(areaOfText.getText()); } }); this.add(areaOfText); areaOfText.setFocus(true); /* END PROBLEM */ } public void solidify(String newContent) { if (!newContent.equals(text.content)) { this.text = text.createNewText(newContent); this.info = this.info.createNewInfo(text, text.id); } this.clear(); label = new Label(text.content); label.addStyleDependentName(Integer.toString(level)); /* MAYBE PROBLEM HERE */ label.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { edit(); } }); this.add(label); } --~--~-~--~~~---~--~~ You received 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: App engine data types
Thanks man! Saved me a few hours for sure. Can't believe nobody needed this yet - should be a part of GWT. It's not that I want to send a Text or a Blob via RPC - but I definitelly want my data classes to be usable at the client side (translatable). The Text I'm going to put in a String in a JDO load callback function, so that it can be RPC'ed to client and used in a standard string-ish way, and similarly in the other direction. The separation of the jars into client and server was a bit confusing to me, however I've added both into my project's classpath and then included the gwt.xml, and it seems to work. Btw. the gwt.xml (same contente) is in both of these jars - is that a bug or am I doing something wrong? thanks again, J. On Jun 12, 7:48 am, bcottam bcot...@gmail.com wrote: okay, so I dug into this a bit and figured out how to port existing code to GWT compliant standards. I also included _CustomFieldSerializers. I am currently only using Key andTextin my test code, but I ported Key,Text, Blob, ShortBlob, Link and User however I haven't tested much beyond the Key andTextclasses. here is a link to the jars and some notes about them:www.resmarksystems.com/code I hope it is helpful :) -bryce On May 14, 11:22 am, bcottam bcot...@gmail.com wrote: yeah, I actually posted there first:http://groups.google.com/group/google-appengine-java/browse_thread/th... and they suggested that I cross-post here :) I actually started using the persisteddataclasses and sending them across the gwt rpc channel, and that was fine until the datanucleus JDO started putting fields on my classes that were instances of Object [] (which don't serialize all that well). That, and I know there is going to be a performance hit with sending a lot ofdataover the channel. So, I am thinking that doing a lite DTO just for transport would possibly be my best option. I will check out Ray Cromwells posts, mainly I guess what I am looking for at this point is a good reference for using the super-source tag and how to make custom wrappers for non GWT classes (in the same manner that the java.util api is wrapped with com.google.emul etc. Any pointers in that direction would be great. thanks! On May 13, 7:59 pm, Alyxandor a.revolution.ultra.b...@gmail.com wrote: I'm really not sure, but I'd recommend checking out theAppengine google group first...http://groups.google.com/group/google-appengine-java?hl=en There's over a hundred posts a day there, so I'm sure someone there with a little more expertise than yours truly will be of more help. Out of curiosity, have you already tried sending your persistentdata classes down the wire? Cos There's a lot of discussion about it, and some workarounds {basically, the only ways I could do it was with Ray Cromwell's various hacks, or a drop-in called Gilead}. You might find that using the same beans to be nigh impossible without making them non-detachable {read: you can send an object to the client, modify it and send it back to the server to save without copying the object, or manually copying thedatafrom every field}. ...Check the other group, like I said... I'm no expert. Of course, Ray Cromwell IS, so if you can find his Google-Groups profile, try clicking on some of the threads he posts on... You'll be glad you did! --~--~-~--~~~---~--~~ You received 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: Hyperlink in FlowPanel
On 17 juil, 19:49, Ashley Wong ashleywong1...@gmail.com wrote: Refering to the GWT showcase, the checkbox is lined up naturally (http://gwt.google.com/samples/Showcase/Showcase.html#CwFlowPanel). But I cannot make the Hyperlink flow naturally. Each hyperlink is placed on the other line. Code: FlowPanel panel = new FlowPanel(); panel.add(new Hyperlink(A, )); panel.add(new Hyperlink(B, )); panel.add(new Hyperlink(C, )); panel.add(new Hyperlink(D, )); RootPanel.get(canvas).add(panel); Can anyone help? Thank you. Use an InlineHyperlink instead: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/InlineHyperlink.html --~--~-~--~~~---~--~~ You received 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: Image Bundle not working in IE
On 18 juil, 00:34, Sean slough...@gmail.com wrote: Sadly, even with clean war file, IE still is having problems. I wonder if it's some security level thing? I'm not sure. IE won't allow me to turn down my settings to try it. Wont let me go lower then Medium for non-intranet sites. I don't know why an ImageBundle would be considered non-secure, but at this point I'm just confused. It could be two things: - a bad path to the bundle (IE is known to have some bugs re. resolving relative paths, though it shouldn't affect ImageBundles; but maybe if you're playing with the paths when deploying your app) - ImageBundles use an ActiveX (filter: AlphaImageLoader), so it might really be a security thing. --~--~-~--~~~---~--~~ You received 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: Why ImageBundleGenerator does not optimize the generated icon set?
+1 On Jul 18, 9:38 am, twdarkflame darkfl...@gmail.com wrote: This is a very good idea. On Jul 15, 4:31 am, Kelvin kelvin...@gmail.com wrote: I create a SilkImageBundle and put all silk icons library to it. the silk icon library contains 1000 icons and just a few hundreds of them are being used by the application. And I supposed that GWT can optimize the icon set and contains only the icons that being used. However, the generated icon set is the full set of silk 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 -~--~~~~--~~--~--~---
JSNI: window vs $wnd
The JSNI section of the dev guide uses the $wnd notation: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface But then in the cross-site commication tutorial 'window' is used. Additionally I can't get the sample code to work using $wnd. See: http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html What's the trick here? Are there some scenarios where you use $wnd and other where you use window? How do you know when to use which? Thanks, Mike --~--~-~--~~~---~--~~ You received 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: Hyperlink in FlowPanel
Thank you. Would you like to tell me what is the different between InlineHyperlink and Hyperlink? On 7月18日, 下午11時17分, Thomas Broyer t.bro...@gmail.com wrote: On 17 juil, 19:49, Ashley Wong ashleywong1...@gmail.com wrote: Refering to the GWT showcase, the checkbox is lined up naturally (http://gwt.google.com/samples/Showcase/Showcase.html#CwFlowPanel). But I cannot make the Hyperlink flow naturally. Each hyperlink is placed on the other line. Code: FlowPanel panel = new FlowPanel(); panel.add(new Hyperlink(A, )); panel.add(new Hyperlink(B, )); panel.add(new Hyperlink(C, )); panel.add(new Hyperlink(D, )); RootPanel.get(canvas).add(panel); Can anyone help? Thank you. Use an InlineHyperlink instead: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 -~--~~~~--~~--~--~---
Callin an URL from my application
Hi Group, I have a requirement where I need to call an URL for sending emails to some recipients. I will use a link something similar to this http://www.samplesite.com/messageapi.asp?username=sampleusernamepassword=samplepasswordsender=samplesenderrecipient=R1,R2,R3message=Hi. I have populated a list containing the recipients R1, R2, R3 and I need to invoke this link from my applicaiton. Which is the best method to do this? PS : I necessarily need to use this link itself to send the mail. Please let me know. Regards, Sam --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Display Frame with content from RPC
Hi all, I'm currently working on a gwt based webmail. I want to display the html part of an email within a panel. Because the html part contains a full html structure (head/body) I thought the best way todo this would be to use a frame. But how could I do this if I only get the content from my rpc call ? From my understanding I need a full url for using a Frame. Bye, Norman --~--~-~--~~~---~--~~ You received 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 project runs slow in Hosted mode
We are having the same issue upgrading from 1.5 to 1.7. For our application, we have GWTX in addition to the GWT. For our project, we have 4 GWT modules that are in development. For hosted browser with the -noserver option, our launch time in 1.5 was ~90 seconds and is now over 10 minutes in GWT 1.7. Some initial investigation indicates that removing our public resources gives a modest improvement but nowhere close to GWT 1.5 times. Any suggestions 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 -~--~~~~--~~--~--~---
Determine implemented interfaces
I'm trying to determine whether or not an object implements a given interface at runtime. Any suggestions? --~--~-~--~~~---~--~~ You received 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 center root panel?
Hi! I have trouble getting my root panel centered in the host page. I´ve looked at the posts here and tried things like CSS body { margin: 0 auto 0 auto; padding: 0; width: 792px; } But my page is still not centered vertically, only horizontally. Posting my onModuleLoad() below public void onModuleLoad() { HandlerManager eventBus = new HandlerManager(null); TimeServiceAsync timeService = GWT.create(TimeService.class); AppData appData = new AppData(); TimeWidget timeWidget = new TimeWidget(); TimePresenter timePresenter = new TimePresenter(timeWidget, appData, timeService, eventBus); TabPanel basePanel = new TabPanel(); basePanel.setWidth(500px); basePanel.setAnimationEnabled(true); basePanel.add(timeWidget,Current time); basePanel.add(new WelcomeWidget(),About); basePanel.add(new LinkWidget(), Some GWT links); basePanel.add(new ContactWidget(),Contact); basePanel.selectTab(0); RootPanel.get(simpleContainer).add(basePanel); } --~--~-~--~~~---~--~~ You received 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.7.0
ah, still no clickhandelers for Suggestion Boxs then, I expected at least that to be fixed fairly quick :-/ oh well, not that important. On Jul 15, 8:54 am, brett.wooldridge brett.wooldri...@gmail.com wrote: Read the release notes. Very few issues were fixed in 1.7.0, just a few extremely critical issues. On Jul 15, 3:34 pm, Paulo Coutinho pa...@prsolucoes.com wrote: I have compiled my app with new version, but the button size has the same problem, on IE is bigger than other browsers. 2009/7/15 sideview1 sidevi...@gmail.com: nevermind, I was looking at the main pagehttp://code.google.com/p/google-web-toolkit/ but I found the correct location and here are the release notes: http://code.google.com/webtoolkit/releases/release-notes-1.7.0.html Sorry I'm used to the posts pinned to the top in the forum. On Jul 14, 4:03 pm, ben sidevi...@gmail.com wrote: I see that it's out for download now. What updates are in that release? I don't see any milestone in the Issues Tab for the release. And I don't seem to see any posts about the new release? -- Atenciosamente, Paulo Coutinho. Blog:www.prsolucoes.com/blog Site:www.prsolucoes.com Msn: pa...@prsolucoes.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 -~--~~~~--~~--~--~---
gwt 1.6 and oophm, how to?
pardon for asking, but it seems i am stuck and not moving on. i had one issue that hosted browser did not run gwt code (while firefox did) and thought to try my luck with oophm. tried to follow instructions at http://allahbaksh.blogspot.com/2009/02/building-gwt-oophm-from-source.html and http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4a62dd27602d822d/c37fece9c24f3715?lnk=gstq=oophm+#c37fece9c24f3715 I am using gwt 1.6 on linux. Have checked out http://google-web-toolkit.googlecode.com/svn/branches/oophm, build it (throws some errors, though), got firefox extension installed, replaced my gwt-dev and gwt-user.jar files with the generated ones, but getting the error ClickHandler cannot be resolved to a type or worse :) It is obviously an older compiler not supporting the new features of 1.6. The question is, whether it is possible to use 1.6 (and now 1.7) compiler and simultaneously oophm from trunk? thanks a lot --~--~-~--~~~---~--~~ You received 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: Command Pattern, MVP, EventBus
I really think it's a purely philosophical decision - I can see how it would work fine with EventBus, I'm just choosing not to, basically. For me the line in the sand is that events are about information, commands are about action. Your mileage may vary :) David On Jul 18, 7:22 am, Kwhit kwhitting...@gmail.com wrote: On Jul 15, 9:36 pm, David Peterson da...@randombits.org wrote: - Thinking further, I think it's better to separate the EventBus from - the Command system somewhat. The reason being that generally, events - are used to update on changes that have already happened, or are about - to happen. They don't trigger the actual event itself. Yes I've been thinking about that. Any user action that interacts with the server: sign in, create account, update address, etc., has an asynchronous response. I find myself tempted to wrap the service request in and make it synchronous but that would be morally wrong and lead into all kinds of difficulties in the details. So I've gone the other route... My proof of concept implementation treats a click on the 'sign in' button as an event which it fires and forgets to the event bug. Maybe this goes too far in the other direction - time will tell. I'll post my results as soon as I've got some real experience with it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Determine implemented interfaces
Given that 'Class.getInterfaces()' and 'Class.isInstance()' are not implemented, basically all you've got is 'X instanceof Y'. A switch/ case statement perhaps? David On Jul 19, 6:04 am, Jacob jacobtop...@gmail.com wrote: I'm trying to determine whether or not an object implements a given interface at runtime. Any suggestions? --~--~-~--~~~---~--~~ You received 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: App engine data types
Juraj, Thanks for using the lib :) I'm glad it's useful. The way I came to develop that is basically to take apart another lib/module I was using (I think it was gwt-math). So, I basically just followed what I deduced from reading that module. I also tracked down a book that had some mention of the Xyz_CustomFieldSerializer idea, but really didn't give sufficient details to use it. I found that the gwt.xml was in both the server and client jars in modules I've imported, so I simply did the same thing, if there's a more efficient way to get around that, I'd love to hear about it, but it seems to work for my purposes :) The client jar has some source files that aren't compiled by javac, but are evaluated by the gwt compiler. The server jar has classes that are compiled by the javac compiler. Basically the reason for that is 'cause I had to emulate the com.google.appengine.api.datastore.* classes by putting them in the folder com/resmarksystems/emul/com/google/appengine/api/datastore/ (which gets ignored by the javac compiler) but I also needed classes that got compiled to byte code in the com/google/appengine/api/datastore folder, and those classes can't go in the client code ('cause they're in the wrong package) but the ones in the com/resmarksystems/emul/* folder can go in the client code. So, they get separated accordingly. Again, I'm sure there's gotta be a better way to do this, but it seems that modules made by google follow this pattern and I couldn't find very good documentation on how to do it. So, sorry for the confusion. please let me know if you run into issues with the library thanks! -bryce On Sat, Jul 18, 2009 at 8:57 AM, Juraj Vitkojuraj.vi...@gmail.com wrote: Thanks man! Saved me a few hours for sure. Can't believe nobody needed this yet - should be a part of GWT. It's not that I want to send a Text or a Blob via RPC - but I definitelly want my data classes to be usable at the client side (translatable). The Text I'm going to put in a String in a JDO load callback function, so that it can be RPC'ed to client and used in a standard string-ish way, and similarly in the other direction. The separation of the jars into client and server was a bit confusing to me, however I've added both into my project's classpath and then included the gwt.xml, and it seems to work. Btw. the gwt.xml (same contente) is in both of these jars - is that a bug or am I doing something wrong? thanks again, J. On Jun 12, 7:48 am, bcottam bcot...@gmail.com wrote: okay, so I dug into this a bit and figured out how to port existing code to GWT compliant standards. I also included _CustomFieldSerializers. I am currently only using Key andTextin my test code, but I ported Key,Text, Blob, ShortBlob, Link and User however I haven't tested much beyond the Key andTextclasses. here is a link to the jars and some notes about them:www.resmarksystems.com/code I hope it is helpful :) -bryce On May 14, 11:22 am, bcottam bcot...@gmail.com wrote: yeah, I actually posted there first:http://groups.google.com/group/google-appengine-java/browse_thread/th... and they suggested that I cross-post here :) I actually started using the persisteddataclasses and sending them across the gwt rpc channel, and that was fine until the datanucleus JDO started putting fields on my classes that were instances of Object [] (which don't serialize all that well). That, and I know there is going to be a performance hit with sending a lot ofdataover the channel. So, I am thinking that doing a lite DTO just for transport would possibly be my best option. I will check out Ray Cromwells posts, mainly I guess what I am looking for at this point is a good reference for using the super-source tag and how to make custom wrappers for non GWT classes (in the same manner that the java.util api is wrapped with com.google.emul etc. Any pointers in that direction would be great. thanks! On May 13, 7:59 pm, Alyxandor a.revolution.ultra.b...@gmail.com wrote: I'm really not sure, but I'd recommend checking out theAppengine google group first...http://groups.google.com/group/google-appengine-java?hl=en There's over a hundred posts a day there, so I'm sure someone there with a little more expertise than yours truly will be of more help. Out of curiosity, have you already tried sending your persistentdata classes down the wire? Cos There's a lot of discussion about it, and some workarounds {basically, the only ways I could do it was with Ray Cromwell's various hacks, or a drop-in called Gilead}. You might find that using the same beans to be nigh impossible without making them non-detachable {read: you can send an object to the client, modify it and send it back to the server to save without copying the object, or manually copying thedatafrom every field}. ...Check the other group, like I said... I'm no expert. Of
Re: GWT client side annotations
For what i know GWT has no support for reflection... i think you may get the class name from the getClass() method. On Fri, Jul 17, 2009 at 8:24 PM, Gianluigi dava...@yahoo.it wrote: Hi to all, it's first time that i try to use annotation in client side gwt application, i tried to compile that code: @Target( { ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @interface MyAnn { String value() default ; } @MyAnn(value=foo1) class B {} public class MyAnnotation { public MyAnnotation() {} public static final void foo() { B b = new B(); MyAnn ann = b.getClass().getAnnotation(MyAnn.class); GWT.log( + b.getClass().isAnnotationPresent(MyAnn.class), null); } } but when the GWT compiler reach getAnnotation OR isAnnotationPresent say to me an error like this: [ERROR] Line 31: The method isAnnotationPresent(ClassMyAnn) is undefined for the type Classcapture#1-of ? extends B What's wrong with my code? thanks for any hint Gian -- Quer aprender a programar? acompanhe: http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Dose GWT 1.7 support debug on java 6?
What I want is just your said, My jdk is 1.6.0_14-b08 (hostspot b16), os is windows 2003 sp1. Do you have any clues to work it around? On Jul 18, 3:42 am, Rajeev Dayal rda...@google.com wrote: Hi, Are you talking about debugging your GWT Application in Eclipse when it's running in hosted mode? What is the problem that you're experiencing. We've heard reports of people running into problems with debugging when using JDK 1.6.0_14. What JDK are you using? Rajeev On Fri, Jul 17, 2009 at 11:59 AM, AndOrNot hwave...@gmail.com wrote: if support, how?- 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: Dose GWT 1.7 support debug on java 6?
It seems it dosen't work in windows 2003 sp1, I recomiled GWT_TRUNK with 1.6.0_14, the UI debuging can still not work. On Jul 18, 5:02 am, tfreitas tfrei...@gmail.com wrote: Hi, I was using a version of java6 (I do not remember the version) and worked with the debugging eclipse Trunk / OOPHM in ubuntu 9.04 and firefox 3.0. After an auto-update, install java 1.6.0_14, the debugging not work (not breakpoint, nothing) I recompile my GWT_TRUNK, with the new java version 1.6.0_14 and again work debugging. I hope this helps, greetings On Jul 18, 2:42 pm, Rajeev Dayal rda...@google.com wrote: Hi, Are you talking about debugging your GWT Application in Eclipse when it's running in hosted mode? What is the problem that you're experiencing. We've heard reports of people running into problems with debugging when using JDK 1.6.0_14. What JDK are you using? Rajeev On Fri, Jul 17, 2009 at 11:59 AM, AndOrNot hwave...@gmail.com wrote: if support, how?- 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: Hyperlinks in Dockpanel
i did play around a bit with click handler but is there any working examples for something similar to wht i am looking for ? ... that will make it simple ...because i was not able to make it work as i intended to On Fri, Jul 17, 2009 at 6:06 PM, salk31 s...@redspr.com wrote: Have you played with adding OnClickHandler? In there you can update what is in the other panels. btw If you are using a Hyperlink then that is mainly for history support (lots of docs about that). If not then a Button might be more appropriate although also depends on how you want to style it. On Jul 17, 7:42 am, Jeremiah Moses jeremiah.mo...@gmail.com wrote: Hi I am trying to use hyperlinks in one of my dockpanenls that open on another when clicked ... is there a way of doing this ... basicaly my design has dockpanel which has a east,west and inbetween a north and center both east and west have several links which when clicked should open in the center panel ... is there a way of doing it plus is there any examples that does it ... any help or suggestion is welcome thanks Jeremiah --~--~-~--~~~---~--~~ You received 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 client side annotations
Java reflection can't work at client side code On Jul 18, 7:24 am, Gianluigi dava...@yahoo.it wrote: Hi to all, it's first time that i try to use annotation in client side gwt application, i tried to compile that code: @Target( { ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @interface MyAnn { String value() default ; } @MyAnn(value=foo1) class B {} public class MyAnnotation { public MyAnnotation() {} public static final void foo() { B b = new B(); MyAnn ann = b.getClass().getAnnotation(MyAnn.class); GWT.log( + b.getClass().isAnnotationPresent(MyAnn.class), null); } } but when the GWT compiler reach getAnnotation OR isAnnotationPresent say to me an error like this: [ERROR] Line 31: The method isAnnotationPresent(ClassMyAnn) is undefined for the type Classcapture#1-of ? extends B What's wrong with my code? thanks for any hint Gian --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
RPC host mode fail ...
Hi ... I have a project that demonstrates an RPC failure that I don't know how to fix.I use eclipse 3.4, gwt 1.6.4 and google-plugin. I have an RPC that is working fine in web mode (deployed under tomcat) but fails in host mode. The failure message is (when the application run in host mode): SEVERE: [1247902594529000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method '...' threw an unexpected exception: java.lang.NoClassDefFoundError: Could not initialize class com.application.core.HibernateUtil Can someone take a look at this and give some suggestions/reasons?? I don't know what to do from here. Thanks for the 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 -~--~~~~--~~--~--~---
Callin an URL from my application
Hi Group, I have a requirement where I am making use of an URL for sending mails. Some thing like this http://www.examplemailsending.com/messageapi.asp?username=usernamepassword=passworddestination=A1,A2,A3message=Hi I am making a list of all the people A1, A2, A3... to whom the Hi message needs to be sent. Can someone tell me which is the best way to implement this requirement?? PS : I necessarily need to use the link to send the message. Regards, Abhiram --~--~-~--~~~---~--~~ You received 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 Commerce - A rewrite of OSCommerce using GWT and PHP
Hi, I've opened a project called GWT Commerce at http://code.google.com/p/gwt-commerce/, my goal is to provide a rewrite of OSCommerce using GWT. I've made a lot of progress and was recently contacted by a Software Engineer who wanted to help, I've agreed and he is going to work on Administrative use cases. I think I am at the point that I would like some real community involvement. I am looking for help with: Documentation (isn't everyone), testing, some design, coding and best practice advice. Code (written so far) is checked in, I still have to get an example database checked in so that other people can run it. Also plan on placing a working demo on a domain I own, hopefully all of this by the end of the month. Please contact me if interested. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Creating Stand Alone Composite??
I'm trying to create a stand alone composite widget and am totally clueless as to how. I want to create a widget that will be able to be used in any of my multiple GWT modules. Every example on the web that I can find defines the composite in the same module that displays the composite. I need to see an example of two modules, one defining the composite and one that consumes the composite. If anyone has an example or can point to a web article showing how, I'd GREATLY appreciate it. TIA --~--~-~--~~~---~--~~ You received 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 Stand Alone Composite??
If you have the composite, create a new .gwt.xml file in this module without any entry-point tag and include this new .gwt.xml file in the other module. For instance: - you have your composite in the name space 'com.module1.client' and the content of com/module1/Module1.gwt.xml is: module inherits name='com.google.gwt.user.User' / entry-point class=com.module1.client.Module1/ /module - you want to use your composite in com.application.client whose com/application/Application.gwt.xml is module inherits name='com.google.gwt.user.User' / entry-point class=com.module1.client.Module1/ /module - create a new file in module1: com/module1/Include.gwt.xml module inherits name='com.google.gwt.user.User' / /module - Modify your application's descriptor module inherits name='com.google.gwt.user.User' / inherits name='com/application/Application'/ entry-point class=com.module1.client.Module1/ /module You have to be sure that all the source classes are in your classpath. BTW: You can pack set of composites and widgets taking care that the module's descriptor has no any entry-point tag and the .jar file contains the java source files. Manolo Carrasco On Sun, Jul 19, 2009 at 4:40 AM, ToddP todd.prick...@gmail.com wrote: I'm trying to create a stand alone composite widget and am totally clueless as to how. I want to create a widget that will be able to be used in any of my multiple GWT modules. Every example on the web that I can find defines the composite in the same module that displays the composite. I need to see an example of two modules, one defining the composite and one that consumes the composite. If anyone has an example or can point to a web article showing how, I'd GREATLY appreciate it. TIA --~--~-~--~~~---~--~~ You received 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 Commerce - A rewrite of OSCommerce using GWT and PHP
Wow its a great notice. Im newbiew in gwt, but im expert on php, i'll try help. 2009/7/18 Bob Rozelle broze...@eatlocalfood.com: Hi, I've opened a project called GWT Commerce at http://code.google.com/p/gwt-commerce/, my goal is to provide a rewrite of OSCommerce using GWT. I've made a lot of progress and was recently contacted by a Software Engineer who wanted to help, I've agreed and he is going to work on Administrative use cases. I think I am at the point that I would like some real community involvement. I am looking for help with: Documentation (isn't everyone), testing, some design, coding and best practice advice. Code (written so far) is checked in, I still have to get an example database checked in so that other people can run it. Also plan on placing a working demo on a domain I own, hopefully all of this by the end of the month. Please contact me if interested. -- Atenciosamente, Paulo Coutinho. Blog: www.prsolucoes.com/blog Site: www.prsolucoes.com Msn: pa...@prsolucoes.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 -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWTCanvas status?
Appreciate your replies, I now have a much better sense of where GWT vector graphics is heading. With my use of GWTCanvas, the fact that there was a per-pixel memory cost with the canvas tag (that does not exist with VML) forced me to do some extra work to shrink-wrap the canvas around each rendered curve. So, I can imagine how having everything sort of work like VML (element based rather than pixel based) could be a big consistency plus. I also found Ray's argument that many have tried to emulate canvas with VML and failed convincing. On the other hand: o The use of Flash would create a new proprietary dependency that does not exist with GWTCanvas at present. o Though my vector graphics needs were limited (I only required a canvas subset) I was able to do everything I wanted to using GWTCanvas (though working around the IE bugs was a pain). o Relative to other browsers, with the feature subset I used, IE's vector graphics rendering isn't nearly as slow as its HTML rendering. So, once I figured out I needed to minimize stroke count, I was happy with the IE rendering performance of GWTCanvas. From the perspective of a black-box user of GWTCanvas, except for the IE bugs (which I was able to work around) it met my application's needs well. Without it GChart would still be stuck in the visual getto of HTML-only rendering. So I hope any improved system will preserve GWTCanvas' many good features, such as being packaged as a Widget, and having a reasonably low cost per widget (which made it possible for me to give each curve it's own GWTCanvas, and update them independently). My totally biased operational definition of if any new vector graphics library is 'good': when I implement GChartCanvasLite using the new library, my live demo and tests will 'just work', and run as fast or faster than with the GWTCanvas based implementation. On Jul 17, 7:33 am, Joel Webber j...@google.com wrote: Ray's basically right about this -- you can't simulate canvas on vml (extant attempts to do so with limited success notwithstanding). When GWTCanvas was originally designed, SVG performance on some browsers was absolutely atrocious, while Canvas and VML were basically acceptable. So Jaime and I attempted to design an API that would use Canvas and VML for a rendering layer, while trying to nudge the developer towards a use pattern that would work well in practice. Since then, the situation has changed quite a lot. SVG performance on Gecko, WebKit, and Opera has finally gotten up to speed, making it possible (or at least a *lot* easier) to build a sensible scene-graph API that uses just VML and SVG. I strongly believe this will end up being a better API, because the rendering back-ends will be (more or less) equally capable and similarly constructed. Dan Rice (cc'd) has started working on this approach, but it may be a little while before it sees the light of day. In the meantime, if you have patches for any of the issues you listed in GWTCanvas, don't hesitate to let us know. Cheers, joel. On Fri, Jul 17, 2009 at 12:04 AM, Ray Cromwell cromwell...@gmail.comwrote: The only realistic way to truly emulate canvas on IE is to use Flash. VML just doesn't cut it. Even after lots of community effort on excanvas.js, it still falls short of even the old Canvas that Safari first exported, and that doesn't even take into account that performance is pretty bad too. Silverlight could be a deferred binding option as well, but Flash has 95% penetration and would work in a majority of cases. You could still fallback to VML in some of those intranet settings that don't allow plugins, but as you say, you'd have to bifurifcate the Canvas API into what's supportable by VML and what's supportable by everything else, and code your draw paths to deal with them separately. Even with Flash, there's some stuff like fetching or setting pixel data that would be quite slow, in that regard, I think image processing ops should be encoded declaratively in a scenegraph, much like Java2D/JAI Renderable, and shipped over to Flash for execution rather than trying to bring them into the browser's JS engine. -Ray On Thu, Jul 16, 2009 at 8:36 PM, John Gunther johncurtisgunt...@yahoo.com wrote: There are a number of GWTCanvas bug reports that are still categorized as New, some several months old, some submitted by me. http://code.google.com/p/google-web-toolkit-incubator/issues/list?can... Has anyone looked at these yet? Anyone have plans to fix any of them (or are there any fixes that have not yet been committed yet?) I've also noticed a project called gwt-canvas (http://code.google.com/ p/gwt-canvas/ http://code.google.com/%0Ap/gwt-canvas/) Are the two projects related in any way (they list a gwt.team.jaimeyap as a contributor, though not jaime...@google.com. Presume they are the same person, right)? I was thinking of trying to better understand and maybe even fix