GWT Debugging with an external server
Hi, I used to use GWT's internal server to debug my code but I now have the need to use an external server. I followed the instructions in the gwt eclipse plug-in (http:// code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee) and I indeed was successful but I now lack a very needed feature that I previously had. Hot-swapping code does not work when editing an rpc-service (myClass extends RemoteServiceServlet) because GWT uses reflection in it's code and that crashes JPDA. Now, having explained why it does not work, I still hope for a miracle. Has anyone found a work-around or solution for this issue? Thanks, Ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Possible problem with GWT URL mechanism and cache
Hi Chris, I'm sorry but as I first stated I'm not sure what underlying server I'm using as the problem arises when using the built-in server in the GWT Eclipse plug-in Is this apache? Do you know? If so, do you know where I should look for its htaccess file? Thanks On 30 יולי, 18:56, Chris Conroy con...@google.com wrote: If you use Apache, the following .htaccess should work: Files *.nocache.* ExpiresDefault access /Files Files *.cache.* ExpiresDefault now plus 1 year /Files See the Compiling and Debugging section of the dev guide:http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu... On Fri, Jul 30, 2010 at 2:35 AM, Ittai etai...@gmail.com wrote: Hi Chris, Thanks for your reply. I did not configure my web-server what so ever. Just used the GWT debug console from inside eclipse (with GWT plug- in). Can you maybe point me to where I can still check these configurations? Thanks, Ittai On Jul 29, 8:38 pm, Chris Conroy con...@google.com wrote: This sounds like you misconfigured your webserver to serve up the .nocache files as cached. On Thu, Jul 29, 2010 at 2:51 AM, Ittai etai...@gmail.com wrote: Hi, I'm encountering a problem, currently on IE8 and Win XP, where I can start up the debug mode on eclipse and enter the URL of my application on IE8: http://localhost:8080/myModule/myModule.html?params and everything will work properly. If I stop the debug, change the code and build the application again, of course new ADE43343.html file are created and when I enter the URL again in IE8 I see in the debug console in eclipse that a 404 message has been sent as the browser requested an incorrect URL. Which on the one hand remained the same(myModule.html), but on the other hand changed (generated html file). Another point to notice is that if I clear the cache of the browser all is well. Now, the issue is that I need this change from version to version (generated file to generated file) to be seemless. I tried adding the following tag to the myModule.html file: META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE but it did not seem to do the trick. Has anyone encountered this? Can you maybe point me to the right direction? Thanks a lot in advance ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Chris Conroy Software Engineer Google, Atlanta- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Chris Conroy Software Engineer Google, Atlanta-הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Possible problem with GWT URL mechanism and cache
Hi, I'm encountering a problem, currently on IE8 and Win XP, where I can start up the debug mode on eclipse and enter the URL of my application on IE8: http://localhost:8080/myModule/myModule.html?params and everything will work properly. If I stop the debug, change the code and build the application again, of course new ADE43343.html file are created and when I enter the URL again in IE8 I see in the debug console in eclipse that a 404 message has been sent as the browser requested an incorrect URL. Which on the one hand remained the same(myModule.html), but on the other hand changed (generated html file). Another point to notice is that if I clear the cache of the browser all is well. Now, the issue is that I need this change from version to version (generated file to generated file) to be seemless. I tried adding the following tag to the myModule.html file: META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE but it did not seem to do the trick. Has anyone encountered this? Can you maybe point me to the right direction? Thanks a lot in advance ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
What does issue accepted means?
Hi All, I've recently run into a bug (Issue 2759 to be precise) and when I found that it existed in the issue tracker I was very pleased only I saw that it's status is accepted but the Milestone is 1_6_RC which confused me. Is it only a matter of workload which has this bug (and other bugs which are just accpeptaed) delayed for 3 versions? (if so it is understandable even if annoying) or is this bug just buried but not rejected? Thanks a lot Ittai http://code.google.com/p/google-web-toolkit/issues/detail?id=2759can=1q=deckpanel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.0 and much, much more...
Congrats and thank you to the whole GWT team! Hope the move from 1.7 to 2.0 won't be painfull :) On Dec 9, 5:13 am, Miguel Méndez mmen...@google.com wrote: Hi Folks! We have some very exciting announcements today. Please check out the following blog post that covers the GWT 2.0 SDK, Google Plugin for Eclipse, and -- brand new in GWT 2.0 -- a performance analysis tool called Speed Tracer. I think that you will find it pretty interesting... http://googlewebtoolkit.blogspot.com/2009/12/introducing-google-web-t... -- Miguel on behalf of the GWT team -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: About GQuery
If you're using eclipse you can just add the jar to your build path :right click on project--build path--configure build path, there in the libraries tab you can select to add a jar. Once you've added it you can click on the plus sign right beside it, select source attachment and click on edit- point to the Javadoc file and you're done. On Oct 17, 6:43 pm, Proxy luigiadva...@gmail.com wrote: Hey, I'm new to GWT and I was wondering if it's recommended to useGQueryor should I try to stick to pure Java as much as possible? In any case I've seen the wiki for how to useGQueryand I can't find the build.xml file anywhere in my Eclipse Project =/ (Eclipse Galileo) it says I must do this: which will create a bunch of files containing a sample project. Find the build.xml file and edit the section with id=project.class.path adding pathelement location=PATH_TO_DOWNLOADED_gwtquery-1.0-SNAPSHOT.jar/ If you're using Eclipse, you may also want to edit the .classpath file and add the following: classpathentry kind=lib path=PATH_TO_DOWNLOADED_gwtquery-1.0- SNAPSHOT.jar/ but I can't find the build.xml and I'm unsure if the .classpath it refers to is the one at the beginning of the project (just a .classpath file). Also I was wondering how and where to add the javadoc ofGQueryso I can have access to it while developing... thanks for any answer =) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 get a reference to the Window object using GWTQuery?
The title pretty much says it all. I'm trying to use jQuery's ability (hoping GWTQuery has implemented it) to pass a callback function to the window.resize something like this(example from jquery site): $(window).resize(function(){ alert(Stop it!); }); but when I tryi to type $(window) in Eclipse I get an error that window can not be resolved. If anyone's interested in the bigger picture I'm basically trying to get an indciation from the window that is has finished the resizing operation and thus available for further resizing. Thanks for any help Ittai P.S. please no lectures about browser development and resizing as I'm developing an in house app which just happens to use a 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-tool...@googlegroups.com. To unsubscribe from this group, send email 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: VerticalPanel insert and index
If anyone else ever wonder about this issue I looked in the source code and the index range is actually set using the getWidgetCount() which I think is wrong but nevermind. As a workaround I'm using another grid with 1 column and k rows for each column so I can have an uneven grid On 25 נובמבר, 11:27, Ittai etai...@gmail.com wrote: Hi, I tested and saw that when the verticalPanel is created it will receive the index values of 0 and 1. and if you add by panel.add (widget) a label then you will be able to use 0,1,2 but still I have no way to manipulate the index myself Please has anyone any idea? On 24 נובמבר, 18:38,Ittaietai...@gmail.com wrote: Hello all, I have an array of strings which I divide unevenly between different columns of a grid (by some unrelated logic) and I need the string in the i place of the array to be inserted to the i place of the column. My grid holds one row and 6 columns and in each column I have a VerticalPanel which acts as my column, mainly because the columns are in different sizes and can change. What i wanted to do is something like this: for (int i=0;iarray.length;i++){ Label labelWidget = new Label(array[i]); getVerticalPanelColumn().insert(labelWidget,i); //where getVerticalPanelColumn() is my method } Now I noticed that the API stated that IndexOutOfBounds will be thrown if the index passed to insert is out of range but the problem is that I couldn't, for the life of me, find any way to set the range'/size/ capacity of the verticalPanel or to query it (and I don't mean widgetCount() I mean the index to which I can relate). So basically as a horibble workaround (which I won't use) I think I can add i null widgets to the VerticalPanel thus I believe I will increment the index and do my iteration but this hack is irrelevant for me due to the cost of all those null widgets addition to all my columns. Basically I would like the insert to just insert the widget at the closest point to i that is if i==5 and the panel holds only widget whose index is 1 4 7 then the insert should insert the widget between 4 and 7 if i==10 it should just insert it in the end and remeber its index is 10. Has anyone encountered this? Isn't this some sort of bug that you have no way to set or query an object about the index range but you can pass it an index variable? Thanks a million for any help Ittai-הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: VerticalPanel insert and index
Hi, I tested and saw that when the verticalPanel is created it will receive the index values of 0 and 1. and if you add by panel.add (widget) a label then you will be able to use 0,1,2 but still I have no way to manipulate the index myself Please has anyone any idea? On 24 נובמבר, 18:38, Ittai etai...@gmail.com wrote: Hello all, I have an array of strings which I divide unevenly between different columns of a grid (by some unrelated logic) and I need the string in the i place of the array to be inserted to the i place of the column. My grid holds one row and 6 columns and in each column I have a VerticalPanel which acts as my column, mainly because the columns are in different sizes and can change. What i wanted to do is something like this: for (int i=0;iarray.length;i++){ Label labelWidget = new Label(array[i]); getVerticalPanelColumn().insert(labelWidget,i); //where getVerticalPanelColumn() is my method } Now I noticed that the API stated that IndexOutOfBounds will be thrown if the index passed to insert is out of range but the problem is that I couldn't, for the life of me, find any way to set the range'/size/ capacity of the verticalPanel or to query it (and I don't mean widgetCount() I mean the index to which I can relate). So basically as a horibble workaround (which I won't use) I think I can add i null widgets to the VerticalPanel thus I believe I will increment the index and do my iteration but this hack is irrelevant for me due to the cost of all those null widgets addition to all my columns. Basically I would like the insert to just insert the widget at the closest point to i that is if i==5 and the panel holds only widget whose index is 1 4 7 then the insert should insert the widget between 4 and 7 if i==10 it should just insert it in the end and remeber its index is 10. Has anyone encountered this? Isn't this some sort of bug that you have no way to set or query an object about the index range but you can pass it an index variable? Thanks a million for any help Ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
VerticalPanel insert and index
Hello all, I have an array of strings which I divide unevenly between different columns of a grid (by some unrelated logic) and I need the string in the i place of the array to be inserted to the i place of the column. My grid holds one row and 6 columns and in each column I have a VerticalPanel which acts as my column, mainly because the columns are in different sizes and can change. What i wanted to do is something like this: for (int i=0;iarray.length;i++){ Label labelWidget = new Label(array[i]); getVerticalPanelColumn().insert(labelWidget,i); //where getVerticalPanelColumn() is my method } Now I noticed that the API stated that IndexOutOfBounds will be thrown if the index passed to insert is out of range but the problem is that I couldn't, for the life of me, find any way to set the range'/size/ capacity of the verticalPanel or to query it (and I don't mean widgetCount() I mean the index to which I can relate). So basically as a horibble workaround (which I won't use) I think I can add i null widgets to the VerticalPanel thus I believe I will increment the index and do my iteration but this hack is irrelevant for me due to the cost of all those null widgets addition to all my columns. Basically I would like the insert to just insert the widget at the closest point to i that is if i==5 and the panel holds only widget whose index is 1 4 7 then the insert should insert the widget between 4 and 7 if i==10 it should just insert it in the end and remeber its index is 10. Has anyone encountered this? Isn't this some sort of bug that you have no way to set or query an object about the index range but you can pass it an index variable? Thanks a million for any help Ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 Eclipse Plugin - doubt about Web Application
+1 I'd like to know what it does? It says Suppress warnings about these build path entries outside of WEB-INF/lib but what does it actually do? only suppress the warnings? On Oct 14, 3:12 pm, Diego Lovison diegolovi...@gmail.com wrote: click with the right button in the project will open one window click in properties.. go to Google - Web Application what is the propose add the jar here? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: JSNI and resizeTo(height,width)
So, to summarize what I discovered is that, again, it is my fault and not GWT's (sorry GWT team). The resizeTo method relates to a single tab opened window and it refers to the whole window size and not only the content size. These two points failed me. That's it, hope someone will benefit from this Ittai On Oct 12, 10:58 pm, Ittai etai...@gmail.com wrote: Interesting, I did compile again and now I get the alerts on my IE also, which does explain one voodoo behaviour, but now I still don't understand why the line: $wnd.resizeTo(width, height); doesn't get executed in the function when the very similar line: window.resizeTo(width, height); does work in actual native javascript. Has anyone actually tried using this before in GWT? Because I saw a lot of posts and article refer to it but I don't understand what's different about this. Maybe someone from the gwt team can shed some light? Ittai On Oct 12, 10:50 pm, Ittai etai...@gmail.com wrote: Hi Chris, First of all thanks for your feedback. I think I did try that but I'm not sure as I've tried several things and it's been a few long hours but still what you're saying is new to me. If I target from an external browser while in hosted mode then that browser will see other compiled code then the hosted mode browser? I thought that there was no difference between the browsers in that since Ittai On Oct 12, 10:29 pm, Chris Ramsdale cramsd...@google.com wrote: You may want to trying recompiling your application with the GWT compiler. Keep in mind that making changes and running in hosted mode won't automatically update the deployable code (that you target from an external, non hosted mode browser) which is generated when you do a full GWT compile. - Chris On Mon, Oct 12, 2009 at 3:22 PM, Ittai etai...@gmail.com wrote: Hi, I have a web-app which requires resizing the browser window when certain actions occur. I have a JSNI function which goes like this: public static native void resizeWindowTo(final int height,final int width) /*-{ $wnd.alert(width); $wnd.alert(height); $wnd.resizeTo(width, height); }-*/; Now, I know that the function is executed as the alert do pop up (only in hosted mode browser) but no resizing happens. From a lot of reading I understand that the hosted mode browser does not support window.resizeTo but what did surprise me was when I started my app in hosted mode and then entered the page from my IE (like I do many times) no resizing happened and no alerts splashed on the screen. I tested my IE (v.8) with a simple html file which had a JS function utilizing the resizeTo function and of course it worked perfectly fine. So now I'm not sure what can be done? On the one hand I get indication from the hosted mode browser that the JSNI function is being called but on the other hand the IE browser (which is the one I need to have working) does not give any signs. Does anyone have a clue? Please? Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
JSNI and resizeTo(height,width)
Hi, I have a web-app which requires resizing the browser window when certain actions occur. I have a JSNI function which goes like this: public static native void resizeWindowTo(final int height,final int width) /*-{ $wnd.alert(width); $wnd.alert(height); $wnd.resizeTo(width, height); }-*/; Now, I know that the function is executed as the alert do pop up (only in hosted mode browser) but no resizing happens. From a lot of reading I understand that the hosted mode browser does not support window.resizeTo but what did surprise me was when I started my app in hosted mode and then entered the page from my IE (like I do many times) no resizing happened and no alerts splashed on the screen. I tested my IE (v.8) with a simple html file which had a JS function utilizing the resizeTo function and of course it worked perfectly fine. So now I'm not sure what can be done? On the one hand I get indication from the hosted mode browser that the JSNI function is being called but on the other hand the IE browser (which is the one I need to have working) does not give any signs. Does anyone have a clue? Please? Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: JSNI and resizeTo(height,width)
Hi Chris, First of all thanks for your feedback. I think I did try that but I'm not sure as I've tried several things and it's been a few long hours but still what you're saying is new to me. If I target from an external browser while in hosted mode then that browser will see other compiled code then the hosted mode browser? I thought that there was no difference between the browsers in that since Ittai On Oct 12, 10:29 pm, Chris Ramsdale cramsd...@google.com wrote: You may want to trying recompiling your application with the GWT compiler. Keep in mind that making changes and running in hosted mode won't automatically update the deployable code (that you target from an external, non hosted mode browser) which is generated when you do a full GWT compile. - Chris On Mon, Oct 12, 2009 at 3:22 PM, Ittai etai...@gmail.com wrote: Hi, I have a web-app which requires resizing the browser window when certain actions occur. I have a JSNI function which goes like this: public static native void resizeWindowTo(final int height,final int width) /*-{ $wnd.alert(width); $wnd.alert(height); $wnd.resizeTo(width, height); }-*/; Now, I know that the function is executed as the alert do pop up (only in hosted mode browser) but no resizing happens. From a lot of reading I understand that the hosted mode browser does not support window.resizeTo but what did surprise me was when I started my app in hosted mode and then entered the page from my IE (like I do many times) no resizing happened and no alerts splashed on the screen. I tested my IE (v.8) with a simple html file which had a JS function utilizing the resizeTo function and of course it worked perfectly fine. So now I'm not sure what can be done? On the one hand I get indication from the hosted mode browser that the JSNI function is being called but on the other hand the IE browser (which is the one I need to have working) does not give any signs. Does anyone have a clue? Please? Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: JSNI and resizeTo(height,width)
Interesting, I did compile again and now I get the alerts on my IE also, which does explain one voodoo behaviour, but now I still don't understand why the line: $wnd.resizeTo(width, height); doesn't get executed in the function when the very similar line: window.resizeTo(width, height); does work in actual native javascript. Has anyone actually tried using this before in GWT? Because I saw a lot of posts and article refer to it but I don't understand what's different about this. Maybe someone from the gwt team can shed some light? Ittai On Oct 12, 10:50 pm, Ittai etai...@gmail.com wrote: Hi Chris, First of all thanks for your feedback. I think I did try that but I'm not sure as I've tried several things and it's been a few long hours but still what you're saying is new to me. If I target from an external browser while in hosted mode then that browser will see other compiled code then the hosted mode browser? I thought that there was no difference between the browsers in that since Ittai On Oct 12, 10:29 pm, Chris Ramsdale cramsd...@google.com wrote: You may want to trying recompiling your application with the GWT compiler. Keep in mind that making changes and running in hosted mode won't automatically update the deployable code (that you target from an external, non hosted mode browser) which is generated when you do a full GWT compile. - Chris On Mon, Oct 12, 2009 at 3:22 PM, Ittai etai...@gmail.com wrote: Hi, I have a web-app which requires resizing the browser window when certain actions occur. I have a JSNI function which goes like this: public static native void resizeWindowTo(final int height,final int width) /*-{ $wnd.alert(width); $wnd.alert(height); $wnd.resizeTo(width, height); }-*/; Now, I know that the function is executed as the alert do pop up (only in hosted mode browser) but no resizing happens. From a lot of reading I understand that the hosted mode browser does not support window.resizeTo but what did surprise me was when I started my app in hosted mode and then entered the page from my IE (like I do many times) no resizing happened and no alerts splashed on the screen. I tested my IE (v.8) with a simple html file which had a JS function utilizing the resizeTo function and of course it worked perfectly fine. So now I'm not sure what can be done? On the one hand I get indication from the hosted mode browser that the JSNI function is being called but on the other hand the IE browser (which is the one I need to have working) does not give any signs. Does anyone have a clue? Please? Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Defining a source package out of the module heirarchy (from a JAR for example)
Is there any one who can give me a direction on how I can have the common classes truly common (i.e. out of my web project) but still be able to use them on the client side (i.e. have GWT compiler translate them into JS)? Thanks a lot in advance On Oct 8, 4:21 pm, Ittai etai...@gmail.com wrote: I've thought some more about what you said and I'm still not sure of how this can work: If I add a common.jar to my project then where can I put the commonData.gwt.xml file? If I need to create a false com.company.common package on my Web project that will only hold my gwt.xml file then that sounds just wrong. Otherwise I'm not sure how this can be done as the source packages for a module can only be its own packages or its sub-packages . Ittai On Oct 8, 3:02 pm, Ittai etai...@gmail.com wrote: Hi Thomas, I'm not sure I understood your answer. You're saying put I should put the classes I need in com.company.common.data (which is in a different project) and then add to my build-path of my Web project the common.jar and then where is the dummy gwt.xml supposed to be? I just didn't understand what you said about it being in the appropriate package in my Web project. Thanks for your reply On Oct 8, 2:41 pm, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 12:37, Ittai etai...@gmail.com wrote: Hi, I have a web-app which currently holds this structure: -Web --src ---com.company.web module.gwt.xml otherModule.gwt.xml com.company.web.module -com.company.web.module.client -com.company.web.module.server com.company.web.otherModule -com.company.web.otherModule.client -com.company.web.otherModule.server com.company.web.common -com.company.web.common.data and so on. I have in my com.company.web.common.data package classes which I mark in my gwt.xml file as a source package because they need to be used on the client side. So far so good. However now in order to communicate with a different back-end app of my company I need to have those classes in a whole different project under com.company.common.data and I'm wondering if that's doable in GWT? I want to somehow specify in my gwt.xml file a fully qualified name as another source package and have GWT compiler do its magic with it. Let's say that I'll have those classes available as a JAR or as a dependant project in eclipse to my project. The only option I have in mind currently is to have in com.company.common a dummy gwt.xml file and than to have my module.gwt.xml inherit that dummy gwt.xml. This is ugly as this is not really a module and the other apps using the common.jar won't really need this file so I'd rather not go that way. That's the way to go however; though you don't have to put the gwt.xml within the JAR, you can just have it in the appropriate package in your GWT project only (that's the magic of the Java classpath, it's unrelated to where on disk the files live) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Defining a source package out of the module heirarchy (from a JAR for example)
That's what I was saying. Why are you saying false package? Why does it sound just wrong? I'm saying false package because the package has no correlation to the structure of the rest of my GWT project which starts with com.company.web that's why it just sounds wrong. Because it's more of a hack than a logical way. Put the gwt.xml a level higher, e.g. in com.company, with a source path=common/, but that's nowhere different from the above... Funny enough this does sound different to me. Mainly because no special package needs to be created and this path already resides in my project; Still this is a bit of a hack to me and I'd rather have the option to define a source package to a module which is not the sub- package but as I have no other option I think I'll use your suggestion. Thank you very much. Ittai On Oct 9, 10:39 am, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 16:21, Ittai etai...@gmail.com wrote: I've thought some more about what you said and I'm still not sure of how this can work: If I add a common.jar to my project then where can I put the commonData.gwt.xml file? If I need to create a false com.company.common package on my Web project that will only hold my gwt.xml file then that sounds just wrong. That's what I was saying. Why are you saying false package? Why does it sound just wrong? Your only other alternative is to put the gwt.xml in your common project. Otherwise I'm not sure how this can be done as the source packages for a module can only be its own packages or its sub-packages . Put the gwt.xml a level higher, e.g. in com.company, with a source path=common/, but that's nowhere different from the above... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Defining a source package out of the module heirarchy (from a JAR for example)
Hi, I have a web-app which currently holds this structure: -Web --src ---com.company.web module.gwt.xml otherModule.gwt.xml com.company.web.module -com.company.web.module.client -com.company.web.module.server com.company.web.otherModule -com.company.web.otherModule.client -com.company.web.otherModule.server com.company.web.common -com.company.web.common.data and so on. I have in my com.company.web.common.data package classes which I mark in my gwt.xml file as a source package because they need to be used on the client side. So far so good. However now in order to communicate with a different back-end app of my company I need to have those classes in a whole different project under com.company.common.data and I'm wondering if that's doable in GWT? I want to somehow specify in my gwt.xml file a fully qualified name as another source package and have GWT compiler do its magic with it. Let's say that I'll have those classes available as a JAR or as a dependant project in eclipse to my project. The only option I have in mind currently is to have in com.company.common a dummy gwt.xml file and than to have my module.gwt.xml inherit that dummy gwt.xml. This is ugly as this is not really a module and the other apps using the common.jar won't really need this file so I'd rather not go that way. Thanks for any suggestion --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Defining a source package out of the module heirarchy (from a JAR for example)
Hi Thomas, I'm not sure I understood your answer. You're saying put I should put the classes I need in com.company.common.data (which is in a different project) and then add to my build-path of my Web project the common.jar and then where is the dummy gwt.xml supposed to be? I just didn't understand what you said about it being in the appropriate package in my Web project. Thanks for your reply On Oct 8, 2:41 pm, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 12:37, Ittai etai...@gmail.com wrote: Hi, I have a web-app which currently holds this structure: -Web --src ---com.company.web module.gwt.xml otherModule.gwt.xml com.company.web.module -com.company.web.module.client -com.company.web.module.server com.company.web.otherModule -com.company.web.otherModule.client -com.company.web.otherModule.server com.company.web.common -com.company.web.common.data and so on. I have in my com.company.web.common.data package classes which I mark in my gwt.xml file as a source package because they need to be used on the client side. So far so good. However now in order to communicate with a different back-end app of my company I need to have those classes in a whole different project under com.company.common.data and I'm wondering if that's doable in GWT? I want to somehow specify in my gwt.xml file a fully qualified name as another source package and have GWT compiler do its magic with it. Let's say that I'll have those classes available as a JAR or as a dependant project in eclipse to my project. The only option I have in mind currently is to have in com.company.common a dummy gwt.xml file and than to have my module.gwt.xml inherit that dummy gwt.xml. This is ugly as this is not really a module and the other apps using the common.jar won't really need this file so I'd rather not go that way. That's the way to go however; though you don't have to put the gwt.xml within the JAR, you can just have it in the appropriate package in your GWT project only (that's the magic of the Java classpath, it's unrelated to where on disk the files live) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Defining a source package out of the module heirarchy (from a JAR for example)
I've thought some more about what you said and I'm still not sure of how this can work: If I add a common.jar to my project then where can I put the commonData.gwt.xml file? If I need to create a false com.company.common package on my Web project that will only hold my gwt.xml file then that sounds just wrong. Otherwise I'm not sure how this can be done as the source packages for a module can only be its own packages or its sub-packages . Ittai On Oct 8, 3:02 pm, Ittai etai...@gmail.com wrote: Hi Thomas, I'm not sure I understood your answer. You're saying put I should put the classes I need in com.company.common.data (which is in a different project) and then add to my build-path of my Web project the common.jar and then where is the dummy gwt.xml supposed to be? I just didn't understand what you said about it being in the appropriate package in my Web project. Thanks for your reply On Oct 8, 2:41 pm, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 12:37, Ittai etai...@gmail.com wrote: Hi, I have a web-app which currently holds this structure: -Web --src ---com.company.web module.gwt.xml otherModule.gwt.xml com.company.web.module -com.company.web.module.client -com.company.web.module.server com.company.web.otherModule -com.company.web.otherModule.client -com.company.web.otherModule.server com.company.web.common -com.company.web.common.data and so on. I have in my com.company.web.common.data package classes which I mark in my gwt.xml file as a source package because they need to be used on the client side. So far so good. However now in order to communicate with a different back-end app of my company I need to have those classes in a whole different project under com.company.common.data and I'm wondering if that's doable in GWT? I want to somehow specify in my gwt.xml file a fully qualified name as another source package and have GWT compiler do its magic with it. Let's say that I'll have those classes available as a JAR or as a dependant project in eclipse to my project. The only option I have in mind currently is to have in com.company.common a dummy gwt.xml file and than to have my module.gwt.xml inherit that dummy gwt.xml. This is ugly as this is not really a module and the other apps using the common.jar won't really need this file so I'd rather not go that way. That's the way to go however; though you don't have to put the gwt.xml within the JAR, you can just have it in the appropriate package in your GWT project only (that's the magic of the Java classpath, it's unrelated to where on disk the files live) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT-RPC and Long Polling
Hi, I have a GWT app which is currently up and working and which uses GWT- RPC for passing objects between the client and the server. The current communication is via old fashioned polling. I tried moving my app to long polling, i.e. start a request and wait until new data or timeout and only after that initiate another request, but I'm having a problem where I try to sleep myServiceImpl thread during the waiting for 500ms and it gets woken up by the GWT doPost code. Just to make things clear I would really rather not use any extension or modifying of the gwt-code and I have no problem with the threads being occupied while they wait (it's a long story but currently I'm ok with this). Has anyone any experience with this? I just want to keep this request idle until it has something new but I'm afraid I'm missing something. Appreciate any help, Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Multiple modules and Servlet mapping (not RPC but RequestBuilder)
Hello all, I'm going through my first project which has multiple modules and I'm getting a bit stuck. First of all I'll say that all the things I'm trying to do here I've done already in a small one module project based on the StockWatchers tutorial and that for all sorts of reasons I need to use my own customized servlets extending HttpServlet and the Glassfish Server. I'm having two problems (the project is called NewMCPU): 1. I have a module called: com.aaa.bbb.ccc and in it I build a RequestBuilder which uses GET method and this url: http://localhost: 8082/NewMCPU/com.aaa.bbb.ccc/mcpu by calling GWT.getModuleBaseURL() +mcpu; my servlet is defined via annotations (supported from Servlets 3.0) like this: @WebServlet(name=mCPUServiceImpl, urlPatterns={/com.aaa.bbb.ccc/mcpu}, asyncSupported=true) and when debugging I see that the server returns a 404 error code so I don't understand how or where I'm mixing up the url? I think this is connected to multiple modules because I have 3 modules and like I said in the smaller one module project this worked, only there the url in the client was hardcoded http://localhost:8082/NewMCPU/mcpu; and in the servlet just /mcpu. 2. I can't seem to debug my server side code. In the project there are two other modules who for the time being use RPC which I was able to debug before I started to using my server and not the built-in one but now I can't seem to debug the server side code. What I do is launch the Glassfish in debug mode and then start my app in the debug as web application in eclipse. The hosted mode shell launches and so does my app but all my server side breakpoints are being ignored (not my client side). I really would appreciate any help granted as I've been trying to figure these out for the past two days... Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Repeating http requests
I actually did what you suggested but oddly enough it did not work. I still had to add a dummy data to fool the IE into thinking it's a different URL. Anyone has any ideas? Because I would sure love to get rid of this ugly hack TIA Ittai On Sep 2, 12:17 am, Thomas Broyer t.bro...@gmail.com wrote: On 1 sep, 18:06, Adligo sc...@adligo.com wrote: Hi All, This is my quick hack that fixes that issue; http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3 exc Also note this can be applied to html and property files (or any files)http://yourserver/funky.htmlrequest=1http://yourserver/drummer.prope... I have been using a static int counter to accomplish this trick. I think GWT should add some caching options to its http api, because this is quite hoaky. Something like the following? ;-) RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, yourPath?yourCgiParams=yourValues); builder.setHeader(Cache-Control, no-cache); ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT-RPC and using my own Servlet
Hi, I'm new to GWT so I'm still trying to learn the ropes. I went through the StackWatcher tutorial and used the GWT-RPC mechanism and I think I have a basic understanding of it. I currently have a GWT application which uses the RequestBuilder to send messages to a servlet I have (using POST and GET), and my servlet (in doPost and doGet) pauses the request (this is done by using Servlets 3.0 spec) and adds it to a queue. Additionally I have a Daemon thread which runs in the background and plays the request when there is new data. This works great for me apart from the fact that I'm just sending strings for now and I'd like to utilize the RPC mechanism to send Objects. My question is this: If I create my myServiceImpl which extends RemoteServiceServlet how should I handle the doPost and doGet? I'm not sure I even understand how GWT handles the call from the client side of that asynchronous interface. Does it by any chance call the doGet for example of the servlet and makes sure it calls the required RPC method? I'm sorry if I made a mess of things it's just that I can't find more detailed technical information as exactly how this RPC business works. Appreciate any lending hand Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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 GWT and Glassfish V3 preview
I'm sorry but accidentaly the post was sent half baked. Basically there are two changed setting between the two projects that I can see: GWT project: Dynamic web module facet version 2.4 web.xml: web-app Other project: Dynamic web module facet version 2.5 web.xml: web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema- instance xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http:// java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http:// java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5 And it seems that for some reason the GWT project won't recognize the new Servlets 3.0 methods. again I'm sorry for the mix-up. would appreciate any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Using GWT and Glassfish V3 preview
OK, I solved my original problem when I changed the order of Glassfish library before the GWT one in the 'Order and Export' under 'Java build path' menu. Now what's troubling me is what, if anything, does the fact that I'm using the web module facet version 2.4 mean? If anyone has any ideas I'd love to hear them Ittai On Sep 12, 2:51 pm, Ittai etai...@gmail.com wrote: I'm sorry but accidentaly the post was sent half baked. Basically there are two changed setting between the two projects that I can see: GWT project: Dynamic web module facet version 2.4 web.xml: web-app Other project: Dynamic web module facet version 2.5 web.xml: web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema- instance xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http:// java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http:// java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5 And it seems that for some reason the GWT project won't recognize the new Servlets 3.0 methods. again I'm sorry for the mix-up. would appreciate any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Servlets 3.0 and GWT
Wow, simple and elegant. Thank you very much! This indeed looks like what I was looking for On Sep 10, 3:38 am, Sri sripathikrish...@gmail.com wrote: You can use the RequestBuilder class in GWT to make connections to your server. Below is the sample code that you can use (from com.google.gwt.examples.http.client.GetExample ) public static void doGet(String url) { RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); try { Request response = builder.sendRequest(null, new RequestCallback () { public void onError(Request request, Throwable exception) { // Code omitted for clarity } public void onResponseReceived(Request request, Response response) { // Code omitted for clarity } }); } catch (RequestException e) { // Code omitted for clarity } } POST is identical, except for the following lines -- builder.setHeader(Content-Type, application/x-www-form- urlencoded); Request response = builder.sendRequest(postData, new RequestCallback() { --sri On Sep 9, 5:47 am, Ittai etai...@gmail.com wrote: Hi All, I'm stepping into the world of AJAX and due to a need I have in strong built-in Server Push technologies I'm giving the Servlets 3.0 (under Java EE 6 preview) a try. I'm posting here because my client side will (hopefully) be based on GWT and after going over the StockWatcher tutorial and reading a bit about the Server-Client relationship I'm not sure what path I can take. I'm pretty sure I can't use the GWT-RPC mode because the RemoteServiceServlet class extends the previous HttpServlet which isn't helpfull for me. So basically what I'm asking is, if I have a servlet built on my server (Glassfish V3 preview) which is called with a HttpServletRequest and returns HttpServletResponse (of course while utilizing Asynchronous support of Servlets 3.0) how should I go about Implementing the handle to the call of my servlet and the receiving of the response in the GWT side? I have a feeling this is a very basic question but the whole AJAX thinking is very new to me. Thanks for reading so far, Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Servlets 3.0 and GWT
Hi All, I'm stepping into the world of AJAX and due to a need I have in strong built-in Server Push technologies I'm giving the Servlets 3.0 (under Java EE 6 preview) a try. I'm posting here because my client side will (hopefully) be based on GWT and after going over the StockWatcher tutorial and reading a bit about the Server-Client relationship I'm not sure what path I can take. I'm pretty sure I can't use the GWT-RPC mode because the RemoteServiceServlet class extends the previous HttpServlet which isn't helpfull for me. So basically what I'm asking is, if I have a servlet built on my server (Glassfish V3 preview) which is called with a HttpServletRequest and returns HttpServletResponse (of course while utilizing Asynchronous support of Servlets 3.0) how should I go about Implementing the handle to the call of my servlet and the receiving of the response in the GWT side? I have a feeling this is a very basic question but the whole AJAX thinking is very new to me. Thanks for reading so far, Ittai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---