can it be source path='test.vo.example'/ ?
How can i do this source path='test.vo.example'/ . I just want the following sub package included. Can? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Performance overhead of virtual methods
nathan.r.matth...@googlemail.com wrote: Hi GWTers I'm writing some performance sensitive code for GWT. I'm wondering how GWT compiles virtual functions to JavaScript. What's the associated performance overhead? Obviously I'd like to use proper polymorphism but if there's a significant performance overhead it may be worth re- factoring various parts of the code-base. Regards, Nathan Hi Nathan, Someone else can correct me if I'm wrong, but after taking a look at the generated code, it seems that virtual methods shouldn't incur any additional performance overhead in GWT. Basically the bottom level method is given the top-level declared name in each object instance, thus the lookup expense is the same as that of a non-virtual method. Like I said, if I'm wrong on this, someone should correct me. ;) Cheers, Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Proxy class generation
Madhu CM wrote: Hi all, I am new to GWT, and i like the way its been implemented. But i am struck up with something I have developed sample application just to do RPC. when i do GWT.create() . where will be the proxy class generated ? is it done dynamically?dynamically create object for Async?? please explain about this . Thanks, The Proxy class is generated at compile time through whats known as Deferred Binding. Take a look here for more information about GWT.create(...): http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideDeferredBinding Basically the GWT.create(...) method is used to run a bit of special code during the compilation which can generate additional code. It's also using in GWT localization, ImageBundles and a few other places. It's not a runtime method (it doesn't exist at runtime). Hope that helps. Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 change the name of the host html page in project
Could you post what you did to make this work? I am not having any success with the link http://java.dzone.com/tips/getting-rid-package-based-gwt-. Also I don't use eclipse, could you explain in non-eclipse terms how I can remove the package names from the browser URLs? -Dave 2008/12/29 giannisdag pascoua...@gmail.com Thank you, it is very simple as it should be. On 29 Δεκ, 16:13, Ian Bambury ianbamb...@gmail.com wrote: Don't do all that. Rename the page to index.html. In any .launch file, rename just the ProjectName.html part - just one place - leave everything else alone. Ian http://examples.roughian.com 2008/12/29 giannisdag pascoua...@gmail.com Hi, I can' t figure out the solution to a simple problem. I want to rename my first html page to index.html. I am using eclipse. I have renamed the html page and the corresponding java class file to index.htm. Also i have changed the entry point of the settings xml file to entry-point class='com.xel.gwt.client.index'/ But when i am running in host mode, i keep getting the following error. [WARN] Resource not found: villaView.html; (could a file be missing from the public path or a servlet tag misconfigured in module com.xel.gwt.villaView.gwt.xml ?) [TRACE] The development shell servlet received a request for 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' How can I change the development shell servlet to fix the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT+SPRING+MAVEN
Hi, You can look at http://code.google.com/p/net-orcades-spring/ which should fit yours needs. Please, let me know. On Mon, Dec 29, 2008 at 4:47 PM, Arthur Kalmenson arthur.k...@gmail.com wrote: Hi Mikhail, Are you using Spring Security? If so, this should be fairly easy to do. You need to have a DTO for your UserDetails and GrantedAuthority classes (i.e. a DTO that doesn't implement those interfaces). Then just have a RemoteService where you can ask Spring Security for the user details. -- Arthur Kalmenson On Fri, Dec 26, 2008 at 5:06 AM, Mikhail M itmo@gmail.com wrote: Good day. I work on a project (client server application) where I use GWT + SPRING + MAVEN. And now I need to add auth block to determine if users have any rights to perform any actions. Do you have any ideas, links or something which could be helpful in this terribly perfect situation? ) Thanks much -- Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 change the name of the host html page in project
Once compiled, take all the files inside the package-name folder and put them wherever you like. You can also change the host html page name to anything you want. If you change it in the source code, you will have to change it in any file that runs hosted mode. Just change 'MyProject.html' to the new name i.e. if there is no '.html' after the 'MyProject', don't change it because it is referring to something else - the actual project itself or maybe the prefix to the gwt.xml file. That is the problem with the project creator, although it makes things easy by asking for one name (e.g. MyProject) it names everything as MyProject - the main class file, the html file, the gwt.xml file, the launch files, and the project folder. If you go to my site and join up (and confirm your email address, just so people can't subscribe other people) for the free email course, the first day (which is sent immediately) there is a project you can download which has all the elements named differently. You can always unsubscribe immediately afterwards - the course mostly assumes you have Eclipse, so a lot of it might not be relevant for you. Ian http://examples.roughian.com 2009/1/3 David Hoffer dhoff...@gmail.com Could you post what you did to make this work? I am not having any success with the link http://java.dzone.com/tips/getting-rid-package-based-gwt-. Also I don't use eclipse, could you explain in non-eclipse terms how I can remove the package names from the browser URLs? -Dave 2008/12/29 giannisdag pascoua...@gmail.com Thank you, it is very simple as it should be. On 29 Δεκ, 16:13, Ian Bambury ianbamb...@gmail.com wrote: Don't do all that. Rename the page to index.html. In any .launch file, rename just the ProjectName.html part - just one place - leave everything else alone. Ian http://examples.roughian.com 2008/12/29 giannisdag pascoua...@gmail.com Hi, I can' t figure out the solution to a simple problem. I want to rename my first html page to index.html. I am using eclipse. I have renamed the html page and the corresponding java class file to index.htm. Also i have changed the entry point of the settings xml file to entry-point class='com.xel.gwt.client.index'/ But when i am running in host mode, i keep getting the following error. [WARN] Resource not found: villaView.html; (could a file be missing from the public path or a servlet tag misconfigured in module com.xel.gwt.villaView.gwt.xml ?) [TRACE] The development shell servlet received a request for 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' How can I change the development shell servlet to fix the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to change the name of the host html page in project
Thanks for the reply. It sounds like you are suggesting a manual process. I'm looking for an auto process, something I can do in code/xml/html and it just works. I use maven to build a war, I don't have the option of manually moving files around. Is there a way I can code this in my gwt.xml and/or html, etc? Again, my goal here is to remove the package names from the URLs so the site URLs look more 'normal'. I.e. my index.html file (which is my welcome-file in my web.xml) points to com.mycompanyname.website.App/App.html. I don't want users to see all this package stuff. -Dave 2009/1/3 Ian Bambury ianbamb...@gmail.com Once compiled, take all the files inside the package-name folder and put them wherever you like. You can also change the host html page name to anything you want. If you change it in the source code, you will have to change it in any file that runs hosted mode. Just change 'MyProject.html' to the new name i.e. if there is no '.html' after the 'MyProject', don't change it because it is referring to something else - the actual project itself or maybe the prefix to the gwt.xml file. That is the problem with the project creator, although it makes things easy by asking for one name (e.g. MyProject) it names everything as MyProject - the main class file, the html file, the gwt.xml file, the launch files, and the project folder. If you go to my site and join up (and confirm your email address, just so people can't subscribe other people) for the free email course, the first day (which is sent immediately) there is a project you can download which has all the elements named differently. You can always unsubscribe immediately afterwards - the course mostly assumes you have Eclipse, so a lot of it might not be relevant for you. Ian http://examples.roughian.com 2009/1/3 David Hoffer dhoff...@gmail.com Could you post what you did to make this work? I am not having any success with the link http://java.dzone.com/tips/getting-rid-package-based-gwt-. Also I don't use eclipse, could you explain in non-eclipse terms how I can remove the package names from the browser URLs? -Dave 2008/12/29 giannisdag pascoua...@gmail.com Thank you, it is very simple as it should be. On 29 Δεκ, 16:13, Ian Bambury ianbamb...@gmail.com wrote: Don't do all that. Rename the page to index.html. In any .launch file, rename just the ProjectName.html part - just one place - leave everything else alone. Ian http://examples.roughian.com 2008/12/29 giannisdag pascoua...@gmail.com Hi, I can' t figure out the solution to a simple problem. I want to rename my first html page to index.html. I am using eclipse. I have renamed the html page and the corresponding java class file to index.htm. Also i have changed the entry point of the settings xml file to entry-point class='com.xel.gwt.client.index'/ But when i am running in host mode, i keep getting the following error. [WARN] Resource not found: villaView.html; (could a file be missing from the public path or a servlet tag misconfigured in module com.xel.gwt.villaView.gwt.xml ?) [TRACE] The development shell servlet received a request for 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' How can I change the development shell servlet to fix the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
1.6 : New event system
I heard that the listener is deprecated in 1.6 (and removed in 2.0) and will be replaced by handler. So how to put event on a DOM element ? Is there a method like seteventhandler for DOM element ? 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: Performance overhead of virtual methods
Assuming you meant 'virtual' in the C++ sense, then, nothing. On Jan 3, 1:09 pm, Jason Morris lem...@gmail.com wrote: nathan.r.matth...@googlemail.com wrote: Hi GWTers I'm writing some performance sensitive code for GWT. I'm wondering how GWT compiles virtual functions to JavaScript. What's the associated performance overhead? Obviously I'd like to use proper polymorphism but if there's a significant performance overhead it may be worth re- factoring various parts of the code-base. Regards, Nathan Hi Nathan, Someone else can correct me if I'm wrong, but after taking a look at the generated code, it seems that virtual methods shouldn't incur any additional performance overhead in GWT. Basically the bottom level method is given the top-level declared name in each object instance, thus the lookup expense is the same as that of a non-virtual method. Like I said, if I'm wrong on this, someone should correct me. ;) Cheers, Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Who's Using GWT?
We're using GWT for the whole UI of Bionic Books, which is a small business accounting application: http://www.bionicbooks.com. Honestly I love GWT; Bionic Books has been written completely by 1 person (me) and I believe that there is no other technology that would have allowed me to build something of this sophistication in the relatively short time it took. In terms of requested features I can't really think of much; we, as I'm sure almost everyone has done, have written quite a lot of bespoke controls with richer functionality, e.g. we have our own combo boxes, multilevel dropdowns, extended ajax-ey list boxes with Loading..., etc and I think that there is possibly some ground to be gained in terms of richer controls. At some point we're going to review our codebase to see what we can contribute back. Thanks to all at Google and to everyone else who has submitted to GWT Jon Vaughan Bionic Books On Dec 12 2008, 1:39 am, Sumit Chandel sumitchan...@google.com wrote: Hello everyone, We've recently updated the GWT homepage to include a page displaying a non-exhaustive list of applications that are built with GWT. We were also able to capture a few developers on video for those who happened to be around the Google Mountain View area and developed awesome applications using GWT. Check out more details on both of these at the link below: Who's Using GWT?:http://code.google.com/webtoolkit/app_gallery.html It's great that we were able to catch some of our local developers on video, but we know there are other great stories out there from other developers in the community. So, I thought it would be cool if I stickied this Groups thread for community members to share their experience with everyone. Feel free to post up your own GWT application(s), along with your most loved / requested features and any tips and tricks you've come across as you developed your applications that you'd like to share with the rest of the community. Looking forward to hearing from you. Cheers, -Sumit Chandel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
doubt
how to run the java application by using the 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: Getting data out of gwt grid
I did not see a reply but here is what I did. Sinceyou have the store, ask for the record at the row index and then the field name. For instance, I have a store with fields named property and value. When I modify a value, I want the name of the property associated with the value I changed. I already get the row and column from the listener, eg., addEditorGridListener(new EditorGridListenerAdapter() {public void onAfterEdit(GridPanel grid, Record record, String field, Object newValue, Object oldValue, int rowIndex, int colIndex) I then ask the store for the record at row (say 4), and then ask for the value of the field property store.getAt(4).getAsString(property) This returns to me the name of the value I changed. Hope this helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 project creation indefinetly creates folder recursively
Hi, I'm trying to setup GWT in my machine and followed the steps given in the instruction and created an eclipse project using projectCreator, I was little amazed to see the project size of more than 500MB while importing it into eclipse but only to find the script has created unlimited recursive files inside MyProject folder, the worst part is its getting created again automatically after deleting it and even after restarting the machine. How to stop this script from executing? Did anyone got this error before? Any help would be appreciated. Thanks. --Raj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 maps API
Hi all!!! I am currently developing a desktop application which I am trying to incorporate the capabilities of Google Maps and I came across the GWT which I think is great. SO, I set up a new eclipse project and go through the tutorials. I would like incorporate the geocoding capabilities in a separate project without having to have to set up a new GWT project. Is it possible? if yes, how can I accomplish this. Thank you rsoto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Resizable Panel
Figured out myself .Here is a code example for a resizable and dragable panel public class DragPanel extends VerticalPanel { private boolean drag_drop = false; private boolean move = false ; private Element movingPanelElement; public void setMovingPanelElement(Element movingPanelElement) { this.movingPanelElement = movingPanelElement; } public DragPanel() { super(); DOM.sinkEvents(this.getElement(), Event.ONMOUSEDOWN | Event.ONMOUSEMOVE | Event.ONMOUSEUP | Event.ONMOUSEOVER); } @Override public void onBrowserEvent(Event event) { final int eventType = DOM.eventGetType(event); if (Event.ONMOUSEOVER == eventType) { if (isCursorResize(event)) { DOM.setStyleAttribute(this.getElement(), cursor, s-resize); } else if(isCursorMove(event)){ DOM.setStyleAttribute(this.getElement(),cursor, move); }else { DOM.setStyleAttribute(this.getElement(), cursor, default); } } if (Event.ONMOUSEDOWN == eventType) { if (isCursorResize(event)) { if (drag_drop == false) { drag_drop = true; DOM.setCapture(this.getElement()); } }else if(isCursorMove(event)){ DOM.setCapture(this.getElement()); move = true; } } else if (Event.ONMOUSEMOVE == eventType) { if(!isCursorResize(event)!isCursorMove(event)){ DOM.setStyleAttribute(this.getElement(), cursor, default); } if (drag_drop == true) { int absY = DOM.eventGetClientY(event); int originalY = DOM.getAbsoluteTop(this.getElement()); if(absYoriginalY){ Integer height = absY-originalY; this.setHeight(height + px); } }else if(move == true){ RootPanel.get().setWidgetPosition(this, DOM.eventGetClientX (event),DOM.eventGetClientY(event)); } } else if (Event.ONMOUSEUP == eventType) { if(move == true){ move = false; DOM.releaseCapture(this.getElement()); } if (drag_drop == true) { drag_drop = false; DOM.releaseCapture(this.getElement()); } } } protected boolean isCursorResize(Event event) { int cursor = DOM.eventGetClientY(event); int initial = this.getAbsoluteTop(); int height = this.getOffsetHeight(); if (initial + height - 20 cursor cursor = initial + height) return true; else return false; } protected boolean isCursorMove(Event event){ int cursor = DOM.eventGetClientY(event); int initial = movingPanelElement.getAbsoluteTop(); int height = movingPanelElement.getOffsetHeight(); if(initial = cursor cursor = initial + height) return true; else return false; } } On Jan 2, 10:08 am, Dev ratn@gmail.com wrote: Is there any way to have a 'Resizable'panelin GWT. ByresizableI mean that if you you drag on the edge ofPanelit can be resized accordingly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
TextArea inside a Window?
Does anyone know whether or not a TextArea or TextBox inside of a floating Window would cause any problems? When I add the TextArea to a panel that's not in the window it's fine, but then when I try adding it to the window the window gets all messed up (it has an infinite width or something and fills up the whole screen). Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Panel not clearing?
Hey, so right now I'm having this unusual problem with one of the panels I made and I don't quite understand what's happening. Here's my code: bioText = new Panel(); bioText.setAutoScroll(true); String sampleURL = img src = 'http://www.vella-gulf.navy.mil/Site %20Images/under_construction.jpg' /; bioText.setHtml(sampleURL); ToolbarButton bioNew = new ToolbarButton(New Page); bioNew.addListener(new ButtonListenerAdapter() { public void onClick(Button button, EventObject e) { bioText.clear(); } }); Toolbar editBio = new Toolbar(); editBio.addButton(bioNew); So basically I click the button on the toolbar and the panel is supposed to clear but it doesn't. This is weird because within the same class I do the same identical set of commands just using a different toolbar and clearing a different panel and it works fine. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Images not displaying after Upload
GWT: 1.5.2 Hi, I am having a problem displaying images after they have been uploaded to through my web application. My file upload screen has the file upload component, with a scaling mechanism sitting behind it, which all works perfectly. Once a file has been upload the upload service returns the URL of the created image back to the client, which I then use on the client side to add a new image object to my preview panel on the same page, however the image does not display. Ultimately, I get a string and build the following code to display the image on the preview panel using //imagefolder =images, which is the name of my base folder in build/ classes/com/mydev/web/ui/public //URL = returned URL from file upload for example 2/2008/11/30/1230664382652 //ImageSizes.SMALL = small //ImageSizes.IMAGETYPE = JPG //full URL equals images/2/2008/11/30/1230664382652small.JPG Image newImage = new Image(imageFolder+/+URL+ ImageSizes.SMALL +.+ImageSizes.IMAGETYPE); However once this displays on the screen the image does not appear but the empty box instead. What bothers me is that if I add the following code to my preview panel the image displays on a recompile: Image newImage = new Image(images/ 2/2008/11/30/1230664382652small.JPG); Ok so I am not left with logically trying to understand what is the difference/problem here and I been thinking along the lines of: 1. Input Streams from upload not closed when create image object first, however since I can open the image and see all details correctly in the folder structure I do not think this is the issue. 2. There may be a need to do a refresh on the panel, which I am currently trying to investigate. I have been investigating and debugging this for about 3 days now and have had no luck searching forums. I am hoping somebody here with a deeper understanding of how browsers/GWT handles image retrieval can point me in the right directions. Any help with this would be much appreciated. Thanks, Noel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 creation indefinetly creates folder recursively
Honestly, I find this sort of funny. Ive never heard of anything like it. No idea how to avoid that - try a previous version maybe. -Joseph On Jan 3, 3:09 am, Raj raj...@gmail.com wrote: Hi, I'm trying to setup GWT in my machine and followed the steps given in the instruction and created an eclipse project using projectCreator, I was little amazed to see the project size of more than 500MB while importing it into eclipse but only to find the script has created unlimited recursive files inside MyProject folder, the worst part is its getting created again automatically after deleting it and even after restarting the machine. How to stop this script from executing? Did anyone got this error before? Any help would be appreciated. Thanks. --Raj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Newbie Question on GWT/JSON
I am new to the Web application world; I am trying to encapsulate my set of data in a JSONObject, convert to string, and send it (async POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial discusses the trip from the server back to the client and not the other way around where I am unclear about. Do I need to set the header? Currently I set it to: builder.setHeader(Content-Type, application/x-www-form- urlencoded); However, this works fine as long as am sending key1=value1key2=values where I can retrieve variable via $_POST ['key1'] or $_POST['key2'] But I am not sure how to send a JSON string where it can be retrieved in a php page. I have tried sending myvar=MyJsonString but cannot retrieve in my php page. How should $_POST reference the JSON object? Any clarification would be much appreciated. Thanks, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and applets
Looks like you're trying to compile your Applet code with GWT. That will never work (not emulated; obviously you don't want to convert your applet into Javascript, even if it were possible). Compile it with plain Javac outside your GWT project or on the server side of your project and then you include the class or jar file that defines your applet in the public directory so that it is visible to your AppletPanel class. Then you'll have to run your application in web mode to test your applet. On Jan 2, 11:39 am, DAve smith.davi...@gmail.com wrote: Hi, I'm probably missing something simple here, but I can't find the answer elsewhere. I just want to display an applet in my GWT code. OS: Windows XP Java: JDK 1.6.0_10 Other: GWT, GWT-Ext 2.0.5 Here is the applet (obviously simplified for testing): precodepackage foo.applet; import javax.swing.JApplet; import java.awt.Graphics; public class HelloApplet extends JApplet { public void paint(Graphics g) { g.drawRect(0, 0, getSize().width - 1, getSize().height - 1); g.drawString(Hello world!, 5, 15); }} /code/pre Here is the code calling it: precode package foo.applet; import com.google.gwt.user.client.ui.HTML; import com.gwtext.client.widgets.Panel; public class AppletPanel extends Panel { /code/pre public AppletPanel() { HTML applet = new HTML(); applet.setHTML(applet name=\HelloApplet\ code= \HelloApplet.class\ width=\300\ height=\300\ ); this.add(applet); } } When I launch the app in hosted mode, the jvm crashes (filed incident 1425130 with Sun). When I try to compile the GWT code for running in a browser, I get this: [ERROR] Errors in 'file:/C:/blah/applet/ HelloApplet.java' [ERROR] Line 3: The import javax.swing cannot be resolved [ERROR] Line 4: The import java.awt cannot be resolved [ERROR] Line 6: JApplet cannot be resolved to a type [ERROR] Line 8: Graphics cannot be resolved to a type [ERROR] Line 11: The method getSize() is undefined for the type HelloApplet [ERROR] Line 12: The method getSize() is undefined for the type HelloApplet Obviously I'm missing some applet library, but I've grepped through all the jars in the jdk and tried including all of the ones that list JApplet or awt (plugin.jar, resources.jar, rt.jar, deploy.jar, javaws.jar). Also, I'm pretty sure once I solve this problem there's another one lurking right after it, but I'll save that for another question. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Extra pixels above image when added to popup panel
Hi all, I am using the lates release of gwt (gwt-windows-1.5.3). now the problem is that whenever I am adding an image to a popup panel the size of the popup panel increases by few extra pixels on top of the image. on the sides and on the bottom the popup panel adjusts to the size of the image. What can be the problem?? Regards Yasser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Getting java.net.SocketTimeoutException: Read timed out
Hi All, I occassionally get this exception when my app's page is getting downloaded in the broser. In my application, I make few rpc calls to fetch the data once the JSP is downloaded by the browser. Any help in this will greatly be appreciated. No concrete answer could be found for this on the internet but it seeems others have faced this problem too. Stack Trace: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at org.apache.coyote.http11.InternalInputBuffer.fill (InternalInputBuffer.java:747) at org.apache.coyote.http11.InternalInputBuffer $InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead (IdentityInputFilter.java:115) at org.apache.coyote.http11.InternalInputBuffer.doRead (InternalInputBuffer.java:712) at org.apache.coyote.Request.doRead(Request.java:427) at org.apache.catalina.connector.InputBuffer.realReadBytes (InputBuffer.java:283) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:379) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java: 298) at org.apache.catalina.connector.CoyoteInputStream.read (CoyoteInputStream.java:180) at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:146) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.java:335) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:77) at org.gwtwidgets.server.spring.GWTSpringController.handleRequest (GWTSpringController.java:82) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle (SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:523) at org.springframework.web.servlet.FrameworkServlet.doPost (FrameworkServlet.java:463) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Newbie Question on GWT/JSON
Whatever possessed you to send the application/x-www-form- urlencoded as mime type? JSON is nothing like form-encoded. That's like sending your HTML as image/jpeg just for kicks. Don't do that. JSON's mimetype is application/json (see [1] below). If you want to be nice, you should actually set that in the header (as follows: Content-type: application/json; encoding=UTF-8 - note that JSON is defined to be UTF-8 encoded, so you're just clarifying there, you can't pick your own encoding). And, yes, of course, in PHP you would have to get the entire request body, instead of letting PHP try to parse it as form data. Possibly PHP is presuming that the data IS form encoded when there is no header at all. Is file_get_contents(php://input); really the only feasible way to get the entire body in PHP? Oh, PHP. Every single time someone posts a code snippet written in PHP, my aesthetic sense blows its brains out in sheer despair. And this one is up there, which is really saying something. I think its a conspiracy by the zend folks to make the inner child of developers worldwide die a little inside every time they come in contact with it. Sadistic bastards. On Jan 4, 6:52 am, Ian ikra...@gmail.com wrote: For those who might be facing a similar problem and others who might be interested in my previous question I have come up with an answer. First my disclaimer: the solution below may not be the proper one but it does work. Now on to the solution: On the GWT Client Side: JSONObject jObject = new JSONObject(); jObject .put(propA, new JSONString(valA)); jObject .put(... RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, YOUR_PHP_URL); builder.sendRequest(jObject.toString(), new YourReponseHandler()); Note that there is no setHeader. On the PHP side: Get the raw data instead of $_POST $jsonReq = file_get_contents(php://input); Decode the json request $request = json_decode($jsonReq); Cheers, Ian On Jan 3, 10:09 pm, Ian ikra...@gmail.com wrote: I am new to the Web application world; I am trying to encapsulate my set of data in a JSONObject, convert to string, and send it (async POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial discusses the trip from the server back to the client and not the other way around where I am unclear about. Do I need to set the header? Currently I set it to: builder.setHeader(Content-Type, application/x-www-form- urlencoded); However, this works fine as long as am sending key1=value1key2=values where I can retrieve variable via $_POST ['key1'] or $_POST['key2'] But I am not sure how to send a JSON string where it can be retrieved in a php page. I have tried sending myvar=MyJsonString but cannot retrieve in my php page. How should $_POST reference the JSON object? Any clarification would be much appreciated. Thanks, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Limiting text length in rich text area widget
Hi, I want to limit the text length inside the rich text area widget provided by GWT. But there is no implementation of a method like maxLength in this widget. I have tried implementing it using substring inside keyboardlistener but the problem is that I lose all the HTML formatting. Can anybody suggest a possible workaround. Regards Yasser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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] DOM event 1.6
If the listener is removed in 1.6, how to put event on a DOM element ? is there a method like seteventhandler for DOM element ? Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Am I going nuts? JavaScriptObject fields not accessible in JSNI.
I tried to do something fairly simple: package testpackage; public class MyClass { @SuppressWarnings(unused) private JavaScriptObject rawMap = JavaScriptObject.createObject(); private native void setSomething(String x) /*-{ th...@testpackage.client.myclass::rawMap[foo] = x; }-*/; private native String getSomething() /*-{ return th...@testpackage.client.myclass::rawMap[foo]; }-*/; } but it doesn't work - 'rawMap' doesn't exist according to GWT. (member not found; expect subsequent errors). Yet when I replace my rawMap with an identical line, except making rawMap an int, the error goes away. I've worked around it with non-JSNI wrapper methods that pass the JSO into and out of JSNI methods, but shouldn't the above code just work? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Am I going nuts? JavaScriptObject fields not accessible in JSNI.
I swear I looked for 30 seconds+ for typos and even copypasted the package name, but, of course, I typoed the field name. Ignore this, my bad. On Jan 4, 8:23 am, Reinier Zwitserloot reini...@gmail.com wrote: I tried to do something fairly simple: package testpackage; public class MyClass { @SuppressWarnings(unused) private JavaScriptObject rawMap = JavaScriptObject.createObject(); private native void setSomething(String x) /*-{ th...@testpackage.client.myclass::rawMap[foo] = x; }-*/; private native String getSomething() /*-{ return th...@testpackage.client.myclass::rawMap[foo]; }-*/; } but it doesn't work - 'rawMap' doesn't exist according to GWT. (member not found; expect subsequent errors). Yet when I replace my rawMap with an identical line, except making rawMap an int, the error goes away. I've worked around it with non-JSNI wrapper methods that pass the JSO into and out of JSNI methods, but shouldn't the above code just work? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---