Installer for Deploying GWT Applications
Hi All, Could someone guide me on how I can make an installer that can be used to deploy the GWT application I have developed? I intend to give it out to user, who doesn't have any technical knowledge on this. The user expects an installer where he can click all the way through, just like the way one would install Office. Looking forward to your response! Simon Peter Muwanga www.openxdata.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted mode doesn't work at all on my Vista notebook under Eclipse
Well that was a hellish 3 hours of my life that i'll never get back. For some reason localhost isn't working on my notebook with jetty. 127.0.0.1 though does work with it. On Aug 4, 12:34 am, Trevis trevistho...@gmail.com wrote: Ok, so i compiled it, downloaded tomcat 6 and ran the tests there and it works no problem. Why isnt jetty responding?!?!?! On Aug 3, 11:58 pm, Trevis trevistho...@gmail.com wrote: Ok, it has nothing to do with eclipse because the ant launchedhostedmodedoesn't work either. This is so frustrating! On Aug 3, 11:36 pm, Trevis trevistho...@gmail.com wrote: I've been developing pretty heavily in GWT on my desktop for the past month, tomorrow i'm going on a trip and trying to get my notebook ready to do builds. For the life of me i can not get GWT to work with it. I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the latest GWT version and eclipse plugin and it still does the same thing. I can create projects, compile them but i can not launchhostedmode. The Jetty browser andhostedserver launch but i get an error in the browser and nothing but a simple message in Jetty Starting Jetty on port 8080 (with two success messages beneath it) What is going on? I don't think that jetty is accepting requests. This is on Windows Vista 32 with IE8. Things were flawless on my desktop so i'm at a loss. I can create a project and compile it but if i launchhostedmodei just get an error in the browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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
Hi Travis, Thanks for those hints. It looks helpful. I managed to get something running in the hosted mode, but I still get a 404 error when I place the code on my server. Her is my code on the server side: /// public class UploadFileServlet extends HttpServlet implements Servlet { private static final long serialVersionUID = 1L; public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType(text/html); FileItem uploadItem = getFileItem(req); if(uploadItem == null) { resp.getWriter().write(NO-SCRIPT-DATA); return; } resp.getWriter().write(new String(uploadItem.get())); } private FileItem getFileItem(HttpServletRequest req) { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); upload.setFileSizeMax(1); try { List items = upload.parseRequest(req); Iterator it = items.iterator(); while(it.hasNext()) { FileItem item = (FileItem) it.next(); if(!item.isFormField() uploadFormElement.equals (item.getFieldName())) { return item; } } } catch(FileUploadException e){ return null; } return null; } } /// Do you think that the error is coming from this code of from the configuration of my server or something else in the rest of my code? Thanks a lot for your help. On Aug 3, 6:07 pm, Trevis trevistho...@gmail.com wrote: This book as a chapter which holds your hand through fileuploadinGWTwith Apache Commons:http://coolandusefulgwt.com/ The book is a tad out of date but still helpful. Here's an online example using apache but you'll still need the stuff to create the form on the client side to initiate theuploadfromgwt. I'm sure that there is an example online, but i'll leave that googling to you. http://commons.apache.org/fileupload/using.html On Aug 3, 1:12 am, Vinz369 vincentriv...@gmail.com wrote: Hi twittwit, And thanks for your reply. What I want is quite simple. I want to be able to place a button in my UI. When he user clicks on this button he can retrieve a file on his machine and clicking another button it willuploadit to the server hosting the website. I tried with fileupload fromgwt,gwt-ext, and others but I usually get the error that my server code is not found when I click on the uploadbutton. Would it be possible to know step by step how should I proceed? On Aug 2, 10:09 pm, twittwit ytbr...@gmail.com wrote: if you mean common fileupload. it should be at the server. nope for web.xml. and nope for project.gwt.xml -- since you putting common fileupload to the server. try to be more clear ini what u want? and where is the problem. On Jul 21, 4:13 pm, Vinz369 vincentriv...@gmail.com wrote: Hello twittwit and others, I've been trying to implement fileuploadfor days in my application. It may looks stupid but I really don't understand how it works. I have few questions: - If I want to use the same code as twittwit where should I place it? in my client folder or server folder? should I add something else in my web.xml and project.gwt.xml files? I'm completely lost, please help me! On Jul 18, 10:15 am, twittwit ytbr...@gmail.com wrote: 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 { ServletFileUploadupload= 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
Re: General Question about Coding
Check your imports... There are to NodeList in GWT: com.google.gwt.dom.client.NodeList com.google.gwt.xml.client.NodeList You should be sure you import com.google.gwt.xml.client.NodeList not com.google.gwt.dom.client.NodeList. Thats the cause of the error.. Bye, Norman 2009/8/3 Rahul coolrahul18...@gmail.com: Hi, I have a general question about coding. I am working with XML documents presently and I am not able to understand what cast to an object does. for example: NodeList URLs = (NodeList) root.getChildNodes(); this gives me an error of [ERROR] Uncaught exception escaped java.lang.ClassCastException: com.google.gwt.xml.client.impl.NodeListImpl cannot be cast to com.google.gwt.dom.client.NodeList but when i change the code to com.google.gwt.xml.client.NodeList URLs = root.getChildNodes(); this works fine also again Document xmlDoc = (Document) XMLParser.parse(response.getText()); this gives me an error but com.google.gwt.xml.client.Document xmlDoc = XMLParser.parse (response.getText()); does not can someone explain why does this happen?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Using SOYC
Thanks a lot for this post. It works great. The GWT team has made a great job on the split code feature and SOYC is a good feedback. Baptiste B. On 23 juil, 09:12, kuvera bors...@gmail.com wrote: Thanks. Now I was able to create the artifacts files with Compiler into an extra directory, but I still got the SoycDashboard error. Later I realized that the stream error was caused by the zero-length dependencies0.xml inside dependencies0.xml.gz. So I removed that file from the arguments and html files were now created. For those, who want a quick start withSOYC, here's what you need to do in the webapp's ant build file: In the gwtc target add these arguments: arg value=-soyc/ arg value=-extra/ arg value=extra/ Create a new target: target name=soyc java failonerror=true fork=true dir=extra/test1/soycReport classname=com.google.gwt.soyc.SoycDashboard classpath pathelement location=${gwt.sdk}/gwt-soyc-vis.jar/ path refid=project.class.path/ /classpath jvmarg value=-Xmx1024M/ arg value=-resources/ arg value=${gwt.sdk}/gwt-soyc-vis.jar/ arg value=stories0.xml.gz/ !-- arg value=dependencies0.xml.gz/ -- arg value=splitPoints0.xml.gz/ /java /target Modify test1 with your module's (rename-to) name. Run: ant If dependencies0.xml.gz is larger than 10 bytes, uncomment its line in the ant script Run: antsoyc cheers, Kuvera On Jul 22, 6:31 pm, davidRoe roe.da...@gmail.com wrote: I believe this was changed to -extra extradir On Jul 22, 9:23 am, kuvera bors...@gmail.com wrote: Hi, I have just built GWT from trunk, and I would like to inspect the component sizes in one of my modules withSOYC, using it for the first time. The only specification I found was in the wiki named CodeSplitting, so I set it up as specified there. I found that using GWTCompiler class the -aux folder gets created, but running SoycDashboard fails with Error creating html file. Unexpected end of ZLIB input stream. When I use the new Compiler class with the -soycflag, no metadata is created at all. Any tips are welcome. thanks, kuvera --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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
Perhaps, you could use gwtupload http://code.google.com/p/gwtupload/ which simplifies this process and has documentation about configuring your server side. Manolo Carrasco On Mon, Aug 3, 2009 at 8:12 AM, Vinz369vincentriv...@gmail.com wrote: Hi twittwit, And thanks for your reply. What I want is quite simple. I want to be able to place a button in my UI. When he user clicks on this button he can retrieve a file on his machine and clicking another button it will upload it to the server hosting the website. I tried with fileupload from gwt, gwt-ext, and others but I usually get the error that my server code is not found when I click on the upload button. Would it be possible to know step by step how should I proceed? On Aug 2, 10:09 pm, twittwit ytbr...@gmail.com wrote: if you mean common fileupload. it should be at the server. nope for web.xml. and nope for project.gwt.xml -- since you putting common fileupload to the server. try to be more clear ini what u want? and where is the problem. On Jul 21, 4:13 pm, Vinz369 vincentriv...@gmail.com wrote: Hello twittwit and others, I've been trying to implement fileuploadfor days in my application. It may looks stupid but I really don't understand how it works. I have few questions: - If I want to use the same code as twittwit where should I place it? in my client folder or server folder? should I add something else in my web.xml and project.gwt.xml files? I'm completely lost, please help me! On Jul 18, 10:15 am, twittwit ytbr...@gmail.com wrote: 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 { ServletFileUploadupload= 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 agwtfileupload 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 fileupload. 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
Re: ant gwtc, change destination path
Never mind. I add something like arg value=-war /arg value=resources / and now it solved. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Is gwt1.6/1.7 supports/compatible with gears
Hi all, I am getting some problem while adding gears to gwt1.6/1.7. Please reply 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: fileupload: ensuring the same file being uploaded
Thanks manuel for your reply. I tried gwtupload. It was not working for me but I suspect it was because of the configuration. Since I am very close to my goal using the files I currently have, I would like to be able to make this very simple example work and understand how it works before going into more complicated things. The upload is working fine so far in hosted mode, but still no luck with the website on the server. I have another question. At the beginning of this thread you told to twittwit to use item.getName() to get the name of the file he wanted to upload. However for me, getName() and getFieldName() both return the name of the field which is uploadFormElement in my case. On Aug 4, 7:53 am, Manuel Carrasco Moñino manuel.carrasc...@gmail.com wrote: Perhaps, you could use gwtupload http://code.google.com/p/gwtupload/ which simplifies this process and has documentation about configuring your server side. Manolo Carrasco On Mon, Aug 3, 2009 at 8:12 AM, Vinz369vincentriv...@gmail.com wrote: Hi twittwit, And thanks for your reply. What I want is quite simple. I want to be able to place a button in my UI. When he user clicks on this button he can retrieve a file on his machine and clicking another button it will upload it to the server hosting the website. I tried with fileupload from gwt, gwt-ext, and others but I usually get the error that my server code is not found when I click on the upload button. Would it be possible to know step by step how should I proceed? On Aug 2, 10:09 pm, twittwit ytbr...@gmail.com wrote: if you mean common fileupload. it should be at the server. nope for web.xml. and nope for project.gwt.xml -- since you putting common fileupload to the server. try to be more clear ini what u want? and where is the problem. On Jul 21, 4:13 pm, Vinz369 vincentriv...@gmail.com wrote: Hello twittwit and others, I've been trying to implement fileuploadfor days in my application. It may looks stupid but I really don't understand how it works. I have few questions: - If I want to use the same code as twittwit where should I place it? in my client folder or server folder? should I add something else in my web.xml and project.gwt.xml files? I'm completely lost, please help me! On Jul 18, 10:15 am, twittwit ytbr...@gmail.com wrote: 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 { ServletFileUploadupload= 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 agwtfileupload 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
ImageBundle: Why background?
Hello, I've been looking at the ImageBundle implementation. Its pretty cool, except for being unable to resize images. It seems that this is a limitation of using background image in the ImageBundle implementation. Is there a reason for doing this? I am no expert, but it seems like an img and a clip object would let you create a resizable image from a larger bundle? Or what am I missing? - Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Offline GWT Applications
On Aug 3, 1:35 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/03/2009 08:18 AM, Dominic Holt wrote: hy this is a good idea). So you're saying that a Java app that listens on 127.0.0.1:80 won't handle a GWT RPC call? I've never tried it, so I'm just asking... GWT uses the browser's XMLHTTPRequest object. Well, since this is an HTTP request, the listening socket should respond to such protocol. It doesn't matter whether it's Apache/ Tomcat, IIS, or who knows what listens to the specified port at the specified local socket, as long as the expected response is compatible with the XMLHTTPRequest's own handlers. On my system, I have different (PHP) projects setup on port 80 using different IP addresses (project1.local=127.0.2.10, project2.local=127.0.2.11, ...) so no need of any internet connection to develop anything. I'm using Apache/PHP, but I could have taken the (very) long road and used a custom made Java application that would have listened to the request, ran the specified script, and returned the response. It's all a matter of how custom (home made) you want your application to be. Of course this is all theory as, IMO, I don't mind using third party software that works (!) but I've been playing with Netty (http://jboss.org/netty/) for other networked Java applications and it's a very active and promising project. With an HTTP protocol support, one could actually write something with it to handle GWT-RPC requests. Other than that, having a server bound to local ports also doesn't require an internet connection, and you could use the embedded Derby driver as your server side database. Personally, I don't like SQLlite, so I'd rather use MySQL, but if you want to be all-Java, Derby is fine, IMHO. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: RichTextToolbar Question
Glad to see I wasn't the only one. I added a Star as well as add my comment that the toolbar really should be in the default package. Thank you! -Sean On Mon, Aug 3, 2009 at 11:37 PM, Sumit Chandel sumitchan...@google.comwrote: Hi Sean, You may want to keep an eye on Issue #3042 (link below). You're not the first to be stumble upon the lack of a toolbar within GWT itself after dropping the RichTextArea in your project. I've bumped up the priority on Issue #3042 to make sure it's on the radar for a future release. Issue #3042: http://code.google.com/p/google-web-toolkit/issues/detail?id=3042 Cheers, -Sumit Chandel On Fri, Jul 31, 2009 at 11:42 AM, Sean slough...@gmail.com wrote: Ah, thank you. I forgot all the examples are in the GWT source code. This thing is pretty sweet, I'm surprised it's not part of the normal API. Thank you, Sean On Jul 31, 9:23 am, Imran imran...@gmail.com wrote: This class is not part of the API. Instead, it was created in the demo to show you what can be done. Download the code for the demo and copy the file from there. Petarian. On Fri, Jul 31, 2009 at 9:11 AM, Sean slough...@gmail.com wrote: So, I am looking at the GWT Showcase and at: http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText They have this amazing Toolbar. I look at the source code and they have: RichTextArea area = new RichTextArea(); area.ensureDebugId(cwRichText-area); area.setSize(100%, 14em); RichTextToolbar toolbar = new RichTextToolbar(area); Problem is, I can't find RichTextToolbar in GWT. Eclipse can't include it and I can't find it in the javadocs. Are they using something that isn't in language yet? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Deferred binding for mobile browser support
Hi, I have to add a mobile-optimized version to an existing gwt application. After digging through the docs I found out that deferred binding is the technology of chioce. I believe I understand how it basically works but how do I use it in that specific use case? The mobile UI of our application differs a lot from the standard version so I need seperate stylesheets, and seperate GWT controls (we use composites a lot). Since the basic layout of our application is done in the .html file I would also need a separate html file. Now the question is: how do I do that? Are there any best practices? I'd really appreciate any hint. Best regards, Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Selected style do not apply when using widget for treeItem
I have a GWT tree. When I use the tree.addItem(Widget) to add the tree items as Widgets to the tree, the gwt-treeitem-selected style do not apply to the tree items any more when items are selected. I have checked in Firebug.Does any one know how to get round this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Adding event handler from *outside* widgets
An onResize event. Although I'm getting no luck so far... On Jul 31, 1:37 pm, Isaac Truett itru...@gmail.com wrote: What sort of event are you trying to add to HorizontalSplitPanel? A Composite might make more sense. On Fri, Jul 31, 2009 at 1:13 PM, max3000maxime.lar...@gmail.com wrote: And what to do when the widget is final like HorizontalSplitPanel? (SplitPanel is even package-scoped). Thanks, Max On Jul 30, 2:57 pm, Isaac Truett itru...@gmail.com wrote: Widgets, at least in the core GWT library, already have methods to add handlers for events that they support. If you're adding a custom event handler for a custom event that's not part of the Widget's API, then it makes sense to subclass the widget because you are, in fact, creating a new type of Widget. On Thu, Jul 30, 2009 at 10:51 AM, max3000maxime.lar...@gmail.com wrote: Hi, I find it very annoying that one can't add event handlers to widgets *outside* the widget itself. Am I missing something or is there no way this can be done elegantly? I'm thinking something like: panel.addHandler(ResizeEvent.getType(), new ResizeHandler() { public void onResize(ResizeEvent event) { view.refresh(true); } }); I find myself constantly extending widgets simply to add such handlers. Thanks, Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Strange Problem only with GWT
I just uploaded my gwt webapp on my server. The domain is hosted by another provider. I can forward that domain to my server by making a so called server redirect and a frame redirect. If i choose server redirect i have absolutly no problems with my app but if i make a frame redirect my app does not work correctly it seems as if the rpc calls a not proceeded. I checked my tomcat log file but i could not find anything in there. If i make a frame redirect the html looks like this (extract) (i currently use a dyndns address): frameset rows=100% frameborder=0 framespacing=0 border=0 frame src=http://flexparken.kicks-ass.net; name=Content noresizebr Classical server side generated page seem to have no problem with that. I only occures with gwt rpc calls. The problem with a server redirect is that the ip address in the browsers address bar is replaced by an ip address number. Has anybody an idea what is happening here and why it does not work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 + light streamer = integration problems
Hi, all i need to integrate gwt with lightstreamer. I have some problems connected with how to call js in gwt. I have been using native methods before but this time something is going wrong and i can't understand what. So here is every thing explained in brief: Lightstreamer has 2 .js lib files. I include them in my host page and they are loaded successfully. I wrote native method that calls some js code that subscribes for ls feeder: private static native void init(ListGrid grid, ListGridRecord record, int recordIndex) /*-{ try { var page = new PushPage(); page.context.setDomain(localhost); page.onEngineCreation = function(engine) { engine.connection.setLSHost(localhost); engine.connection.setLSPort(); engine.connection.setAdapterName(HELLOWORLD); engine.changeStatus(STREAMING); } page.bind(); page.createEngine(HelloWorldApp, LS/, SHARE_SESSION); var schema = new Array(message,timestamp); var group = new Array(greetings); var nvt = new NonVisualTable(group,schema,MERGE); nvt.setSnapshotRequired(true); var c = 1; nvt.onItemUpdate = function(item, itemUpdate, itemName) { if (itemUpdate.isValueChanged(message)) { var msg = itemUpdate.getNewValue(message); var ts = itemUpdate.getNewValue(timestamp); if (c == 1) { alert(msg + + ts); c+= 1; } record.setAttribute(message, msg); record.setAttribute(timestamp, ts); grid.refreshRow(recordIndex); } } page.addTable(nvt,hellotable); } catch(error) { alert(error); } }-*/;' The same code executed in html page is working, but if i call it from onModuleLoad() the alert(error) shows me an error: PushPage is not defined and PushPage is defined in the external lightstreamer js lib files, which i included in my host page. Here is working code in html page: html head script src=LS/lscommons.js type=text/javascript/script script src=LS/lspushpage.js type=text/javascript/script /head body div source=lightstreamer table=hellotable item=greetings field=messageloading.../div div source=lightstreamer table=hellotable item=greetings field=timestamploading.../div div id=container Updates:br/ /div script var page = new PushPage(); page.context.setDomain(localhost); page.onEngineCreation = function(engine) { engine.connection.setLSHost(localhost); engine.connection.setLSPort(); engine.connection.setAdapterName(HELLOWORLD); engine.changeStatus(STREAMING); } page.bind(); page.createEngine(HelloWorldApp, LS/, SHARE_SESSION); var schema = new Array(message,timestamp); var group = new Array(greetings); var nvt = new NonVisualTable(group,schema,MERGE); nvt.setSnapshotRequired(true); nvt.onItemUpdate = function(item, itemUpdate, itemName) { var updateText = updating item + itemName + . ; if (itemUpdate.isValueChanged(message)) { updateText += New value for last_price: + itemUpdate.getNewValue (message); } document.getElementById(container).innerHTML += updateText + br/ ; } page.addTable(nvt,hellotable); /script /body /html In the gwt application i want to update some grid row and in the html application i update some div as you can see. So the main problem is why PushPage is not defined? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Widget.clear() method not clearing properly
Hi Jason. This is definitely the easier and faster solution. :) I don't even know why I came up with the DOM iterating stuff... /Phil On Jul 31, 4:55 pm, Jason Essington jason.essing...@gmail.com wrote: wouldn't it be easier (and perhaps faster) to do something like: RootPanel rp = RootPanel.get(sample); rp.clear(); // remove any widgets to be safe rp.getElement().setInnerHTML(); // and clear any remaining contents -jason On Jul 30, 2009, at 1:55 AM, Thamizharasu S wrote: Hi Phil, This is working fine. Thanks for your answer. On Jul 27, 3:18 pm, Phil couch...@googlemail.com wrote: Hi Thamizharasu. Panel.clear() does only remove child-widgets. As the innerHTML 'sample content' is not considered a widget, it won't be affected. You may do the following to completelyclearthe contents of your div element: ---*snip*--- RootPanel samplePanel = RootPanel.get(sample); //Clear Element element = samplePanel.getElement(); NodeListNode childNodes = element.getChildNodes(); for (int i = 0; i childNodes.getLength(); i++) { element.removeChild(childNodes.getItem(i));} ---*snip*--- Regards, Phil On Jul 27, 6:37 am, Thamizharasu S zaru...@gmail.com wrote: Hi All, I have defined one div id=samplesample content/div control in static html file. In my Entry point class i have a button, if i click the button i have toclearall the contents from the div and put my own widget inside. So what i did was RootPanel.get(sample).clear(); Then i add my widget inside RootPanel.get(sample).add(widget); This is adding my new widget. But not clearing my old content (sample content) from the div. Could any one help me on this? Thanks, Thamizharasu S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 app - blank page in ie7, safari
I am having similar kinda problem. I am creating a Google Map Application that has a draggable marker with search option. I am using GWT and eclipse. My search button works fine in the hosted mode, but when I compile and run it off the browser, my search button does not work. My button seems to be firing other commands like pop ups. thanks, sam On Aug 3, 3:52 pm, otismo pe...@nomad.org wrote: It wasn't a syntax issue. It was a coding problem. I'm using various client-side datastores (i.e. localstorage, userdata, whatwg, etc.). The datastores behave differently on store and load and were triggering different code paths. I've got it fixed. Thanks for your help! On Aug 3, 11:11 am, Jason Parekh jasonpar...@gmail.com wrote: Hey Peter, Could you try changing your script tag to include the attribute: type=text/javascript: html head link rel=stylesheet href=styles.css type=text/css script *type=text/javascript* language='javascript' src='com.seekspeak.SeekSpeakWeb.nocache.js'/script /head body /body /html If this works, give thanks to Rajeev for pointing this out :) jason On Mon, Aug 3, 2009 at 1:07 PM, otismo pe...@nomad.org wrote: Thanks for the response, Jason. Yup, I've tried clearing the cache in both browsers -- no help. Looking at the source in both browsers shows my html host page code. Looking at the DOM though shows that my UI widget never gets added to the DOM for ie7 and safari. The DOM shows the iframe but no ui div element. On the functioning browsers, ff3.5 and ie8, the DOM shows me the iframe and the div for my ui element. So it looks like adding my widget to the RootPanel doesn't work for ie7 and safari. My host page looks like this: html head link rel=stylesheet href=styles.css type=text/css script language='javascript' src='com.seekspeak.SeekSpeakWeb.nocache.js'/script /head body /body /html and I add my widget like this: RootPanel.get().add(ui); I tried adding a div to my host page and then adding my UI widget to that div, but that didn't work either: ... body div id=ui/div /body ... and: RootPanel.get(ui).add(ui); Any other 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 -~--~~~~--~~--~--~---
Re: gwtSetup is not executed
It looks like your method's capitalization is wrong - you want your method to be called gwtSetUp (with a capital 'u'). If you are using Java 5 or 6 then using an @Override annotation would have given you a compiler error, since your gwtSetup method did not override getSetUp. Dan On Aug 3, 9:08 pm, Art art...@gmail.com wrote: By overriding the gwtSetup method (http://google-web- toolkit.googlecode.com/svn/javadoc/1.6/index.html?overview- summary.html), I tried to do prep before each test execution. However, gwtSetup has never been executed before test execution. I feel strange that I could not to find any discussion about such simple issue anywhere. Is this happening only me? Here's the simple test case as an example: package com.appspot.inetools.newsfetcher.client; import com.google.gwt.junit.client.GWTTestCase; /** * GWT JUnit tests must extend GWTTestCase. */ public class ValidaterExecuterTest extends GWTTestCase { /** * Must refer to a valid module that sources this class. */ public String getModuleName() { return com.appspot.inetools.newsfetcher.NewsFetcher; } protected boolean gwtSetupFlag = false; protected void gwtSetup() throws Exception { super.gwtSetUp(); gwtSetupFlag = true; //fail( gwtSetup has been called); } /** * Add as many tests as you like. */ public void testSimple() { assertTrue( gwtSetupFlag); } } I launch that test by ValidaterExecuterTest-hosted.launch file on Eclipse (Galileo or Ganymede). Expected it to pass, but it fails. Environment info: x86 XP SP 3 eclipse.buildId=I20090611-1540 (Repro on Ganymede too) java.version=1.6.0_13 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product GWT 1.7.0 JUnit3: plugins\org.junit_3.8.2.v20090203-1005\junit.jar I have been currently working around by putting initialization method at the beginning of each tests. It's tedious. I like to avoid it. If someone can provide any info about this issue, I highly appreciate it. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted mode doesn't work at all on my Vista notebook under Eclipse
See the following thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/1bcb20225a985425 There have been some instances of Vista shipping with a hosts file that does not properly map localhost. Rajeev On Tue, Aug 4, 2009 at 2:35 AM, Trevis trevistho...@gmail.com wrote: Well that was a hellish 3 hours of my life that i'll never get back. For some reason localhost isn't working on my notebook with jetty. 127.0.0.1 though does work with it. On Aug 4, 12:34 am, Trevis trevistho...@gmail.com wrote: Ok, so i compiled it, downloaded tomcat 6 and ran the tests there and it works no problem. Why isnt jetty responding?!?!?! On Aug 3, 11:58 pm, Trevis trevistho...@gmail.com wrote: Ok, it has nothing to do with eclipse because the ant launchedhostedmodedoesn't work either. This is so frustrating! On Aug 3, 11:36 pm, Trevis trevistho...@gmail.com wrote: I've been developing pretty heavily in GWT on my desktop for the past month, tomorrow i'm going on a trip and trying to get my notebook ready to do builds. For the life of me i can not get GWT to work with it. I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the latest GWT version and eclipse plugin and it still does the same thing. I can create projects, compile them but i can not launchhostedmode. The Jetty browser andhostedserver launch but i get an error in the browser and nothing but a simple message in Jetty Starting Jetty on port 8080 (with two success messages beneath it) What is going on? I don't think that jetty is accepting requests. This is on Windows Vista 32 with IE8. Things were flawless on my desktop so i'm at a loss. I can create a project and compile it but if i launchhostedmodei just get an error in the browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
*.cache.html blocked by firewall - GWT team opinions please?
When debugging a customer who couldn't load our site with an http connection (worked fine on ssl as it bypassed the firewall) we came across an issue where if we tried to load the *.cache.html file gwt was trying to load manually the companies firewall had displayed an error message. There was no error on the gwt side, so we were unable to provide feedback to the user. Is it possible to write something in the nocache.js that checks that the *.cache.html that is loaded is actually what we expect, and if not, we can get an error message back to the user in some way? Currently we use the following method for detecting load errors, but they aren't being called. Could it be tied into this in some way? meta name=gwt:onLoadErrorFn content=loaderror/meta meta name=gwt:onPropertyErrorFn content=unsupported/meta script type=text/javascript !-- // Called when GWT is not supported function unsupported() { document.getElementById('loading').className = loadError message-center-screen; document.getElementById('loading-content').innerHTML = Your browser is not supported. Please reload with a modern browser such as a href=\http://www.getfirefox.com\;Firefox/a or Internet Explorer Version 6 or Above.; } function loaderror(){ document.getElementById('loading').className = loadError message- center-screen; document.getElementById('loading-content').innerHTML = Error: There was a problem loading the application.; } -- /script E.g. a new meta property could be added that tells us the cache file is not able to be loaded, with the name of the cache file so we can show them the error by opening it in a new window so they can see the error message. 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: Selected style do not apply when using widget for treeItem
shahid, When I look at the CSS (via Firebug) on my tree with custom widgets, I see a hierarchy like this: gwt-TreeItem mm-ResultBar gwt-TreeItem gwtTreeItem-selected mm-ResultBar In my case, the widget I'm adding to the tree has its own style name (mm-ResultBar). Make sure you don't set the background of your inner widget or it will cover up the gwtTreeItem-selected background. HTH, Chad On Aug 4, 5:57 am, shahid shahidza...@gmail.com wrote: I have a GWT tree. When I use the tree.addItem(Widget) to add the tree items as Widgets to the tree, the gwt-treeitem-selected style do not apply to the tree items any more when items are selected. I have checked in Firebug.Does any one know how to get round this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Offline GWT Applications
I do development work all the time using GWT and a local server without any internet access. My job had all internet traffic blocked over the VPN I work over for the longest time too so I can pretty definitively say that bog standard GWT RPC does not require any internet access to function. I have a tomcat instance running on my local machine and a GWT app deployed to it and have no problem doing RPC calls to the tomcat server without any access to the internet. How exactly do you have your project set up? Maybe some more information would help. On Aug 3, 1:00 pm, Dominic Holt domh...@gmail.com wrote: So you're saying that a Java app that listens on 127.0.0.1:80 won't handle a GWT RPC call? I've never tried it, so I'm just asking... GWT uses the browser's XMLHTTPRequest object No, not without an internet connection --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Installer for Deploying GWT Applications
I can't answer your question directly, but I can offer a few more questions...you'll get the point. Where is this application going to be installed? GWT applications are web browser based applications written in Java and compiled out to native web language (HTML/CSS/Javascript). The application is installed on a webserver. The client installs the application just like any other browser based application by entering the URL into the browsers address line. So there isn't an install on the client any more than there is for Amazon or Google... If you are looking for something to allow a non technical user to deploy a war file to a web server, then I guess there's gotta be something for that. But why is a non-technical person administering a web server? Oh well...not going to solve that. But if you are looking for something like Office, remember that Office is a traditional heavy client application that is installed on your local hard drive. GWT Applications (just like all web hosted applications) are not installed on the local machine. Hopefully this helps, if I'm missing something, please repost with some additional information and I'm sure you'll get what you need. On Aug 4, 12:34 am, Simon smuwa...@gmail.com wrote: Hi All, Could someone guide me on how I can make an installer that can be used to deploy the GWT application I have developed? I intend to give it out to user, who doesn't have any technical knowledge on this. The user expects an installer where he can click all the way through, just like the way one would install Office. Looking forward to your response! Simon Peter Muwangawww.openxdata.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Serializing Exceptions with GWT-RPC
Hi, I have tried the following: public class UserNotFoundException extends Exception implements Serializable { // serial uid private static final long serialVersionUID = 1L; public UserNotFoundException(String msg) { super(msg); } } ...and then in my service interface: @RemoteServiceRelativePath(UserService) public interface UserService extends RemoteService { void register(User user) throws UserNotFoundException; ...but when I start up the app in hosted mode, I get: [ERROR] Type 'com.example.client.exceptions.UserNotFoundException' was not serializable and has no concrete serializable subtypes I'm using GWT 1.7.0. I notice the SerializableException is deprecated, so I did not use that. I also tried having the exception class implement IsSerializable instead of Serializable, but it produces the same results. What am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted Mode CSS Refresh
I'm having the same problem. My css files are linked from the gwt module file (not the html host page). I just switched from Ubuntu to Windows and that problem happens only in Windows (with IE7 running in hosted mode). I'm going to try by linking them from the host page and see what happens. On 3 ago, 11:07, carpmike carpm...@gmail.com wrote: Environment: Windows/IE8HostedMode I recently upgrade my application to GWT 1.7 and the Codehaus Maven plugin. Previously when using the GWTShell I was able to make changes to css files andrefreshthehostedbrowser to see the changes. After upgrading I decided to use the HostedMode browser instead and now I don't see css changes when Irefreshthe page. Is this expected behavior? I turned on Filemon and I see the css file being retrieved when Irefreshthe page, but no change in the FYI - I am not using the Maven plugins run goal, I have set this up to run from an Eclipse run configuration. If someone thinks that might be the problem, I'm happy to explain further what I have done. 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: Serializing Exceptions with GWT-RPC
To be gwt-serializable, you must have a no-arg constructor davis wrote: Hi, I have tried the following: public class UserNotFoundException extends Exception implements Serializable { // serial uid private static final long serialVersionUID = 1L; public UserNotFoundException(String msg) { super(msg); } } ...and then in my service interface: @RemoteServiceRelativePath(UserService) public interface UserService extends RemoteService { void register(User user) throws UserNotFoundException; ...but when I start up the app in hosted mode, I get: [ERROR] Type 'com.example.client.exceptions.UserNotFoundException' was not serializable and has no concrete serializable subtypes I'm using GWT 1.7.0. I notice the SerializableException is deprecated, so I did not use that. I also tried having the exception class implement IsSerializable instead of Serializable, but it produces the same results. What am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Serializing Exceptions with GWT-RPC
Thanks Paul -- just figured that out. Would be a great time-saver if it told me that explicitly :) On Aug 4, 10:22 am, Paul Robinson ukcue...@gmail.com wrote: To be gwt-serializable, you must have a no-arg constructor davis wrote: Hi, I have tried the following: public class UserNotFoundException extends Exception implements Serializable { // serial uid private static final long serialVersionUID = 1L; public UserNotFoundException(String msg) { super(msg); } } ...and then in my service interface: @RemoteServiceRelativePath(UserService) public interface UserService extends RemoteService { void register(User user) throws UserNotFoundException; ...but when I start up the app in hosted mode, I get: [ERROR] Type 'com.example.client.exceptions.UserNotFoundException' was not serializable and has no concrete serializable subtypes I'm using GWT 1.7.0. I notice the SerializableException is deprecated, so I did not use that. I also tried having the exception class implement IsSerializable instead of Serializable, but it produces the same results. What am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hibernate GWT
Hello folks: I've posted this question to the Hibernate user's forum, but in the absence of replies, I am posting it here as well, in the hopes that some of you may shed some light. Please accept my apologies if this is the second time you see this post. I'm about to engage in an enterprise project whose front-end is to be built with GWT. I've had some Hibernate experience from past projects and really like the ORM mechanism used by Hibernate for marshalling/ unmarshalling from a database. Now, as some of you know, domain entities need to be transferred over the wire for GWT's consumption: entities that have been instrumented with persistence information will fail at the client side, as GWT cannot handle these objects. So I've done some research and I've come across two common solutions to this problem: 1) Using a framework called Gilead; 2) Replicating the domain model hierarchy with a second class hierarchy used exclusively for data transfer (aka Data Transfer Objects representing the persistent domain objects). None of these solutions are good in my current situation: 1) Gilead intrudes into the design of an application by forcing the entities to inherit from “LightEntity” and forcing RemoteServiceServlet descendants to extend “PersistentRemoteService”. Our design cannot allow this, as both of these type of objects already inherit from a different hierarchy. 2) Our domain model is composed of 30 classes, some of which have quite a few getters/setters. Replicating this domain model sounds like trip to maintenance nightmare street, not to mention the amount of extra code that we'll need to map things back-and-forth. So even though I know (from experience) that Hibernate will make me a lot more productive accessing the database than the alternative (ie hand-coding with JDBC), all this productivity goes down the drain if I now have to deal with recreating the objects in order to properly talk to the client layer. So now my question is, can I get away with the following: 1) make every single persistent entity to always load everything eagerly by default (ie lazy=”false”) and make lazy loading the exception to the rule (ie when fetching lists of things); 2) use a stateless Session-per-request approach, so that every time I need something from the db a brand new persistence context is initialized. I understand that I'll be giving up caching and hence, taking a performance hit, what I'd like to know is, how bad is this hit? is this an acceptable compromise in my case? Is this approach still better than going back to manual JDBC days? Please advise if this is a horrible approach and if there is something I should know before I put a rope around my neck. Thanks in advance for any ideas, comments or 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: General Question about Coding
hi thanks a lot its working now On Aug 4, 2:44 am, Norman Maurer nor...@apache.org wrote: Check your imports... There are to NodeList in GWT: com.google.gwt.dom.client.NodeList com.google.gwt.xml.client.NodeList You should be sure you import com.google.gwt.xml.client.NodeList not com.google.gwt.dom.client.NodeList. Thats the cause of the error.. Bye, Norman 2009/8/3 Rahul coolrahul18...@gmail.com: Hi, I have a general question about coding. I am working with XML documents presently and I am not able to understand what cast to an object does. for example: NodeList URLs = (NodeList) root.getChildNodes(); this gives me an error of [ERROR] Uncaught exception escaped java.lang.ClassCastException: com.google.gwt.xml.client.impl.NodeListImpl cannot be cast to com.google.gwt.dom.client.NodeList but when i change the code to com.google.gwt.xml.client.NodeList URLs = root.getChildNodes(); this works fine also again Document xmlDoc = (Document) XMLParser.parse(response.getText()); this gives me an error but com.google.gwt.xml.client.Document xmlDoc = XMLParser.parse (response.getText()); does not can someone explain why does this happen?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 Perform DoubleClick on FlexTable Cell
Hi All, Iam working on onCellClicked() method of FlexTable(com.google.gwt.user.client.ui.FlexTable) cell in GWT.Now my requirement is i have to change the color of flextable cell into green color when i perform single click and change the color to yellow when i perform double click on the cell of an flextable. To perform doubleclick on flexTable cell i wrote a class FlextableCatchDoubleClick but it is accepting single click only. the code is as follows: package com.mymdworld.client.utils; import java.util.Iterator; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.SourcesTableEvents; import com.google.gwt.user.client.ui.TableListener; import com.google.gwt.user.client.ui.TableListenerCollection; public class FlextableCatchDoubleClick extends FlexTable implements SourcesTableEvents { private TableListenerCollection tableListeners; public FlextableCatchDoubleClick(){ super(); this.sinkEvents(Event.ONDBLCLICK | Event.ONCLICK); } public void onBrowserEvent(Event event) { super.onBrowserEvent(event); Element td = getEventTargetCell(event); if (td == null) { return; } Element tr = DOM.getParent(td); Element body = DOM.getParent(tr); int row = DOM.getChildIndex(body, tr); int column = DOM.getChildIndex(tr, td); int type = DOM.eventGetType(event); switch (type) { case Event.ONDBLCLICK: { if (tableListeners != null) { tableListeners.fireCellClicked(this,row,column); } break; } case Event.ONCLICK: { if (tableListeners != null) { tableListeners.fireCellClicked(this,row,column); } break; } } } public void addTableListener(TableListener arg0){ if (tableListeners == null) tableListeners = new TableListenerCollection(); tableListeners.add(arg0); } public void removeTableListener(TableListener arg0) { if (tableListeners != null) tableListeners.remove(arg0); } } In another class iam creating an object of this class and writing clicklistener for it as: FlextableCatchDoubleClick table1=new FlextableCatchDoubleClick (); table1.addTableListener(new TableListener(){ public void onCellClicked(SourcesTableEvents arg0, int arg1, int arg2) { - } }); How can i differentiate between singleClick and doubleClick of the FlexTable cell. Please can anyone help me... Thanks In Advance Swathi.K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Modelling framework
Nathan, The thing is, there IS a framework for what you are trying to do (i.e. represent a data structure without being tied to implementation). It's called Java. If you're looking for the ability to quickly add fields to customer's data structures, that's dependent on low coupling and other good programming /techniques/ not a given framework. As far as persisting the data goes, you can look at Hibernate or JPA, for which there is much information about integrating with GWT. I'm sorry if this isn't what you're looking for. Anytime I see someone with an class that models classes or types or objects in anyway, I start to think, Hey, Java's already done this for me. If you really want to go down that route, maybe you should look at reflection? Though there's very little support for reflection in GWT. Sorry this is getting so long, but I'm just saying that you face a trade-off: A - have a dynamic/meta-data structure or B - have a domain specific data structure A - represents huge upfront development and design costs to ensure future usability in your domain. Also, runtime efficiency will, of necessity, take a hit, as the processor first tries to understand the structure, then does the actual processing. B - more risk of getting too specific, increasing coupling, and making maintainability/rapidly adjusting to customer's ever-changing requirements more time consuming. A lot of good OOA/D will go a long way to getting you out of these messes though. Thanks a lot, that answers my question. You put it quite accurately (It's called Java) and I am glad I have asked. I'll look more into the supporting frameworks like JPA, Acegi, etc. Kaspar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 fill available space with a textarea widget
Hi all, I'd like to layout a textarea and tell it to fill the remaining available space (height and width) in it's container. Example HTML is below. (Strangely, with the height:100% it looks really messed up and overflows the div on Safari and Mac Firefox.) Is there an HTML/CSS solution? It seems like I need to write some Javascript to look at the height of the container and set the height of the textarea. If so, is that something that's already solved somewhere in GWT? I played around some with different panels, but didn't see anything. thanks, Rob html head style #container { width: 300px; height: 400px; border: 1px solid blue; } #text { height: 100%; width: 100%; } #textdiv { height: 100%; } /style /head div id='container' div input type='text' size='30'/ /div div id='textdiv' textarea id='text' /textarea /div /div /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 -~--~~~~--~~--~--~---
(TypeError): 'length' is null or not an object
Hi I am gettin this error [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (TypeError): 'length' is null or not an object number: -2146823281 description: 'length' is null or not an object This is my code public void onResponseReceived(Request request, Response response) { Document xmlDoc = XMLParser.parse(response.getText()); Element root = xmlDoc.getDocumentElement(); NodeList URLs = root.getChildNodes(); int j = URLs.getLength(); int i=0; for (i=0; ij;i++) { System.out.println(URLs.item(i).getAttributes()); } } } }); }catch(RequestException e) { } Reading from forums i have included inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.http.HTTP'/ in my gwt.xml any idea why is the error comin? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Eexception handling in non-hosted mode?
Well, you could add a try/catch block over your entire application and on exception send an RPC to the server with the exception... -- Arthur Kalmenson On Sat, Aug 1, 2009 at 12:39 PM, micmichael.gn...@googlemail.com wrote: How should I do proper exception handling without relying on the hosted mode? I would like to have something like GWT.log in non-hosted mode as well. How would I transport the excpetion information to the server side? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: WYSIWYG/XML for GUI layout in GWT?
Well, Ray is saying that UiBinder (http://code.google.com/p/google-web-toolkit-incubator/wiki/UiBinder) will hit the trunk today: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/2cb316f7cfba0adb -- Arthur Kalmenson On Sat, Aug 1, 2009 at 12:38 PM, Ericeaparn...@gmail.com wrote: I have looked at Instantiations and found it to be BUGGY. I cannot put up with a buggy IDE. It's the one thing in my toolset that must be rock solid. GWT needs more options . On Jul 6, 1:03 am, alex.d alex.dukhov...@googlemail.com wrote: Take a look at GWT Designer:http://www.instantiations.com/windowbuilder/gwtdesigner/index.html On 4 Jul., 16:00, ZS zvi.schrei...@gmail.com wrote: I am considering OpenLaszlo v. GWT for a specific project. The downside of GWT is that I am reluctant to give up the ability to lay out GUI components using a logical XML tree. It seems tedious to build a GUI hierarchy procedurally. How do other people find that and can anyone recommend a good mature XML GUI meta-language or better a WYSIWYG GUI editor for 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 -~--~~~~--~~--~--~---
CSRF protection for RPC calls - Generate cookie on the client - is it safe?
Hello GWTers! Having read the XSRF and GWT section of the page at http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications I'm trying to implement the suggested protection which involves sending an extra 'cookie value' param in GWT calls and then comparing that value with the value of the cookie header. My question involves the generation of the cookie value and whether it is safe to do this on the client. As long as it doesn't impact client performance, it seems to me that generating a random token, setting the cookie with that token and sending the same token as a param in RPC calls would be a neat way to offload CPU cycles to the client. The server would then only need to compare the cookie header with the token received in each RPC call and drop the call if the values don't match (on the assumption that the call hasn't been made by the logged- in client). Is that safe? Is there a way for a forged request to include a cookie? If the server merely compares two arbitrary strings, wouldn't it be easy for a forger to bypass the restrictions relied upon for this type of protection? Any insights gratefully received. Cheers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Image Cropper
Hi, i am looking for an image cropper widget for gwt. Below is the example. http://www.defusion.org.uk/demos/060519/cropper.php i try to use a resizable panel to build the image cropper, but just not as smooth as those javascript image cropper. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Code Igniter Integration
Hi everyone, I tried to enhance the my existing Code Igniter (http:// codeigniter.com) based application with the power of optimized Javascript apps using GWT. The basis is a Java based application using the GWT library (Eclipse IDE) and the compilation process of this Java code results in browser optimized Javascript Code… I then can deploy this Javascript code into CI with some effort in order to get the widgets I wish. Now my question: The overall deployment process is quite exhausting and I would like to Eclipse do all the work where CI is integrated into a GWT Java Project. (alternatively two projects) GTW advertises itself as being server-side language independent but if one tries to implement a server side service you’ll have to use servlets (Java based) or absolute addresses to the HTTP Remote Interface you want to send messages to. Concerning the latter issue I have a problem integrating the CI BASE_URL (the URL prefix of the PHP web application) into a GWT project without defining the web application base url twice. So is there anyone out there who every did this before? Greetings - Marcel Karras --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
same problem
Everytime I start Compile/Browse I get: GWT module 'xx' needs to be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode here's the log: [INFO] Compiling module de.systemagmbh.sar.SystemaAttendanceRecorder [INFO] Compiling 6 permutations [INFO] Permutation compile succeeded Linking into D:\DEV\WORKSPACES\GWT_SAR_DEV\SystemaAttendanceRecorder \war Link succeeded Link succeeded Compilation succeeded -- 58,516s does anyone know a solution? I'm currently using GWT 1.7 and Eclipse 3.5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Automating
I need to automate site containing GWT menu in Internet Explorer. I can find the menu in DOM and send click event to it, which successfully opens the menu. But I don't know how to select the menu item. I can find MenuItem's TD . in the DOM, but sending click to it does nothing. How can I select the menu item? Maybe sending click to some other element? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Sample Eclipse project/application showing CRUD operations
Hello, I am new to GWT. I have installed eclipse 3.5 and GWT plugin 1.7. I can create/run the helloworld application, next I want to run CRUD sample. If I am understanding correct, you need to write down Java code and upon compilation .html/.js files would be created, right? Can you upload some small sample application, where in CRUD operations are performed? The downloadable .zip would really help. I tried samples from showcase, pasted them in helloworld, but ended with datasource related errors. thanks a lot ~Nix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
History library for GWT
Hi, Can anybody recommend a history library for GWT ? Rya Ryan named a history library in his presentation but i wasn't able to find it. Can anyone help ? Thank in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: (TypeError): 'length' is null or not an object
Hi, it started to work i removed all the blank spaces and it started working can anyone explain me like what was the cause of error and why removin blank spaces helped? On Aug 4, 11:20 am, Rahul coolrahul18...@gmail.com wrote: Hi I am gettin this error [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (TypeError): 'length' is null or not an object number: -2146823281 description: 'length' is null or not an object This is my code public void onResponseReceived(Request request, Response response) { Document xmlDoc = XMLParser.parse(response.getText()); Element root = xmlDoc.getDocumentElement(); NodeList URLs = root.getChildNodes(); int j = URLs.getLength(); int i=0; for (i=0; ij;i++) { System.out.println(URLs.item(i).getAttributes()); } } } }); }catch(RequestException e) { } Reading from forums i have included inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.http.HTTP'/ in my gwt.xml any idea why is the error comin? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Hibernate GWT
You may try Dreamsource ORM. You can find an example including source code from http://www.gwtorm.com/gwtMail.jsp. Dreamsource ORM is still under development. It will have polymorphic query features soon. Jim http://www.gwtorm.com - GWT ORM http://code.google.com/p/dreamsource-orm/downloads/list. On Aug 4, 10:33 am, javier jasand...@gmail.com wrote: Hello folks: I've posted this question to the Hibernate user's forum, but in the absence of replies, I am posting it here as well, in the hopes that some of you may shed some light. Please accept my apologies if this is the second time you see this post. I'm about to engage in an enterprise project whose front-end is to be built with GWT. I've had some Hibernate experience from past projects and really like the ORM mechanism used by Hibernate for marshalling/ unmarshalling from a database. Now, as some of you know, domain entities need to be transferred over the wire for GWT's consumption: entities that have been instrumented with persistence information will fail at the client side, as GWT cannot handle these objects. So I've done some research and I've come across two common solutions to this problem: 1) Using a framework called Gilead; 2) Replicating the domain model hierarchy with a second class hierarchy used exclusively for data transfer (aka Data Transfer Objects representing the persistent domain objects). None of these solutions are good in my current situation: 1) Gilead intrudes into the design of an application by forcing the entities to inherit from “LightEntity” and forcing RemoteServiceServlet descendants to extend “PersistentRemoteService”. Our design cannot allow this, as both of these type of objects already inherit from a different hierarchy. 2) Our domain model is composed of 30 classes, some of which have quite a few getters/setters. Replicating this domain model sounds like trip to maintenance nightmare street, not to mention the amount of extra code that we'll need to map things back-and-forth. So even though I know (from experience) that Hibernate will make me a lot more productive accessing the database than the alternative (ie hand-coding with JDBC), all this productivity goes down the drain if I now have to deal with recreating the objects in order to properly talk to the client layer. So now my question is, can I get away with the following: 1) make every single persistent entity to always load everything eagerly by default (ie lazy=”false”) and make lazy loading the exception to the rule (ie when fetching lists of things); 2) use a stateless Session-per-request approach, so that every time I need something from the db a brand new persistence context is initialized. I understand that I'll be giving up caching and hence, taking a performance hit, what I'd like to know is, how bad is this hit? is this an acceptable compromise in my case? Is this approach still better than going back to manual JDBC days? Please advise if this is a horrible approach and if there is something I should know before I put a rope around my neck. Thanks in advance for any ideas, comments or 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: New site created with GWT
That may be the problem of FF3.5 See following post for detail http://support.mozilla.com/tiki-view_forum_thread.php?locale=deforumId=1comments_parentId=383498 On Jul 3, 10:57 pm, hazy1 matt.egyh...@gmail.com wrote: Wow, the text boxes are ginormous in FF 3.5. On Jun 30, 4:34 pm, Michael W mwang_2...@yahoo.com wrote: I am happy to announce that we launched beta version of holidayinn website written with GWT this past weekend. The new sitehttp://www.holidayinn.com/hotels/us/en/reservationwill replace existing sitehttp://www.ichotelsgroup.com/h/d/hi/1/en/homein the future. The existing site has over 2 million hit a day. GWT is used in client side and Spring MVC is applied in server side Following lists some of the features including the package we used: --Multi-language (currently only support US English and Queen English) --Spring SL --JSON. --RPC.encodeResponseForSuccess --Suggest Box --Client side logging --Customized SEO --RPC timed out --Session backup, once refresh page, client side data is retrieved from server again by using RPC --Visual effect to display hotel images --Integrated dynamic content management --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Offline GWT Applications
Absolutely, I'd be happy to give more details. I'll try and give a brief overview first, if I'm missing some information you may need please don't hesitate to ask for it. Essentially I use NetBeans as my IDE, I also have the GWT4NB plugin. It's pretty standard as far as RPC calls go, I have a MainEntryPoint class where all the lovely GUI things happen, and then of course under the client package I have classes called GWTService and GWTServiceAsync. Under the server package I have the Implementation of the service. If I'm online, all the service stuff works just fine. As soon as I unplug the network cable or set IE to Working Offline I get the error message: unable to initiate the asynchronous service invocation -- check the network connection and quite naturally, none of the RPC stuff works anymore. When I run the application in the IDE, it deploys on glassfish v3. I also sometimes package up the build and run it outside of the development environment on Tomcat 6.x. Either way, the same problem happens. The glassfish server is on port 8080 and the Tomcat server is on port 80. Thanks very much for your help, greatly appreciated. On Aug 4, 10:01 am, jhulford jhulf...@gmail.com wrote: I do development work all the time using GWT and a local server without any internet access. My job had all internet traffic blocked over the VPN I work over for the longest time too so I can pretty definitively say that bog standard GWT RPC does not require any internet access to function. I have a tomcat instance running on my local machine and a GWT app deployed to it and have no problem doing RPC calls to the tomcat server without any access to the internet. How exactly do you have your project set up? Maybe some more information would help. - 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: Google plgin 64 bit support
I can't wait for GWT to get 64-bit support. All of our servers are 64 bit linux machines which allows us to take advantage of having 4Gb+ of RAM available. Even my mom says that 32bit is already retro ;) Installing 32bit JRE worked for me but I only consider it as a temporary work around. Otherwise I love GWT! On Aug 3, 1:37 pm, Max max.seven@gmail.com wrote: Thanks Jason, I will try to install 32bit java sudo apt-get install ia32-sun-java6-bin On Aug 3, 8:02 pm, Jason Parekh jasonpar...@gmail.com wrote: The Google Plugin does support64-bit, but right now GWT still requires a 32-bitJRE. What you can do is go to your launch configuration (Run - Run configurations, and find the Web Application launch config) and update its JRE to a 32-bitversion. jason On Mon, Aug 3, 2009 at 12:53 PM, Max max.seven@gmail.com wrote: Does google plugin support 64bit? What could course that problem? I created project and Run as - Web Application Exception in thread main java.lang.UnsatisfiedLinkError: /home/user/ my/tools/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907131030/gwt- linux-1.7.0/libswt-pi-gtk-3235.so: /home/user/my/tools/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907131030/gwt- linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1003) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132) at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.clinit(Display.java:126) at com.google.gwt.dev.SwtHostedModeBase.clinit (SwtHostedModeBase.java:82) Could not find the main class: com.google.gwt.dev.HostedMode. Program will exit. Cheers, Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
JNSI Problem Challenge
Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(google-web-toolkit-doc-1-5)t(DevGuideJavaScriptNativeInterface) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { @Override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI.-- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: How to create an UI from Metadata XML file
Use rpc call. You have two choices: 1) client makes rpc call and get xml file back, then parse xml in client side (GWT). 2) client makes rpc call and server parses the xml files, then return object back to client. The option 2) gives your chance to cache the xml parsing result it in server side. On Aug 3, 10:00 am, Rahul coolrahul18...@gmail.com wrote: Hi, I am new to gwt and I have a question. I am working with HL7 files, Health Level 7. Each HL7 files has a metadata information in an XML file. I want that each of the HL7 fields are converted into an textbox and label in form of a UI in gwt. Is this possible to do ? How should I start with it ? Sincerely, Rahul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Looking for Sr. Java Web Dev in Seattle with GWT experience!!!
Please contact me ASAP if you have experience that matches the below requirement!!! Peace! Nate 206.624.8437 na...@rylem.com Competencies/Essential Skills/Qualifications: 4+ years experience with core Java development Additionally: · Proficient with Object Oriented Analysis and Design. · Solid understanding of Web technologies, including Java Servlets, JSP, MVC, and AJAX · Experience in developing cross-browser apps using HTML, JavaScript, AJAX, CSS. · Experience with relational databases: Oracle, MySQL. · Experience with Tomcat is required. · Experience with XML and Web Services is required. · Experience in design, development and deployment of complex operational systems required. · Experience with Linux. · Good GUI design skills is required. Preferred and definitely a plus: Experience with Component Web Frameworks (GWT, Wicket, Tapestry) Experience with Spring Framework or other dependency injection framework. Experience with Hibernate, JPA, or other ORM library. Experience with Maven Experience in Agile work environment. Thrive in a deadline-driven, fast pace team environment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 is HorizontalSplitPanel a final class?
Hi shoe54, The reason why the HorizontalSplitPanel (and other split panels and widgets) are declared as final classes is because when these widgets were first introduced, we wanted to make them very easy to use the right way, and very hard to use the wrong way. Implementing something like a split panel can be tricky, and so subclassing such a class and overriding key methods might have easily led to a broken implementation, and an unhappy developer. That said, widgets like the split panels seemed to have passed the test of time, and it seems like allowing them as well as other widgets to be subclassed should now be part of The Right Way, while continuing to make it difficult to use or subclass the widgets the wrong way. Issue #1394 in the Issue Tracker talks about opening up the split panel class or perhaps replacing it with widgets that provide easier access to their inner workings. Feel free to start the issue report to get updates as the team figures out the best way to open it up while leaving it easy to use correctly. Issue #1394: http://code.google.com/p/google-web-toolkit/issues/detail?id=1394 Hope that helps, -Sumit Chandel On Fri, Jul 31, 2009 at 11:35 AM, jay jay.gin...@gmail.com wrote: We needed the same thing, so we just copied the source into our own source tree and made the necessary modifications. jay On Jul 30, 10:17 pm, shoe54 webblaz...@yahoo.com wrote: I want to override final void onSplitterResize(int x, int y) but that method and the class itself are both final. Or is there any other way to detect when the splitter has moved? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: PopupPanel setAnimationType() is package-private
Hi Nathan, Making setAnimationType(AnimationType type) publicly accessible sounds reasonable to me. I couldn't find any issues in the Issue Tracker currently reporting or requesting this feature. Feel free to add the issue yourself and I'll point it to someone on the UI team. Issue Tracker: http://code.google.com/p/google-web-toolkit/issues/list http://code.google.com/p/google-web-toolkit/issues/listCheers, -Sumit Chandel On Fri, Jul 31, 2009 at 1:35 PM, Nathan Wells nwwe...@gmail.com wrote: I was just going through the PopupPanel class working on an unrelated issue, and I found that there is a capability to set different types of animation (setAnimationType(AnimationType type)), but the method is package-private. Is there a reason for this? I would like to use one of the option in the enum, but would need to pull it out of the jar to do this... Does anyone know why it's package-private? the method above (setAnimation(ResizeAnimation animation)) says something about the API possibly changing with 1.6. Obviously it hasn't changed so, can I have it now :)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Eexception handling in non-hosted mode?
try/catch over the entire application sounds scary :) maybe you should use GWT.setUncaughtExceptionHandler() to set your own exception handler, that would then (maybe) transfer the errors to the server, if you wish. in this exception handler you could also use http://code.google.com/p/gwt-log/ logging library to do some logging on the client side (that will show up e.g. in firebug-console) On Aug 4, 6:01 pm, Arthur Kalmenson arthur.k...@gmail.com wrote: Well, you could add a try/catch block over your entire application and on exception send an RPC to the server with the exception... -- Arthur Kalmenson On Sat, Aug 1, 2009 at 12:39 PM, micmichael.gn...@googlemail.com wrote: How should I do proper exception handling without relying on the hosted mode? I would like to have something like GWT.log in non-hosted mode as well. How would I transport the excpetion information to the server side? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 does not HTMLPanel implement HasHTML interface?
Hi Gregory, The common thing between all the widgets that do implement the HasHTML interface is that they are all widgets that contain flat HTML as their innerHTML. This is also true for the HTMLPanel, however, the HTMLPanel also supports adding widgets to its innerHTML, which could cause problems when calling getText() or getHTML() and expecting a flat and unchanging HTML structure to be returned. Aside from that, it would seem logical for the HTMLPanel to implement the HasHTML interface, if with the possible caveat mentioned above. Feel free to create a report for this on the Issue Tracker to get some of the UI team to consider the change. Before doing that though, could you elaborate a little more on your use case for having the HTMLPanel implement the HasHTML interface? There may be other ways to solve the problem depending on what you're trying to do. Issue Tracker: http://code.google.com/p/google-web-toolkit/issues/list Hope that helps, -Sumit Chandel On Fri, Jul 31, 2009 at 2:18 PM, Gregory Kanevsky grigor...@gmail.comwrote: It seems very logical - almost obvious to me or what I am missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Session Timeout with RemoteServiceServlet?
In server side, you need to create and throw YourSessionTimedoutException if session is timedout, and rpc client side will catch it. Then you can redirect to the page you want. On Jul 31, 3:19 pm, retro retrofit.br...@gmail.com wrote: How is session max inactive interval handled with remote service. I am seeing a weird issue where timeout is happening even after i am calling the servlet methods in between calls. 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 -~--~~~~--~~--~--~---
OSX Safari Java applet/JNI bug
I ran across this bug a year ago in Firefox where the String returned from a Javascript-Applet(Method) call that returns a string isn't a first class string in GWT. I was testing in Safari OSX and get the following error message when trying to do a substring on the string returned from the applet. This was not a problem in FireFox when testing so I assume the bug was fixed in firefox. To fix it I simply take the quasi string returned from the Javascript_ applet method call and do a mystring = + stringfromapplet. This creates a string that I can now do substring on without throwing an execption. 2009-08-04 14:04:46,235 [FATAL] Uncaught Exception: com.google.gwt.core.client.JavaScriptException: (TypeError): Result of expression 'c.substr' [undefined] is not a function. line: 3650 sourceId: 382878512 sourceURL: http://localhost:8084/edu.scripps.hddesktop.Main/3F5E6959D7DF0865CF3BCE94FA15B91A.cache.html expressionBeginOffset: 447371 expressionCaretOffset: 447379 expressionEndOffset: 447386 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: 1.7 NoSuchMethodError IncompatibleRemoteServiceException
Hi Andrey, Did you upgrade from 1.5 to 1.7, or from 1.6 to 1.7? I ask because in the case of the former, there may be remnants in a .gwt-cache folder that contain old information for the ru.aml.client.database.Row class. If so, try deleting it and restarting hosted mode again. Also, if you did upgrade from 1.5 to 1.7, make sure that you're using HostedMode and the new war style directory structure instead of the GWTShell main class used in 1.5 and prior. In all cases, make sure that your launch configuration has also been updated to use the latest GWT JARs. Hope that helps, -Sumit Chandel On Sat, Aug 1, 2009 at 1:59 AM, Andrey mino...@gmail.com wrote: Hello! I have got a really strange issue. When I run my application I get server-side errors like: java.lang.NoSuchMethodError: ru.aml.client.database.Row.set(Ljava/lang/ String;Ljava/lang/String;Ljava/lang/Object;)V ... com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the ref resh button on your browser. ... The method set(String, String, Object) exists of cause and I have been using it for a few months on the server-side. Eclipse shows no errors. There is also no other Row classes. And the really weird thing: When I rename class Row for example to Row2 everythning is OK (!) I also removed all older gwt-servlet.jar but it doesn't help. I have another project which has the similar server-side code and it works allright without renaming. What can it be? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: JNSI Problem Challenge
On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(google-web-toolkit-doc-1-5)t(DevGuideJavaScriptNativeInterface) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { @Override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI.-- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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 -~--~~~~--~~--~--~---
oophm with the lastest eclipse plugin on Mac
Hi there, i'm currently trying to make the oophm works on my Mac using eclipse 3.5 and the latest plugin. I use the revision 5873 of the trunk (ant clean then ant my project refers to build/staging/gwt-mac-0.0.0/). Because i use gwt 2.0, a checkbox appears under Run Configuration GWT Tab just under the URL. So i checked it. The logs show that : 2009-08-04 11:33:30.967 java[40650:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-08-04 11:33:30.969 java[40650:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 2009-08-04 11:33:34.458 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1c8e70 '(null)') unlocked when not locked 2009-08-04 11:33:34.459 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.673 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1bc570 '(null)') unlocked when not locked 2009-08-04 11:33:34.674 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.775 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1ddb30 '(null)') unlocked when not locked 2009-08-04 11:33:34.775 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.901 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1df520 '(null)') unlocked when not locked 2009-08-04 11:33:34.903 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.207 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x11d330 '(null)') unlocked when not locked 2009-08-04 11:33:38.208 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.308 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x121930 '(null)') unlocked when not locked 2009-08-04 11:33:38.309 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.445 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e4700 '(null)') unlocked when not locked 2009-08-04 11:33:38.445 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.316 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e5950 '(null)') unlocked when not locked 2009-08-04 11:33:39.317 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.418 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x134f90 '(null)') unlocked when not locked 2009-08-04 11:33:39.419 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.540 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e60f0 '(null)') unlocked when not locked 2009-08-04 11:33:39.542 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.757 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e77f0 '(null)') unlocked when not locked 2009-08-04 11:33:40.757 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.870 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e7970 '(null)') unlocked when not locked 2009-08-04 11:33:40.870 java[40650:1c303] *** Break on _NSLockError() to debug. The Swing window shows up but with a beachball running, so i can not click on it. Did someone face a similar issue? How did you work it around ? Thanks, Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Configuring GWT to run in hosted mode against a non-Java server
Hi Damon, Have you checked out the FAQ link below on using your own server instead of GWT's built-in Jetty instance? How do I use my own server in hosted mode FAQ: http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT's http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT'sRegarding using JUnit with your RESTful RPC calls, could you elaborate a little more on what you'd like to do from within a JUnit test case that would require making RESTful RPC calls? Ideally, a unit test only tests various cases on a specific unit of functionality, and so a unit test over a RESTful RPC call would probably be completely separate from a unit test over your GWT code. Hope that helps, -Sumit Chandel On Sat, Aug 1, 2009 at 6:42 AM, Damon Feldman damonfeld...@verizon.netwrote: What are the configuration parameters or other options I need to understand to run GWT in hosted mode (and use JUnit against my RESTful RPC calls) when the server is something other than Java/Tomcat? Using a standard configuration, GWT seems to want to start up it's internal tomcat instance on port 0 and talk to that server rather than my non-Java web server. I've checked docs and also GWT in Action, but don't see much on this topic. thanks, Damon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Inlining nocache.js
So, while trying to squeeze out the latest tiny bit of speed for my application I ended up with this setup: index.html ( = module page) contains inlined css and the nocache.js. The index.html is non-cacheable, but is guarded with an E-Tag, which doesn't do anything to first time users, but recurring users will see a 304 (not modified) and the application will load instantly. I inlined the CSS so that no further HTTP request is neccessary, the same rationale goes for the inlined nocache.js So the only HTTP requests are: 1. load the index.html 2. load a sprite image 3. load the browser dependent *.cache.js The problem here is that since I inlined nocache.js, now index.html has to reside in the same location with *.cache.js, which is horrible to configure for caching since I'm not using Apache but just Tomcat. Using a base href= to bend the base location seems to work only on Firefox, IE can't find its RPC services and Safari won't load at all. 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 -~--~~~~--~~--~--~---
Re: uibinder in svn repository?
It's currently up for review, should be there soon. See: http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Arthur Kalmenson On Mon, Aug 3, 2009 at 10:44 PM, asianCoolzsecond.co...@gmail.com wrote: is uibinder already included inside gwt core svn repository ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: JNSI Problem Challenge
Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: JNSI Problem Challenge
It's really important without this piece of cake i can't mix up Flex and GWT for my project :( Regards Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: Offline GWT Applications
Is the server on the same machine as as your development environment? ie. is this all done locally via RPC to the loopback or localhost address? On Aug 4, 12:29 pm, Dominic Holt domh...@gmail.com wrote: Absolutely, I'd be happy to give more details. I'll try and give a brief overview first, if I'm missing some information you may need please don't hesitate to ask for it. Essentially I use NetBeans as my IDE, I also have the GWT4NB plugin. It's pretty standard as far as RPC calls go, I have a MainEntryPoint class where all the lovely GUI things happen, and then of course under the client package I have classes called GWTService and GWTServiceAsync. Under the server package I have the Implementation of the service. If I'm online, all the service stuff works just fine. As soon as I unplug the network cable or set IE to Working Offline I get the error message: unable to initiate the asynchronous service invocation -- check the network connection and quite naturally, none of the RPC stuff works anymore. When I run the application in the IDE, it deploys on glassfish v3. I also sometimes package up the build and run it outside of the development environment on Tomcat 6.x. Either way, the same problem happens. The glassfish server is on port 8080 and the Tomcat server is on port 80. Thanks very much for your help, greatly appreciated. On Aug 4, 10:01 am, jhulford jhulf...@gmail.com wrote: I do development work all the time using GWT and a local server without any internet access. My job had all internet traffic blocked over the VPN I work over for the longest time too so I can pretty definitively say that bog standard GWT RPC does not require any internet access to function. I have a tomcat instance running on my local machine and a GWT app deployed to it and have no problem doing RPC calls to the tomcat server without any access to the internet. How exactly do you have your project set up? Maybe some more information would help. - 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: JNSI Problem Challenge
The only version i succeed to make working is public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II)(34,35); }-*/; But of course this give 69 and does not take in count the parameters of alert(myJavaStaticMethod(1,2)); that should give 3. Hope this help. Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: JNSI Problem Challenge
On 08/04/2009 12:23 PM, Luciano Broussal wrote: Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. What's the text associated with this error? I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { @Override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI.-- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: Offline GWT Applications
Yes, everything is on the same machine. The address that displays in the browser when the application is running is http://localhost:8080/AppName/ On Aug 4, 3:25 pm, jhulford jhulf...@gmail.com wrote: Is the server on the same machine as as your development environment? ie. is this all done locally via RPC to the loopback or localhost address? On Aug 4, 12:29 pm, Dominic Holt domh...@gmail.com wrote: Absolutely, I'd be happy to give more details. I'll try and give a brief overview first, if I'm missing some information you may need please don't hesitate to ask for it. Essentially I use NetBeans as my IDE, I also have the GWT4NB plugin. It's pretty standard as far as RPC calls go, I have a MainEntryPoint class where all the lovely GUI things happen, and then of course under the client package I have classes called GWTService and GWTServiceAsync. Under the server package I have the Implementation of the service. If I'm online, all the service stuff works just fine. As soon as I unplug the network cable or set IE to Working Offline I get the error message: unable to initiate the asynchronous service invocation -- check the network connection and quite naturally, none of the RPC stuff works anymore. When I run the application in the IDE, it deploys on glassfish v3. I also sometimes package up the build and run it outside of the development environment on Tomcat 6.x. Either way, the same problem happens. The glassfish server is on port 8080 and the Tomcat server is on port 80. Thanks very much for your help, greatly appreciated. On Aug 4, 10:01 am, jhulford jhulf...@gmail.com wrote: I do development work all the time using GWT and a local server without any internet access. My job had all internet traffic blocked over the VPN I work over for the longest time too so I can pretty definitively say that bog standard GWT RPC does not require any internet access to function. I have a tomcat instance running on my local machine and a GWT app deployed to it and have no problem doing RPC calls to the tomcat server without any access to the internet. How exactly do you have your project set up? Maybe some more information would help. - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[ERROR] Uncaught exception escaped java.lang.NullPointerException: null
Hi, I am trying to parse an xml file and then for each xml entry, im parsing another xml file into for loop and then creating vertical panels and adding labels to the content of the second xml file. This is my code: try { Request request = builder.sendRequest(null, new RequestCallback() { @Override public void onError(Request request, Throwable exception) {} public int j =0; @Override public void onResponseReceived(Request request, Response response) { Document xmlDoc = XMLParser.parse(response.getText()); XMLParser.removeWhitespace(xmlDoc); Element root = xmlDoc.getDocumentElement(); NodeList URLs = root.getChildNodes(); for ( j = 0; j 2; j++) { v1[j] = new VerticalPanel(); String str = URLs.item(j).getAttributes().toString(); System.out.println(str); tab.add(v1[j],str.substring(13,16)); RequestBuilder builder1 = new RequestBuilder (RequestBuilder.GET,str.substring(13,16)+.mdl); try { Request request1 = builder1.sendRequest(null, new RequestCallback() { public void onError(Request request1, Throwable exception) { } @Override public void onResponseReceived(Request request1, Response response1) { Document xmlDoc1 = XMLParser.parse(response1.getText()); XMLParser.removeWhitespace(xmlDoc1); Element root1 = xmlDoc1.getDocumentElement(); NodeList URLs1 = root1.getChildNodes(); for (int i =0; i URLs1.getLength();i++) { String str1 = URLs1.item(i).getAttributes().toString(); System.out.println(str1); v1[j].add(new Label (hi)); // this line creates the error } } }); } catch(RequestException e){ } //end of for loop } } }); } catch(RequestException e) {} I have commented the line by which i get the error, why is that? i could not see whts wrong in my code please help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: JNSI Problem Challenge
Line 49: Object expected Char : 9 Code: 0 URL : url of my jsni.html test file HTH Help On Aug 4, 9:33 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 12:23 PM, Luciano Broussal wrote: Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. What's the text associated with this error? I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: JNSI Problem Challenge
You can probably ran it , i provided all the code needed to reproduce. I don't really know what's going wrong. Thanks On Aug 4, 9:33 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 12:23 PM, Luciano Broussal wrote: Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. What's the text associated with this error? I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: gwtSetup is not executed
Thanks Daniel for pointing out. It was stupid careless simple mistake. Feel shame to bother everyone. Sorry. On Aug 4, 5:16 am, Daniel Wellman etl...@gmail.com wrote: It looks like your method's capitalization is wrong - you want your method to be called gwtSetUp (with a capital 'u'). If you are using Java 5 or 6 then using an @Override annotation would have given you a compiler error, since your gwtSetup method did not override getSetUp. Dan On Aug 3, 9:08 pm, Art art...@gmail.com wrote: By overriding the gwtSetup method (http://google-web- toolkit.googlecode.com/svn/javadoc/1.6/index.html?overview- summary.html), I tried to do prep before each test execution. However, gwtSetup has never been executed before test execution. I feel strange that I could not to find any discussion about such simple issue anywhere. Is this happening only me? Here's the simple test case as an example: package com.appspot.inetools.newsfetcher.client; import com.google.gwt.junit.client.GWTTestCase; /** * GWT JUnit tests must extend GWTTestCase. */ public class ValidaterExecuterTest extends GWTTestCase { /** * Must refer to a valid module that sources this class. */ public String getModuleName() { return com.appspot.inetools.newsfetcher.NewsFetcher; } protected boolean gwtSetupFlag = false; protected void gwtSetup() throws Exception { super.gwtSetUp(); gwtSetupFlag = true; //fail( gwtSetup has been called); } /** * Add as many tests as you like. */ public void testSimple() { assertTrue( gwtSetupFlag); } } I launch that test by ValidaterExecuterTest-hosted.launch file on Eclipse (Galileo or Ganymede). Expected it to pass, but it fails. Environment info: x86 XP SP 3 eclipse.buildId=I20090611-1540 (Repro on Ganymede too) java.version=1.6.0_13 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product GWT 1.7.0 JUnit3: plugins\org.junit_3.8.2.v20090203-1005\junit.jar I have been currently working around by putting initialization method at the beginning of each tests. It's tedious. I like to avoid it. If someone can provide any info about this issue, I highly appreciate it. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: JNSI Problem Challenge
It's like the function was not available from javascript if it ask an object ... I tried window.myJavaStaticMethod(1,2) without no more success If i do public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); alert($wnd.myJavaStaticMethod(3,3)); }-*/; this show me 6 but it is not i want . I want to call it from javascript but the fact i get a result here means $wnd. myJavaStaticMethod exists but i can use it from javascript directly Hope this help Luciano On Aug 4, 10:25 pm, Luciano Broussal luciano.brous...@gmail.com wrote: You can probably ran it , i provided all the code needed to reproduce. I don't really know what's going wrong. Thanks On Aug 4, 9:33 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 12:23 PM, Luciano Broussal wrote: Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. What's the text associated with this error? I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: JNSI Problem Challenge
modification : I can't call it from javascript :( On Aug 4, 10:38 pm, Luciano Broussal luciano.brous...@gmail.com wrote: It's like the function was not available from javascript if it ask an object ... I tried window.myJavaStaticMethod(1,2) without no more success If i do public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = �...@com.st.jsni.client.jsni::sum(II); alert($wnd.myJavaStaticMethod(3,3)); }-*/; this show me 6 but it is not i want . I want to call it from javascript but the fact i get a result here means $wnd. myJavaStaticMethod exists but i can use it from javascript directly Hope this help Luciano On Aug 4, 10:25 pm, Luciano Broussal luciano.brous...@gmail.com wrote: You can probably ran it , i provided all the code needed to reproduce. I don't really know what's going wrong. Thanks On Aug 4, 9:33 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 12:23 PM, Luciano Broussal wrote: Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. What's the text associated with this error? I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { �...@override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI. -- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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: JNSI Problem Challenge
On 08/04/2009 01:24 PM, Luciano Broussal wrote: Line 49: Object expected Char : 9 Code: 0 URL : url of my jsni.html test file My guess is that the entire environment has not been created, hence the object expected error. What I'm saying is that the GWT-generated code that loads the $wnd.myJavaStaticMethod runs after the scripts in the body tag. You can try something like if (window.sum) sum(3,3); to prove this. You won't usually use GWT in the style of putting scripts in the body tag. You'll usually load the scripts via the head tag. Even when retrofitting existing systems, this is the common technique. HTH Help On Aug 4, 9:33 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 12:23 PM, Luciano Broussal wrote: Hi Jeff, I got a blank page and the myJavaStaticMethod is never called or on IE i got the javascript error icon on left bottom corner. What's the text associated with this error? I don't really now what is going wrong. Can you make it work on your side ? ... Thanks Luciano On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote: On 08/04/2009 10:41 AM, Luciano Broussal wrote: Hi all, I'm fighting with JSNI for a time without success trying to call a java method from my javascript stuff. I did as explained online but without success :( http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...) He is my class and html. This makes me crazy. If someone could help me to display 1+ 2 = 3 please. What symptoms does this derangement exhibit? Thanks Luciano CLASS ** package com.st.jsni.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class Jsni implements EntryPoint { @Override public void onModuleLoad() { exportStaticMethod(); } public static native void exportStaticMethod() /*-{ $wnd.myJavaStaticMethod = @com.st.jsni.client.Jsni::sum(II); }-*/; public static int sum(int a, int b) { return a + b; } } HTML * html head meta http-equiv=content-type content=text/html; charset=UTF-8 link type=text/css rel=stylesheet href=Jsni.css titleWeb Application Starter Project/title script type=text/javascript language=javascript src=jsni/ jsni.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI.-- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe script type=text/javascript language=javascript alert(myJavaStaticMethod(1,2)); /script /body /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 -~--~~~~--~~--~--~---
Google plugin demands an -AsyncAsync version of a service interface [Solved]
When I updated Google Plugin for Eclipse from version 1.0.1 to 1.1.0, my GWT project started throwing errors. I had a DataService class and a DataServiceAsync class that were working fine, but GWT was claiming that DataServiceAsync had an error and needed a DataServiceAsyncAsync. In my case, the solution lay in editing the interface declaration. Here's how DataServiceAsync used to start: @RemoteServiceRelativePath(data) public interface DataServiceAsync extends RemoteService { I changed it to this: public interface DataServiceAsync { That fixed it! I suppose that this situation arose when I copied DataService.java to DataServiceAsync.java and then fixed up the method signatures and class name, but neglected to remove the annotation and inheritence. Apparently the older version of the plugin did not mind, but the newer one does. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 and Importing GWT Independent Modules
How to set that the compiler use the jar from the project A?? i've done everything, but now when i compile the code i get import com.google.projectA cannot be resolved if i remove or change the gwt.xml with a different name it complains that it does not find the xml, so i'm sure it is finding the moduleA gwt.xml but i cant compile because of this error Att Bruno Bilescky Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog http://tcninja.blogspot.com On Mon, Aug 3, 2009 at 8:28 PM, Sumit Chandel sumitchan...@google.comwrote: Hi Lucas, You can follow the steps below to package an existing module, say module A defined in project A, that you want to reuse in another project, say project B that defines module B which itself defines an entrypoint class. 1) Create / move all the GWT code that you want to reuse in project A. 2) Create / update the module XML file for module A in the normal way, except you no longer need to define an entry point class. 3) Create a JAR for project A (project-a.jar), which should include 1) GWT source code that you want to reuse from the project, 2) The module XML file, 3) Any other public resources referenced by the module XML file, 4) The binary .class files for any server-side code that you want to reuse 4) Add the project-a.jar file to the project B classpath, as well as any other launch configurations related to project B (typically hosted mode and compile configurations). 5) Reference the module A xml file from the module B xml file (e.g. inherits name=com.google.projectA.ModuleA /). Note that since the module A xml file should already include the inherits name=com.google.gwt.user.User / inherits tag, you shouldn't need to add that reference again to the module B xml file. You should be ready to go. Give those instructions a try and let us know if you managed to package and reuse your module. Hope that helps, -Sumit Chandel On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins snown...@gmail.comwrote: Nope, Can anybody give a step-by-step ? On 29 jul, 10:49, Nuno brun...@gmail.com wrote: you dont need to do much thing for this... just create your gwt library project, you dont need to define any entrypoints. after, just click with your right button on your project, then export, then select java package after you only need to import this jar on the other project you want to use it, and on the module xml make reference to the xml of the library. you can find an example on my blog.http://tcninja.blogspot.com On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins snown...@gmail.comwrote: I looked it up all over the internet, but I only found this link : http://developerlife.com/tutorials/?p=229 I need to create a .jar with gwt views (those .java in the client package) and then import it to other gwt project, much like they do with the SmartGwt api. How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers on how to create and export GWT modules? I follow the instructions on this link above, but it just doesn't work, when I try to compile it, I get an error telling me that the compiler couldn't find the class I am using, even the class is on the / lib dir, and in my buildpath, and in the .xml with a declared inherit. Does anybody know how do I do that? -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - 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 -~--~~~~--~~--~--~---
java.io.NotSerializableException for gwt portlets - wps 6.1
We are getting java.io.NotSerializableException in one of our gwt jsr 286 api portlets in WebSphere Portal 6.1. This exception has started to surface in the logs since we enabled session replication on our WebSphere Portal server. The object which its complaining about has isSerializable interface implemented. When we dont have session replication enabled; the issue dosent occur. Has anyone seen this exception in websphere environment for gwt portlets or have 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 -~--~~~~--~~--~--~---
Will I have memory leaks if a Widget is removed from Panel without call to HandlerRegistration#removeHandler()
There is an application in which a Panel instance is *Handler for widgets, which are added dynamically depending on the result returned by async call. Instances of HandlerRegistration are not maintained by the application (i.e. values returned by #add*Handler() are not stored anywhere). Now lets suppose that one of these widgets is removed from the panel without calling respective HandlerRegistration#removeHandler(). Will I have unnecessary references to the panel related to removed widget? Is it possible that this panel (as a Handler) will be invoked to handle an event (either native or logical) having removed widget as a source (either before or after garbage collection)? GWT 1.7, no JSNI used. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Modelling framework
With SmartGWT you can represent a data structure as a DataSource. A DataSource can be tied to any kind of data provider - not just different JPA implementers but also WSDL web services, REST services, non-JPA persistence systems like Ibatis, etc. The persistence engine is pluggable, so you can swap strategies, even swap platforms (eg Java to PHP backend) without changing the UI. With SmartGWT Pro you can generate SQL tables or Hibernate entities from a DataSource, or vice versa, that is, generate a DataSource from existing SQL tables or Hibernate entities. Then you can just drag the DataSource onto a grid component and you've got the ability to do CRUD operations without writing any code, and you can add business logic from there. Probably the best single overview is here: http://www.jroller.com/sjivan/entry/smartgwt_out_of_beta_v1 On Aug 4, 7:40 am, Kaspar Fischer kaspar.fisc...@dreizak.com wrote: The thing is, there IS a framework for what you are trying to do (i.e. represent a data structure without being tied to implementation). It's called Java. If you're looking for the ability to quickly add fields to customer's data structures, that's dependent on low coupling and other good programming /techniques/ not a given framework --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: *.cache.html blocked by firewall - GWT team opinions please?
I have been able to simulate the problem by causing a 404 when the *.cache.html is requested. Stepping through firebug, this is the relevant code in the .nocache.js: 22 function maybeStartModule(){ 23 if (scriptsDone loadDone) { scriptsDone is never true because the script is no longer available, which is happening when the cache.html gets blocked by a firewall. Therefore our application stays in a perpetual loading application page which isn't a good look. Is there a way to test whether the cache.html file has the correct content, assuming there is a way to wait for it to load completely? Joe On Aug 5, 1:33 am, Joe Cole profilercorporat...@gmail.com wrote: When debugging a customer who couldn't load our site with an http connection (worked fine on ssl as it bypassed the firewall) we came across an issue where if we tried to load the *.cache.html file gwt was trying to load manually the companies firewall had displayed an error message. There was no error on the gwt side, so we were unable to provide feedback to the user. Is it possible to write something in the nocache.js that checks that the *.cache.html that is loaded is actually what we expect, and if not, we can get an error message back to the user in some way? Currently we use the following method for detecting load errors, but they aren't being called. Could it be tied into this in some way? meta name=gwt:onLoadErrorFn content=loaderror/meta meta name=gwt:onPropertyErrorFn content=unsupported/meta script type=text/javascript !-- // Called when GWT is not supported function unsupported() { document.getElementById('loading').className = loadError message-center-screen; document.getElementById('loading-content').innerHTML = Your browser is not supported. Please reload with a modern browser such as a href=\http://www.getfirefox.com\;Firefox/a or Internet Explorer Version 6 or Above.; } function loaderror(){ document.getElementById('loading').className = loadError message- center-screen; document.getElementById('loading-content').innerHTML = Error: There was a problem loading the application.; } -- /script E.g. a new meta property could be added that tells us the cache file is not able to be loaded, with the name of the cache file so we can show them the error by opening it in a new window so they can see the error message. 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: Modelling framework
It apparently can be tied to a backend datasource, although all of these examples have setClientOnly(true) There are no examples that I know of actually showing a connection, for example with a sample mysql database or really anything else. Please correct me if I'm wrong. On Tue, Aug 4, 2009 at 3:42 PM, ckendrick charles.kendr...@gmail.comwrote: With SmartGWT you can represent a data structure as a DataSource. A DataSource can be tied to any kind of data provider - not just different JPA implementers but also WSDL web services, REST services, non-JPA persistence systems like Ibatis, etc. The persistence engine is pluggable, so you can swap strategies, even swap platforms (eg Java to PHP backend) without changing the UI. With SmartGWT Pro you can generate SQL tables or Hibernate entities from a DataSource, or vice versa, that is, generate a DataSource from existing SQL tables or Hibernate entities. Then you can just drag the DataSource onto a grid component and you've got the ability to do CRUD operations without writing any code, and you can add business logic from there. Probably the best single overview is here: http://www.jroller.com/sjivan/entry/smartgwt_out_of_beta_v1 On Aug 4, 7:40 am, Kaspar Fischer kaspar.fisc...@dreizak.com wrote: The thing is, there IS a framework for what you are trying to do (i.e. represent a data structure without being tied to implementation). It's called Java. If you're looking for the ability to quickly add fields to customer's data structures, that's dependent on low coupling and other good programming /techniques/ not a given framework --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: oophm with the lastest eclipse plugin on Mac
You can also try this page: http://code.google.com/p/google-web-toolkit/wiki/OophmForMacBasedGwtContributors On Aug 4, 1:39 pm, Masto thomas.ric...@gmail.com wrote: Hi there, i'm currently trying to make the oophm works on my Mac using eclipse 3.5 and the latest plugin. I use the revision 5873 of the trunk (ant clean then ant my project refers to build/staging/gwt-mac-0.0.0/). Because i use gwt 2.0, a checkbox appears under Run Configuration GWT Tab just under the URL. So i checked it. The logs show that : 2009-08-04 11:33:30.967 java[40650:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-08-04 11:33:30.969 java[40650:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 2009-08-04 11:33:34.458 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1c8e70 '(null)') unlocked when not locked 2009-08-04 11:33:34.459 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.673 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1bc570 '(null)') unlocked when not locked 2009-08-04 11:33:34.674 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.775 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1ddb30 '(null)') unlocked when not locked 2009-08-04 11:33:34.775 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.901 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1df520 '(null)') unlocked when not locked 2009-08-04 11:33:34.903 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.207 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x11d330 '(null)') unlocked when not locked 2009-08-04 11:33:38.208 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.308 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x121930 '(null)') unlocked when not locked 2009-08-04 11:33:38.309 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.445 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e4700 '(null)') unlocked when not locked 2009-08-04 11:33:38.445 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.316 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e5950 '(null)') unlocked when not locked 2009-08-04 11:33:39.317 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.418 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x134f90 '(null)') unlocked when not locked 2009-08-04 11:33:39.419 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.540 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e60f0 '(null)') unlocked when not locked 2009-08-04 11:33:39.542 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.757 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e77f0 '(null)') unlocked when not locked 2009-08-04 11:33:40.757 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.870 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e7970 '(null)') unlocked when not locked 2009-08-04 11:33:40.870 java[40650:1c303] *** Break on _NSLockError() to debug. The Swing window shows up but with a beachball running, so i can not click on it. Did someone face a similar issue? How did you work it around ? Thanks, Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: oophm with the lastest eclipse plugin on Mac
I am also getting the beachball with the swing window. I am still able to view my app in firefox and debug though. Have not figured out how to fix the beachball issue. -mike On Aug 4, 1:39 pm, Masto thomas.ric...@gmail.com wrote: Hi there, i'm currently trying to make the oophm works on my Mac using eclipse 3.5 and the latest plugin. I use the revision 5873 of the trunk (ant clean then ant my project refers to build/staging/gwt-mac-0.0.0/). Because i use gwt 2.0, a checkbox appears under Run Configuration GWT Tab just under the URL. So i checked it. The logs show that : 2009-08-04 11:33:30.967 java[40650:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-08-04 11:33:30.969 java[40650:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 2009-08-04 11:33:34.458 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1c8e70 '(null)') unlocked when not locked 2009-08-04 11:33:34.459 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.673 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1bc570 '(null)') unlocked when not locked 2009-08-04 11:33:34.674 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.775 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1ddb30 '(null)') unlocked when not locked 2009-08-04 11:33:34.775 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.901 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1df520 '(null)') unlocked when not locked 2009-08-04 11:33:34.903 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.207 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x11d330 '(null)') unlocked when not locked 2009-08-04 11:33:38.208 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.308 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x121930 '(null)') unlocked when not locked 2009-08-04 11:33:38.309 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.445 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e4700 '(null)') unlocked when not locked 2009-08-04 11:33:38.445 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.316 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e5950 '(null)') unlocked when not locked 2009-08-04 11:33:39.317 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.418 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x134f90 '(null)') unlocked when not locked 2009-08-04 11:33:39.419 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.540 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e60f0 '(null)') unlocked when not locked 2009-08-04 11:33:39.542 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.757 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e77f0 '(null)') unlocked when not locked 2009-08-04 11:33:40.757 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.870 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e7970 '(null)') unlocked when not locked 2009-08-04 11:33:40.870 java[40650:1c303] *** Break on _NSLockError() to debug. The Swing window shows up but with a beachball running, so i can not click on it. Did someone face a similar issue? How did you work it around ? Thanks, Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: making gwt rpc call from ordinary java
I'm reasonably sure this is what the JSON packages are for. You'll want to pass messages around using JSON, not the custom serialization done by GWT, as that would make what you're trying to do greatly more complicated. On Aug 4, 1:09 pm, Tibor blene...@gmail.com wrote: Hi, I am creating GWT application and I need to upload data to the gwt servlet in a batch from commandline client. For convenience I would like to use GWT RPC mechanism also in commandline client. Is there some way, how to do GWT RPC call from normal Java code outside of GWT enviroment? How to obtain client proxy in Java? Thanks in advance. Tibor Blenessy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Modelling framework
Hi John, For live connections to SQL, Hibernate and other data providers see the SmartGWT Pro/EE showcase: http://www.smartclient.com/smartgwtee/showcase/ As well as Sanjiv's blog on SmartGWT Pro/EE, which is the link I meant to post before: http://www.jroller.com/sjivan/entry/introduction_to_smartgwt_enterprise_edition Note that the SmartGWT non-Pro/EE showcase shows clientOnly DataSources, but as I mentioned, DataSources are pluggable/swappable. Every interaction you see in the SmartGWT showcase with a clientOnly DataSource also works with SQL, Hibernate or custom DataSource in SmartGWT EE. On Aug 4, 4:16 pm, John Ivens john.wagner.iv...@gmail.com wrote: There are no examples that I know of actually showing a connection, for example with a sample mysql database or really anything else. Please correct me if I'm wrong. On Tue, Aug 4, 2009 at 3:42 PM, ckendrick charles.kendr...@gmail.comwrote: With SmartGWT you can represent a data structure as a DataSource. A DataSource can be tied to any kind of data provider - not just different JPA implementers but also WSDL web services, REST services, non-JPA persistence systems like Ibatis, etc. The persistence engine is pluggable, so you can swap strategies, even swap platforms (eg Java to PHP backend) without changing the UI. With SmartGWT Pro you can generate SQL tables or Hibernate entities from a DataSource, or vice versa, that is, generate a DataSource from existing SQL tables or Hibernate entities. Then you can just drag the DataSource onto a grid component and you've got the ability to do CRUD operations without writing any code, and you can add business logic from there. Probably the best single overview is here: http://www.jroller.com/sjivan/entry/smartgwt_out_of_beta_v1 On Aug 4, 7:40 am, Kaspar Fischer kaspar.fisc...@dreizak.com wrote: The thing is, there IS a framework for what you are trying to do (i.e. represent a data structure without being tied to implementation). It's called Java. If you're looking for the ability to quickly add fields to customer's data structures, that's dependent on low coupling and other good programming /techniques/ not a given framework --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: History library for GWT
Hi Salvador, GWT comes with its own History API. Take a look at the documentation for it at the link below. History API: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideHistory http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideHistoryHope that helps, -Sumit Chandel On Tue, Aug 4, 2009 at 7:46 AM, Salvador Maravilla Gil salvador.maravi...@gmail.com wrote: Hi, Can anybody recommend a history library for GWT ? Rya Ryan named a history library in his presentation but i wasn't able to find it. Can anyone help ? Thank in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: same problem
Hi Sven, Are you using the GWT Eclipse plugin for your project? If so, did you create the launch configuration you're using to start hosted mode with the plugin wizard? One thing to try to solve this issue is to ensure that the code you're trying to Compile/Browse is indeed the latest running in hosted mode. Typically, you can make sure that the latest code is picked up by hitting Refresh on the hosted mode browser. My guess is that you've already tried this, and probably even restarted hosted mode to make sure the new code changes were picked up. I just wanted to mention it in case. Hope that helps, -Sumit Chandel On Tue, Aug 4, 2009 at 6:50 AM, Sven sven.reinhard...@googlemail.comwrote: Everytime I start Compile/Browse I get: GWT module 'xx' needs to be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode here's the log: [INFO] Compiling module de.systemagmbh.sar.SystemaAttendanceRecorder [INFO] Compiling 6 permutations [INFO] Permutation compile succeeded Linking into D:\DEV\WORKSPACES\GWT_SAR_DEV\SystemaAttendanceRecorder \war Link succeeded Link succeeded Compilation succeeded -- 58,516s does anyone know a solution? I'm currently using GWT 1.7 and Eclipse 3.5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Modelling framework
Sweet!!! I noticed that you have Oracle support. Do you have a way to support the Oracle XMLType, at least a way that is more direct than the way that I have done this before, where I kludged Hibernate to be able to store XML in the database? On Tue, Aug 4, 2009 at 4:38 PM, ckendrick charles.kendr...@gmail.comwrote: Hi John, For live connections to SQL, Hibernate and other data providers see the SmartGWT Pro/EE showcase: http://www.smartclient.com/smartgwtee/showcase/ As well as Sanjiv's blog on SmartGWT Pro/EE, which is the link I meant to post before: http://www.jroller.com/sjivan/entry/introduction_to_smartgwt_enterprise_edition Note that the SmartGWT non-Pro/EE showcase shows clientOnly DataSources, but as I mentioned, DataSources are pluggable/swappable. Every interaction you see in the SmartGWT showcase with a clientOnly DataSource also works with SQL, Hibernate or custom DataSource in SmartGWT EE. On Aug 4, 4:16 pm, John Ivens john.wagner.iv...@gmail.com wrote: There are no examples that I know of actually showing a connection, for example with a sample mysql database or really anything else. Please correct me if I'm wrong. On Tue, Aug 4, 2009 at 3:42 PM, ckendrick charles.kendr...@gmail.com wrote: With SmartGWT you can represent a data structure as a DataSource. A DataSource can be tied to any kind of data provider - not just different JPA implementers but also WSDL web services, REST services, non-JPA persistence systems like Ibatis, etc. The persistence engine is pluggable, so you can swap strategies, even swap platforms (eg Java to PHP backend) without changing the UI. With SmartGWT Pro you can generate SQL tables or Hibernate entities from a DataSource, or vice versa, that is, generate a DataSource from existing SQL tables or Hibernate entities. Then you can just drag the DataSource onto a grid component and you've got the ability to do CRUD operations without writing any code, and you can add business logic from there. Probably the best single overview is here: http://www.jroller.com/sjivan/entry/smartgwt_out_of_beta_v1 On Aug 4, 7:40 am, Kaspar Fischer kaspar.fisc...@dreizak.com wrote: The thing is, there IS a framework for what you are trying to do (i.e. represent a data structure without being tied to implementation). It's called Java. If you're looking for the ability to quickly add fields to customer's data structures, that's dependent on low coupling and other good programming /techniques/ not a given framework --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google plugin demands an -AsyncAsync version of a service interface [Solved]
Version 1.1.0 checks GWT RPC interfaces. Any interface that extends the RemoteService marker interface is considered to be a sync interface. Once that happens it looks for an async interface. On Tue, Aug 4, 2009 at 6:09 PM, Tim McCormack ti...@ccs.neu.edu wrote: When I updated Google Plugin for Eclipse from version 1.0.1 to 1.1.0, my GWT project started throwing errors. I had a DataService class and a DataServiceAsync class that were working fine, but GWT was claiming that DataServiceAsync had an error and needed a DataServiceAsyncAsync. In my case, the solution lay in editing the interface declaration. Here's how DataServiceAsync used to start: @RemoteServiceRelativePath(data) public interface DataServiceAsync extends RemoteService { I changed it to this: public interface DataServiceAsync { That fixed it! I suppose that this situation arose when I copied DataService.java to DataServiceAsync.java and then fixed up the method signatures and class name, but neglected to remove the annotation and inheritence. Apparently the older version of the plugin did not mind, but the newer one does. -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
IE and Buttons without a form
I have a few TextBoxes and some Buttons that are NOT in a form or a FormPanel. I have a ClickHandler for the buttons that reads the fields and updates the UI. Additionally I added KeyPressHandlers to the TextBoxes to catch ENTER and then fire the button's action. This works fine in all browsers except IE. In IE, one of the Button wrongly gets hightlighted, presumably because it is the default button, and when I press ENTER the key is not captured by the TextBox but instead something else happens - if I remember correctly it reloads the page. Anyway, my handlers are never executed. So is there any way to: 1) Disable the highlighting of the default button 2) Prevent the browser from stealing the ENTER key from the TextBoxes Thanks, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Modelling framework
We do give you the ability get in and override any part of the generated SQL as a Velocity template. Simple example: http://www.smartclient.com/smartgwtee/showcase/#large_valuemap_sql Tour de force (dynamic reporting with filter, sort and data paging, no server code required): http://www.smartclient.com/smartgwtee/showcase/#sql_dynamic_reporting I think that would cover you for lot of use cases. If there's something more we should be doing here I'd love to know. Note that we also have upcoming support for XML DB (Berkeley OSS and Oracle flavors). It's just another type of DataSource, which generates XQuery instead of SQL. On Aug 4, 5:17 pm, John Ivens john.wagner.iv...@gmail.com wrote: Sweet!!! I noticed that you have Oracle support. Do you have a way to support the Oracle XMLType, at least a way that is more direct than the way that I have done this before, where I kludged Hibernate to be able to store XML in the database? On Tue, Aug 4, 2009 at 4:38 PM, ckendrick charles.kendr...@gmail.comwrote: Hi John, For live connections to SQL, Hibernate and other data providers see the SmartGWT Pro/EE showcase: http://www.smartclient.com/smartgwtee/showcase/ As well as Sanjiv's blog on SmartGWT Pro/EE, which is the link I meant to post before: http://www.jroller.com/sjivan/entry/introduction_to_smartgwt_enterpri... Note that the SmartGWT non-Pro/EE showcase shows clientOnly DataSources, but as I mentioned, DataSources are pluggable/swappable. Every interaction you see in the SmartGWT showcase with a clientOnly DataSource also works with SQL, Hibernate or custom DataSource in SmartGWT EE. On Aug 4, 4:16 pm, John Ivens john.wagner.iv...@gmail.com wrote: There are no examples that I know of actually showing a connection, for example with a sample mysql database or really anything else. Please correct me if I'm wrong. On Tue, Aug 4, 2009 at 3:42 PM, ckendrick charles.kendr...@gmail.com wrote: With SmartGWT you can represent a data structure as a DataSource. A DataSource can be tied to any kind of data provider - not just different JPA implementers but also WSDL web services, REST services, non-JPA persistence systems like Ibatis, etc. The persistence engine is pluggable, so you can swap strategies, even swap platforms (eg Java to PHP backend) without changing the UI. With SmartGWT Pro you can generate SQL tables or Hibernate entities from a DataSource, or vice versa, that is, generate a DataSource from existing SQL tables or Hibernate entities. Then you can just drag the DataSource onto a grid component and you've got the ability to do CRUD operations without writing any code, and you can add business logic from there. Probably the best single overview is here: http://www.jroller.com/sjivan/entry/smartgwt_out_of_beta_v1 On Aug 4, 7:40 am, Kaspar Fischer kaspar.fisc...@dreizak.com wrote: The thing is, there IS a framework for what you are trying to do (i.e. represent a data structure without being tied to implementation). It's called Java. If you're looking for the ability to quickly add fields to customer's data structures, that's dependent on low coupling and other good programming /techniques/ not a given framework --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
differ binding json parse?
may i know when we use inherits name=com.google.gwt.json.JSON / does it automatically use the browser built in native json.parse if browser support it and do fall-back to eval when browser not support 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 -~--~~~~--~~--~--~---
data interchange speed
if speed is the main concern, should i choose to use json for data interchange with server compared with RPC call and XML? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 serialization problem
I have a simple one-to-many betwen two entities. The parent entity uses List to contain the child entities. I am able to persist these entities in the datastore without problems. However, when reading a root entity at the server, I get: rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: oophm with the lastest eclipse plugin on Mac
Yes, I was having this problem and posted the answer to my own question in the above mentioned link: To answer my own question, and for other users having the same issue, this worked: I created a standard Java Application launch configuration, using com.google.gwt.dev.HostedMode as the Main class, and the above recommended classpath. You'll have to get the command arguments right, but you're bright enough to figure that out. Having done that, it would appear to work. It was never clear to me when reading the instructions before (maybe I should have read more carefully) that a Web Application launch configuration could no longer be used. A Java Application launch configuration is required. That's the magic sauce. Note, OOPHM will not automatically launch your browser on the Mac. You will instead see an error in the OOPHM console about firefox. Ignore it. Copy the URL it tried to launch firefox with and past it into Safari (assuming you have installed the OOPHM .dmg file to get the browser plugin). See my other comments on the above referenced page about other issues you may experience. But basically it works. -Brett On Aug 5, 8:05 am, miller millermich...@gmail.com wrote: You can also try this page:http://code.google.com/p/google-web-toolkit/wiki/OophmForMacBasedGwtC... On Aug 4, 1:39 pm, Masto thomas.ric...@gmail.com wrote: Hi there, i'm currently trying to make the oophm works on my Mac using eclipse 3.5 and the latest plugin. I use the revision 5873 of the trunk (ant clean then ant my project refers to build/staging/gwt-mac-0.0.0/). Because i use gwt 2.0, a checkbox appears under Run Configuration GWT Tab just under the URL. So i checked it. The logs show that : 2009-08-04 11:33:30.967 java[40650:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-08-04 11:33:30.969 java[40650:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 2009-08-04 11:33:34.458 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1c8e70 '(null)') unlocked when not locked 2009-08-04 11:33:34.459 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.673 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1bc570 '(null)') unlocked when not locked 2009-08-04 11:33:34.674 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.775 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1ddb30 '(null)') unlocked when not locked 2009-08-04 11:33:34.775 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:34.901 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1df520 '(null)') unlocked when not locked 2009-08-04 11:33:34.903 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.207 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x11d330 '(null)') unlocked when not locked 2009-08-04 11:33:38.208 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.308 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x121930 '(null)') unlocked when not locked 2009-08-04 11:33:38.309 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:38.445 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e4700 '(null)') unlocked when not locked 2009-08-04 11:33:38.445 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.316 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e5950 '(null)') unlocked when not locked 2009-08-04 11:33:39.317 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.418 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x134f90 '(null)') unlocked when not locked 2009-08-04 11:33:39.419 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:39.540 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e60f0 '(null)') unlocked when not locked 2009-08-04 11:33:39.542 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.757 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e77f0 '(null)') unlocked when not locked 2009-08-04 11:33:40.757 java[40650:1c303] *** Break on _NSLockError() to debug. 2009-08-04 11:33:40.870 java[40650:1c303] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1e7970 '(null)') unlocked when not locked 2009-08-04 11:33:40.870 java[40650:1c303] *** Break on _NSLockError() to debug. The Swing window shows up but with a beachball running, so i can not click on it. Did someone face a similar issue? How did you work it around ? Thanks, Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the
Cookies and client state. Suggestions?
I have a question about cookies and maintaining client-side state, and looking for suggestions about how to solve (what I perceive to be) an issue (for us). We allow the user to create a sticky login. You know, the one where they tick the checkbox that says something like Stay logged in? This of course creates a persistent authentication token (cookie) on the client. Really we only need this cookie on the first hit from the client -- we re-authenticate then send back (via RPC) a session identifier that is used in all further conversations with the server. What we would like to avoid, but seems unavoidable (hence this post), is having the cookie sent with every request to the site. Because the entire site, from the front page all the way back is one entire GWT application, the path (in cookie terms) is always the root of our server. Therefore, the cookie gets sent with every RPC to every service. We would like to stuff additional persistent information down to the client for survivability across visits, such as user preferences, but we don't want this stuff blasted back to us with every request. For the purpose of envisioning our traffic patterns, imagine our site is an online game (it's not, but...) with a single client making one call every second or three and 10k+ simultaneous users. Right now the typical payload is only two or three dozen bytes, but the size of the cookie even though small is actually larger. We could cut our traffic in half without the cookie being sent back on every request. Is there an effective way to break up an single application across a URL space? Maybe via multiple modules? For example, can we serve the 'login' module .js files from domain/login and the 'settings' module .js files from domainsettings? If so, does that mean that from GWT I can access cookies in the path '/login'? My concern is that because the page was served from domain/, even though the script was served from domain/login that those cookies will not be accessible. As it is, if the server sends back a cookie with a path / login, they are not accessible to the client. I was surprised, though maybe shouldn't be, as I expected JavaScript served by a certain domain to be able to access ALL cookies in that domain, regardless of path. That seems not to be the case. Thoughts and suggestions welcome? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Async interface black magic
2009/8/4 Rob Heittman rob.heitt...@solertium.com I bet you were into the lovely EJB artifacts too? Ha ha this is strangely reminiscent. No, I wasn't. Really, I don't see the correlation. Boiler plate, _almost_ duplicate interfaces anyone? Business methods defined in the remote interface must be duplicated in the bean class My feeling as a GWT developer is that overall GWT has been moving, from 1.6 thru 2.0 trunk, to a position of being less confusing and more deterministic and predictable. I like this. Very true. If I had time I would love to hack the gwt compiler to see what kind of problems might occur if it generated continuation style js. I think, boiled down, my feeling is that the impedance mismatch between XmlHttpRequest and RPC continuations is just too steep to ever really abstract away successfully, so I worry that any effort in that direction would be bootless. Mind, I would probably have said that several years ago about Java-to-JS compilation in general, so if anyone can prove my belief wrong, it's this gang here. Yes I agree that the guys behind GWT change the way you think about client side web dev which makes anything seem possible. Maybe even the impossible. Cheers, John --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---