Re: form submit new window ... request getparameter not working???
Try this . It worked for me form.setEncoding(FormPanel.ENCODING_URLENCODED);//ENCODING_MULTIPART); Thanks Sam On Dec 31 2008, 8:35 am, "bharat.j...@gmail.com" wrote: > Hi, > I have a GWT form and Isubmitthe form to a spring controller. The > formsubmitshould open in new window. I have a hiddenvalue in form > that Isubmitwith form. My issue is that form opens a new window but > when i do request.getParameter("...") I dont get my hidden value. Can > somebody please help? > > finalFormPanelform = newFormPanel("_blank"); > form.setAction( hostPrefix + "/someform/" ); > form.setMethod(FormPanel.METHOD_GET ); > > Panel rfpMainPanel = new FlowPanel(); > > rfpMainPanel.add( form ); > > Panel rfpPanel = new VerticalPanel(); > > form.setWidget(rfpPanel); > > final Hidden hiddenValue = new Hidden("multiple", "testValue"); > rfpPanel.add( hiddenValue ); > > form.addFormHandler( new FormHandler() { > public void onSubmit(FormSubmitEvent event) { > Window.alert( hiddenValue.getValue() ); > } > public void onSubmitComplete(FormSubmitCompleteEvent event) { > > } > }); > > Image goToRfpForm = new Image(); > > goToRfpForm.addClickListener( new ClickListener() { > public void onClick( Widget sender ) > { > form.submit(); > } > } ); > > rfpPanel.add( goToRfpForm ); > > Thanks > Bharat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Setting Cookies in GWT
Hi All, I am very new to GWT? I would like to know how to set and retrive cookies in GWT. Thanks & Regards, Venkat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 hosted mode in infinity loop when debugging
Had the same problem, in my case, the hang was 5 minutes of 50% CPU, since the project is barely started (3000 LOC) A full rebuild fixed the problem Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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.xml not on your class path
Hi, I have created a GWT RPC application. It runs fine when i deploy it in sepetrate Tomcat and when i run it using .shell command. But when i try to run it using Run->Configuration of eclipse it gives me an error saying that [ERROR] Unable to find 'com/sandeep/transfer/ StringReverse.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? What this error means?I have added the source of my project in ClassPath for Run configuration. where else i have to add it.When we run the application in Hosted Mode using Run configuration where does it looks for .gwt.xml file. 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: can we have multiple directories in source path for module inheritance?
*brackets => quotes ! On 6 jan, 06:02, blissteria wrote: > Hi, > > Here is an allowed example: > > > > but the first line is not useful as the second line will include mydir > unless you specify any include and exclude rules but this is another > topic. > > On 6 jan, 01:51, Smith wrote: > > > My specific question was if I can give "." to the current directory or > > do they all have to be under subdirectories to be specified in > path="mydir" /> ? Can I give > > > > > > > On Jan 5, 4:46 pm, Smith wrote: > > > > I have a module that inherits another module. The inherited module > > > has > > > > > > > > > > > > > placed in a directory called sample. It works for all sources inside > > > mydir . Can I specify multiple source paths? I need source from mydir > > > as well as current directory (sample) which contains the module.gwt > > > file. Is it possible to do this? > > > > 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: can we have multiple directories in source path for module inheritance?
Hi, Here is an allowed example: but the first line is not useful as the second line will include mydir unless you specify any include and exclude rules but this is another topic. On 6 jan, 01:51, Smith wrote: > My specific question was if I can give "." to the current directory or > do they all have to be under subdirectories to be specified in path="mydir" /> ? Can I give > > > > On Jan 5, 4:46 pm, Smith wrote: > > > I have a module that inherits another module. The inherited module > > has > > > > > > > > > placed in a directory called sample. It works for all sources inside > > mydir . Can I specify multiple source paths? I need source from mydir > > as well as current directory (sample) which contains the module.gwt > > file. Is it possible to do this? > > > 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: exception not caught in a javascript constructor in IE
I finally managed to reproduce this pb outside of gwt. It seems to be due to the fact the js is loaded inside an iframe (which is the case of the js generated by gwt). Here is a simple example to reproduce it. main.html function MyObject(){ throw "String thrown"; }; //This function is the workaround to the pb explained in my previous post function wrappingMyObjectConstructor(){ try{ new MyObject(); } catch(e){ throw(e); } } iframe.html function buggy(){ try{ new parent.window.MyObject(); } catch(e){ alert(e); } } function notBuggy(){ try{ parent.window.wrappingMyObjectConstructor(); } catch(e){ alert(e); } } buggy : constructor called directly not buggy : constructor called via wrapping function On 5 jan, 18:08, "Ian Petersen" wrote: > On Mon, Jan 5, 2009 at 9:02 AM, blissteria wrote: > > There is another solution that works but I do not trully understand > > why. I wrap the call of "new MyObject()" in a function defined in the > > foo.js file : > > function wrappingMyObjectConstructor() { > > try { > >return new MyObject(); > > } catch (e) { > >throw e; > > } > > } > > > and calling wrappingMyObjectConstructor in JSNI works fine in IE. This > > is a hack, it works, but does anyone know how to avoid this or can > > explain this? > > You may have found a bug in GWT. If GWT can catch thrown strings in > the second case but not in the first case, then I think there's a > problem with the exception mapping between the languages. You might > want to file a bug and, if you do, try to include a really good repro > case. > > 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: can we have multiple directories in source path for module inheritance?
My specific question was if I can give "." to the current directory or do they all have to be under subdirectories to be specified in ? Can I give On Jan 5, 4:46 pm, Smith wrote: > I have a module that inherits another module. The inherited module > has > > > > > placed in a directory called sample. It works for all sources inside > mydir . Can I specify multiple source paths? I need source from mydir > as well as current directory (sample) which contains the module.gwt > file. Is it possible to do this? > > 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 -~--~~~~--~~--~--~---
can we have multiple directories in source path for module inheritance?
I have a module that inherits another module. The inherited module has placed in a directory called sample. It works for all sources inside mydir . Can I specify multiple source paths? I need source from mydir as well as current directory (sample) which contains the module.gwt file. Is it possible to do this? 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: 1.6 : New event system
Step3331, You should just download the 1.6 code from svn and look what is available to calm your nerves down. //Adam On 3 Jan, 19:32, "step3...@yahoo.fr" wrote: > I heard that the listener is deprecated in 1.6 (and removed in 2.0) > and will be replaced by handler. > > So how to put event on a DOM element ? > > Is there a method like seteventhandler for DOM element ? > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Error's , PLEASE HELP ME :)
Hallo King! Meine deutche ist nicht zehr gut... Auf englisch: It seems that you are using GWT-Ext but are missing the script that should load when your page first loads. Are you missing any required
gwt_module_id property
I ran into a problem with the integration of GWT and Gears, and was told to post it to this group rather than the Gears group. I have no problems running the SimpleGadget sample application directly on iGoogle, but when I try to run it out of Eclipse I get the stack trace: [ERROR] Failure to load module 'com.simplegadget.SimpleGadget' java.lang.RuntimeException: No such property __gwt_module_id at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.setIntProperty (BrowserWidgetIE6.java:219) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200 (BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:68) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Looking through the javadoc and past email threads I can't find anything on how to set this property, or what is expected. Any help would be greatly appreciated. I apologize in advance if this has already been discussed. Regards, Bob Bob Braudes | Consulting Member of the Technical Staff | CTO Office Application Architecture and Strategy | Avaya | 150 Apollo Drive | Chelmsford, MA 01824 | W: +1 978 677 5031 M: +1 978 973 5199 | brau...@avaya.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: How to center the whole page (not the content inside a panel)?
On Dec 27 2008, 7:12 am, Yossi wrote: > Hi, > > I try to build a page that will contain a dock panel - using this > panel it is very easy to maintain the page layout. > > But I want that the "root" dock panel will be centered in the page and > not aligned to the left. In Java specify style name for this DockPanel: DockPanel rootPanel; rootPanel.addStyleName("rootPanel"); and in css add: .rootPanel { margin-left: auto; margin-right: auto; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 source code available error
[ERROR] Line 40: No source code is available for type com.google.gwt.json.client.JSONObject; did you forget to inherit a required module? I'm getting this error when I try to implement JSONObject and JSONArray. Any help will be greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Newbie Question on GWT/JSON
Whoops, forgot my footnote: [1] http://www.ietf.org/rfc/rfc4627.txt I don't know if that makes it official. I believe the official entity that vets mime types is IANA, but on their site I couldn't quickly get to an official list of recognized mime types. Still, if Doug Crockford says the type is application/json, and almost everyone uses that, that's the standard. That's how the internet works; standards bodies can wax rhapsodic about whatever they fancy, but if no one does it, it's not something you should be doing either, regardless of whether or not its the 'official standard', so, there you have it. Oh, and martykube: Be careful that your soul doesn't waft out the window that is giving you that fresh air. As a general rule, if PHP is a good fit for you, grails, rails, or django are usually an even better fit. On Jan 4, 11:48 pm, rakesh wagh wrote: > You probably got your answer by now. Think this way. JSON string is > like any other string. The transport mechanism does not have to know > weather it is json or text or number or binary or otherwise. With that > said, you can use forms with get or post(knowing the advantages > drawback of each will help you select the right mechanism) and simply > posting it to your php page. In your php page, read the request > parameters as if they were any other parameters. > > As a matter of fact you can even append the json string as part of > your target page url with a variable name and expect the json string > (with a hyperlink click) to reach its destination as expected. > > Good luck! > Rakesh Wagh > > On Jan 3, 9:09 pm, Ian wrote: > > > I am new to the Web application world; I am trying to encapsulate my > > set of data in a JSONObject, convert to string, and send it (async > > POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial > > discusses the trip from the server back to the client and not the > > other way around where I am unclear about. > > > Do I need to set the header? Currently I set it to: > > builder.setHeader("Content-Type", "application/x-www-form- > > urlencoded"); > > > However, this works fine as long as am sending > > key1=value1&key2=values where I can retrieve variable via $_POST > > ['key1'] or $_POST['key2'] > > > But I am not sure how to send a JSON string where it can be retrieved > > in a php page. I have tried sending myvar=MyJsonString but cannot > > retrieve in my php page. How should $_POST reference the JSON object? > > > Any clarification would be much appreciated. > > > Thanks, > > > Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Benchmarking
Hi all! This topic in the GWT's documentation is very short. I have tried the Benchmarking example with the console's scripts, but it works sometimes, and sometimes it doesn't. Otherwise with the simple GWTTestcase I don't have any problem. I have a question: After the benchmarking, in the xml report, there is a user agent(on my pc it is IE7), how can I run the tests with other browsers? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Google I/O 2009
I was wondering if there is going to be a Google I/O conference in May of 2009, as there was in May of 2008. My primary interest is GWT, as my company has developed an application using GWT, and would like to increase the number of developers on an ongoing project using GWT. If there is going to be a conference, where can I find more information on location/agenda/cost etc. Any further information would be appreciated. Thanks, Allen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Trouble with setting split position in CSS...
I am trying to set the verticalSplitPane's split position in CSS but it doesn't seem to be working or maybe i am doing it wrong. Java: VerticalSplitPanel tempPanel = new VerticalSplitPanel(); tempPanel.addStyleName("gwt-VerticalSplitPanel"); tempPanel.setTopWidget(VerticalPanelForTopSection); tempPanel.setBottomWidget(HorizontalPanelForBottomSection); CSS: .gwt-VerticalSplitPanel { width: 220px; height: 270px; padding-left: 15px; padding-right: 15px; pos: 200px; } i know the CSS gets called from running the program but the "pos: 200px" doesn't get used at all. I tried gwt-VerticalSplitPanel vsplitter { pos: 200px;} and gwt- VerticalSplitPanel splitter { pos: 200px;} but didn't work either. What am i doing wrong here? 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: Coverage tools for GWT/JUnit?
There was a patch that was added recently to enable Emma reporting, I'm not sure if it's been committed yet. -- Arthur Kalmenson On Wed, Dec 31, 2008 at 7:46 AM, fker...@gmail.com wrote: > > Hi! > > Has anybody experimented with coverage tools for GWT/Junit? I assume > the problem could be easier for the server part (pure Java) than for > the client part (Java compiled into JavaScript) but anyway... any > suggestions? > > Thanks, and best regards, > Federico Kereki > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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
Hello, i get this error when compile my web project on eclipse -style should be followed by one of OBF, PRETTY, or DETAILED Google Web Toolkit 1.5.3 GWTShell [-port port-number | "auto"] [-noserver] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-out dir] [-style style] [-ea] [url] where -port Runs an embedded Tomcat instance on the specified port (defaults to ) -noserver Prevents the embedded Tomcat server from running, even if a port is specified -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -genThe directory into which generated files will be written for review -outThe directory to write output files into (defaults to current) -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF) -ea Debugging: causes the compiled output to check assert statements. and url Automatically launches the specified URL --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Newbie Question on GWT/JSON
On Jan 4, 2:32 am, Reinier Zwitserloot wrote: > Whatever possessed you to send the "application/x-www-form- > urlencoded" as mime type? > at all. Is file_get_contents("php://input"); really the only feasible > way to get the entire body in PHP? file_get_contents("php://input") is not the only way, but it is the recommended way. > > Oh, PHP. Every single time someone posts a code snippet written in > PHP, my aesthetic sense blows its brains out in sheer despair. And > this one is up there, which is really saying something. I think its a > conspiracy by the zend folks to make the inner child of developers > worldwide die a little inside every time they come in contact with it. > Sadistic bastards. > I'm using the same setup as Ian - GWT + JSON + PHP. This is my first contact with PHP. After years of working on the bloated stack that is JEE I've found PHP to be a breath of fresh air. Sure, the aesthetics are low, but the productivity is high. Marty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT project creation indefinetly creates folder recursively
I have had this happen to me twice lately trying to import an existing project into eclipse. On the first machine, it ran till the machine ran out of memory. Then, vista could not delete the files as the path was too long. I had to restore the system. The second time on another machine I noticed it was happening and I canceled the import before it that far along. I am very hesitant to import at this point. On Jan 5, 9:47 am, "Isaac Truett" wrote: > Raj, > > What version of GWT are you using? Also, can you describe what you > mean by "unlimited recursive files" in your project? > > Thanks, > Isaac > > On Sat, Jan 3, 2009 at 3:09 AM, Raj wrote: > > > Hi, > > > I'm trying to setup GWT in my machine and followed the steps given in > > the instruction and created an eclipse project using projectCreator, I > > was little amazed to see the project size of more than 500MB while > > importing it into eclipse but only to find the script has created > > unlimited recursive files inside MyProject folder, the worst part is > > its getting created again automatically after deleting it and even > > after restarting the machine. How to stop this script from executing? > > Did anyone got this error before? > > > Any help would be appreciated. > > > Thanks. > > --Raj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: HELP NEEDED!!!!!
Hi Lothar, First of all I apologize for the behavior it is my first time using any type of blog or forum. On the other hand what I am trying to achieve is to get route directions, travel time and route points from point A to point B. Thank you, rsoto On Jan 5, 9:31 am, Lothar Kimmeringer wrote: > rsoto schrieb: > > > Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create > > () is only usable in client code! It cannot be called, for example, > > from server code. > > public static void main(String args[]){ > > DirectionQueryOptions opts = new DirectionQueryOptions(); > > main is a method called from the console (i.e. "server"). You can't > call GWT.create in server-code so whatever you think you can achieve > by initializing DirectionQueryOptions on the server-side it will > never happen. > > The question is, what you want to achieve to be able to tell you, > what you might do differently. > > BTW: Instead of shouting and the excessive use of exclamation marks, > you might think of a more describing subject in the future. > > 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: how reset FileUpload?
I use private native void resetForm() /*-{ $doc.forms[0].reset(); }-*/; On 5 jan, 12:20, "olivier FRESSE" wrote: > it may depend of the way your form is built, > but you can call reset() on the form object in javascript. > This means that you need a JSNI call. > > A file input can be accessed in JS for security reason, but reseting the > form will clear it. And all the inputs of the form... > > 2009/1/5 fother > > > > > I need reset the FileUpload.. > > In my form when I submit the form I need clear all fields.. > > > it's possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: exception not caught in a javascript constructor in IE
On Mon, Jan 5, 2009 at 9:02 AM, blissteria wrote: > There is another solution that works but I do not trully understand > why. I wrap the call of "new MyObject()" in a function defined in the > foo.js file : > function wrappingMyObjectConstructor() { > try { >return new MyObject(); > } catch (e) { >throw e; > } > } > > and calling wrappingMyObjectConstructor in JSNI works fine in IE. This > is a hack, it works, but does anyone know how to avoid this or can > explain this? You may have found a bug in GWT. If GWT can catch thrown strings in the second case but not in the first case, then I think there's a problem with the exception mapping between the languages. You might want to file a bug and, if you do, try to include a really good repro case. 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: exception not caught in a javascript constructor in IE
Thanks for the really quick answer!!! I can modify the script I include but I'd rather not. The calls of "throw" are already wrapped in a function therefore your solution could be envisaged. There is another solution that works but I do not trully understand why. I wrap the call of "new MyObject()" in a function defined in the foo.js file : function wrappingMyObjectConstructor() { try { return new MyObject(); } catch (e) { throw e; } } and calling wrappingMyObjectConstructor in JSNI works fine in IE. This is a hack, it works, but does anyone know how to avoid this or can explain this? Thanks On 5 jan, 17:43, "Ian Petersen" wrote: > On Mon, Jan 5, 2009 at 8:37 AM, blissteria wrote: > > Let foo.js a javascript file containing: > > function MyObject(){ > > throw "String Thrown"; > > }; > > > In my Module.gwt.xml I add the following line to include the script > > > > > Then in any java file of my application, in the click method of a > > clickListener for instance, I call the function "createMyObject" > > defined as: > > public native void createMyObject()/*-{ > > new $wnd.MyObject(); > > }-*/; > > > The call of this function is surrounded by a try/catch block : > > try { > > createMyObject(); > > } > > catch (Exception e){ > > Window.alert(e); > > } > > > This works fine in firefox 2 and 3 but not in IE (6 and 7). In IE I > > got an "exception rised but not caught" error and therefore no > > alert... > > > What do you think of this problem? > > I'm just guessing here because I don't know how GWT maps native > Javascript "exceptions" into Java. I think your problem might be > related to the fact that you're throwing a string, not an Exception > and you're catching an Exception, not a string. > > Do you have control over the script you're trying to include? Can you > modify the throw statement to call into a Java method that throws a > "real" exception? Could you factor the throw statement into a helper > function that gets substituted by a JSNI method when the script is > invoked from a GWT app? > > 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: exception not caught in a javascript constructor in IE
On Mon, Jan 5, 2009 at 8:37 AM, blissteria wrote: > Let foo.js a javascript file containing: > function MyObject(){ > throw "String Thrown"; > }; > > In my Module.gwt.xml I add the following line to include the script > > > Then in any java file of my application, in the click method of a > clickListener for instance, I call the function "createMyObject" > defined as: > public native void createMyObject()/*-{ > new $wnd.MyObject(); > }-*/; > > The call of this function is surrounded by a try/catch block : > try { > createMyObject(); > } > catch (Exception e){ > Window.alert(e); > } > > This works fine in firefox 2 and 3 but not in IE (6 and 7). In IE I > got an "exception rised but not caught" error and therefore no > alert... > > What do you think of this problem? I'm just guessing here because I don't know how GWT maps native Javascript "exceptions" into Java. I think your problem might be related to the fact that you're throwing a string, not an Exception and you're catching an Exception, not a string. Do you have control over the script you're trying to include? Can you modify the throw statement to call into a Java method that throws a "real" exception? Could you factor the throw statement into a helper function that gets substituted by a JSNI method when the script is invoked from a GWT app? 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 -~--~~~~--~~--~--~---
exception not caught in a javascript constructor in IE
Hi, I have a pb related to InternetExplorer and probably GWT (but I'm not convinced) since I have not managed to reproduce it outside of my gwt project. Let foo.js a javascript file containing: function MyObject(){ throw "String Thrown"; }; In my Module.gwt.xml I add the following line to include the script Then in any java file of my application, in the click method of a clickListener for instance, I call the function "createMyObject" defined as: public native void createMyObject()/*-{ new $wnd.MyObject(); }-*/; The call of this function is surrounded by a try/catch block : try { createMyObject(); } catch (Exception e){ Window.alert(e); } This works fine in firefox 2 and 3 but not in IE (6 and 7). In IE I got an "exception rised but not caught" error and therefore no alert... What do you think of this problem? Regards, Blisseria. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: HELP NEEDED!!!!!
rsoto schrieb: > Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create > () is only usable in client code! It cannot be called, for example, > from server code. > public static void main(String args[]){ > DirectionQueryOptions opts = new DirectionQueryOptions(); main is a method called from the console (i.e. "server"). You can't call GWT.create in server-code so whatever you think you can achieve by initializing DirectionQueryOptions on the server-side it will never happen. The question is, what you want to achieve to be able to tell you, what you might do differently. BTW: Instead of shouting and the excessive use of exclamation marks, you might think of a more describing subject in the future. 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: HELP NEEDED!!!!!
The gwt-maps library is meant to be translated into JavaScript and run inside a browser when it is deployed. You cannot run the code by using a standard JVM and you cannot create a standalone Java application using this API. If you are indeed writing a web app, for testing, you can run it inside of the GWT hosted mode browser by configuring a GWT module. -Eric. On Mon, Jan 5, 2009 at 11:18 AM, rsoto wrote: > > Hi I have a piece of code but at run time is giving me this error: > Exception in thread "main" java.lang.ExceptionInInitializerError >at com.google.gwt.maps.client.geocode.DirectionQueryOptions. > (DirectionQueryOptions.java:62) >at com.google.gwt.maps.client.geocode.DirectionQueryOptions. > (DirectionQueryOptions.java:39) >at com.secureorigins.analysis.Route.main(Route.java:22) > Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create > () is only usable in client code! It cannot be called, for example, > from server code. If you are running a unit test, check that your > test case extends GWTTestCase and that GWT.create() is not called from > within an initializer or constructor. >at com.google.gwt.core.client.GWT.create(GWT.java:91) >at > com.google.gwt.maps.client.impl.DirectionQueryOptionsImpl. > (DirectionQueryOptionsImpl.java:32) >... 3 more > > This is the piece of code: > > import com.google.gwt.maps.client.geocode.DirectionQueryOptions; > import com.google.gwt.maps.client.geocode.DirectionResults; > import com.google.gwt.maps.client.geocode.Directions; > import com.google.gwt.maps.client.geocode.DirectionsCallback; > import com.google.gwt.maps.client.geocode.Distance; > import com.google.gwt.maps.client.geocode.Duration; > import com.google.gwt.maps.client.geocode.StatusCodes; > > > /** > * @author rsoto > * > */ > public class Route { > >/** > * @param args > */ >public static void main(String args[]){ >DirectionQueryOptions opts = new DirectionQueryOptions(); >String query = "from: 10424 Eaglestone el Paso tx to: 500 > West > Overland El Paso TX"; >Directions.load(query, opts, new DirectionsCallback() { > >public void onFailure(int statusCode) { >System.out.println("Failed to load > directions: Status " >+ > StatusCodes.getName(statusCode) + " " + statusCode); >} > >public void onSuccess(DirectionResults result) { >Distance dis = result.getDistance(); >Duration duration = result.getDuration(); > >System.out.println("The distance is: " + > dis); >System.out.println("The travel duration is: > " + duration); >} >}); >} > } > > Any help will be appreciated. > Thank you, > rsoto > > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
HELP NEEDED!!!!!
Hi I have a piece of code but at run time is giving me this error: Exception in thread "main" java.lang.ExceptionInInitializerError at com.google.gwt.maps.client.geocode.DirectionQueryOptions. (DirectionQueryOptions.java:62) at com.google.gwt.maps.client.geocode.DirectionQueryOptions. (DirectionQueryOptions.java:39) at com.secureorigins.analysis.Route.main(Route.java:22) Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create () is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. at com.google.gwt.core.client.GWT.create(GWT.java:91) at com.google.gwt.maps.client.impl.DirectionQueryOptionsImpl. (DirectionQueryOptionsImpl.java:32) ... 3 more This is the piece of code: import com.google.gwt.maps.client.geocode.DirectionQueryOptions; import com.google.gwt.maps.client.geocode.DirectionResults; import com.google.gwt.maps.client.geocode.Directions; import com.google.gwt.maps.client.geocode.DirectionsCallback; import com.google.gwt.maps.client.geocode.Distance; import com.google.gwt.maps.client.geocode.Duration; import com.google.gwt.maps.client.geocode.StatusCodes; /** * @author rsoto * */ public class Route { /** * @param args */ public static void main(String args[]){ DirectionQueryOptions opts = new DirectionQueryOptions(); String query = "from: 10424 Eaglestone el Paso tx to: 500 West Overland El Paso TX"; Directions.load(query, opts, new DirectionsCallback() { public void onFailure(int statusCode) { System.out.println("Failed to load directions: Status " + StatusCodes.getName(statusCode) + " " + statusCode); } public void onSuccess(DirectionResults result) { Distance dis = result.getDistance(); Duration duration = result.getDuration(); System.out.println("The distance is: " + dis); System.out.println("The travel duration is: " + duration); } }); } } Any help will be appreciated. Thank you, rsoto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How do I make a pretty, easy to use button without making custom images for each one?
GWT 1.5+ has a nine box panel called DecoratorPanel. You can see it in action on the DialogBox. It shouldn't take much effort to create nice looking buttons using that. On Jan 2, 9:12 am, gregor wrote: > Hi Anders, > > I looked into this a year or so ago. As I recall what you need to do > is make a "nine box model" Composite. You have to plumb in all the > style changes linked to mouse events for up/down/hover etc., implement > SourcesClickEvents, and handle the text no wrap and sizing > calculations etc. You also have to think about font sizes, and the > fact that borders and padding work differently in IE and FF so it's > not straight forward to get the buttons to look exactly the same in > each browser. If you want to add icons as well (as I did) you have to > think about image clipping as well otherwise button heights can be > variable unless every image is exactly right. Basically it's a > palaver, and as I understand it it is also very inefficient - you are > not using the browsers native button support. > > For this reason I gave up on the idea and used the traditional > approach of creating up/down images for each button using GIMP. This > turned out to be quicker to do in the end. You only need one image in > GIMP/Photoshop for each size of button you want (I prefer equal width > buttons in a group) that has the basic rounded corners style and > gradients/borders for the up/down highlights in two or three layers. > Then you simply add a new layer for the text (or text + icon) of each > button you need and select the appropriate layers to make an up and > down png/jpeg/gif for each one. This way you can edit the base style > layers and produce a complete new button set in minutes. > > You pays your money and takes your choice on this one. I'm no graphic > designer and although it took me a few agonizing days to get to grips > with using GIMP properly (the layers are the key IMO) I still reckon > it took less time than it would have done to do a good job of this > programmatically. And now of course I know how to do it so I can make > more or less any icon needed to order. > > regards > gregor > > On Jan 2, 11:00 am, dduck wrote: > > > Hi, > > > I would like to make a button that looks like this: > > > (|| text ||) > > > ...where ( is a rounded left-end of the button, ) is a rounded right- > > end of the button, || is a background and "text" can be specified e.g. > > at creation. Thus, all buttons of this type would share the same > > style, but not the same text on the face of it. Examples: > > > (|| OK ||) > > (|| My very long button text ||) > > > How would I go about this, without having to generate each individual > > button as an image in my drawing program? > > > Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Gwtai: Problem to include the Gwtai jars in my Project
Hi Leif Sorry for the late response... Do you still have problems? If so, please post to the newly-made GwtAI- Google-Group => http://groups.google.com/group/gwtai Regards, Adrian On 7 Nov. 2008, 17:13, teremin wrote: > Hello everyone, hope someone can help me here. > > i try to include theGWTAI-Project in my GWT Project (http:// > code.google.com/p/gwtai/). > But at deploying the application i get the errormessage: > > "Loading inherited module > 'com.google.gwt.gwtai.applet.AppletIntegration' > Unable to find 'com/google/gwt/gwtai/applet/AppletIntegration.gwt.xml' > on your classpath; could be a typo, or maybe you forgot to include a > classpath entry for source?" > > thegwtai-client.jar andgwtai-core.jar are added to the Classpath and > i can see the "AppletIntegration.gwt.xml"-file in my Eclipse-Project > Tree > > I also applied > "" to > my application.xml > > has anyone an idea what could be wrong? > > thanks in advance and kind regards, > Leif --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and applets
Hi Dave The previous poster is right, you have to move the applet class outside of the client package. Concerning the hosted mode problem: the GWT Shell can not handle embedded things like Flash or Applets. To test your application you have to compile the code and run it in a browser. To easy integration of your applet you could have a look at the GwtAI project => http://code.google.com/p/gwtai/ Regards, Adrian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT project creation indefinetly creates folder recursively
Raj, What version of GWT are you using? Also, can you describe what you mean by "unlimited recursive files" in your project? Thanks, Isaac On Sat, Jan 3, 2009 at 3:09 AM, Raj wrote: > > Hi, > > I'm trying to setup GWT in my machine and followed the steps given in > the instruction and created an eclipse project using projectCreator, I > was little amazed to see the project size of more than 500MB while > importing it into eclipse but only to find the script has created > unlimited recursive files inside MyProject folder, the worst part is > its getting created again automatically after deleting it and even > after restarting the machine. How to stop this script from executing? > Did anyone got this error before? > > Any help would be appreciated. > > Thanks. > --Raj > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How do I make a pretty, easy to use button without making custom images for each one?
If you are able to use .pngs with a full alpha channel in your project (IE6 does not support them without a work-around - google 'ie6 png') you can have great success using images. If you only have a few different background colors on your site, than create a rounded corner - fill in the area that is the background with its appropriate color and leave the area that will form the face of the button transparent. Then, you can use those four rounded corners (in various colors) to round everything from buttons to containers. Simple set the background color of the button to be the color that you want it to be, and whala! Now you have buttons in any color :) To create the PrettyButton widget you can use a grid wrapped in a focus panel - just make sure to use setCellSpacing(0) and setCellPadding(0) on the grid. You can use the same method to create a PrettyCornersWidget that will take a widget as an argument, then wrap it in rounded corners. On Jan 2, 4:00 am, dduck wrote: > Hi, > > I would like to make a button that looks like this: > > (|| text ||) > > ...where ( is a rounded left-end of the button, ) is a rounded right- > end of the button, || is a background and "text" can be specified e.g. > at creation. Thus, all buttons of this type would share the same > style, but not the same text on the face of it. Examples: > > (|| OK ||) > (|| My very long button text ||) > > How would I go about this, without having to generate each individual > button as an image in my drawing program? > > Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Panel not clearing?
You should use an Image widget instead of setText. something like *Image image = new Image(); * *image.setUrl("'http://www.vella-gulf.navy.mil/Site%20Images/under_construction.jpg";); * *// Use image.addLoadListener(...) to manage loading errors bioText.add(image); * regards, O. 2009/1/3 jwei512 > > Hey, so right now I'm having this unusual problem with one of the > panels I made and I don't quite understand what's happening. Here's my > code: > > bioText = new Panel(); > bioText.setAutoScroll(true); > String sampleURL = " />"; > bioText.setHtml(sampleURL); > > ToolbarButton bioNew = new ToolbarButton("New Page"); > bioNew.addListener(new ButtonListenerAdapter() { >public void onClick(Button button, EventObject e) { >bioText.clear(); >} > }); > > Toolbar editBio = new Toolbar(); > editBio.addButton(bioNew); > > So basically I click the button on the toolbar and the panel is > supposed to clear but it doesn't. This is weird because within the > same class I do the same identical set of commands just using a > different toolbar and clearing a different panel and it works fine. > > Any ideas? > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how reset FileUpload?
it may depend of the way your form is built, but you can call reset() on the form object in javascript. This means that you need a JSNI call. A file input can be accessed in JS for security reason, but reseting the form will clear it. And all the inputs of the form... 2009/1/5 fother > > I need reset the FileUpload.. > In my form when I submit the form I need clear all fields.. > > it's possible? > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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-ext similar
Smart Client is the only other comprehensive UI library for GWT that I'm aware of. It is free and well done. As is Ext GWT, the well done part that is. On Jan 5, 6:24 am, asianCoolz wrote: > can anyone list any similar tool like gwt-ext ? from what i know this > tool is not free. i found another call smartclient. how about > others.. ? which one should i use? seem to me smartclient is free --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Unable to read div element id from html into java using RootPanel.get("")
ManishU schrieb: > > I > checked all values for rootPanel variable as an HashMap, there is no > key pair for stockList element. Is the HTML your browser is loading really the one you were changing? Maybe you load an old version of it leading to that effect. Add some static content to the page and comment out the RootPanel-line. Does the browser show the newly added content or is the page still containing the headline? 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: I need help please
Loryto schrieb: > I need to know how GWT can be implemented > in the enterprise, the challenges, recommendations , guidelines and > suggestions for developers in enterprises. > The theme of my project is: GWT as a solution for Web 2.0 application > development on the enterprises Your question sounds like the topic of your homework. Can you be more specific what you want to know. I doubt that there are many people here who happily write your homework for you, so without a more specific description of where you are stucked with your understanding, examples, etc. there will most likely no answer to your mail. 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: Properties file: how to use several maps with the same key and different values?
Thanks Eric. Fred On Mon, Jan 5, 2009 at 22:31, Eric Ayers wrote: > I hope you've worked through this by now, but the problem you're seeing is > because each property key needs to be unique. You need to name your > properties differently, such as: > > EVENTTYPE_1 = concert > > EVENTTYPE_2 = parade > > CATEGORY_1 = entertainment > > CATEGORY_2 = sports > > CATEGORY_3 = arts > > CATEGORY_4 = services > > EVENTTYPES=EVENTTYPE_1, EVENTTYPE_2 > > CATEGORIES=CATEGORY_1,CATEGORY_2,CATEGORY_3,CATEGORY_4 > > On Tue, Dec 23, 2008 at 7:09 AM, Fred Janon wrote: > >> I use several listboxes with a numeric key and a text as the value. I need >> to internationalize the text. I don't know if there is a way to code that in >> a property file. I tried the following but all the maps are all mapped with >> the last values at runtime. >> >> Application.properties >> >> 1 = concert >> 2 = parade >> EVENTTYPES = 1, 2 >> >> 1 = entertainment >> 2 = sports >> 3 = arts >> 4 = services >> CATEGORIES = 1, 2, 3, 4 >> >> Application.java >> Map EVENTTYPES(); >> Map CATEGORIES(); >> >> Runtime: >> >> [INFO] Event types Key: 1 value: entertainment // Should be "concert" >> [INFO] Event types Key: 2 value: sports // Should be "parade >> >> [INFO] Categories Key: 1 value: entertainment >> [INFO] Categories Key: 2 value: sports >> [INFO] Categories Key: 3 value: arts >> [INFO] Categories Key: 4 value: services >> >> Use: >> >> Map eventtypes = StringManager.Constants().EVENTTYPES(); >> Map categories = StringManager.Constants().CATEGORIES(); >> >> I don't know if there is a way to do that in a properties file. >> >> Thanks >> >> Fred >> >> >> >> > > > -- > Eric Z. Ayers - GWT Team - Atlanta, GA USA > http://code.google.com/webtoolkit/ > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 do I make a pretty, easy to use button without making custom images for each one?
I've had great success using the 'sliding doors' technique for buttons. Just google for the phrase - here is a good example of the css needed - http://www.jorkas.com/lab/css/rounded_button/index.html I basically just created my own 'MyButton' class which extends InlineHTML and populates it with the html needed for the button, e.g.: "" + buttonLabelHtml + "" Then, I can instantiate with whatever label i want when I need a button, add clickListeners, etc. On Jan 2, 4:00 am, dduck wrote: > Hi, > > I would like to make abuttonthat looks like this: > > (|| text ||) > > ...where ( is a rounded left-end of thebutton, ) is a rounded right- > end of thebutton, || is a background and "text" can be specified e.g. > at creation. Thus, all buttons of this type would share the same > style, but not the same text on the face of it. Examples: > > (|| OK ||) > (|| My very longbuttontext ||) > > How would I go about this, without having to generate each individualbuttonas > an image in my drawing program? > > Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Why Google AdSense May Not Be Suitable For page content?
Hi, I have developed a web site using GWT1.4.62. I want to show Google Adsense on it. now ads displayed. but ads not related to page content. Why Google AdSense May Not Be Suitable For page content? pls Guide me. cheers, Gayu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 reset FileUpload?
I need reset the FileUpload.. In my form when I submit the form I need clear all fields.. it's possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
I need help please
Good night, I am a college student in Mexico and I need help for a school project, I've been studying GWT but I'm in a situation in which I can not move forward, and I need to know how GWT can be implemented in the enterprise, the challenges, recommendations , guidelines and suggestions for developers in enterprises. The theme of my project is: GWT as a solution for Web 2.0 application development on the enterprises I would greatly appreciate your help. Thank you very much for your attention. P.D. As you can see my English is not very good. bye --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 read div element id from html into java using RootPanel.get("")
HTML --->> http://www.w3.org/TR/html4/loose.dtd";> StockWatcher Stock Watcher Java Code >> package com.srcm.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; /** * Entry point classes define onModuleLoad(). */ public class MemberApp implements EntryPoint { /** * This is the entry point method. */ private VerticalPanel mainPanel = new VerticalPanel(); private FlexTable stocksFlexTable = new FlexTable(); private HorizontalPanel addPanel = new HorizontalPanel(); private TextBox newSymbolTextBox = new TextBox(); private Button addButton = new Button("Add"); private Label lastUpdatedLabel = new Label(); public void onModuleLoad() { // set up stock list table stocksFlexTable.setText(0, 0, "Symbol"); stocksFlexTable.setText(0, 1, "Price"); stocksFlexTable.setText(0, 2, "Change"); stocksFlexTable.setText(0, 3, "Remove"); // assemble Add Stock panel addPanel.add(newSymbolTextBox); addPanel.add(addButton); // assemble main panel mainPanel.add(stocksFlexTable); mainPanel.add(addPanel); mainPanel.add(lastUpdatedLabel); // add the main panel to the HTML element with the id "stockList" RootPanel.get("stockList").add(mainPanel); // move cursor focus to the text box newSymbolTextBox.setFocus(true); } } Throwing an Nullpointer error as RootPanel.get("stockList") is null. I checked all values for rootPanel variable as an HashMap, there is no key pair for stockList element. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Properties file: how to use several maps with the same key and different values?
I hope you've worked through this by now, but the problem you're seeing is because each property key needs to be unique. You need to name your properties differently, such as: EVENTTYPE_1 = concert EVENTTYPE_2 = parade CATEGORY_1 = entertainment CATEGORY_2 = sports CATEGORY_3 = arts CATEGORY_4 = services EVENTTYPES=EVENTTYPE_1, EVENTTYPE_2 CATEGORIES=CATEGORY_1,CATEGORY_2,CATEGORY_3,CATEGORY_4 On Tue, Dec 23, 2008 at 7:09 AM, Fred Janon wrote: > I use several listboxes with a numeric key and a text as the value. I need > to internationalize the text. I don't know if there is a way to code that in > a property file. I tried the following but all the maps are all mapped with > the last values at runtime. > > Application.properties > > 1 = concert > 2 = parade > EVENTTYPES = 1, 2 > > 1 = entertainment > 2 = sports > 3 = arts > 4 = services > CATEGORIES = 1, 2, 3, 4 > > Application.java > Map EVENTTYPES(); > Map CATEGORIES(); > > Runtime: > > [INFO] Event types Key: 1 value: entertainment // Should be "concert" > [INFO] Event types Key: 2 value: sports // Should be "parade > > [INFO] Categories Key: 1 value: entertainment > [INFO] Categories Key: 2 value: sports > [INFO] Categories Key: 3 value: arts > [INFO] Categories Key: 4 value: services > > Use: > > Map eventtypes = StringManager.Constants().EVENTTYPES(); > Map categories = StringManager.Constants().CATEGORIES(); > > I don't know if there is a way to do that in a properties file. > > Thanks > > Fred > > > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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-ext similar
can anyone list any similar tool like gwt-ext ? from what i know this tool is not free. i found another call smartclient. how about others.. ? which one should i use? seem to me smartclient is free --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Extra pixels above image when added to popup panel
You can use a tool like firebug to analyze the generated DOM. Maybe it's a result of a CSS style. regards 2009/1/4 falcon_whiz > > Hi all, > I am using the lates release of gwt (gwt-windows-1.5.3). now the > problem is that whenever I am adding an image to a popup panel the > size of the popup panel increases by few extra pixels on top of the > image. on the sides and on the bottom the popup panel adjusts to the > size of the image. What can be the problem?? > > Regards > Yasser > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: IllegalStateException (onDetach) in Internet Explorer 6 and 7
We have found a fix to this problem. We were doing an RPC call before building all the UI. And just moving the RPC call to the end of the initialization routine has fixed the problem. Anyway, could there be a bug in the GWT code? I am asking because it is not clear to me if calling a RPC method before constructing some widgets should leave them in an illegal state. On Dec 24 2008, 4:58 pm, Óscar Frías wrote: > Hello. > > We have detected that our web application throws this Exception > sometimes: > > java.lang.IllegalStateException: Should only call onDetach when the > widget is attached to the browser's document > > We detect these exceptions because we have implemented a custom > exception handler that reports exceptions from the browser to our > server (code at the end). > The problem is that although this happens quite frequently (we see > this in our logs), we do not know how to reproduce it. According to > the logs timing it seems to happen (at least some of the times) when > leaving the page that contains the GWT app. But we are not completely > sure about this. > > Any idea about what could be happening, about the possible root cause, > or how to try to debug/fix it, etc. ? > Any help is appreciated. > > More information: > - Exception is only thrown from IE6 and IE7 browsers > - This did not happen with GWT version 1.4.62. It started happening > the same day we migrated to 1.5.3 > - The widget that throws the exception is an HTMLPanel. Its parent is > a Composite. > > In case you are interested, this is the site with the error (the GWT > app is the flight results page):http://www.trabber.com > > /* Code to report exceptions to the server */ > if (GWT.isScript()) { > GWT.setUncaughtExceptionHandler(new > GWT.UncaughtExceptionHandler() { > public void onUncaughtException(Throwable th) { > CommonService.App.getInstance().reportException > (th, myCallback); > } > }); > } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Waiting on multiple RPC calls
This is the first iv heard of this kinda thing. Im doing alot of seperate rpc calls. could you give me an example of how to cache it please. currently im just doing: /** An rpc call. */ private void getData() { SignoffService.Server.getInstance().getData(new AsyncCallback() { public void onSuccess(User result) { // success } public void onFailure(Throwable caught) { // error } }); } Thanks alot for your help, Steve On Dec 19 2008, 3:00 pm, rakesh wagh wrote: > performance: > Are you acquiring handles to three different RPC services for your 3 > calls? If yes, you can improve performance by clubbing them into a > single call. If you do a little client side profiling, you will > realize that creating a async reference on client side is a not a very > quick operation. It is always a good idea to cache(static) your rpc > service references on client once you create it for the very first > time. > > Rakesh Wagh > > On Dec 19, 3:38 am, "stephen.sm...@paretopartners.com" > > > > wrote: > > Thats exactly the thing i need!!! > > > Thanks :) > > > On Dec 18, 11:17 pm, Dobes wrote: > > > > Hi Stephen, > > > > I had a lot of scenarios like this, so I added some utility classes to > > > help. For example, I have a class called AsyncCallbackGroup which > > > allows you to wait on multiple parallel RPC calls and then when they > > > are all complete it calls another callback. In your case you could > > > create a group with the first two operations, then pass a callback > > > whose onSuccess() method called the next call. > > > > You can get the source code for these classes in the kiyaa project: > > > >http://code.google.com/p/kiyaa/ > > > > On Dec 18, 2:14 am, "stephen.sm...@paretopartners.com" > > > > wrote: > > > > Firstly, before any1 goes off on 1 about "You cant do syncronous rpc > > > > calls in gwt" or "JS is single threaded" im fully aware of these > > > > facts. However i also know that like many things there are usually > > > > work arounds or at least better solutions than i have thought of... > > > > > So my problem is this. I have 3 RPC calls. The first 2 are totally > > > > seperate however the third depends on the result of both the first 2. > > > > > The 3rd call is unfortunately rather large as it requires some DB > > > > access on the server and sorting/filtering etc. and i would therefor > > > > like to get this going asap. > > > > > There is also alot of other initalisation code on the client that can > > > > be done at almost any stage. so it would be preferable to do this > > > > during any (and possibly all) of the rpc calls > > > > > This is all currently done in module load and i am chaining my 3 rpc > > > > calls. This causes the total load time to be a bit slow. This seems > > > > such a horrible way to do it and even for me it gets a little > > > > confusing and i wrote it. > > > > > Does any one have a better solution to how i can "wait" on the first 2 > > > > calls before making the 3rd whilst still executing the client > > > > initalisation code. > > > > > Thanks in advance, > > > > Steve- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Approach for paging large dataset
I used continuous pagination inside a scrollTable loading 10 rows at a time. I used the client to keep a state of what rows it currently had and simply requested more using rpc when approaching the bottom. I ahd issues with getting the possition of the scrollbar as scrollPanel didnt have a scroll Listener at the time, i dont know if it still does. so i put the table in a scrollpanel and used the scroll listener of that. final product - very slick way to show 100's of rows of data. If you have more than that then i surgest incorporating a search feature or using standard pagination widgets from gwt-ext / ext-gwt On Jan 2, 8:43 pm, gregor wrote: > Check: > > http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScro... > > use JDBC (or ORM equivelents) to get pages over GWT RPC - don't clog > up HttpSession. > > regards > gregor > > On Jan 2, 7:14 pm, falcon_whiz wrote: > > > > > Hi all, > > I am creating an application where I need to send an array of objects > > from server to the client side using RPC. the problem is I want the > > dataset to be broken into pages so that the user isn't overwhelmed > > with data. Does GWT provide any good approach to solve this problem, > > or should I use HTTPSession to maintain the large dataset. > > > Regards- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Getting java.net.SocketTimeoutException: Read timed out
I had a similar problem and i eventually tracked it down to a looping rpc call. If you doing a very large request (or many in very quick succession) then you will have to read the apache docs and edit the settings in your web.xml (possibly "keep alive") although with the default settings of 1min before timeout this is unlikely. Hope this helps, Steve On Jan 4, 10:51 pm, rakesh wagh wrote: > Please provide more details on what you are doing. Are you getting > this error on client or server? How much time does your request waits? > Is it because of long executing methods? The error message clearly > reads that it is a time out exception. My guess is some operation on > server is taking more time than your time out values set. > > For a better answer, give us more information. > > Rakesh Wagh > > On Jan 4, 12:45 am, tin wrote: > > > > > Hi All, > > > I occassionally get this exception when my app's page is getting > > downloaded in the broser. In my application, I make few rpc calls to > > fetch the data once the JSP is downloaded by the browser. > > > Any help in this will greatly be appreciated. No concrete answer could > > be found for this on the internet but it seeems others have faced this > > problem too. > > > Stack Trace: > > > java.net.SocketTimeoutException: Read timed out > > at java.net.SocketInputStream.socketRead0(Native Method) > > at java.net.SocketInputStream.read(Unknown Source) > > at org.apache.coyote.http11.InternalInputBuffer.fill > > (InternalInputBuffer.java:747) > > at org.apache.coyote.http11.InternalInputBuffer > > $InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) > > at org.apache.coyote.http11.filters.IdentityInputFilter.doRead > > (IdentityInputFilter.java:115) > > at org.apache.coyote.http11.InternalInputBuffer.doRead > > (InternalInputBuffer.java:712) > > at org.apache.coyote.Request.doRead(Request.java:427) > > at org.apache.catalina.connector.InputBuffer.realReadBytes > > (InputBuffer.java:283) > > at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:379) > > at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java: > > 298) > > at org.apache.catalina.connector.CoyoteInputStream.read > > (CoyoteInputStream.java:180) > > at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 > > (RPCServletUtils.java:146) > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent > > (RemoteServiceServlet.java:335) > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > > (RemoteServiceServlet.java:77) > > at org.gwtwidgets.server.spring.GWTSpringController.handleRequest > > (GWTSpringController.java:82) > > at > > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle > > (SimpleControllerHandlerAdapter.java:48) > > at org.springframework.web.servlet.DispatcherServlet.doDispatch > > (DispatcherServlet.java:875) > > at org.springframework.web.servlet.DispatcherServlet.doService > > (DispatcherServlet.java:809) > > at org.springframework.web.servlet.FrameworkServlet.processRequest > > (FrameworkServlet.java:523) > > at org.springframework.web.servlet.FrameworkServlet.doPost > > (FrameworkServlet.java:463) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)- 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 -~--~~~~--~~--~--~---