Re: [GWT] file open in widget
Local file would obviously be impossible. You can use requestbuilder to fetch remote files. On Tue, Apr 14, 2009 at 2:12 AM, Arun arun.r...@gmail.com wrote: Hi, I would like to open a file in GWT widget. i.e. Open a file(html/txt) on click of button/link/tree node. Which widget i should use and what approach i should follow? Thank in advance. Arun. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Open a local file with GWT
HI, i am new to GWT, I have similar query. I want to open a file which is place somewhere in server file system (i.e. a directory on server contains some directory and files in it). I have to represent it in tree structure and display the file on click of leaf Node. I am paused at opening a file on click event. I want to open it in a widget ( every time a new leaf node click on tree a file would be opened opened in same window/widget replacing the old one). could any one tell me what approach i should follow? any link or suggestions are appreciated. thanks in advance. --arun. On Apr 11, 12:54 am, ffs1985 ffs1...@gmail.com wrote: I tried adding a button when the callback success and on click event of that button, call to window.open(path,_blank,). this didn't work, I think that the thing is that the browser doesn't know how toopenthat path. The thing I don't understand is why if Iopena new tab on firefox or I Explorer or Chrome wirks without a problem. Maybe another solution is not to call a rpc to download thefileand instead of that make something like an old servlet that make a call to download browser. I've trying this thing works since a lot of time and I still didn't find a solution. I hope someone could help me with this, Thanks, Federico On Apr 7, 10:13 am, Jason Essington jason.essing...@gmail.com wrote: O.K. 1) what is pdfLink? is that supposed to be link? 2) if you have any kind of Popup blocker, attempting toopena window from the callback will fail. if you want toopena window, it has to happen as a direct result of a user action (onClick, etc) 3) if link is a path to a filesystemfileare you sure it is correct? (this is sneaky, but just might work) 4) Technically not causing a problem but, use generics. AsyncCallbackString cb = new AsyncCallbackString{ public void onSuccess(String result) ... } -jason On Apr 7, 2009, at 5:04 AM,ffs1985wrote: Hi I'm trying to make a function that let the user download afile from my application and see it. I could copy thefilefrom server to a local root but when I've tried toopenit, does it work on hosted mode but in web mode fails always, no matter what browser I try(IE 7, Firefox and Chrome). My code is the next one: private void openDocument(String documentName) { final ManagerExportAsync manejador = ManagerExport.Util.getInstance (); AsyncCallback callback = new AsyncCallback(){ String link; public void onSuccess(final Object result) { link = (String)result; Window.open(pdfLink,_blank,); } public void onFailure(Throwable caught){} }; manejador.openDocument(User,userId, documentName,callback); } The String link result is something like this file///:C:/test.jpg I don't know what it's wrong. I read somewhere that the problem could be that I'm calling the Window.openinside the callback but I really don't know what is wrong coul someone give me a hand? Any suggestions? Thanks! Federico. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Please help!Compile error
I had try, but the problem still happened... On 4月14日, 下午1时27分, Vitali Lovich vlov...@gmail.com wrote: Using java 6 seems to solve the problem for people. On Tue, Apr 14, 2009 at 12:41 AM, Yang Lei matrixma...@gmail.com wrote: Wha't the problem? How can I resolve? The error information as following: Compiling module com.everdisk.rms.web.explorer.Explorer [ERROR] Unexpected internal compiler error java.lang.StackOverflowError at java.lang.ref.ReferenceQueue.poll(ReferenceQueue.java:82) at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java: 2234) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:266) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1106) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 326) at java.util.ArrayList.writeObject(ArrayList.java:570) at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java: 945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1461) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 326) at java.util.ArrayList.writeObject(ArrayList.java:570) at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java: 945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1461) at java.io.ObjectOutputStream.writeOrdinaryObject
Deferred Bind on Login to load different user interface
Hi everyone, Been checking out alot of the deferred binding tutorials that seem to involve reading from the meta data in the html before loading the appropiate module. If i wanted to load a deferred binding class after a user logs in (eg. after the user logs in load the same app with a different skin and interface) Would this involve something like using JSNI to change the meta in the html after a user logs in and forcing a refresh? Or is there a better approach to doing 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: java.lang.StackOverflowError with GWT
So upgrading to java 1.6 is the only solution for this ? On Apr 13, 6:50 pm, Andy antonvonpil...@gmail.com wrote: Well, Alex is right - I just upgraded to Java 1.6 and everything works. ...plus the JavaScript now compiles lightning fast!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 import samples of GWT into Eclipse
Thank you very much, Jeff ! This solution have been right. carles On Apr 13, 9:13 pm, Jeff Chimene jchim...@gmail.com wrote: On 04/13/2009 03:05 AM, carlesla wrote: Thanks a lot, Vitali. You're rihgt : webAppCreator creates the eclipse project , and it doesn't need -ecllipse option like in applicationCreator. The only problem now is I would like import the Showcase sample, but webAppCreator command doesn't accept 'Showcase' because it does not appear be a valid fully-qualified Java class name. ( I've tried this command : webAppCretaor Showcase -ignore com.google.gwt.samples.showcase.client.Showcase ) thanks a lot carles I just tried this on Eclipse 3.4 1) Create a project named Showcase file new project 2) Import the Showcase files right-click on the project name Import File System From Directory (browse to your eclipse samples installation) Showcase (select the directory in the left panel) Into folder (Showcase should be the default value) This will import the source into your workspace. Use build.xml to build the project. The build will fail as the gwt-servlet.jar is in a shared directory which doesn't get brought into the project via this method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Mouse ScollKey Click event
Hi, I have got the answers. It is easy just I need to check whether the button clicked is 4 for Mouse Wheel Listner. Regards, Allahbaksh On Apr 14, 10:57 am, Allahbaksh a.allahba...@gmail.com wrote: Hi, I want capture teh MouseScroll Key click event. What exactly it is called. We MouseWheel Scroll click to close the Tab in eclipse or in the browser. I want to have similar functionality. What I am trying is in TabPanel add HTML widget for Tab Text and add MouseWheel Click listner so that we can have eclipse or Mozilla like TabClose method. Regards, Allahbaksh Mohammdali Asadullah http://allahbaksh.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 -~--~~~~--~~--~--~---
Problem in downloading Google Plugin for Eclipse
Hello , I am trying to download Google Plug-in for Eclipse using below URLs , which seems not working. Eclipse 3.3 (Europa) http://dl.google.com/eclipse/plugin/3.3 Eclipse 3.4 (Ganymede) http://dl.google.com/eclipse/plugin/3.4 Both the URLs are not working. Can someone please provide guidelines to download this plug in ? Thanks Sandeep S. Lawar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Problem in downloading Google Plugin for Eclipse
Hi I am trying to download Google Plug-in for Eclipse using below URLs , which seems not working. Eclipse 3.3 (Europa) http://dl.google.com/eclipse/plugin/3.3 Eclipse 3.4 (Ganymede) http://dl.google.com/eclipse/plugin/3.4 Both the URLs are not working. Can someone please provide guidelines to download this plug in ? It does look like the links are down atm. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w: http://www.marauder-consulting.co.uk b: paulgrenyer.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem in downloading Google Plugin for Eclipse
Thanks Paul, do you know some expected time after which these links will be up ? On Apr 14, 1:01 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi I am trying to download Google Plug-in for Eclipse using below URLs , which seems not working. Eclipse 3.3 (Europa) http://dl.google.com/eclipse/plugin/3.3 Eclipse 3.4 (Ganymede) http://dl.google.com/eclipse/plugin/3.4 Both the URLs are not working. Can someone please provide guidelines to download this plug in ? It does look like the links are down atm. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w:http://www.marauder-consulting.co.uk b: paulgrenyer.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem in downloading Google Plugin for Eclipse
Hi On Tue, Apr 14, 2009 at 9:10 AM, sandeepla...@gmail.com sandeepla...@gmail.com wrote: Thanks Paul, do you know some expected time after which these links will be up ? Nope, I just clicked on them to see if they worked. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w: http://www.marauder-consulting.co.uk b: paulgrenyer.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Large GWT-application on mobile phones
Hello all, Arthur Kalmenson schrieb: As Vitali mentioned, you want to make sure you're not holding onto any pointers for widgets you don't need. This will prevent the garbage collector from freeing up that memory. On the desktop that's usually fine, but on mobile apps you really need to keep an eye out for that. At the moment I'm already doing that. The application is organized that way, that I have a tree on the left side, that creates a widget in dependence of the entry being clicked (using the code I posted before), so until somebody clicked on something, I can be sure that there is no reference in the system to a particular widget. Before I place the newly created widget I remove the widget that has been placed before using the following code: IMainPanel panel = (IMainPanel) horizontalSplitPanel.getRightWidget(); if (panel != null){ panel.shutdown(); horizontalSplitPanel.remove((Widget) panel); } Should I call panel.removeFromParent() explicitly in addition to calling remove or is this happening automatically in horizontalSplitPanel? Is your mobile app the same as the desktop version or are there dedicated mobile views? There is no mobile version of that application and the application is simply too big and complex to do that. It's not too much of a problem because there was no initial plan to target this application for mobile devices (it's the administrative backend I was speaking about already on this list with ca. 1MB of compiled code). I was just curious in the beginning to see this app running on the iPhone and the Android device I currently have my hands on and was positively surprised that more or less everything works (at least on the iPhone, the Android system even can't login using Basic Authentication) until the point the application crashed. So if there are steps I can do to enable this already existing application on an iPhone this would be a quite cool thing to show e.g. on workshops with customers but it's nothing sale-numbers are dependent on it. I'd probably suggest to make a separate GWT app for the mobile version, refactor the desktop one to pull out all the common parts, and inherit them in the mobile version . This would effectively double the amount of work for - in this specific case - no win in productivity of our customers. If this application works on an iPhone or Android browser it would be nice, but it's nothing essential at the moment. Best regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Large GWT-application on mobile phones
It should work on the phones without creating a seperate app. After all, that's the whole point of putting actual browsers on the phones (iPhone is running the desktop version of Safari with some multitouch enhancements). Have you tried running it under desktop Safari? Also, try upgrading to 1.5 or 1.6 (1.5 should have less chance of breaking things but 1.6 has performance stability improvements I believe). Have you performed the steps I recommended for tracking down the cause using the server-side code? Also, different browsers do have different behaviours, so if you've never tested your app on Safari on the desktop, I would seriously recommend starting there as it uses a completely different rendering engine (Webkit which is also what Android uses). On Tue, Apr 14, 2009 at 4:13 AM, Lothar Kimmeringer j...@kimmeringer.dewrote: Hello all, Arthur Kalmenson schrieb: As Vitali mentioned, you want to make sure you're not holding onto any pointers for widgets you don't need. This will prevent the garbage collector from freeing up that memory. On the desktop that's usually fine, but on mobile apps you really need to keep an eye out for that. At the moment I'm already doing that. The application is organized that way, that I have a tree on the left side, that creates a widget in dependence of the entry being clicked (using the code I posted before), so until somebody clicked on something, I can be sure that there is no reference in the system to a particular widget. Before I place the newly created widget I remove the widget that has been placed before using the following code: IMainPanel panel = (IMainPanel) horizontalSplitPanel.getRightWidget(); if (panel != null){ panel.shutdown(); horizontalSplitPanel.remove((Widget) panel); } Should I call panel.removeFromParent() explicitly in addition to calling remove or is this happening automatically in horizontalSplitPanel? Is your mobile app the same as the desktop version or are there dedicated mobile views? There is no mobile version of that application and the application is simply too big and complex to do that. It's not too much of a problem because there was no initial plan to target this application for mobile devices (it's the administrative backend I was speaking about already on this list with ca. 1MB of compiled code). I was just curious in the beginning to see this app running on the iPhone and the Android device I currently have my hands on and was positively surprised that more or less everything works (at least on the iPhone, the Android system even can't login using Basic Authentication) until the point the application crashed. So if there are steps I can do to enable this already existing application on an iPhone this would be a quite cool thing to show e.g. on workshops with customers but it's nothing sale-numbers are dependent on it. I'd probably suggest to make a separate GWT app for the mobile version, refactor the desktop one to pull out all the common parts, and inherit them in the mobile version . This would effectively double the amount of work for - in this specific case - no win in productivity of our customers. If this application works on an iPhone or Android browser it would be nice, but it's nothing essential at the moment. Best regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
File Upload with rpc call
Hello Can i make a file upload with a rpc call ? I want to upload a file with the rpc call but i have not found example. I have only found example with submit form. Thanks a lot for your response. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: I just realized that dependency injection is possible with GWT
Actually, I'd be surprised if the dependancy injection implementation doesn't boil down to a form of deferred binding in the end for performance reasons (except using the Generators mechanism instead of explicit deferred binding). On Tue, Apr 14, 2009 at 5:24 AM, Thomas Broyer t.bro...@gmail.com wrote: On 10 avr, 17:52, Yves yves.cuillerd...@gmail.com wrote: Hello Reading the documentation for the module xml files, i just realize that the tag replace-with .../ allows for dependency injection. How that?! Suppose i need to use different class implementation depending on my environment (real class for production, mock for development ...). I just have to have two (or more) module xml like this For production use file FooProd.gwt.xml module replace-with class=foo.FooProdImpl when-type-is class=foo.Foo / /replace-with ... For development use file FooDev.gwt.xml module replace-with class=foo.FooMockImpl when-type-is class=foo.Foo / /replace-with ... Am i wrong? Yes, that's not dependency injection, it's just deferred binding. This is not *injecting* anything, you still have to instantiate your class explicitly with a GWT.create(...) call somewhere in your code (you don't say at that point which specific implementation will be used, but that has nothing to do with dependencies nor injection). If one of your classes gains a dependency on another interface, you'll have to inject that new dependency at each and every instantiation point. In summary: deferred binding has nothing to do with dependency injection. Deferred binding is very handy, but it's just something else (and a DI framework for GWT *must* IMO support deferred bindings, but all of them, from Suco to GIN, support it AFAICT). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: File Upload with rpc call
No, obviously not as that would imply reading the file which violates the whole sandboxing browsers take with respect to javascript. The only thing you can do is submit the file (whereby the browser is responsible for actually reading transmitting the file) then use RPC to manipulate the file that is on the server. On Tue, Apr 14, 2009 at 5:18 AM, loudo lou...@gmail.com wrote: Hello Can i make a file upload with a rpc call ? I want to upload a file with the rpc call but i have not found example. I have only found example with submit form. Thanks a lot for your response. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Mouse ScollKey Click event
If you are using 1.6, use handlers instead of listeners (which are deprecated). On Tue, Apr 14, 2009 at 3:25 AM, Allahbaksh Asadullah a.allahba...@gmail.com wrote: Hi, I have got the answers. It is easy just I need to check whether the button clicked is 4 for Mouse Wheel Listner. Regards, Allahbaksh On Apr 14, 10:57 am, Allahbaksh a.allahba...@gmail.com wrote: Hi, I want capture teh MouseScroll Key click event. What exactly it is called. We MouseWheel Scroll click to close the Tab in eclipse or in the browser. I want to have similar functionality. What I am trying is in TabPanel add HTML widget for Tab Text and add MouseWheel Click listner so that we can have eclipse or Mozilla like TabClose method. Regards, Allahbaksh Mohammdali Asadullah http://allahbaksh.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Upload with rpc call
No, not with native Javascript. You have to have the user do it manually upload the parts - the rejoining can be done automatically on the server. One way would be through the use of multi-part archives. Or use the flash-based approaches that seem to be popular. http://mike.kruckenberg.com/archives/2008/02/inline-web-browser-file-upload.html, although even they may not give you what you want. Web browsers were never really meant for uploading large amounts of data to servers but instead to go the other way. On Tue, Apr 14, 2009 at 5:58 AM, Prashant Gupta nextprash...@gmail.comwrote: by this method, if file size is large, it may take very long time or even fail if network is slow. can't we break file into smaller parts before sending and send one-by-one and then rejoin it at server? On Tue, Apr 14, 2009 at 3:15 PM, Vitali Lovich vlov...@gmail.com wrote: No, obviously not as that would imply reading the file which violates the whole sandboxing browsers take with respect to javascript. The only thing you can do is submit the file (whereby the browser is responsible for actually reading transmitting the file) then use RPC to manipulate the file that is on the server. On Tue, Apr 14, 2009 at 5:18 AM, loudo lou...@gmail.com wrote: Hello Can i make a file upload with a rpc call ? I want to upload a file with the rpc call but i have not found example. I have only found example with submit form. Thanks a lot for your response. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 with Maven and build system questions/survey...
Hi I was using a maven plugin (http://gwt-maven.googlecode.com/svn/trunk/ mavenrepo) with GWT 1.5.3 without Hosted Mode (in Linux the hosted mode gives a firefox browser older and doesn't support gears, for example), I generate a war and the copy it to a jboss server to test it. I know that it is not very useful, but it is the problem for linux users :( But when I try upgrade to GWT 1.6 it doesn't work: crash in the test task. If anybody has the same problem, please contact with me. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Upload with rpc call
by this method, if file size is large, it may take very long time or even fail if network is slow. can't we break file into smaller parts before sending and send one-by-one and then rejoin it at server? On Tue, Apr 14, 2009 at 3:15 PM, Vitali Lovich vlov...@gmail.com wrote: No, obviously not as that would imply reading the file which violates the whole sandboxing browsers take with respect to javascript. The only thing you can do is submit the file (whereby the browser is responsible for actually reading transmitting the file) then use RPC to manipulate the file that is on the server. On Tue, Apr 14, 2009 at 5:18 AM, loudo lou...@gmail.com wrote: Hello Can i make a file upload with a rpc call ? I want to upload a file with the rpc call but i have not found example. I have only found example with submit form. Thanks a lot for your response. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: I just realized that dependency injection is possible with GWT
On 10 avr, 17:52, Yves yves.cuillerd...@gmail.com wrote: Hello Reading the documentation for the module xml files, i just realize that the tag replace-with .../ allows for dependency injection. How that?! Suppose i need to use different class implementation depending on my environment (real class for production, mock for development ...). I just have to have two (or more) module xml like this For production use file FooProd.gwt.xml module replace-with class=foo.FooProdImpl when-type-is class=foo.Foo / /replace-with ... For development use file FooDev.gwt.xml module replace-with class=foo.FooMockImpl when-type-is class=foo.Foo / /replace-with ... Am i wrong? Yes, that's not dependency injection, it's just deferred binding. This is not *injecting* anything, you still have to instantiate your class explicitly with a GWT.create(...) call somewhere in your code (you don't say at that point which specific implementation will be used, but that has nothing to do with dependencies nor injection). If one of your classes gains a dependency on another interface, you'll have to inject that new dependency at each and every instantiation point. In summary: deferred binding has nothing to do with dependency injection. Deferred binding is very handy, but it's just something else (and a DI framework for GWT *must* IMO support deferred bindings, but all of them, from Suco to GIN, support it AFAICT). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: I just realized that dependency injection is possible with GWT
On 14 avr, 11:42, Vitali Lovich vlov...@gmail.com wrote: Actually, I'd be surprised if the dependancy injection implementation doesn't boil down to a form of deferred binding in the end for performance reasons (except using the Generators mechanism instead of explicit deferred binding). That's not what Suco does, for instance, as it's entirely client side: http://code.google.com/p/suco/ But as I said, that a DI framework work smoothly *on top of* deferred binding is a must-have (or should-have), but deferred binding has in essence nothing to do with either dependency management or any kind of injection, only with, well, deferring the type binding (which concrete class to use as an implementation of a given abstract class or interface, or which specialized class, if any, to use for a given concrete class) to compile time [*] rather than coding time. I admit that there are crossing concerns between DI and deferred binding (namely, code against an interface, no matter which concrete implementation you'll actually be running against), but DI has much more: it's all about removing all explicit class instantiations from your code (which also means removing scope management (singleton, etc.) from your code), while deferred binding is only about choosing the class that will actually be instantiated. A key difference is that dependencies with deferred binding have to be part of the interface you're coding against (be it an interface, abstract class or concrete class; I'm using interface here as meaning contract), and you still have to inject dependencies by hand. With DI, an interface/contract provides some service, and the DI framework will inject dependencies based on the actual class being used. Actually, deferred binding is only a kind of optimization to avoid code à la switch(GWT.getBrowser()) { case IE: ... break; case Mozilla: ...; break; etc. It's a wonderful tool, but it's just not dependency injection. My opinion is that you should use deferred binding to have different code paths depending on some runtime property (or eventually compile- time: in GWT-in-the-AIR, you choose at compile time whether you compile for AIR or browsers, and this has an impact on some deferred bindings, such as FormPanel, and of course AIR.isRuntime(), which is pretty similar to GWT.isScript() or GWT.isClient()), and use a DI framework (my vote goes to GIN, but that's a personal taste) otherwise, such as for a testing environment; but of course, YMMV. [*] or you could say runtime, if you're generating multiple permutations, though everything's done at compile time, and at runtime bootstrap code only choose between already compiled bindings. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Put GWT 1.6 Application Online
When you run in hosted mode, there's nothing preventing other people from connecting if you have first compiled the code (without it, they would need some way of communicating to the code running within the Java VM). It should be automatic (works for me anyways). Generally though, people prefer, from what I gather, of deploying to a dedicated app server because they tend to have more control over the configuration. On Mon, Apr 13, 2009 at 11:19 PM, barclayal...@gmail.com barclayal...@gmail.com wrote: How do I put my GWT 1.6 web app online, hosting with my own computer? I think I'm missing an important keyword. With Wampserver it was easy, I just right click on the icon and select Put online, point my browser to http//myip/. I know of Apache HTTP Server using Wampp/Xampp. Is Tomcat and Jetty the same? If so where can I go to set these configurations. I installed GWT 1.6 Eclipse plugin. 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 -~--~~~~--~~--~--~---
MapWidget Overlay with Youtube content
Hi, anybody knows how to adda an overlay with youtube content on a MapWidget (like the one shown on maps.google.com)? I was able to add panoramio kml source (but unlike maps.google.com, just the most popular pictures)... Tnx 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 -~--~~~~--~~--~--~---
unable to compile gwt 1.6
I get this stackerror: [gwt-compile] Exception in thread main java.lang.OutOfMemoryError: unable to create new native thread [gwt-compile] at java.lang.Thread.start0(Native Method) [gwt-compile] at java.lang.Thread.start(Thread.java:574) [gwt-compile] at java.lang.Shutdown.runHooks(Shutdown.java:128) [gwt-compile] at java.lang.Shutdown.sequence(Shutdown.java:173) [gwt-compile] at java.lang.Shutdown.exit(Shutdown.java:218) [gwt-compile] at java.lang.Runtime.exit(Runtime.java:90) [gwt-compile] at java.lang.System.exit(System.java:869) [gwt-compile] at com.google.gwt.dev.Compiler.main(Compiler.java:137) This is wrapped in a java.lang.StackOverflowError I'm using maven (2.0.9), jdk.1.5 (18) and ant. This is the ant code I'm using: target name=GWTCompile depends=compile java classname=com.google.gwt.dev.Compiler taskname=gwt-compile failonerror=true fork=true jvmarg value=-Xmx512M / jvmarg value=-Xss128m/ jvmarg value=-Xms128M/ classpath pathelement path=${gwt-src}/ / pathelement path=${compile_classpath} / pathelement path=./src / /classpath arg value=com.company.MyModule / /java I tried many different values for the heapsize. I even tried using jdk1.6 (with no success). Maven calls the antscript with maven-antrun-plugin What is going wrong ? Any help is 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 -~--~~~~--~~--~--~---
Re: [GEP] Unknown argument: -server
Hi Sumit, 1) This does prevent me from running hosted mode. The error actually appears in the Console view, not as a popup. It's as if I'd typed javaw com.google.gwt.dev.GWTShell -server at a command prompt. The launch is terminated at that point. 2) This project started as GWT + GAE/Python (GAEP?). I decided to toss the Python backend and try to set up the project as GWT + GAE/Java using the new plugin. I haven't even added any servlets I added gwtNature and gaeNature, set GWT to the 1.6 SDK, removed my old GWT 1.6 milestone build from the classpath, then tried to run hosted mode. Because I don't have war/web-inf/web.xml, it runs GWTShell instead of HostedMode. It sounds like the problem is that the plugin doesn't expect this state and ends up passing invalid parameters to the old GWTShell. Results of further experimentation this morning: I tried to make it run HostedMode instead of GWTShell by removing gwtNature (I removed gaeNature as well, just because), adding war/web-inf/web.xml, and re-adding the natures. This did get HostedMode to run. Then I reversed the operation in an attempt to get the old error back. I removed the natures, removed the web.xml, changed the output path back to /bin, and re-added the natures. But it still tries to run HostedMode and complains that it can't find web.xml. It seems like, as long as the old GWTShell is going to be supported at all, there should be an option to explicitly switch between them. Or at least make the decision points more transparent, and reversible. I'd be happy to take a look at the plugin source and see if I can find the error. And if you can't get a reduced test case to reproduce it, you could always zip up the whole project and send it to me. ;) - Isaac On Mon, Apr 13, 2009 at 5:25 PM, Sumit Chandel sumitchan...@google.com wrote: Hi Isaac, You've come to the right place for GWT Eclipse plug-in support! We don't have an official support forum for the Eclipse plug-in just yet. Given the various Google APIs that might be included in the plug-in, it seems best to report issues on the forum corresponding to the API / plug-in feature for which you experienced issues, so well done :-) Now then, about the issue you're experiencing - a couple of questions to help troubleshoot: 1) Does the warning message that pops up prevent you from running hosted mode? Or are you able to run it while having the warning message displayed as you use hosted mode? 2) What type of application are you running? (GWT or GWT + GAE) The fact that it's complaining about a -server argument tells me that this is a project configured with the AppEngine nature, but the fact that GWTShell is being used tells me that it's using GWT 1.5, which according to how the plug-in was designed, should be impossible unless there's a bug on our end. In any case, let me know your config and maybe we can figure out what's going on. Cheers, -Sumit Chandel On Wed, Apr 8, 2009 at 4:02 PM, Isaac Truett itru...@gmail.com wrote: Preface: I see posts related to the plugin on this list and on GAE, but I can't find an official support forum or issue tracker. If such a thing does exist, do please redirect me there. I'm using the plugin with two Eclipse projects. Same version of Eclipse. Same workspace, even. One of them is working fine so far, the other gives me this when I Run As - Web Application: WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be removed in a future release. Use 'com.google.gwt.dev.HostedMode' instead. (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.) Unknown argument: -server Google Web Toolkit 1.6.4 (GWTShell syntax help omitted) I've searched the entire project for -server and can't find it anywhere. It brings to mind the -server argument for java.exe but there's nothing in the launch configuration's arguments tab, VM or program. The other project, the one that works, gives the deprecation warning but not the unknown argument error. Anyone know where that errant argument might be coming from? Thanks, Isaac --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Add a Yahoo! calendar and Yahoo! maps into my webapp
Hi all, i'd like to insert a Yahoo! maps and a Yahoo! calendar to my application. Do you know if some api exists like google maps api but from yahoo? Thank you very much! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Regarding an Uncaught Exception Displaying
Hiii, Thanks for your reply, Fusioncharts are widgets which are working with Flash. FusionCharts is a flash charting component that can be used to render data-driven animated charts. Made in Adobe Flash 8 (formerly Macromedia Flash), My application is like that,initially when the page is loaded a fusion chart is loaded along with that.Now if i clicked on the fusion chart bar another chart is getting loaded.If i clicked the second one,third fusion chart is loaded. So this is in a drill down manner. That means fusion charts are working fine. Now i am going to load the second page and the fusion chart is loaded perfectly.Now i am going to click the fusion chart for the drill down chart. But it is going to blank page where nothing is viewed even the grid in the page.. Now again i tried to restart my application and loaded the page which caused problem previously,it will work fine,But the other page which was working fine had gone to a blank page as i said early. This is happening only in gogle hosted mode and IE.Its working fine in Mozilla firefox. I am calling the fusion chart in GWT in below manner. *public static Panel createRequestFusionChart(MapString,UrlParam urlsParam,int chartWidth, int chartHigh) { Panel chartPanel = new Panel(); final Panel fusionPanel1 = new Panel(); chartPanel.setWidth(chartWidth); final MapString, Object parameters = new HashMapString, Object(); IteratorUrlParam params = urlsParam.values().iterator(); UrlParam urlParam; while(params.hasNext()) { urlParam = params.next(); parameters.put(urlParam.getName(), urlParam.getValue()); } ParametersProvider parmParametersProvider = new ParametersProvider() { public MapString, Object getParameters() { //Map parameters = new HashMap(); parameters.put(userid, 0); parameters.put(charttype, 1); parameters.put(chartmethod, Request); parameters.put(dept, 19); parameters.put(link, 1); return parameters ; } } ; String chartName = StackedColumn3D; String chartUrl = GWT.getModuleBaseURL() + FusionCharts/ + chartName + .swf; String dataUrl = GWT.getModuleBaseURL() + ChartServletNew; FusionChart fusionChart = new FusionChart(chartUrl, 450, 400, dataUrl, parmParametersProvider) ; fusionPanel1.add(fusionChart); final Panel firstRowPanel = new Panel(Requests); firstRowPanel.setLayout(new HorizontalLayout(30)); ParametersProvider parmParametersProvider1 = new ParametersProvider() { public MapString, Object getParameters() { //Map parameters = new HashMap(); parameters.put(userid, 0); parameters.put(charttype, 1); parameters.put(chartmethod, emptychart); return parameters ; } } ; chartName = StackedBar3D; chartUrl = GWT.getModuleBaseURL() + FusionCharts/ + chartName + .swf?ChartNoDataText=Click left chart to view Services Details; dataUrl = GWT.getModuleBaseURL() + ChartServletNew; fusionChart = new FusionChart(chartUrl, 450, 550, Human Resources (Development)ServDetails, dataUrl, parmParametersProvider1) ; final Panel fusionPanel2 = new Panel(); fusionPanel2.add(fusionChart); firstRowPanel.add(fusionPanel1); firstRowPanel.add(fusionPanel2); ParametersProvider parmParametersProviderSubServ = new ParametersProvider() { public MapString, Object getParameters() { //Map parameters = new HashMap(); parameters.put(userid, 0); parameters.put(charttype, 1); parameters.put(chartmethod, emptychart); return parameters ; } } ; chartName = StackedBar3D; chartUrl = GWT.getModuleBaseURL() + FusionCharts/ + chartName + .swf?ChartNoDataText=Click Services chart to view subservices details; dataUrl = GWT.getModuleBaseURL() + ChartServletNew; fusionChart = new FusionChart(chartUrl, 450, 500, Human Resources (Development)SubServDetails, dataUrl, parmParametersProviderSubServ) ; final Panel secondeRowPanel = new Panel(Subservices Chart); secondeRowPanel.add(fusionChart); chartPanel.add(firstRowPanel); chartPanel.add(secondeRowPanel); return chartPanel; } * Here *ChartServletNew* is a Servlet which is used to create the xml of fusion chart. Inside this *ChartServletNew *there is a link attrubute in which will call a javascript function which in turn will call the Servlet again. This is done in this manner
Re: Problem in downloading Google Plugin for Eclipse
That are the Eclipse update sites, wich aren't available by http http://code.google.com/intl/nl/eclipse/docs/download.html On Apr 14, 10:13 am, Paul Grenyer paul.gren...@gmail.com wrote: Hi On Tue, Apr 14, 2009 at 9:10 AM, sandeepla...@gmail.com sandeepla...@gmail.com wrote: Thanks Paul, do you know some expected time after which these links will be up ? Nope, I just clicked on them to see if they worked. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w:http://www.marauder-consulting.co.uk b: paulgrenyer.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem in downloading Google Plugin for Eclipse
Actually, the plugin also is able to download the latest version of the GWT package. So, only the update site is needed. On Apr 14, 3:34 pm, Rvanlaak rvanl...@gmail.com wrote: That are the Eclipse update sites, wich aren't available by http http://code.google.com/intl/nl/eclipse/docs/download.html On Apr 14, 10:13 am, Paul Grenyer paul.gren...@gmail.com wrote: Hi On Tue, Apr 14, 2009 at 9:10 AM, sandeepla...@gmail.com sandeepla...@gmail.com wrote: Thanks Paul, do you know some expected time after which these links will be up ? Nope, I just clicked on them to see if they worked. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w:http://www.marauder-consulting.co.uk b: paulgrenyer.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 -~--~~~~--~~--~--~---
MenuBar and Events
Hi there! I just tried to create a menu bar of GWT and I'm getting a little bit frustrated. I tried to find a solution on the internet but unfortunately it seems to be too simple for everyone. I'd like to create a menu which is working. But I have no idea how to work with the events. The following command in the code is working fine but how can I check which item executed the command? I tried to use the method onBrowserEvent() but honestly I have no idea how to use it. Here's my method: public void setNewNavi() { Command cmd = new Command() { public void execute() { Window.alert(test); } }; MenuBar start = new MenuBar(true); start.addItem(Startseite, cmd); MenuBar ueberBint = new MenuBar(true); ueberBint.addItem(Unternehmen, true, cmd); ueberBint.addItem(Partner, true, cmd); ueberBint.addItem(Referenzen, true, cmd); ueberBint.addItem(Publikationen, true, cmd); MenuBar news = new MenuBar(true); MenuBar hauptNavi = new MenuBar(); hauptNavi.addItem(Start, true, start); hauptNavi.addItem(Uuml;ber Bint, true, ueberBint); hauptNavi.addItem(News, true, news); // Add it to the root panel. RootPanel.get(navigation).add(hauptNavi); } Can anybody 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 -~--~~~~--~~--~--~---
Compiling with the new eclipse plugin, classpaths and generate-with/
Hi, Either I'm doing something wrong, or there is something wrong with the way the eclipse plugin hands out classpaths to the gwt Compiler. The Compiler loads the Generator class from generate-with name= rules when parsing the .gwt.xml files, but it is not passed the war/WEB-INF/ classes (aka, eclipse output) directory on it's classpath, resulting in a ClassNotFoundException when you hit the compile button. Create new Web Application (using the GWT SDK 1.6), name: plugintest, package: plugintest Create (empty) interface plugintest.client.Foo Create (empty) class plugintest.client.FooGenerator Edit plugintest.Plugintest.gwt.xml, add: generate-with class=plugintest.client.FooGenerator when-type-assignable class=plugintest.client.Foo/ /generate-with When you hit the GWT Compile Project button, the error you get is: Loading module 'plugintest.Plugintest' [ERROR] Unable to load class 'plugintest.client.FooGenerator' java.lang.ClassNotFoundException: plugintest.client.FooGenerator ... instead of the expected exception that FooGenerator doesn't extend the Generator base class. Compiling manuall with java -cp %GWT_HOME%/gwt-user.jar;%GWT_HOME%/gwt-dev-windws.jar;src;war \WEB-INF\classes com.google.gwt.dev.Compiler plugintest.plugintest gives the same result. Note that the gwtc target in a build.xml generated by the webAppCreator does include the compiled classes in the classpath of the Compiler. It can be circumvented by adding war/WEB-INF/classes as a source folder or something, but that's obviously not intended. Is this a bug in the plugin, or is there a proper solution (and why is that not default) ? Gert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: MenuBar and Events
That works Thank you very much for your fast response!!! On 14 Apr., 16:03, gscholt gsch...@gmail.com wrote: Add a seperate command to each menu item. Example: ueberBint.addItem(Unternehmen, true, new Command() { public void execute() { Window.alert(User selected this one); } }); ueberBint.addItem(Partner, true, new Command() { public void execute() { Window.alert(User selected that one); } }); On Apr 14, 3:42 pm, Chuck kurtz.lu...@cyber-art.ch wrote: Hi there! I just tried to create a menu bar of GWT and I'm getting a little bit frustrated. I tried to find a solution on the internet but unfortunately it seems to be too simple for everyone. I'd like to create a menu which is working. But I have no idea how to work with the events. The following command in the code is working fine but how can I check which item executed the command? I tried to use the method onBrowserEvent() but honestly I have no idea how to use it. Here's my method: public void setNewNavi() { Command cmd = new Command() { public void execute() { Window.alert(test); } }; MenuBar start = new MenuBar(true); start.addItem(Startseite, cmd); MenuBar ueberBint = new MenuBar(true); ueberBint.addItem(Unternehmen, true, cmd); ueberBint.addItem(Partner, true, cmd); ueberBint.addItem(Referenzen, true, cmd); ueberBint.addItem(Publikationen, true, cmd); MenuBar news = new MenuBar(true); MenuBar hauptNavi = new MenuBar(); hauptNavi.addItem(Start, true, start); hauptNavi.addItem(Uuml;ber Bint, true, ueberBint); hauptNavi.addItem(News, true, news); // Add it to the root panel. RootPanel.get(navigation).add(hauptNavi); } Can anybody 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: Large GWT-application on mobile phones
Vitali Lovich schrieb: (iPhone is running the desktop version of Safari with some multitouch enhancements). Have you tried running it under desktop Safari? Also, try upgrading to 1.5 or 1.6 (1.5 should have less chance of breaking things but 1.6 has performance stability improvements I believe). The application is still developed with GWT 1.4. Have you performed the steps I recommended for tracking down the cause using the server-side code? No, as I said, it was just a test and it's nothing that must work today. I will wait until the release of 1.6 and the first corrections before I start upgrading the project from 1.4 to 1.6 (or 2.0 when using the async loading you have pointed me to). Also, different browsers do have different behaviours, so if you've never tested your app on Safari on the desktop, I would seriously recommend starting there as it uses a completely different rendering engine (Webkit which is also what Android uses). Half of our development staff is using Macs, so testing already happens implicitly on Safari ;-) Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Large GWT-application on mobile phones
1.6 has been out about a week. On Tue, Apr 14, 2009 at 10:08 AM, Lothar Kimmeringer j...@kimmeringer.dewrote: Vitali Lovich schrieb: (iPhone is running the desktop version of Safari with some multitouch enhancements). Have you tried running it under desktop Safari? Also, try upgrading to 1.5 or 1.6 (1.5 should have less chance of breaking things but 1.6 has performance stability improvements I believe). The application is still developed with GWT 1.4. Have you performed the steps I recommended for tracking down the cause using the server-side code? No, as I said, it was just a test and it's nothing that must work today. I will wait until the release of 1.6 and the first corrections before I start upgrading the project from 1.4 to 1.6 (or 2.0 when using the async loading you have pointed me to). Also, different browsers do have different behaviours, so if you've never tested your app on Safari on the desktop, I would seriously recommend starting there as it uses a completely different rendering engine (Webkit which is also what Android uses). Half of our development staff is using Macs, so testing already happens implicitly on Safari ;-) Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Deferred Bind on Login to load different user interface
On Apr 14, 9:09 am, matttai matt...@hotmail.com wrote: Hi everyone, Been checking out alot of the deferred binding tutorials that seem to involve reading from the meta data in the html before loading the appropiate module. If i wanted to load a deferred binding class after a user logs in (eg. after the user logs in load the same app with a different skin and interface) Would this involve something like using JSNI to change the meta in the html after a user logs in and forcing a refresh? Or is there a better approach to doing this. Deferred binding is a feature of the GWT compiler that works by generating many versions of code at compile time, only one of which needs to be loaded by a particular client during bootstrapping at runtime. -- http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideDeferredBinding If you use deferred binding for skin support (which might not be a bad idea, depending on the amount of skins and the amount of code they generate), you will need to reload the application to get a different compiler permutation. This includes reloading the HTML, since you'll need to run the GWT bootstrapping code again, which selects the correct permutation depending on the set properties, using something like property-provider name=skin.../ Gert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
DateBox and onValueChange in GWT 1.6
Hi I'am working with the DateBox component: show a calendar when you click on a box. But I have a problem: the listener onValueChange doesn't work like in the componente DatePicker. This is my code: DateBox dateBox = new DateBox(); /*dateBox.setFormat(new DateBox.DefaultFormat (DateTimeFormat.getFormat (MMM dd, HH:mm aaa)));*/ dateBox.addValueChangeHandler(new ValueChangeHandlerDate() { public void onValueChange(ValueChangeEventDate event) { Window.alert(onValueChange datebox); /*Date date = dateBox.getValue(); try { String dateString = DateTimeFormat.getMediumDateFormat ().format(date); okButtton.setEnabled(true); Window.alert(okbutton a true); } catch (Exception e) { Window.alert(okbutton a false); Window.alert(e.getMessage()); okButtton.setEnabled(false); }*/ } }); This code in DatePicker works. Anybody knows why? Maybe it is a bug of this componente? thanks to all --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: file open in widget
Hi Arun, The only way to acces a file in plain GWT (i.e. plain Javascript) is by FileUpload. But you can use a Flash or a Signed Java Applet to do that. See: http://groups.google.com.br/group/Google-Web-Toolkit/browse_thread/thread/f1b1285cec44b1ef/777c0a520bfe8214?q=#777c0a520bfe8214 Regards, Freller On Apr 14, 3:12 am, Arun arun.r...@gmail.com wrote: Hi, I would like to open a file in GWT widget. i.e. Open a file(html/txt) on click of button/link/tree node. Which widget i should use and what approach i should follow? Thank in advance. Arun. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Compiling with the new eclipse plugin, classpaths and generate-with/
This is a legitimate bug. We'll include the fix in the upcoming point release. On Tue, Apr 14, 2009 at 9:52 AM, Gert gsch...@gmail.com wrote: Hi, Either I'm doing something wrong, or there is something wrong with the way the eclipse plugin hands out classpaths to the gwt Compiler. The Compiler loads the Generator class from generate-with name= rules when parsing the .gwt.xml files, but it is not passed the war/WEB-INF/ classes (aka, eclipse output) directory on it's classpath, resulting in a ClassNotFoundException when you hit the compile button. Create new Web Application (using the GWT SDK 1.6), name: plugintest, package: plugintest Create (empty) interface plugintest.client.Foo Create (empty) class plugintest.client.FooGenerator Edit plugintest.Plugintest.gwt.xml, add: generate-with class=plugintest.client.FooGenerator when-type-assignable class=plugintest.client.Foo/ /generate-with When you hit the GWT Compile Project button, the error you get is: Loading module 'plugintest.Plugintest' [ERROR] Unable to load class 'plugintest.client.FooGenerator' java.lang.ClassNotFoundException: plugintest.client.FooGenerator ... instead of the expected exception that FooGenerator doesn't extend the Generator base class. Compiling manuall with java -cp %GWT_HOME%/gwt-user.jar;%GWT_HOME%/gwt-dev-windws.jar;src;war \WEB-INF\classes com.google.gwt.dev.Compiler plugintest.plugintest gives the same result. Note that the gwtc target in a build.xml generated by the webAppCreator does include the compiled classes in the classpath of the Compiler. It can be circumvented by adding war/WEB-INF/classes as a source folder or something, but that's obviously not intended. Is this a bug in the plugin, or is there a proper solution (and why is that not default) ? Gert -- 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 -~--~~~~--~~--~--~---
GWT Serialization with CustomFieldSerializer fails because of SerializationPolicy
For data transport we use a simple java class containing a MapString, Object This map is transient and we serialize it with a custom field serializer. This works fine for most situations. For every service gwt has a list of classes which can be Serialized (whitelist). If my understanding is right this list is generated by the compiler at compile time by analizing the members of a class. But we can have classes (which ARE serializable) inside our transient map, but gwt will not serialize this classes because of the SerializationPolicy (these classes could not be found by the compiler at compile time). Is there any way to extend the white list of SerializationPolicy.java ? If I add all classes as private members to my class the members are found and the class can be serialized, but this is anoying and we cant do this for all classes (we dynamically decide which classes we need to transfer) Anyone got any expierence with that? Maybe open an issue about 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: Open a local file with GWT
On Mon, Apr 13, 2009 at 11:31 PM, Arun arun.r...@gmail.com wrote: HI, i am new to GWT, I have similar query. I want to open a file which is place somewhere in server file system (i.e. a directory on server contains some directory and files in it). I have to represent it in tree structure and display the file on click of leaf Node. I am paused at opening a file on click event. I want to open it in a widget ( every time a new leaf node click on tree a file would be opened opened in same window/widget replacing the old one). could any one tell me what approach i should follow? There may be some Java RPC stuff that will do this for you, if you have Java available on the server. If your server is Apache based and allows Index (or the equivilent for another server technology), then you could parse the HTML output from a CGI get of the requisite directory. Otherwise, you'll need a server-side process to accept a file name request, perform the file lookup and return the results to your client. Just like Javascript, there's nothing inherent in GWT that performs server side directory traversal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: ImageBundle too wide to display in IE7 under Vista
Like I said in my original, the workaround was to break up the ImageBundle and that worked. I played around with it and as soon as it went over 2048 pixels, the ImageBundle would not show. I plan to file a bug with GWT, but I was wondering if anybody else had encountered this. On Apr 13, 4:30 pm, Vitali Lovich vlov...@gmail.com wrote: Try it see if narrowing the ImageBundle solves the issue. If that's the case, file a bug since that's not something you should be worrying about, something the generator should know in the GWT code so as to automagically solve the problem for you. And if it can't (which is unlikely), then there should at least be a note in the Javadoc. On Mon, Apr 13, 2009 at 3:48 PM, Mark McCall markwmcc...@gmail.com wrote: Any takers? On Apr 8, 9:03 am, markmccall markwmcc...@gmail.com wrote: I recently encountered an issue where the contents of an ImageBundle were not being displayed at all, but only under Vista and IE7. Using XP with IE6, IE7, FireFox 2, FireFox 3 the contents of the ImageBundle displayed with no problems. There are second hand reports that it worked under Vista and IE8, but I have not seen it myself. I ruled out file size as the limiting factor sense I have other ImageBundles that worked properly, yet their file size was larger than the offending ImageBundle. After some experimenting it APPEARS that IE7 under Vista imposes a limit of 2048 pixels for the width of a PNG that is being displayed using the AlphaImageLoader Filter. As soon as the ImageBundle width exceeds 2048 pixels, it fails to appear. The obvious work around was to break up the ImageBundle to reduce it's width. Has anybody else encountered this? Is this something that I should have already known about? Thanks, Mark McCall --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 bugs in generated JavaScript Code (GWT 1.4.60)
QUESTION: Is it possible to define a file for 'unknwon' useragents? It is possible for the GWT compiler to generate another permutation of your application for additional user agents, but they would have to be known. You can do this via a property provider. But first, I'm wondering which browsers your clients are using such that the user agent couldn't be resolved. Hi Summit Well, he was using a Firefox with a lot of plug-ins, some of them might change the User-Agent string. I do not expect, that the application will work with this browser, but I assumed that he will get a nice error message, if the browser is not supported. GWT generates a try { unflattenKeylistIntoAnswers(['default', 'gecko1_8'], '278A6CEE55E17277BC30FF22BE7EC49F'); strongName = answers[computePropValue('locale')][computePropValue ('user.agent')]; } catch (e) { return; } which results in an empty page.Is there a way to provide a nice error message to the user without changing the generated JavaScript code? This is the first time I've heard of this problem. I think this could be related to the browser that your clients are using. I'm wondering if it's in the list of GWT supported browsers. As I said, this is not really reproducible. Yes, the browser(s) are on the list of supported browsers. Case 1: They tried Firefox and IE 6 on Windows. Didn't work, they got an empty page. Rebooting the client machine fixed the problem. So, no blame on GWT here, but I'm trying to understand what happens.. Case 2: Different versions of Firefox and IE on Windows. Some of them worked, some not. Without rebooting the client machine, I added $doc.location.href += '#'; on the server side and all browsers worked fine. I'm not sure what happend here, maybe both cases are cache problem on the client side. Greetings Mirko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 can I optimize menu options
I create menu options from a database. I assign option manager with the following code: Command menuCommand = new Command() { public void execute() { doSomething(id, url, ope); } }; is suitable this ?? My code is: JSONArray items = response.get(o).isArray(); for (int i = 0; i items.size(); i++) { JSONObject item = items.get(i).isObject(); String id = ((JSONString) item.get(id)).stringValue(); String url = ((JSONString) item.get(url)).stringValue(); String ope = ((JSONString) item.get(ope)).stringValue(); String caption = ((JSONString) item.get(caption)).stringValue(); MenuBar opcion = new MenuBar(true); opcion.setAnimationEnabled(true); menu.addItem(new MenuItem(caption,opcion)); JSONArray opciones = item.get(opc).isArray(); for (int j = 0; j opciones.size(); j++) { JSONObject opcion2 = opciones.get(j).isObject(); final String caption2 = ((JSONString) opcion2.get (caption)).stringValue(); Command menuCommand = new Command() { public void execute() { doSomething(id, url, ope); } }; opcion.addItem(caption2,menuCommand); } } Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Problem downloading Eclipse Plugin
Hello: Is there any archived update site for the Eclipse plugin available for download?. I can't update my Eclipse thru web. Thanks... Mario. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
filter for client package in MyApplication.gwt.xml
I can define package with client code in MyApplication.gwt.xml. source path='myclientpackage'/ Is it possible to set filter for this package to ignore some classes? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 share RPC service between GWT applications?
Hello, I have the following problem that puzzles me. Suppose I have 2 different GWT applications running on different contexts: - http://server/context1 - http://server/context2 Is there a way to share an RPC service between them? 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 -~--~~~~--~~--~--~---
hosted mode using seperate module for server side code
I use a servlet in the hosted mode which acts as a proxy since i cannot directly communicate with the server due to the same origin policy. Once deployed the servlet is no more needed since both would run on the same server. So I decided to have a separate module for the servlet which is inherited by the module of the main project. But the servlet is only deployed by Jetty when I reference the servlet in the web.xml of the main project. With the following setup the servlet is not deployed when running in hosted mode: Main Project: Main.gwt.xml: module ... inherits name=Servlet/ entry-point / /module war + WEB-INF + web.xml web.xml: ?xml version=1.0 encoding=UTF-8? web-app welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app Servlet Project: Servlet.gwt.xml: module servlet class=server.Servlet path=/servlet / /module war + WEB-INF + classes + ... servlet class + lib + ... + web.xml web.xml: ?xml version=1.0 encoding=UTF-8? servlet servlet-namesomeName/servlet-name servlet-classserver.Servlet/servlet-class /servlet servlet-mapping servlet-namesomeName/servlet-name url-pattern/servlet/url-pattern /servlet-mapping /web-app Is there a way to use server-side code from an inherited module in the hosted mode without modifying the web.xml of the main project? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: erro while try to do Store data in the datastore Example
I'm having the same problem. If anyone else has gone through the app engine tutorial and fixed this issue on their own, any help would be greatly appreciated. Or as the OP said, a complete set of the working code would be nice as well. On Apr 13, 9:44 am, @lex alexmonte...@gmail.com wrote: Hi, I would like some help to resolve this problem at the example of GWT using Gdatastore: http://code.google.com/webtoolkit/tutorials/1.6/appengine.html#data All application run well following the getting start tutorial, so when I try to improve using data store at this implementation an erro occurs because stockService is not declare yet. I tryed to force the declaration using StockService stockService = GWT.create(StockService.class); but another erro is get with the method getStocks. private void loadStocks() { stockService = GWT.create(StockService.class); stockService.getStocks(new AsyncCallbackString[]() { public void onFailure(Throwable error) { } public void onSuccess(String[] symbols) { displayStocks(symbols); } }); } private void displayStocks(String[] symbols) { for (String symbol : symbols) { displayStock(symbol); } } If there is no mistake I would like to know where I can download the caomplete example with datastore workings. Ty. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 use DateBox css style for date format error?
Hello All, I need some help using the css style .dateBoxFormatError for DateBox widget. I have the style property set in my css file but it does not work when i run the app. Does anyone know how this css property works? .dateBoxFormatError { background: #ff; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: [GEP] Unknown argument: -server
Hi Isaac, There is a bug here. The launch configuration should not add -server if the project uses App Engine and GWT, but does have the WAR layout. For now, projects in the WAR layouthttp://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6that use GWT 1.6 or later are run under HostedMode. All others are run using GWTShell. Perhaps if you are using -noserver then we should pick from the latest available since there are no servlets to be loaded, etc. On Tue, Apr 14, 2009 at 8:37 AM, Isaac Truett itru...@gmail.com wrote: Hi Sumit, 1) This does prevent me from running hosted mode. The error actually appears in the Console view, not as a popup. It's as if I'd typed javaw com.google.gwt.dev.GWTShell -server at a command prompt. The launch is terminated at that point. 2) This project started as GWT + GAE/Python (GAEP?). I decided to toss the Python backend and try to set up the project as GWT + GAE/Java using the new plugin. I haven't even added any servlets I added gwtNature and gaeNature, set GWT to the 1.6 SDK, removed my old GWT 1.6 milestone build from the classpath, then tried to run hosted mode. Because I don't have war/web-inf/web.xml, it runs GWTShell instead of HostedMode. It sounds like the problem is that the plugin doesn't expect this state and ends up passing invalid parameters to the old GWTShell. Results of further experimentation this morning: I tried to make it run HostedMode instead of GWTShell by removing gwtNature (I removed gaeNature as well, just because), adding war/web-inf/web.xml, and re-adding the natures. This did get HostedMode to run. Then I reversed the operation in an attempt to get the old error back. I removed the natures, removed the web.xml, changed the output path back to /bin, and re-added the natures. But it still tries to run HostedMode and complains that it can't find web.xml. It seems like, as long as the old GWTShell is going to be supported at all, there should be an option to explicitly switch between them. Or at least make the decision points more transparent, and reversible. I'd be happy to take a look at the plugin source and see if I can find the error. And if you can't get a reduced test case to reproduce it, you could always zip up the whole project and send it to me. ;) - Isaac On Mon, Apr 13, 2009 at 5:25 PM, Sumit Chandel sumitchan...@google.com wrote: Hi Isaac, You've come to the right place for GWT Eclipse plug-in support! We don't have an official support forum for the Eclipse plug-in just yet. Given the various Google APIs that might be included in the plug-in, it seems best to report issues on the forum corresponding to the API / plug-in feature for which you experienced issues, so well done :-) Now then, about the issue you're experiencing - a couple of questions to help troubleshoot: 1) Does the warning message that pops up prevent you from running hosted mode? Or are you able to run it while having the warning message displayed as you use hosted mode? 2) What type of application are you running? (GWT or GWT + GAE) The fact that it's complaining about a -server argument tells me that this is a project configured with the AppEngine nature, but the fact that GWTShell is being used tells me that it's using GWT 1.5, which according to how the plug-in was designed, should be impossible unless there's a bug on our end. In any case, let me know your config and maybe we can figure out what's going on. Cheers, -Sumit Chandel On Wed, Apr 8, 2009 at 4:02 PM, Isaac Truett itru...@gmail.com wrote: Preface: I see posts related to the plugin on this list and on GAE, but I can't find an official support forum or issue tracker. If such a thing does exist, do please redirect me there. I'm using the plugin with two Eclipse projects. Same version of Eclipse. Same workspace, even. One of them is working fine so far, the other gives me this when I Run As - Web Application: WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be removed in a future release. Use 'com.google.gwt.dev.HostedMode' instead. (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.) Unknown argument: -server Google Web Toolkit 1.6.4 (GWTShell syntax help omitted) I've searched the entire project for -server and can't find it anywhere. It brings to mind the -server argument for java.exe but there's nothing in the launch configuration's arguments tab, VM or program. The other project, the one that works, gives the deprecation warning but not the unknown argument error. Anyone know where that errant argument might be coming from? Thanks, Isaac -- 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
Re: Wrapping Around GData JS API With GWT
Thanks Sumit, that's what i wanted to hear. I've added a project for the GData-GWT library: http://code.google.com/p/gdata-gwt-client/ Also, i managed to scrape the information in the JS Docs for GData (http://code.google.com/apis/gdata/jsdoc/1.8/index.html) so i'm looking to dynamically generate the GWT libraries using the overlay technique that you described - this way, i can easily keep it in sync with the GData JS library. If anyone reading this thread is interested in contributing to this project just let me know. Bobby On Apr 13, 5:37 pm, Sumit Chandel sumitchan...@google.com wrote: Hi Bobby, Please check out replies inlined below: 1. I couldn't find a GData Library for GWT, did i miss it (i already checked with the GData group)? I know GData has the Java API, but that (probably) won't compile to JavaScript. However, GData also has a JS API (the JS docs are here http://code.google.com/apis/gdata/jsdoc/1.8/index.html), so at a minimum we could wrap the JS API in a very thin GWT library - i'm wondering if this already exists or if it's planned as an addition to the list of GWT Google API Libraries (http://code.google.com/ webtoolkit/googleapilibraries.html). There currently aren't any plans to provide GData bindings in the GALGWT project, but as you may know, the project is open source and we would welcome any contributions if you were planning on creating bindings for the GData JS library. 2. In the scenario where you have an existing JS library that you want to make use of in GWT, what's the best, thinnest, way to to create a Java wrapper to the JS library? For example, we could create a Java class per JS class. The Java class could keep a reference to the native JSObject, and define the same properties and methods that the JS class provides but which delegate to the JS implementation via JSNI. The problem with this is that after compiling to JS, we end up with a JS wrapper around a JS object. Is there a better implementation approach that will avoid this? I think the easiest way to wrap the objects in the GData JS library is to not actually wrap them, but overlay them with JavaScript Overlay Types (link below). This is the technique that is used for the existing Google APIs that have bindings in the GALGWT project and would be the easiest and best way to provide support for GData bindings as well. The greatest thing about the overlay technique is that there is zero overhead to pay for overlaying the JS object. The one-to-one nature of the binding also makes it somewhat intuitive for developers to follow documentation on the proper API as they use it in their GWT project through GALGWT, so there's yet another win by choosing the overlay strategy. JavaScript Overlay Types:http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D... Hope that helps, -Sumit Chandel - 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 -~--~~~~--~~--~--~---
Problems with ImageBundle in IE8 when not in compatibility mode
Greetings, Only in IE8 with compatibility mode off do I see the images in the ImageBundle displayed in the right location but other images from the bundle are displayed to the left of the displayed image. In other words it isn't clipping the bundle to the left. In compatibility mode it works fine and it works in IE7, FF3, Opera, and Safari. This a problem in 1.6.4 and 1.5.3. I've looked for previous discussions of this and found http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e992a62fedc9e974 where Janie says I'm trying to track down an issue with ImageBundles that I'm having in IE8. This email is not about that issue... . But then nothing more about this. Suggestions? -ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Load gwt module before image are loaded on IE7
Hi, I have a page that contains a lot of images and some of those images take a long time to load (in total like 1 min) I have searched the forum and found this similar post http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d0f0f71ebfd74f0/ff7cc59bd0cb3447?lnk=gstq=ie7+images+load#ff7cc59bd0cb3447 but with no concrete solution to the problem, that IE7 will wait until all the images are loaded until it will then load the GWT module. Is there a work around for this so that the gwt module will be loaded before the images have finished loading? (using gwt 1.5.3) Thanks Dominik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?
On Apr 13, 6:48 pm, Jeff Chimene jchim...@gmail.com wrote: Also, remember that GWT does not implement the entire JRE. From the looks of the above error, you might be hitting that limitation, i.e. delete method not implemented, as well. Well, I started with a working application, and only changed the value of a String. So if it was correctly built before, such a change could not have introduced new API calls outside of the subset that GWT supports. It looks to me like that delete method is a problem with low-level class reloading that may be broken on the current JDK that comes with MacOS X. I've never seen that before, though. Vitali Lovich wrote: So change the ant script so that it does what you want it to. I've never gone the noserver route as I've always used the embedded app server (Jetty in 1.6). Alas, this is not possible in my application. Neither Tomcat nor Jetty are able to deploy EARs, let alone the stateless session beans and entity beans within them. Therefore noserver is my only option, and therefore no quick-turnaround-via-hosted-mode love for 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 -~--~~~~--~~--~--~---
Problems getting started with GWT and Eclipse
Hi, I'm running Eclipse 3.4 and used the built-in add software capability to download and install toolkit plugin and app engine. Following the steps in the Getting Started tutorial, I created the StockWatcher application. Then following the instructions to test the default project components, I selected it in the Package Explorer and then from the toolbar clicked run and selected run as a web application. The Eclipse console flickered a bit, but no text appeared and the little bar at the to of the console howed that the program had terminated. No browser ever displayed anything (or even tried to), yet from the tutorial I should have seen 2 browser windows. Any ideas why things aren't working right at step 1 in the tutorial? Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Please help!Compile error
-Xss2048k or whatever size you esnt On Tue, Apr 14, 2009 at 11:46 AM, Ian Petersen ispet...@gmail.com wrote: On Mon, Apr 13, 2009 at 11:38 PM, Yang Lei matrixma...@gmail.com wrote: I had try, but the problem still happened... You're running out of stack space so you could try increasing that. I think the usual JVM argument is -ss, or something, but you should be able to find the right answer with java -help. Of course, if you've found a bug in the compiler, increasing stack space may not solve the problem Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to share RPC service between GWT applications?
You can do this if you place your RPC services in a separate module that is inherited by the two main application modules. In this situation you can specify the RPC servlets in the common module gwt.xml file and this will work for hosted mode, but I think you have to map them separately (i.e. in duplicate) in each main module's web.xml for deployment - AFAIK there is no way around that (app server/ servlet specification issue, not GWT). At run time you will end up with two instances of each servlet loaded by the two main module's classloaders (again app server/servlet specification issue, not GWT) which may or may not present you with an issue depending on what you are doing. On Apr 14, 4:14 pm, jfeid jannis.feida...@gmail.com wrote: Hello, I have the following problem that puzzles me. Suppose I have 2 different GWT applications running on different contexts: -http://server/context1 -http://server/context2 Is there a way to share an RPC service between them? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem downloading Eclipse Plugin
Currently, we only have the update sites. Are you having problems using them? On Tue, Apr 14, 2009 at 10:23 AM, Mario Mayor mayorma...@gmail.com wrote: Hello: Is there any archived update site for the Eclipse plugin available for download?. I can't update my Eclipse thru web. Thanks... Mario. -- 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 -~--~~~~--~~--~--~---
Re: does com.google.gwt.dev.Compiler need to run prior to hosted mode?
On 04/14/2009 11:12 AM, pohl wrote: On Apr 13, 6:48�pm, Jeff Chimenejchim...@gmail.com wrote: Also, remember that GWT does not implement the entire JRE. From the looks of the above error, you might be hitting that limitation, i.e. delete method not implemented, as well. Well, I started with a working application, and only changed the value of a String. So if it was correctly built before, such a change could not have introduced new API calls outside of the subset that GWT supports. It looks to me like that delete method is a problem with low-level class reloading that may be broken on the current JDK that comes with MacOS X. I've never seen that before, though. Vitali Lovich wrote: So change the ant script so that it does what you want it to. I've never gone the noserver route as I've always used the embedded app server (Jetty in 1.6). Alas, this is not possible in my application. Neither Tomcat nor Jetty are able to deploy EARs, let alone the stateless session beans and entity beans within them. Therefore noserver is my only option, and therefore no quick-turnaround-via-hosted-mode love for me. :-/ That blows. Don't forget about the change to MODULE.gwt.xml to reduce the compilation permutation count. It can make a difference for large values of LOC, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 include javascript files in GWT with eclipse plugin?
Hi all... I'm using GWT-EXT, and it needs to be copied into war/js/ext every time I build my project. However, every time I build my project, it gets deleted and I have to copy it manually. Does anyone know where I would put the ext folder - or what files I modify to point to it - so that the Eclipse plugin will copy it for every build? - Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 Serialization with CustomFieldSerializer fails because of SerializationPolicy
I have the same issue with an RPC service witch return a ListObject... The compiler does not find the type of elements that could be included in the list... As a workarround i'm obliged to create dummy methods using the classes that could be included in the list... I would like to know how to extend the SerializationPolicy (whiteList...) ?? perhaps can we use annotations like @gwt.typeArgs On 14 avr, 16:36, Daniel Kurka kurka.dan...@googlemail.com wrote: For data transport we use a simple java class containing a MapString, Object This map is transient and we serialize it with a custom field serializer. This works fine for most situations. For every service gwt has a list of classes which can be Serialized (whitelist). If my understanding is right this list is generated by the compiler at compile time by analizing the members of a class. But we can have classes (which ARE serializable) inside our transient map, but gwt will not serialize this classes because of the SerializationPolicy (these classes could not be found by the compiler at compile time). Is there any way to extend the white list of SerializationPolicy.java ? If I add all classes as private members to my class the members are found and the class can be serialized, but this is anoying and we cant do this for all classes (we dynamically decide which classes we need to transfer) Anyone got any expierence with that? Maybe open an issue about 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: iText Causing GWT-RPC callback to fail. Need to send to HttpServletResponse?
Alright - thanks. Again, right now it just uses a hard coded string, which works. However, if a user generates three different forms, and then refreshes the three new windows (PDF file), the end result is three copies of the last form that was generated and added to the token. Is there anything wrong with using a random number generator to generate the tokens? Provided the range is large enough, the probability of two generated forms during a single session getting the same random number is small, so they should essentially all be unique nearly 100% of the time. (After all, a user would only generate a few forms per session, or at most 20 or so). Is there anything wrong with this scheme? @flyingbuzz - your PDF looks nice. Right now ours is extremely basic just posting the details using new Phrase(). I haven't looked into styling it yet until I get the basic details down. Then I can go in and style them, but they will probably still be more basic than yours. They are simple behavior reports for students in school that displays some basic information about their behavior over the week / month / etc. On Apr 8, 1:50 am, Carl Pritchett bogusggem...@gmail.com wrote: Hi, You'll have to work out a token generation scheme. If you find a nice one, post it. Sessions will typically timeout (the timeout is app server dependent), but I also added session.invalidate() on login to ensure that the previous session is invalidated (e.g. two users usin the same browser). Carl. On Apr 8, 8:04 am, Superman859 russ.d.hollo...@gmail.com wrote: Thanks Carl! Your method worked fine. It's almost fully implemented, but the only question I have that remains is the proper way to generate tokens. I haven't ever had to generate them before - is there an automatic way of generating unique tokens, or is generateToken () a function I would write myself and have to ensure that each token generated was unique? For now, I just hard coded a random string into the code, which worked well enough to see that the PDF did indeed open in a new window and display as expected. I will also need to figure out the session settings so that they are invalidated properly, although I think I will need to do a bit more reading on this. // RPC code in the class which extends RemoteServiceServlet public String generatePDF(ReportDO report, int id) { // initialize new document for PDF Document document = new Document(); // generate one time token that the client can use to retrieve the PDF String token = 258958395ai53; // generate test PDF try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter.getInstance(document, baos); document.open(); document.add(new Paragraph(Hello World!)); document.close(); byte[] pdf = baos.toByteArray(); HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); session.setAttribute(token, pdf); } catch (Exception e) { System.out.println(ReportServlet::generatePDF::Exception + e.getMessage()); } return token; } // standard servlet public class PDFServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // create output stream from byte array in session ByteArrayOutputStream baos = new ByteArrayOutputStream(); String token = request.getParameter(token); byte[] pdf = (byte[]) request.getSession().getAttribute(token); baos.write(pdf); // setting some response headers response.setHeader(Expires, 0); response.setHeader(Cache-Control, must-revalidate, post-check=0, pre-check=0); response.setHeader(Pragma, public); response.setContentType(application/pdf); // content length is needed for MSIE response.setContentLength(baos.size()); // write ByteArrayOutputStream to ServletOutputStream ServletOutputStream out = response.getOutputStream(); baos.writeTo(out); out.flush(); } } // client side code section ReportController.getInstance().generatePDF(report, id, new AsyncCallback() { public void onFailure(Throwable caught) { SC.say(Failed); }
1.6 and css hyperlinks
I converted an app to 1.6 and I have buttons with css to make them look like hyperlinks using the following: .myButton { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } And now it shows a button background around the link, and the underline is missing. Anyone else seeing this and have a way to fix it? -Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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.6 and css hyperlinks
Ok, I solved this finally. Turns out it wasn't a css problem but I used addStyleName() instead of setStyleName(). Changing them fixed it. On Apr 14, 4:41 pm, Nick nickc...@gmail.com wrote: I converted an app to 1.6 and I have buttons with css to make them look like hyperlinks using the following: .myButton { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } And now it shows a button background around the link, and the underline is missing. Anyone else seeing this and have a way to fix it? -Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: [GEP] Unknown argument: -server
Hey Jason, The GWT issue tracker would be a fine place to report the feature request. I've added a new category to the tracker as well so we can properly categorize bugs filed against GWT-specific plugin features as they come in. Cheers, -Sumit Chandel On Tue, Apr 14, 2009 at 8:00 AM, Jason Essington jason.essing...@gmail.comwrote: I agree completely. If you've got a GWT project using a version of GWT where there is a choice about which shell launcher to use (currently only 1.6.x) then the user should be able to manually decide which one to use, or at least override the plugin's decision. In my case, I've got a project that has been using -noserver since the beginning of time (at least as far as GWT is concerned) and there is no reason to fabricate the war/WEB-INF/web.xml file ... it is unneeded and just noise in my project directory, but the plugin still requires it if I want to use HostedMode ... I'd be a lot happier with a simple checkbox in the launch configuration that says something like Always use HostedMode if available. I'm thinking this is probably something that would make a good feature request ... in the GWT issue tracker I suppose? -jason On Apr 14, 2009, at 6:37 AM, Isaac Truett wrote: It seems like, as long as the old GWTShell is going to be supported at all, there should be an option to explicitly switch between them. Or at least make the decision points more transparent, and reversible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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.6 and css hyperlinks
That's not the reason you're initial solution didn't work. If you want it to work with addStyleName, you have to properly inject the javascript, otherwise the 3rd party stylesheet you are using (Google's is most likely) will override your CSS. All you did was remove the styling that would be applied by the stylesheet so that yours wouldn't be overwritten. The same thing could be accomplished by adding !important to your rule or properly inserting it into your gwt.xml module description. On Tue, Apr 14, 2009 at 4:46 PM, Nick nickc...@gmail.com wrote: Ok, I solved this finally. Turns out it wasn't a css problem but I used addStyleName() instead of setStyleName(). Changing them fixed it. On Apr 14, 4:41 pm, Nick nickc...@gmail.com wrote: I converted an app to 1.6 and I have buttons with css to make them look like hyperlinks using the following: .myButton { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } And now it shows a button background around the link, and the underline is missing. Anyone else seeing this and have a way to fix it? -Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
insert text into a textarea at cursor position
So it's pretty clear that this is achievable in a regular webpage with a javascript function... but how do I insert text into a textarea at cursor position in GWT? We have it functional in all browsers except IE... it adds like 3000 character spaces and inserts the text in a random spot in the textarea. To explain the greater functionality here, the user is filling out a form, then inserting portions of it via links of section names into the text area to create a customized note. 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: File Upload with rpc call
Look into google gears. You can upload a file of up to 1 GB in youtube with google gears installed. Look for: Blob slice(offset, length) and HttpRequest API --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 with Maven and build system questions/survey...
I find it somewhat odd that the GWT team does not just create an official maven plugin. They can program the most amazing Java to Javascript cross compiler, have the most shiny widgets and speedy RPC services but if people are left in the dark as to how to build the bloody thing it will never be used! Who agrees that having a solid, feature complete Maven plugin from Google would increase adoption of GWT faster than anything? I used a great starter application created by Sam Brodkin... http://code.google.com/p/gwt-maven2-starter-app/ It served as a good starting point for building my application in Maven2. I use Teamcity for continuous integration which at this early stage essentially means building the project, running one unit test, and spitting out an artifact every time the SVN is updated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: File Upload with rpc call
That would of course necessitate your users installing gears (penetration of which is limited at best I think). On Tue, Apr 14, 2009 at 5:40 PM, Rakesh rake...@gmail.com wrote: Look into google gears. You can upload a file of up to 1 GB in youtube with google gears installed. Look for: Blob slice(offset, length) and HttpRequest API --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 include javascript files in GWT with eclipse plugin?
hello i have the same problem. On 14 avr, 21:58, TimOnGmail timbes...@gmail.com wrote: Hi all... I'm usingGWT-EXT, and it needs to be copied into war/js/extevery time I build my project. However, every time I build my project, it gets deleted and I have to copy it manually. Does anyone know where I would put theextfolder - or what files I modify to point to it - so that the Eclipse plugin will copy it for every build? - Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Load gwt module before image are loaded on IE7
On 04/14/2009 09:55 AM, Dominik Steiner wrote: Hi, I have a page that contains a lot of images and some of those images take a long time to load (in total like 1 min) I have searched the forum and found this similar post http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d0f0f71ebfd74f0/ff7cc59bd0cb3447?lnk=gstq=ie7+images+load#ff7cc59bd0cb3447 but with no concrete solution to the problem, that IE7 will wait until all the images are loaded until it will then load the GWT module. Is there a work around for this so that the gwt module will be loaded before the images have finished loading? (using gwt 1.5.3) Load the images via RequestBuilder() and attach them to the DOM as they arrive? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Load gwt module before image are loaded on IE7
On 04/14/2009 04:31 PM, Dominik Steiner wrote: Thanks Jeff for your response, the problem is that the images are within the html page and the gwt module is just a component that has to be included into that html page. So what i would need would be a way that the onModule() method of that gwt component is triggered without having to wait that the images from the html host page finish loading. Thanks Dominik How about a bootstrap page that displays a loading... message, preloads the images, then loads the problem child? Do you have /any/ control over the contents of that page? W/O rewriting or encapsulating it, I think you're SOL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Two clients one session
Sessions are usually bound to a browser, for a given host/Application Context(war), by a Cookie ( likely called JSESSIONID ), if the two browsers share a cookie cache/address space, they'll see the same session cookie, and share the same session. On Apr 13, 6:40 am, davidst...@gmail.com davidst...@gmail.com wrote: Hi. While trying to test my app, i open two clients in Hosted Mode. After i log, i return to the client the session id HttpSession session = getThreadLocalRequest().getSession(true); session.setAttribute( userId, id ); return session.getId(); The problem is, that GWT does not open new session for the second client, but reuses the session that was opened for the previous one. Does any body have any idea why does it happens ? Does it depend on the mode ? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Load gwt module before image are loaded on IE7
A browser will fetch all resources from a page before executing any Javascript. So move those images into an ImageBundle (you'll get better performance too) or use the Image widget (equivalent to the img in HTML) to add your images using Javascript. On Tue, Apr 14, 2009 at 7:45 PM, Jeff Chimene jchim...@gmail.com wrote: On 04/14/2009 04:31 PM, Dominik Steiner wrote: Thanks Jeff for your response, the problem is that the images are within the html page and the gwt module is just a component that has to be included into that html page. So what i would need would be a way that the onModule() method of that gwt component is triggered without having to wait that the images from the html host page finish loading. Thanks Dominik How about a bootstrap page that displays a loading... message, preloads the images, then loads the problem child? Do you have /any/ control over the contents of that page? W/O rewriting or encapsulating it, I think you're SOL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Deferred Bind on Login to load different user interface
Yep you are following my train of thought exactly. I'm thinking in terms of using deferred binding for skin/layout differences it shouldn't be such a bad idea if it's small alterations such as colours/layout. Considering that internationalisation/browser layout differences work along the same lines in terms of the scope of changes. The workflow i've had it laid out in though in my head is like this: 1. default entry point with default permutation is loaded with login form 2. user logs in with user / pass / layout 3. system checks for valid login 4. if successful login redirect back to default entry point with when-property-is name=skin value=GREEN_LAYOUT/ My issue is on the redirect how would i go about setting the property value that i wish to load? Would this be appended to the URL ala locales in internationalisation? This then brings up another issue. If it does involve appending to the URL what if i only wish to make the skin available to only a particular set of users. Else i'm thinking at this point maybe dynamically downloading and loading skin X after login may be a better choice as opposed to deffered binding. On Apr 15, 12:23 am, gscholt gsch...@gmail.com wrote: On Apr 14, 9:09 am, matttai matt...@hotmail.com wrote: Hi everyone, Been checking out alot of thedeferredbinding tutorials that seem to involve reading from the meta data in the html before loading the appropiate module. If i wanted to load adeferredbinding class after a user logs in (eg. after the user logs in load the same app with a different skin and interface) Would this involve something like using JSNI to change the meta in the html after a user logs in and forcing a refresh? Or is there a better approach to doing this. Deferredbinding is a feature of the GWT compiler that works by generating many versions of code at compile time, only one of which needs to be loaded by a particular client during bootstrapping at runtime. --http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D... If you usedeferredbinding for skin support (which might not be a bad idea, depending on the amount of skins and the amount of code they generate), you will need to reload the application to get a different compiler permutation. This includes reloading the HTML, since you'll need to run the GWT bootstrapping code again, which selects the correct permutation depending on the set properties, using something like property-provider name=skin.../ Gert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: GWT1.6 RPC service with ListObject in return: Serialization pb
GWT needs to know ALL the types that CAN be serialized to the UI at compile time. It looks at the RPC parameters and return types, traces their roots and possible sub-classes, and makes sure the proper serializers/deserializers are present. First tho, I ask, what good is a ListObject ??? Say this worked... what would you do with the List in the UI? Second, ONLY Serializable types can be used with RPC, so the Minimum that makes ANY sense is ListSerializable. This may work, but the compiler would then take a large amount of time finding ALL Serializable classes... bad. Still, you can then get almost anything in your List... so what do you do in the client??? Iterate and check instanceof on each item??? IF I had to do this, I would create a marker interface, public interface DTO extends Serializable { } and make any class that could be used in the UI implement DTO. the make it ListDTO the compiler would then only generate serializers for anything marked DTO, and be much more efficient. STILL, On the client you don't know exactly what you have in the List, and any solution to that problem will be slow and error prone. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Two clients one session
I was unsure if this topic title was a clever play on a popular video circulating the internet. If so very clever :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Two clients one session
heh :-) This is a pretty legit problem in real-world webapps tho. On Apr 14, 8:38 pm, matttai matt...@hotmail.com wrote: I was unsure if this topic title was a clever play on a popular video circulating the internet. If so very clever :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 include javascript files in GWT with eclipse plugin?
This is one solution... another is to create an entirely new GWT Module as a library, add all the script and stylesheet tags to that Modules XML file, package it up in a jar, and inherit the library module in you app module. All the resources will be copied to the output folder at compile time. On Apr 14, 6:26 pm, loudo lou...@gmail.com wrote: I have found a solution. I have add the javascript of the ext directory in the jar of the gwt- ext api : gwtext.jar first i have create this directory : com\gwtext\public\js\ext i have copy : - adapter directory - resources directory - ext-all.js - ext-all-debug.js - ext-core.js - ext-core-debug.js i add all this files in the gwtext.jar And now it works with this new jar files. The javascript files seem to be copied when the module has been generated. On 14 avr, 21:58, TimOnGmail timbes...@gmail.com wrote: Hi all... I'm using GWT-EXT, and it needs to be copied into war/js/ext every time I build my project. However, every time I build my project, it gets deleted and I have to copy it manually. Does anyone know where I would put the ext folder - or what files I modify to point to it - so that the Eclipse plugin will copy it for every build? - Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Load gwt module before image are loaded on IE7
Thanks for your answers. Ok, i can see the javascript solution, in our case a php backend would rewrite the html and add unique ids to the divs where the images will be added and call a JSNI method that will be triggered on gwt module load and pass the image urls to that method in an array or something. Any other possible solutions out there? Thanks for the input. Dominik On 14 Apr., 18:16, Vitali Lovich vlov...@gmail.com wrote: A browser will fetch all resources from a page before executing any Javascript. So move those images into an ImageBundle (you'll get better performance too) or use the Image widget (equivalent to the img in HTML) to add your images using Javascript. On Tue, Apr 14, 2009 at 7:45 PM, Jeff Chimene jchim...@gmail.com wrote: On 04/14/2009 04:31 PM, Dominik Steiner wrote: Thanks Jeff for your response, the problem is that the images are within the html page and the gwt module is just a component that has to be included into that html page. So what i would need would be a way that the onModule() method of that gwt component is triggered without having to wait that the images from the html host page finish loading. Thanks Dominik How about a bootstrap page that displays a loading... message, preloads the images, then loads the problem child? Do you have /any/ control over the contents of that page? W/O rewriting or encapsulating it, I think you're SOL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Load gwt module before image are loaded on IE7
On 04/14/2009 05:48 PM, Dominik Steiner wrote: Thanks for your answers. Ok, i can see the javascript solution, in our case a php backend would rewrite the html and add unique ids to the divs where the images will be added and call a JSNI method that will be triggered on gwt module load and pass the image urls to that method in an array or something. Any other possible solutions out there? Thanks for the input. Dominik Yeah, that works. Don't forget Vitali's observation about image bundles. They're easy to do and yield a real payoff in terms of performance. There are several solutions once you realize that the images can be loaded in the background, and they can't really be enumerated right now. You're going to have to get a better (read site-specific) feel about the possibilities and constraints w/r/t/ any solution that meets your specific situation. Ask questions. Be prepared to write one to throw away as you converge on a solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: File Upload with rpc call
BTW, is there a solution to transfer a large file exceeding more than 1G bytes between two hosts on the net? The transfer speed won't make the end user lose their patience. Best 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 -~--~~~~--~~--~--~---
Relative Position of a Widget
Hi, I used gwt 1.6.1 to implement an small aplication. And to get the coordinates of the mouse on an event inside the widget I used: int x = Event.getRelativeX(event, this.getElement()); int y = Event.getRelativeY(event, this.getElement()); but now I changed to 1.6.4, and I get an error. This functions do no exist, and they are not in the API anymore. Anyone knows why? is there a better way to do the same? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6, JSP's wont compile.
Ok, so it's not just me! Does anyone have any idea on how to go about finding an answer to this problem? Even if you don't know the answer any suggestions are welcome because this one has me stumped. - Adrian On Apr 14, 3:23 pm, Ken kenfehl...@gmail.com wrote: I'm having the same exact problem. I've tried it on both Mac OS X and Windows. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: File Upload with rpc call
Between two servers yes (just use any regular file-transfer mechanism such as ftp, webdav, sshfs, etc). Between two clients obviously not as that defeats all sorts of browser security. You can't even do that with flash I believe. Maybe in the future there might be some kind of mechanism to establish a connection between browsers directly, but you've got to remember that HTML was created as a client/server architecture all features pretty much assume this behaviour. If you want to transfer files directly between users, then webapps are the wrong tool. Especially with big apps, use something like Bittorrent instead. On Tue, Apr 14, 2009 at 9:30 PM, wenxing zheng wenxing.zh...@gmail.comwrote: BTW, is there a solution to transfer a large file exceeding more than 1G bytes between two hosts on the net? The transfer speed won't make the end user lose their patience. Best 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: Relative Position of a Widget
MouseEventhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/event/dom/client/MouseEvent.html#getRelativeX, MouseEvent#getRelativeY. Or calculate it manually using Event#getClientX(), getClienty() with Element#getAbsoluteLeft, Element#getAbsoluteTop. On Tue, Apr 14, 2009 at 8:04 PM, raulsan ufreeurs...@gmail.com wrote: Hi, I used gwt 1.6.1 to implement an small aplication. And to get the coordinates of the mouse on an event inside the widget I used: int x = Event.getRelativeX(event, this.getElement()); int y = Event.getRelativeY(event, this.getElement()); but now I changed to 1.6.4, and I get an error. This functions do no exist, and they are not in the API anymore. Anyone knows why? is there a better way to do the same? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Deferred Bind on Login to load different user interface
Generally you can't since when you reload an app you lose state. Now you could of course put in support for your app for restoring state if the user is already logged in (using cookies for persistence - just make sure the cookies have invalid data so that they're never actually sent to the server needlessly). To pick a specific version of the code, load the html page with the appropriate meta tag set in the header. There was a discussion about this in a thread not too long ago. On Tue, Apr 14, 2009 at 8:29 PM, matttai matt...@hotmail.com wrote: Yep you are following my train of thought exactly. I'm thinking in terms of using deferred binding for skin/layout differences it shouldn't be such a bad idea if it's small alterations such as colours/layout. Considering that internationalisation/browser layout differences work along the same lines in terms of the scope of changes. The workflow i've had it laid out in though in my head is like this: 1. default entry point with default permutation is loaded with login form 2. user logs in with user / pass / layout 3. system checks for valid login 4. if successful login redirect back to default entry point with when-property-is name=skin value=GREEN_LAYOUT/ My issue is on the redirect how would i go about setting the property value that i wish to load? Would this be appended to the URL ala locales in internationalisation? This then brings up another issue. If it does involve appending to the URL what if i only wish to make the skin available to only a particular set of users. Else i'm thinking at this point maybe dynamically downloading and loading skin X after login may be a better choice as opposed to deffered binding. On Apr 15, 12:23 am, gscholt gsch...@gmail.com wrote: On Apr 14, 9:09 am, matttai matt...@hotmail.com wrote: Hi everyone, Been checking out alot of thedeferredbinding tutorials that seem to involve reading from the meta data in the html before loading the appropiate module. If i wanted to load adeferredbinding class after a user logs in (eg. after the user logs in load the same app with a different skin and interface) Would this involve something like using JSNI to change the meta in the html after a user logs in and forcing a refresh? Or is there a better approach to doing this. Deferredbinding is a feature of the GWT compiler that works by generating many versions of code at compile time, only one of which needs to be loaded by a particular client during bootstrapping at runtime. --http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D. .. If you usedeferredbinding for skin support (which might not be a bad idea, depending on the amount of skins and the amount of code they generate), you will need to reload the application to get a different compiler permutation. This includes reloading the HTML, since you'll need to run the GWT bootstrapping code again, which selects the correct permutation depending on the set properties, using something like property-provider name=skin.../ Gert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
No JSNI method generated
I've been banging my head on this all day... i have a JSNI native method defined in my main EntryPoint class: /** * This is the entry point method. */ public void onModuleLoad() { RootPanel.get().add(new HTML(h1 onclick=\return clickTest(); \TEST/h1)); } public native void clickTest() /*-{ $wnd.alert(OK); }-*/; The page renders the TEST h1 HTML with the javascript onclick call but when i try to click on it, nothing happens... when i compile/browse and view in Firefox with firebug, firebug reports clickTest is not defined. I don't see the method defined anywhere in the generated code. 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: No JSNI method generated
No, that's wrong since the GWT compiler won't actually define clickTest but obfuscate it to save on bandwidth. You cannot do it that way. What you could do, if you were dead set on adding the HTML that way (if you're going to do it that way, why not just put it into the original HTML page?), you can do: public void onModuleLoad() { RootPanel.get().add(new HTML(h1 onclick=\return $wnd.h1ClickHandler(); \TEST/h1)); } private static native void registerOnClick() /*-- { $wnd.h1ClickHandler = function() { $wnd.alert(OK); } } --*/; Haven't tested but it should get you on the right track. Optionally, you could do it as: private static native String createH1(String text) /*-- { return 'h1 onclick=jsni name of java function' + text + '/h1; } --*/; I would recommend you read try to understand how JSNI works. the above is extremely redundant. Why aren't you using regular GWT widgets for this? JSNI is really not recommended for use unless you can explain why the same thing can't be accomplished in GWT. If you use JSNI, you're also more likely to cause memory leaks (pure GWT code will not leak memory). On Wed, Apr 15, 2009 at 12:56 AM, dayre david.c.a...@gmail.com wrote: I've been banging my head on this all day... i have a JSNI native method defined in my main EntryPoint class: /** * This is the entry point method. */ public void onModuleLoad() { RootPanel.get().add(new HTML(h1 onclick=\return clickTest(); \TEST/h1)); } public native void clickTest() /*-{ $wnd.alert(OK); }-*/; The page renders the TEST h1 HTML with the javascript onclick call but when i try to click on it, nothing happens... when i compile/browse and view in Firefox with firebug, firebug reports clickTest is not defined. I don't see the method defined anywhere in the generated code. 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: GWT 1.6, JSP's wont compile.
Nearly the Jasper Compiler for Jetty is not set to Source Level 1.5, but I can't yet figure out how to set it to 1.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: insert text into a textarea at cursor position
If you have the Javascript code, it's going to be pretty much the exact same code in GWT. On Tue, Apr 14, 2009 at 5:24 PM, ekaldany kaldi...@gmail.com wrote: So it's pretty clear that this is achievable in a regular webpage with a javascript function... but how do I insert text into a textarea at cursor position in GWT? We have it functional in all browsers except IE... it adds like 3000 character spaces and inserts the text in a random spot in the textarea. To explain the greater functionality here, the user is filling out a form, then inserting portions of it via links of section names into the text area to create a customized note. 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 -~--~~~~--~~--~--~---
[gwt-contrib] Re: ImmutableResourceBundle deprecated, move to ClientBundle
Good news! Are there plans to consolidate ClientBundle and i18n messages constants? It would be very nice to have a single bundle for all resources of a widget to streamline the widget cusomization. On 14 Apr., 01:55, BobV b...@google.com wrote: I've deprecated the public ImmutableResourceBundle interfaces in the incubator project to encourage users to migrate to the ClientBundle series of interfaces that are now part of GWT trunk. The IRB code in the incubator project will not be removed for the foreseeable future, but all future development will take place in trunk. A summary of the user-visible changes is in the following wiki page: http://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Migrati... ClientBundle and IRB can be compiled into the same module, however the data-types are not generally interchangeable, nor will a hybrid approach necessarily yield optimal results. If you have any significant difficulties migrating your code base from ImmutableResourceBundle to ClientBundle, let me know. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWT File Upload issue
Hi arun U can use GwtSwfExt lib for uploading files(gmail style file upload). This lib is wrapper on SWFUpload . http://code.google.com/p/gwtswfext/ Thanks Dug On Apr 9, 12:58 am, arun.r...@gmail.com ashwinkva...@gmail.com wrote: Hi All, I am getting multipart false on server side even i am setting it (ENCODING_MULTIPART) on client side. My Code ---- 1.GWTwidget: FormHandle RootPanel rootPanel = RootPanel.get(); final FormPanel form = new FormPanel(); rootPanel.add(form); form.setAction(GWT.getModuleBaseURL()+MyFormHandler); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); . . . panel.add(new Button(Submit, new ClickListener() { public void onClick(Widget sender) { form.submit(); } })); . . . form.addFormHandler(new FormHandler() { public void onSubmit(FormSubmitEvent event) { service.fileUpload(new AsyncCallback(){ public void onFailure(Throwable caught) { Window.alert(FileUpload Failure!!); } public void onSuccess(Object result) { Window.alert(FileUpload Success!!);}}); event.setCancelled(true); } public void onSubmitComplete(FormSubmitCompleteEvent event) { Window.alert(event.getResults()); } }); RootPanel.get().add(form) 2. Servlet:: MyFormHandlerImpl public class MyFormHandlerImpl extends RemoteServiceServlet implements MyFormHandler { /** * */ private static final long serialVersionUID = 1L; @Override public void fileUpload() { System.out.println(0); HttpServletRequest request = super.getThreadLocalRequest(); HttpServletResponse response = super.getThreadLocalResponse(); boolean isMultiPart = FileUpload.isMultipartContent(request);//isMultipartContent(request) String parentPath =d:\\; if (isMultiPart) { System.out.println(3); DiskFileUploadupload= new DiskFileUpload(); try { List items =upload.parseRequest(request); Iterator it = items.iterator(); while (it.hasNext()) { FileItem item = (FileItem) it.next(); if(!item.isFormField()){ File fullFile = new File(item.getName()); File savedFile = new File(parentPath,fullFile.getName()); item.write(savedFile);} } } catch (FileUploadException fUE) { System.out.println(file not found);} catch (Exception e){ System.out.println(unknown exception); } } } } ---- Can anybody tell me what i am missing here? what could be done to resolve this error? Thanks in advance for your help. Arun. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: ImmutableResourceBundle deprecated, move to ClientBundle
On Tue, Apr 14, 2009 at 9:02 AM, dflorey daniel.flo...@gmail.com wrote: Good news! Are there plans to consolidate ClientBundle and i18n messages constants? It would be very nice to have a single bundle for all resources of a widget to streamline the widget cusomization. As an interim step, look at GwtCreateResource. It's not particularly elegant, but it does allow for arbitrary consolidation of resources into a single interface. On a longer term, it wouldn't be too hard to incorporate the current I18N interfaces in ClientBundle. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: UiBinder
No update yet, unfortunately. We have to get ourselves organized again now that GWT 1.6 is out the door, and then we'll have a better idea of when it will be available. On Tue, Apr 14, 2009 at 12:54 AM, Gary Miller miller.ga...@gmail.comwrote: Any news on when UiBinder will be available to the outside world? Thanks Gary --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Chunk the JavaScript in the initial fragment
It still sounds to me like the route Scott suggested and Bob agreed with would be better, so as to avoid the whole issue of re-lexing the JS during link. On Tue, Apr 14, 2009 at 1:19 AM, Vitali Lovich vlov...@gmail.com wrote: Should've mentioned this in the original post, but probably the TokenStream.javahttp://mxr.mozilla.org/mozilla/source/js/rhino/src/org/mozilla/javascript/TokenStream.javaclass is the scanner you would be interested in I believe. On Tue, Apr 14, 2009 at 1:14 AM, Vitali Lovich vlov...@gmail.com wrote: Hey guys, Rhino http://www.mozilla.org/rhino/ (one of Mozilla's javascript engines) is written entirely in Java supports JS 1.7 if that helps. I'm sure there's a parser component in there that can be extracted if the license is compatible (MPL/GPL). There's also GromJS http://www.bauk.ws/gromjs.html (public domain I think). On the other hand these are probably overkill for your needs. On Tue, Apr 14, 2009 at 12:33 AM, Lex Spoon sp...@google.com wrote: On Mon, Apr 13, 2009 at 1:53 PM, John Tamplin j...@google.com wrote: On Mon, Apr 13, 2009 at 3:51 PM, Scott Blum sco...@google.com wrote: If we were playing Mao, I would give you a card penalty for stating the obvious. :-) But uh, reliably tracking whether or not you're in a string literal is about as much fun as writing a JavaScript parser. In fact, it might be *exactly* as fun, if you know what I mean. String literals have to be known at parse time, so it seems to me all you have to look for is start/stop quotes (of both sorts) while handling embedded ones of the wrong variety and escaped ones of the right variety. That looks like it can be handled with a single character lookahead scanner, and very little complexity -- what am I missing? It would be awesome if there were a simple lexer available for JavaScript. Given a token stream, brace counting would sound feasible. However, from what I hear it's pretty complicated even to tokenize JavaScript. I don't know exactly what is so hard, but last time I asked, regex literals came up. Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5229 - Revert r5226; dependency on seed functions interacts poorly with runAsync.
Author: b...@google.com Date: Tue Apr 14 07:19:33 2009 New Revision: 5229 Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java trunk/user/super/com/google/gwt/emul/java/lang/Class.java trunk/user/test/com/google/gwt/dev/jjs/test/ClassObjectTest.java Log: Revert r5226; dependency on seed functions interacts poorly with runAsync. Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java == --- trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.javaTue Apr 14 07:19:33 2009 @@ -65,9 +65,6 @@ assert (type instanceof JClassType); JClassType classType = (JClassType) type; - // createForClass wants a reference to the seed function - call.getArgs().add(program.getLiteralClassSeed(classType)); - JLiteral superclassLiteral; if (classType.extnds != null) { Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java == --- trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java Tue Apr 14 07:19:33 2009 @@ -767,6 +767,9 @@ return classLiteral; } + /** + * TODO: unreferenced; remove this and JClassSeed? + */ public JClassSeed getLiteralClassSeed(JClassType type) { // could be interned return new JClassSeed(createSourceInfoSynthetic(JProgram.class, Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java == --- trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java Tue Apr 14 07:19:33 2009 @@ -467,16 +467,17 @@ JavaASTGenerationVisitor.class, Disabled class metadata); JMethod nameMethod = program.getIndexedMethod(Class.getName); -JMethod simpleNameMethod = program.getIndexedMethod(Class.getSimpleName); -// this.getNameFromClassSeed() -JMethodCall seedCall = new JMethodCall(info, -program.getExprThisRef(info, (JClassType) currentClass), -program.getIndexedMethod(Class.getNameFromClassSeed)); +// this.hashCode() +JMethodCall hashCall = new JMethodCall(info, program.getExprThisRef(info, (JClassType) currentClass), +program.getIndexedMethod(Object.hashCode)); -implementMethod(nameMethod, seedCall); -implementMethod(simpleNameMethod, new CloneExpressionVisitor( -program).cloneExpression(seedCall)); +// Class$ + hashCode() +JBinaryOperation op = new JBinaryOperation(info, program.getTypeJavaLangString(), +JBinaryOperator.ADD, program.getLiteralString(info, Class$), +hashCall); + +implementMethod(nameMethod, op); // Forget the superclass JMethod superclassMethod = program.getIndexedMethod(Class.getSuperclass); Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java == --- trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java Tue Apr 14 07:19:33 2009 @@ -547,16 +547,7 @@ @Override public void endVisit(JClassSeed x, Context ctx) { - /* - * Uninstantiated types, JSOs, and Strings don't have seed functions. - */ - if (!program.typeOracle.isInstantiatedType(x.getRefType()) - || program.isJavaScriptObject(x.getRefType()) - || x.getRefType().equals(program.getTypeJavaLangString())) { -push(jsProgram.getNullLiteral()); - } else { -push(names.get(x.getRefType()).makeRef(x.getSourceInfo())); - } + push(names.get(x.getRefType()).makeRef(x.getSourceInfo())); } @SuppressWarnings(unchecked) Modified: trunk/user/super/com/google/gwt/emul/java/lang/Class.java == --- trunk/user/super/com/google/gwt/emul/java/lang/Class.java (original) +++ trunk/user/super/com/google/gwt/emul/java/lang/Class.java Tue Apr 14 07:19:33 2009 @@ -35,11 +35,9 @@ * * @skip */ - static T ClassT createForArray(String packageName, String className, - Class? componentType) { + static
[gwt-contrib] Re: GWT File Upload issue
I fail to see how this resolves arun's bug with GWT form panel -jason On Apr 14, 2009, at 7:00 AM, Dug wrote: Hi arun U can use GwtSwfExt lib for uploading files(gmail style file upload). This lib is wrapper on SWFUpload . http://code.google.com/p/gwtswfext/ Thanks Dug On Apr 9, 12:58 am, arun.r...@gmail.com ashwinkva...@gmail.com wrote: Hi All, I am getting multipart false on server side even i am setting it (ENCODING_MULTIPART) on client side. My Code --- - 1.GWTwidget: FormHandle RootPanel rootPanel = RootPanel.get(); final FormPanel form = new FormPanel(); rootPanel.add(form); form.setAction(GWT.getModuleBaseURL()+MyFormHandler); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); . . . panel.add(new Button(Submit, new ClickListener() { public void onClick(Widget sender) { form.submit(); } })); . . . form.addFormHandler(new FormHandler() { public void onSubmit(FormSubmitEvent event) { service.fileUpload(new AsyncCallback(){ public void onFailure(Throwable caught) { Window.alert(FileUpload Failure!!); } public void onSuccess(Object result) { Window.alert(FileUpload Success!!);}}); event.setCancelled(true); } public void onSubmitComplete(FormSubmitCompleteEvent event) { Window.alert(event.getResults()); } }); RootPanel.get().add(form) 2. Servlet:: MyFormHandlerImpl public class MyFormHandlerImpl extends RemoteServiceServlet implements MyFormHandler { /** * */ private static final long serialVersionUID = 1L; @Override public void fileUpload() { System.out.println(0); HttpServletRequest request = super.getThreadLocalRequest(); HttpServletResponse response = super.getThreadLocalResponse(); boolean isMultiPart = FileUpload.isMultipartContent(request);//isMultipartContent(request) String parentPath =d:\\; if (isMultiPart) { System.out.println(3); DiskFileUploadupload= new DiskFileUpload(); try { List items =upload.parseRequest(request); Iterator it = items.iterator(); while (it.hasNext()) { FileItem item = (FileItem) it.next(); if(!item.isFormField()){ File fullFile = new File(item.getName()); File savedFile = new File(parentPath,fullFile.getName()); item.write(savedFile);} } } catch (FileUploadException fUE) { System.out.println(file not found);} catch (Exception e){ System.out.println(unknown exception); } } } } --- - Can anybody tell me what i am missing here? what could be done to resolve this error? Thanks in advance for your help. Arun. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---