Re: gwt-mosaic and GWT 2.7
Is your problem with org.gwt.mosaic.ui.client.impl.GlassPanel.java? I had to make the following changes to the source for this class. FROM: protected static native int getWindowScrollHeight() /*-{ return @com.google.gwt.user.client.impl.DocumentRootImpl::documentRoot.scrollHeight; }-*/; protected static native int getWindowScrollWidth() /*-{ return @com.google.gwt.user.client.impl.DocumentRootImpl::documentRoot.scrollWidth; }-*/; CHANGED TO: protected static int getWindowScrollHeight() { return Document.get().getScrollHeight(); } protected static int getWindowScrollWidth() { return Document.get().getScrollWidth(); } I was able to simply copy the java source into my project, duplicating the same package path as the original. The GWT compiler uses my version of the class, instead of the one in the jar. Probably the correct way to fix it is to modify it and repackage the mosaic.jar with any changes you needed to make for 2.7. If this is not your problem, let us know exactly what your problem is, maybe we can help. Mike. On Tuesday, February 17, 2015 at 12:09:44 AM UTC-10, Marko Khomytsya wrote: Is there are any workaround way to compile project which is using gwt-mosaic in GWT 2.7 ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT compile times between 2.6.0 2.7.0
Depending on how many permutations you compile, setting localWorkers to a larger number then one can make a big difference if you have a multi-core workstation. My compiles are 2-3 times faster with local workers set to 4. Mike. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Adding data to from arry to create list data in widgets [list, cobmo, flex, etc]
No, you add them one at a time. However you can always create your own component. Subclass the listbox, and add your own setItemsFromList() method if you wish. Then you can re-use that component. Mike. On Saturday, July 6, 2013 12:26:02 PM UTC-10, Bob Spero wrote: Are you saying the array can be handeled as an item ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC AsyncCallback freezes chrome
You say you have many other RPC calls etc. Since a few RPC calls can be active in parallel, some may return with a response before others…. It could be one of the other RPC calls is causing the problem perhaps the code is in an endless loop. So the browser can never respond to the AsyncCallback that you suspect is not getting a response. Mike. On Saturday, July 6, 2013 3:22:12 AM UTC-10, fenyoapa wrote: Ok, then I don't understand what do you mean on isolate your problem in a stand alone gwt app. I can provide short code snippets (as I did above) but I can't provide a working gwt app with which the problem can be seen because of the points I wrote. Or, maybe I can package the whole app and send, but I guess you don't thought that. Can you please help me how to help you in order to you will be able to help me... 2013. július 6., szombat 14:31:42 UTC+2 időpontban Ed a következőt írta: Sorry I can't, It runs behind a VPN in a special environment and it is property of our customer.. Why not? I just make your own gwt app that shows the issue (no client code, no vpn). I don't understand what this has to do with vpn or customer code? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: PROBLEM: GWT WEBAPP UNDER NETBEANS
Did you try this? https://netbeans.org/kb/docs/web/quickstart-webapps-gwt.html On Tuesday, April 2, 2013 6:49:09 AM UTC-10, akonoagou...@gmail.com wrote: Hi all, I embarked on a project with netbeans under gwt dashboarding but since then I meet a lot I problem, I use netbeans 7.0: 1) I downloaded the plugin 2.10.4 GWT4NB but it did not work, too much dependency eg hints java (which has been reported on many sites), so I installed GWT 2.6.2 more problem 2) thereafter, so I wanted to create my HelloGwt using GWT 2.4, 2.3, 2.4 but I still have the same problem, the application web is created, but run well: - I have no package that I created (org.yournamehere.main) - Package source folder is empty - I have no java class creates - I did not create entrypoint I already retried six times issue I see not skipped a step but nothing. What to do? Thank you in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Compiler exception after upgrade to 2.5.1
Thanks, I'm using the Netbeans plugin for GWT can anyone point me to where the gwt-unitCache folder would be? Thanks, Mike. On Tuesday, March 19, 2013 11:11:14 PM UTC-10, Thomas Broyer wrote: Delete the gwt-unitCache and try again. On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote: Hi, My project compiles and runs OK with GWT 2.5.0. After upgrading to version 2.5.1 Compiling the project causes an exception (see below) This is using Java EE 6 (Mac OSX) Any ideas? Thanks, Mike [ERROR] Unexpected internal compiler error java.lang.RuntimeException: Unexpected IOException on in-memory stream at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360) at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:670) at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:983) at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:531) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:637) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33) at com.google.gwt.dev.Precompile.precompile(Precompile.java:278) at com.google.gwt.dev.Precompile.precompile(Precompile.java:229) at com.google.gwt.dev.Precompile.precompile(Precompile.java:141) at com.google.gwt.dev.Compiler.run(Compiler.java:232) at com.google.gwt.dev.Compiler.run(Compiler.java:198) at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:177) Caused by: java.io.InvalidClassException: com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream classdesc serialVersionUID = -1052417216019896795, local class serialVersionUID = -8155793964565947646 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at java.util.ArrayList.readObject(ArrayList.java:593) at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203) at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358) ... 14 more -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Compiler exception after upgrade to 2.5.1
Hi, My project compiles and runs OK with GWT 2.5.0. After upgrading to version 2.5.1 Compiling the project causes an exception (see below) This is using Java EE 6 (Mac OSX) Any ideas? Thanks, Mike [ERROR] Unexpected internal compiler error java.lang.RuntimeException: Unexpected IOException on in-memory stream at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360) at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:670) at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:983) at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:531) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:637) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33) at com.google.gwt.dev.Precompile.precompile(Precompile.java:278) at com.google.gwt.dev.Precompile.precompile(Precompile.java:229) at com.google.gwt.dev.Precompile.precompile(Precompile.java:141) at com.google.gwt.dev.Compiler.run(Compiler.java:232) at com.google.gwt.dev.Compiler.run(Compiler.java:198) at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:177) Caused by: java.io.InvalidClassException: com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream classdesc serialVersionUID = -1052417216019896795, local class serialVersionUID = -8155793964565947646 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at java.util.ArrayList.readObject(ArrayList.java:593) at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203) at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358) ... 14 more -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Help! com.google.gwt.user.client.rpc.StatusCodeException: 500 The call failed on the server; see server log for details
Are you are able to run the debugger on your server code? Try adding a break point, or add your own logging, or System.out.println() messages to your server code. If it never reaches there, it probably is, as others suggest, a serialization issue. Mike. On Saturday, January 12, 2013 2:47:51 PM UTC-10, Sevak Asadorian wrote: server log is empty. any ideas as to why? how to fix it so it can log? On Monday, December 19, 2011 2:12:06 PM UTC-8, Ed wrote: is there any one that has ever met this error? Yep, we all see them during development. what should I do to solve it? Do what the exception say's: look in the server log Tip: make sure your backend runs well without using gwt. Test your backend through unit tests that will catch the above errors. If you throw checked exceptions to the front end you will get more exception details in the client btw. See GWT doc for more info. - Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bQFfBy5diEMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: DevMode not working in Chrome after update
I am having the same issue, I have been able to install the plugin by dragging it into the extensions window, but it still will not load Mac Lion with latest Chrome. Anybody figure out what is wrong yet? Thanks, Mike. On Tuesday, July 17, 2012 4:16:03 AM UTC-10, Andy wrote: I updated Chrome this morning and now when I try to use DevMode I get an error Could not load GWT DevMode Plugin and an offer to Download the GWT Developer Plugin. When I try to download it (it's already installed), it says Extensions, apps, and user scripts can only be added from the Chrome Web Store. and there's no GWT plugin in the store. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fsrnMPQ1JSYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC call service on different web app same server?
We have an existing GWT /RPC app. I would like to create a new project, that calls the RPC's on the existing app, on the same server / container. Is this possible? Thanks, Mike. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/i5aNekznxD4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 far does the optimizations of the GWT compiler go..?
I once wrote a library of classes, and wrote a test program that exercised a few of them. Then I looked at the javascript generated in 'pretty' mode. It was very tiny, only the few methods I used where included, and many of the local variables etc where removed through optimizations etc. For the large classes, they where reduced in size, to almost nothing... since I didn't use the functionality, it was totally stripped out. I was also surprised to see my calculations that called various methods where often completely replaced with a constant, since my test program specified the inputs to the methods, the compiler was able to calculate the result, and reduce it to a single value... It is very good at optimizing out what you don't use.. Mike. On Thursday, June 21, 2012 10:17:53 AM UTC-10, Carsten wrote: Hi, I was wondering how well the GWT compiler is able to remove unused parts? Can it even remove methods and fields from a class which are never used? Example: VeryComplexObject vco = null; initVCO() { ... }; If initVCO is never called from my code, will the GWT compiler remove the method initVCO(), the field vco, or even the VeryComplexObject class itself? Can I somehow check what the GWT compiler removed and what not? Is there a log which lists removed parts? Thanks, Carsten -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ck-ihF_2NAQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Performance Differences IE 8 Vs FF 3.x
I have also had issues with IE slowness. IE does not perform well when displaying of large sets of data. I had to recommend my client use FF or Chrome. Mike On Jun 2, 3:12 pm, Mittal mitt...@gmail.com wrote: Screen also has real estate issue - I dont think I can use CellList but its good suggestion John ! I was thinking -- instead of fetching all the data and setting into suggestion box (oracle etc..) - fetch the data by making RPC calls when user enters few characters of data and set it into suggestion box but it could make application chatty ! Mittal On Jun 2, 9:00 am, John LaBanca jlaba...@google.com wrote: Are you are putting 4,000 items in a ListBox? Thats a lot of data to show on the client. Even scrolling becomes difficult at that point. Alternatively, can you use a CellList with paging to break up the items into smaller chunks? Thanks, John LaBanca jlaba...@google.com On Thu, Jun 2, 2011 at 6:44 AM, Mittal mitt...@gmail.com wrote: Thomas - is it due rendering engine of IE 8 versus that of FF or Chrome - which shows such difference in terms of response time ? Mittal On Jun 2, 6:04 am, Thomas Broyer t.bro...@gmail.com wrote: With such numbers (1 list box has 4000 elements and one suggestion box has 7000 elements), the culprit is undoubtedly IE, and you can't do anything about it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: common entry method before any RPCServiceImpl method is called
Oh.. And don't forget to call: super(req,resp); inside your over-ridden service(req,resp) method. otherwise your RPC's will not execute and will time out. Mike. On May 17, 6:43 am, mdwarne mike.wa...@gmail.com wrote: You can override this method in your RPC servlet. @Override public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException,IOException { } This method executes for each RPC call. Aloha, Mike. On May 17, 12:47 am, Jiunarayan jiunara...@gmail.com wrote: I want to have some kind of common method or like entry method for putting some common things in session attribute,based on some parameter, before any RPCSeviceImpl method is called. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: common entry method before any RPCServiceImpl method is called
You can override this method in your RPC servlet. @Override public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException,IOException { } This method executes for each RPC call. Aloha, Mike. On May 17, 12:47 am, Jiunarayan jiunara...@gmail.com wrote: I want to have some kind of common method or like entry method for putting some common things in session attribute,based on some parameter, before any RPCSeviceImpl method is called. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: 2.2 plugin with 1.7 app hostmode does not work
Hi, I found my problem. FYI for anyone facing this in the future. I created a new GWT compile run configuration in eclipse. The compiler output for a 1.71. project is set by default to 'www' . For the GWT 2.2 plug it expects the output to be set to 'war' which makes sense, since this is the new project format. Changing this setting to 'war' was important. Also, by default, if you Run as...Web Application it will set the '-codeServerPort' argument in the run configuration for your 1.7 project. This argument must be deleted for a 1.7.1 project, since GWT 1.7 doesn't recognize this param. Aloha, Mike. On Apr 26, 3:01 pm, mdwarne mike.wa...@gmail.com wrote: Hi, I am using the GWT 2.2 plugin in Eclipse 3.6 on Mac OSX. I have an existing project that was developed in GWT 1.7.1 I verified that the sdk version is 1.7.1 in the eclipse project properties. 1st problem: When I try to start the project in hosted mode, I immediately get an error in the console: Unknown argument: -codeServerPort I next tried removing the argument -codeServerPort from the run configuration in eclipse. Now the hosted mode browser will start. but... 2nd problem: The hosted mode browser is displayed with a blank page. It seems like hosted mode plugin is not loading my application? Running the app in a normal safari browser works ok. But I really miss the hosted mode debugger :( Any suggestions? Thanks, Mike. ( I can't convert to GWT 2.x because I am depending on a third party gwt library that isn't 2.x compatible) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Giving wrong value for Date of month
Don't forget the timezone setting of your client PC's if you are using java.util.Date objects. Specifically if you send a date object from a client, to the server, the date may not be what expected, unless you convert your dates to UTC timezone first, and then convert to your server's timezone. I had problems with some user's dates being stored in a server database, being one day off because some client PC's had messed up timezone or daylight savings settings. I changed my code to pass String representations of dates to the server instead of using java.util.Date with RPC. Mike. On Apr 23, 8:14 am, andy andy.anand1...@gmail.com wrote: int startMonth = startDate.getMonth(); int endMonth = endDate.getMonth(); giving wrong value what to do now? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Gwt plugin 2.2 designer not working mac osx
Hi, I have installed the GWT plugin v2.2 under Eclipse 3.6 on Mac OSX 10.6. I can create a GWT project, and compile/test. However there are no designer options. For example the Menu Group with options to create a new Composite etc are not in my new menu tree. I checked that the project setting is using gwt 2.2 for the SDK. Is there something I can check to figure this out? I have uninstalled the plugin and sdk 3 times and re-installed but no difference. Thanks, Mike. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 web app problem with Tomcat and Mod_Proxy
Hi, I have a GWT web app that has 2 servlets in the same context. Servlet_1 is the GWT RPC servlet. The other (Servlet_2) is a PDF reporting Servlet. When I save some report parameters in the httpSession using a RPC call to Servlet_1, the AsyncCallback will open another browser window, passing the url to the Reporting Servlet (Servlet2). Servlet2 reads the report parameters, and creates the report. This all works fine with just Tomcat alone. However, I need to configure Apache httpd with mod_proxy or mod_proxy_ajp to Proxy outside Internet request to this internal web application. When I configure the proxy, the parameters saved in the session are missing, in the reporting servlet. In fact it looks like a new session is created for servlet_2. ** Not sure if this is relevant to the problem, but I am getting a tomcat error in my logs. ERROR TP-Processor3 org.apache.catalina.core.ContainerBase.[Catalina]. [localhost].[/WebReports] - WebReportService: WARNING: Failed to get the SerializationPolicy 'ABEC9DB6309E99123321BAD1B79EE09A' for module 'http://192.168.1.37:8081/acme/webRpts/'; a legacy, 1.3.3 compatible, serialization policy will be used. You may experience SerializationExceptions as a result. Does the serialization policy have an effect on cookie storage, or sessions in Tomcat? Can anyone with experience with mod_proxy and tomcat, help me out? Thanks, Mike. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: create another servlet in gwt project
You can create another servlet for file upload in the same Web application. I have another servlet that I use to create PDF files, so I know this works. Make sure you configure your new servlet, and your servlet URL mapping in your web.xml file. Then make sure you post your data to the new Servlet URL. Mike. On Aug 19, 3:52 am, eddy88 angelozon...@gmail.com wrote: hi, i have a problem with gwt project. i write my first web application in gwt. my application should permit a client to send a file to a server. i see the fileUpload e gwt Upload but i'm not able to send file. i have the class that extends remoteserviceservlet that have various methods that i write that work. in this class i override the method dopost, to send a file? i try but this not work. or i just create a servlet in the package of server and this servlet receive the file sent by client. i try in this way but nothing. please help 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No Class Definition Found Exception : jexcelapi
Make sure your jars are in your webapp WEB-INF/lib folder on the server.. Mike. On Jul 16, 12:29 am, rajan kochhar rajan_kochhar2...@yahoo.com wrote: I want to read the contents of a file a.xls i have kept in war. I am creating a servlet as follows: import java.io.*; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.cummins.lms.shared.Streams; import jxl.Sheet; import jxl.Workbook; import jxl.read.biff.BiffException; public class ExcelUtility extends HttpServlet{ public void doGet(HttpServletRequest request, HttpServletResponse response) { try { FileInputStream is = new FileInputStream(a.xls); Workbook workBook = Workbook.getWorkbook(is); Sheet sheet = workBook.getSheet(0); System.out.println(workBook.getNumberOfSheets()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } } On calling the servlet,it gives an exception: com.google.apphosting.utils.jetty.JettyLogger warn WARNING: Error for /excel java.lang.NoClassDefFoundError: jxl/Workbook at com.cummins.lms.server.ExcelUtility.doGet(ExcelUtility.java:27) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) What am i doing wrong.Any alternative approach for reading an excel file or any other help will do. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JDBC org.gjt.mm.mysql.Driver : Classnotfound
Are you trying to load the driver in the Server Code, or in the Client? You can not connect to a database from the Client Code (Browser javascript), only from the Server code. I am using MySql in my projects using RPC (Servlet). In my RPC servlet I have code like this that works fine public Connection getConnection() throws Exception { Class.forName(com.mysql.jdbc.Driver).newInstance(); Connection c = DriverManager.getConnection(jdbc:mysql://+host +/+db, login, passw); return c; } Mike. On Jun 30, 4:41 am, Hotkey henrik.brinkm...@googlemail.com wrote: Dear All, this is my first post in this group, hopefully i'm not doing anything wrong. I've searched for this topic but didn't found any solution. I'm quity new to GWT and are currently writing my first Client/Server example. Actually i want to read some Data from a database but i didn't get the connection to work. At the source Class.forName(org.gjt.mm.mysql.Driver).newInstance(); a ClassNotFoundException is thrown. I'm using Eclipse and have tried the following: Project Properties - Java Build Path - Libraries - Add External Jar Result: still ClassNotFoundException Manually Copied the file into the WEB-INF\lib directory. Result: ExceptionInInitializerError at the line: this.conn = DriverManager.getConnection(my connection string): Caused by: java.lang.ExceptionInInitializerError at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java: 282) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.setlog.gwt.servicetest.server.db.DBInterface.init(DBInterface.java: 69) Hopefully someone can help me with 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Window.Location.getParameter() always null
Hi Stephan, Thanks for your reply. I discovered that it works, but not in Developer Host mode (OOPHM). Maybe the developer plugin strips the params from the url? my URL is something like this: http://192.168.0.205:/MyApp.html?gwt.codesvr=192.168.0.205:9997kc=test I also tried: http://192.168.0.205:/MyApp.html?kc=testgwt.codesvr=192.168.0.205:9997 My code is simple: public void onModuleLoad() { String urlKey = Window.Location.getParameter(kc); if (urlKey != null) { // do something special here. } else { // default code. } } Thanks, Mike. On Jun 30, 10:00 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I use it and it works. Please supply your URL and your code, probably something went wrong. Stefan Bacherthttp://gwtworld.de On Jun 29, 9:35 pm, mdwarne mike.wa...@gmail.com wrote: Hi, I need to pass a parameter to my application. However if I append a parameter to the url query string, I can not retrieve it by name using Window.Location. (Always returns null) When I retrieve the entire Query String, It contains only the gwt.codesvr parameter, but not my additional parameter. Any Ideas? Thanks, Mike. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Window.Location.getParameter() always null
Hi, I need to pass a parameter to my application. However if I append a parameter to the url query string, I can not retrieve it by name using Window.Location. (Always returns null) When I retrieve the entire Query String, It contains only the gwt.codesvr parameter, but not my additional parameter. Any Ideas? Thanks, Mike. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Woes of ClientBundle +IE
Or.. Your click Handler can remove the image from the panel, and replace it using a new one at the same coordinates. So you only add one image to the panel at a time.. Mike. On Jun 29, 1:58 am, Sean slough...@gmail.com wrote: I created a widget that consists of an Absolute Panel and two images. Both images are applied from a different ClientBundle. Both images are added to the Absolute Panel with one on top of the other. The base image, which is one of 32 in a Client Bundle is shown to the user. The second one starts off as blank.png which is you know...blank. If they click on the Widget, then the blank image is turned from blank.png to another image in the ImageBundle to an image that looks like a marker's circle, so it's like they're selecting them. This works perfectly in FireFox and in Chrome, and sadly but not surprisingly it doesn't work in IE. Does anyone know why or a work around? I always feel like I'm adding little catches and workarounds cause IE doesn't behave well with Images. Thinking about it I could try instead of a blank.png I could try to stack them and set the top image from Visible(false) to Visible(true). Maybe that will work? Grr. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems reading the content of a text file.
Hi, RequestBuilder sends a request to the server. I've never used it (I use GWT-RPC) . But perhaps you need to put your server address into the request? Or maybe call the GWT.getModuleBaseUrl() or GWT.getHostPageBaseUrl() to get the Base URL you need, and concat the file name to the baseUrl? Sorry if this is not helpful. Thanks, Mike. On Dec 22, 6:45 am, Juan M.M.M. knn0n@gmail.com wrote: Hi! I'm doing an example that I found ina book about GWT. It's the typical example of the hangman. I'm using Eclipse and GWT 2.0. This is my code: public class AhorGwt implements EntryPoint { private FlowPanel letters = new FlowPanel(); private Label wordLabel = new Label(); private Image image = new Image(); private final int MAX_GUESSES = 6; private int misses; private String[] words; private String word; private char[] visibleWord; @Override public void onModuleLoad() { //create interface RootPanel ahorcado = RootPanel.get(ahorcado); ahorcado.add(letters); ahorcado.add(image); ahorcado.add(wordLabel); //load words final RequestBuilder requestBuilder = new RequestBuilder ( RequestBuilder.POST, movies.txt ); try { requestBuilder.sendRequest( null, new RequestCallback(){ public void onError(Request request, Throwable exception) { GWT.log( failed getting movie list, exception ); } public void onResponseReceived(Request request, Response response) { words = response.getText().split(\n); GWT.log(words[2], null); startGame(); }} ); } catch (RequestException e) { GWT.log( failed getting movie list, e ); } wordLabel.setStyleName(word); } // ... } My movies.txt file is under /war/ file next to my index.html. Ok, once I get the supossed text file into 'words' variable I do a 'GWT.log (words[2], null);' in the console developent mode of eclipse I get this HTTP Status 404 - Status report. As you can see, the file movies.txt hasn't been loaded. Instead of this, the program has red a kind of default text/html file. I don't know if the problem is in the location of the file or If I'm using a wrong method to read files on the client side. Thanks, Juanma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hosted Mode crashes OSX 10.6 GWT-1.7.1
Hi, I am trying to use GWT 1.7 under Mac OSX version 10.6.2. JRE: 1.6 (mac osx) I am using Eclipse 3.5.1. Safari 4.04 I am repeatedly getting random crashes like this: GWT quit unexpectedly while using the libgwt-ll.jnilib plugin. In the console I get a message: Invalid memory access of location 0x10 eip=0x9558a77b I am using the JRE 1.6 (mac osx) with the -d32 flag in the jre arguments. I also tried installing the daily build of WebKit, and set the Environment variable: DYLD_FRAMEWORK_PATH=/Applications/WebKit.app/Contents/Frameworks/10.6 Crash Report looks like this: Process: java [2004] Path:/System/Library/Frameworks/JavaVM.framework/Versions/ 1.6.0/Home/bin/java Identifier: java Version: ??? (???) Code Type: X86 (Native) Parent Process: eclipse [1759] PlugIn Path: /Users/mikewarne/libs/gwt-mac-1.7.1/libgwt- ll.jnilib PlugIn Identifier: libgwt-ll.jnilib PlugIn Version:??? (???) Date/Time: 2009-12-04 12:56:03.648 -1000 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6 Interval Since Last Report: 8072 sec Crashes Since Last Report: 9 Per-App Crashes Since Last Report: 9 Anonymous UUID: 7DEDA2D0-0797-4CBD- B585-490F872B7A44 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0010 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: Java information: Exception type: Bus Error (0xa) at pc=0x9558a77b Java VM: Java HotSpot(TM) Client VM (14.3-b01-101 mixed mode macosx- x86) Current thread (0x028a8400): JavaThread Thread-0 daemon [_thread_in_native, id=-1601686272, stack(0xbf80,0xc000)] Stack: [0xbf80,0xc000] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J com.google.gwt.dev.shell.mac.LowLevelSaf.gcUnprotect(II)V J com.google.gwt.dev.shell.mac.JsValueSaf.setJsVal(I)V j com.google.gwt.dev.shell.mac.JsValueSaf.setUndefined()V+7 J com.google.gwt.dev.shell.JsValueGlue.set(Lcom/google/gwt/dev/shell/ JsValue;Lcom/google/gwt/dev/shell/CompilingClassLoader;Ljava/lang/ Class;Ljava/lang/Object;)V j com.google.gwt.dev.shell.mac.MethodDispatch.invoke(II[I[I)I+242 v ~StubRoutines::call_stub j org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(I[IDZ[I)I+0 j org.eclipse.swt.widgets.Display.sleep()Z+172 j com.google.gwt.dev.SwtHostedModeBase.sleep()V+4 j com.google.gwt.dev.SwtHostedModeBase.processEvents()V+11 j com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13 j com.google.gwt.dev.HostedModeBase.run()V+19 j com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27 v ~StubRoutines::call_stub .. more -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt suggestbox.
I don't know if this helps, but I wrote a PersonSugggestOracle that extends SuggestOracle The method below calls the server. It doesn't call the server if there are not at least 2 characters typed. On the server side, I have a sql query that uses the characters to perform a 'like' comparison on the first name, or the lastname so it works similar to like a multiword suggest oracle. On the server, I return the Person Name as a small HTML string with b/b tags surround the characters that the user typed to emphasize the part of the first or last name that is matching. I also limit the response to 12 matching records on the server. @Override public void requestSuggestions(Request request, Callback callback) { nameCallback = callback; String q = request.getQuery(); if (q =2) { asyncRequest.personSuggest(q,submitterId,12,new PersonsReceived (request)); } } Mike. On Oct 29, 3:47 am, Isaac Truett itru...@gmail.com wrote: As Thomas said, you'll need to write a SuggestOracle that returns an empty list of suggestions for queries shorter than x characters. And I wanted to add: if you want to keep the functionality of the MultiWordSuggestOracle then you can have your oracle delegate to a MuliWordSuggestOracle instance for queries that are long enough. As I recall MultiWordSuggestOracle is not amenable to subclassing, and composition is a better strategy anyway. On Thu, Oct 29, 2009 at 5:27 AM, Thomas Broyer t.bro...@gmail.com wrote: On 28 oct, 21:46, kss kunjals...@gmail.com wrote: I am using the gwt suggestbox currently as a typeahead text box to display suggestions from MultiSuggestOracle. Now I need a way to enable the suggestbox to appear only after a fixed set of characters are entered in the text box. Is there a way to do this ? Any suggestions. Have your SuggestOracle return an empty response until the query is long enough ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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 Navigation
Hi, I have an application with one entry point, and many 'Screens' . In your Entry point loadModule(), try creating a DeckPanel, and add it to the root. Then in your entry point , create a few panels with widgets on them. Add these panels to the DeckPanel. At the end of your loadModule method call setWidget(0) or whatever panel is your first panel you wish to display. You can create menus, buttons, or Hyperlinks, that call setWidget (pageNo) when you want to the user to switch panels. In my application I keep track of which panel is being displayed, and I handle the Window Resize event. When a user changes the size of the browser, I change the size of the panel that is being currently displayed. GWT Deckpanel creates a series of DIVs and hides, and shows them when you call showWidget(pageno) Have fun.. Mike. On Oct 25, 4:59 pm, compuroad wilson.ferreira...@gmail.com wrote: I am new to GWT. The hardest thing for me is to understand the navigation part. Let's say in the home page (index.html) there is no functionality just plain HTML and text, which is the case of lots web sites. In that case can I start with a plain HTML file (not generated by GWT? If yes where do I put the EntryPoint? Also, how many EntryPoint can I have in one application? Thanks, Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Jasperreports with GWT
Hi Haydar, One way I have done this is to create a report Servlet on my server. Then I am using something like in my Button, or Hyperlink Click Handler: Window.open(http://urlToMyServlet? reportName=MyReport,param1=somedataparam2=moredata); The Pdf Report Servlet generates the jasper report pdf, and I set the http headers to match the content-type for pdf etc. This is one way to do it, I'm sure other have found different ways. Hope this helps, Mike. On Oct 21, 4:32 am, Haydar haydarim...@gmail.com wrote: Hi friends, I am new to GWT and I have a problem with Jasperreports usage in my GWT application. I have some fields and a button and I want to get a report when i click the button. I was doing it with JSF easily but I couldn't manage to do it with GWT. Can anyone suggest me something? A very simple sample application or a website 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: Showing PopupPanel command is deferred
Below are my assumptions, and may not be the exact way it works. As you have already found out, many commands that change the DOM or the visual display seem to be actually sent to an execution queue for execution later. Often times this queue has pending commands, and is polled later on. This polling, seems to occur when the browser is idle, or waiting for user interaction. So if you command a popup to display, the re-writing of the DOM is immediately queued up. However if you immediately continue executing javascript code in a loop or a long algorithm, the browser will not poll the queue until your code is completed. (The popup shows up after your code completes instead of before it completes!) That is why you will find that DeferredCommand is your friend. If you need to display a 'Please Wait' panel before doing some long task, and then remove the 'Please Wait' after the task is finished you will often need to use a DeferredCommand to execute the long running code, and hide the 'Please Wait' panel (Exactly as you have done in your code). It's a little frustrating.. because looking at your code, it is not obvious that the code is not executing in the exact order you think it should. But if you are working with a large application, you will be using DeferredCommand quite a bit. Mike. On Sep 28, 10:19 am, The Question visser.step...@gmail.com wrote: Hi, This is the method that I'm using to show a PopupPanel. private PopupPanel loadingPopup = new PopupPanel(false, true); this.loadingPopup.setWidget(getLoadingWidget()); private void showLoading(final Boolean loading) { if (loading) { this.addStyleName(waitCursorStyle); this.loadingPopup.center(); //if table header is already displayed, show //the loading message in the table. if (ResultSetTable.this.loadingTop != 0) { this.loadingPopup.setPopupPosition( this.loadingPopup.getPopupLeft(), this.loadingTop); } } else { this.removeStyleName(waitCursorStyle); this.loadingPopup.hide(); } } I use the following code to call it: this.showLoading(true); this.doStuff(); this.showLoading(false); However, the loading box never actually shows up. But when I do the following: this.showLoading(true); DeferredCommand.addCommand(new Command() { public void execute() { parentClass.this.doStuff(); parentClass.this.showLoading(false); } }); Everything works as expected. Does this mean that the setPopupPosition () and Center() methods used deferred commands? I'm at a loss as to why this happens... S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on my small project
I use a deckpanel to hold all my pages. For example deckPanel.showWidget(0) // Show My Welcome/Login page deckPanel.showWidget(1) // Show page 1 of application. deckpanel.showWidget(2) // Show another page of the app etc. Each Page is some type of Panel, with other widgets on it. Successful login causes the application to switch to page 1 of the app. Mike. On Sep 25, 3:48 am, monk3y darkside...@hotmail.com wrote: Hi derrck What i usually do is create a DockPanel, then set the width and height to 100% and stick my login box in the center panel of the DockPanel. TextBox login=new TextBox(); Dockpanel myDock=new DockPanel() myDock.setSize(100%,100%); myDock.add(login,DockPanel.CENTER); Something like that should do the trick. On Sep 25, 11:37 am, Derrick Xiang derrick.xi...@gmail.com wrote: Sorry to clarify, i am not using a dialogbox, i want my rootpanel to be centralized in the web page, as I previewed, it's always located at the top left corner. Regards, Derrick On Sep 25, 3:47 pm, Norman Maurer nor...@apache.org wrote: Hi Parvez, just a note.. Hupa moved to james.apache.org as subproject (I'm just in preparations to deploy the website). The website can be found ( after I finished the work) underhttp://james.apache.org/hupa. The svn repos is: http://svn.apache.org/repos/asf/james/hupa Bye, Norman Ps: README.txt should include everything to get it running ;) 2009/9/25 Parvez Shah parvezs...@gmail.com: If you are new to GWT based development my suggestion is learn from project HUPA http://svn.apache.org/repos/asf/labs/hupa its based on pretty good architecture and in my experience you straight lift lot of initial Boiler plate code. In my view dont get too much into running its ok if you cant run it, just read the code starting from entry point and you will be good to go . as far as your query goes its simple dialogbox.center and dialogbox.show/hide will do. On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang derrick.xi...@gmail.com wrote: Hi all, I am quite new to GWT development, now am struggling in a small web application, my application include a lot of GUI. while, I got two questions here, 1). How can centralize the application on the final web page? e.g. I create a login window which is quite small, when I preview on the web page, it's not in the center of the page, how can i capture the web page size in my java code? 2). As the application has a lot of GUI, how should I switch between different windows? e.g. after login, the main window should display and the login window should be hide, how to do this? thanks for your attention, any comments are appreciate. Regards, Derrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: HttpSession NullPointerException
- Forward to page /account and read the HttpSession (not working) Does your /account url map to a different context or a different servlet? Maybe having two context or 2 servlets causes your problem. For my app, I use just one service Implementation class, and that service may call other helper classes that provide various system functionality. So everything is in one Servlet. Mike. On Sep 20, 10:24 pm, Dariusz darius...@gmail.com wrote: Hi! A simple scenario. - User logs in - User in database, save user object in HttpSession (works) - Forward to page /account and read the HttpSession (not working) Saving the user object in session works fine, but when I try to read it, I get a NullPointerException. The session is not there. The weird part is here. If I run it on my local machine (http:// localhost:8080/myApp) it's working fine and I can set and read the session through my entire application. If I deploy it on our server (Linux), I can set the session and read it with the same Impl class, but if I try to execute a different service (like AccountServiceImpl), then the session is not there anymore. My code looks like this: ... HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); session.setAttribute( user, userObject ); User u = ( User )session.getAttribute( user ); // here it is working System.out.println( User name is: +u.getName() ); Now if I try to get the session in my AccountServiceImpl, I'm getting an exception??? I'm wondering if it's a server setting issue or something with my code? (or maybe with my libraries) I would appreciate any help!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to Access the application Root path from the RemoteServiceServlet class..?
Hi, I access a report folder, and compile Jasper reports from a servlet... public String getReportPath() { return this.getServletContext().getRealPath(reports/src); } Returns: Full_Path_of _Context/reports/src Mike On Sep 14, 12:11 am, Raul raahoo...@gmail.com wrote: Hello GWTians I am having a trouble in accessing a local folder inside my application from the RemoteServiceServlet. At client side it is OK with GWT.getHostPageBaseURL()+images But i am not yet find a solution to access the same folder in my server code i.e. from a RemoteServiceServlet. I have the directory structure like: GuestBook.war -- WEB-INF --images -- i wanna access this folder at my server side code --GuestBook.css --GuestBook.html I have tried lot of methods like: this.getThreadLocalRequest().getServletPath()+../images this.getThreadLocalRequest().getContextPath()+/images by all possible ways.. but it was not fruitful Kindly advise how can I access any directory (created manualy) inside my application war directory from a RemoteServiceServlet class.. Thanks in advance. Raul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Add GWT to existing servlet application
Hi Can you explain when the 'a' is null error occurs? Is it only when you call a RPC function? It seems like your app is attempting to load properly, so your code is probably being sent from the server to your browser. Some sample code for your entry point class would be helpful. Usually a null variable means you tried to use it before it was initialized. If you are using Eclipse, you can use the Debugger with break-points to find your problem usually.. Mike On Sep 15, 4:54 am, Greg gllo...@gmail.com wrote: Hi all, I am extremely new to GWT, 1 day now, so please bare with me. I have an existing web application with many servlets and a view that is built on a single index.jsp page. The current app is completely stateless on the client side and I use a custom build xslt/rest framework to handle all the updates to the gui. I would like to move away from this approach as the view is very difficult to maintain. It seems that GWT should be easy to add to this app and gradually migrate different blocks of the gui over to ext components. So far I have added the gwt-server, gwt-dev-linux, and gwtext jar files to my deployable wars lib. I have added a compile gwt target to my ant build script which successfully compiles. I have an entry point which attemps to add a tab panel to my RootPanel. In my build-war task I copy all the artifacts generated from the gwt compile to my web root and I have added the javascript noscript call to my index.jsp. Right now I am at a point where it is loading a cache.html page and I am getting an error that a is null. I believe this has to do with my web.xml being misconfigured. Currently it only has servlet servlet-namegreetServlet/servlet-name servlet-class..gwt.server.GreetingServiceImpl/servlet- class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/gwtmain/greet/url-pattern /servlet-mapping I would like to use the rpc. I am not asking for an entire solution just a few pointers to get myself rolling, unfortunately I am on a very very very tight deadline and if I can't get some results by tomorrow I will have to drop this effort for a while. 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: Does GWT work in Snow Leopard?
Hi, After watching a bunch of Googles GWT videos, and seminar speeches, I noticed some of the presenters are using Macbooks. I have to believe they are well aware of this issue. Mike. On Aug 31, 4:04 am, Michael Shantzis mich...@shantzis.com wrote: The question I have is how high it is on google's list to release a version of GWT that runs on snow leopard without any modifications. I'm working in an environment where I'm testing jboss (which requires java 1.6) and have had to jump through hoops to get my server running 1.6 and my GWT client running 1.5. I'm sure they're already aware of this and it's certainly the case that all the pieces are out there for them. I'm patiently waiting!!! On Aug 29, 9:21 pm, James james.hagg...@convolution.net wrote: Hi... I just wanted to add that along with the suggestions on: http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard I had to rename the CurrentJDK symbolic link in /System/Library/Frameworks/JavaVM.framework/Versions/ from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was looking at the CurrentJDK for its version not the env. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: Forcing a TextArea to scroll
I'm not sure about a textarea. But you can do this using a ScrollPanel. You can add a FlowPanel to your ScrollPanel. All your text messages can be Label Widgets that you Add to your Flow Panel. After adding the Label Widget you can call: scrollPanel.scrollToBottom(); Or... scrollPanel.ensureVisible(someWidget) I am doing something similar with a scrollable form, if there is a data entry error, I can scroll to the field in error and display it to the user. Thanks, Mike. That will force the On Aug 20, 3:53 am, Aximilli302 aximilli...@gmail.com wrote: Hello all! I am trying to make a text area scroll. I am trying to simulate a type of chat room envirement, where the user types into a text box, presses enter, then the text apears into a read only text area, with the text aera auto scrolling to the bottom. Is there a way to make the read only text area scroll? Here is some of my code. private TextBox text = new TextBox(); private Button enter = new Button(Enter); private TextArea textArea = new TextArea(); textArea.setReadOnly(true); textArea.setVisibleLines(5); text.addKeyPressHandler(new KeyPressHandler){ public void onKeyPress(KeyPressEvent event) { if (event.getCharCode() == KeyCodes.KEY_ENTER) { enterClicked(); } } }); private void enterClicked(){ String previousText = textArea.getText(); String newText = previousText + \n + text.getText(); textArea.setText(newText); text.setText(); text.setFocus(true); } Any help would be awesome. 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: New window for file download is closing
Is it possible that the file requires a plugin that is not available to the IE7 browser? For example PDF, etc? Thanks, Mike. On Aug 20, 10:03 am, Daniel Jue teamp...@gmail.com wrote: Hi, I am streaming a file back using a new window and a call to a servlet. This works fine locally and even in hosted mode, although in hosted mode the blank window stays open. I have a testing server that is being accessed via a Citrix desktop and in that desktop there is only IE7 for a browser. When I run the app in that environment, the popup (a new window/tab) will close as soon as the response comes back (i.e. when the file is done being created after 10 seconds or so) The popup blocker is turned off and the test server is a trusted site. By intuition I tried holding CTRL when I clicked the submit button in the GWT app. (this saves the settings and onSuccess opens the new window and creates the file using the settings in the session) When I hold CTRL, I will get the save as dialog box and after I select the location to save it, I can release the CTRL button. Any ideas why this is happening? BTW, I have the content disposition set to attachment. here is the last portion of the file streaming process: //bunch of stuff byte[] reportAsBytes; ByteArrayOutputStream baos = new ByteArrayOutputStream(); service.generateOutput(ouputProcessed, baos, reportSettings, dbConnectionInfo); reportAsBytes = baos.toByteArray(); logger.debug(ByteArray is length + reportAsBytes.length); // setting some response headers response.setHeader(Expires, 0); response.setHeader(Cache-Control, must-revalidate, post-check=0,pre-check=0); response.setHeader(Pragma, public); String extension = ouputProcessed.getFileExtension(); response.setContentType(ouputProcessed.getContentType()); response.setHeader(Content-Disposition, attachment; filename= + reportSettings.getName() + ((extension == null) ? : (. + extension))); response.setContentLength(reportAsBytes.length); logger.debug(Getting the output stream from the response); servletOutputStream = response.getOutputStream(); servletOutputStream.write(reportAsBytes, 0, reportAsBytes.length); servletOutputStream.flush(); servletOutputStream.close(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: when should we use GWT RPC and HTTP mechanism to communicate to server
Hi venkl, We use RPC because it makes things so simple. For some of our service calls we pass java objects as parameters to the service. The response coming back are also java objects. such as lists and arrays of data etc. Boolean, integers, dates etc are automatically converted, and arrive in their native format on either side (client or server). RPC will automatically convert the java object, and escape any funny characters and send the objects back and forth from client to server etc. If you don't use RPC, then you as the Programmer, will be responsible for creating your own messages, and parsing them. You will also need to make sure you encode/decode any special HTTP reserved characters. RPC is great if you are comfortable using a Java Servlet on the server. If you want to use PHP, or other types of services, then you must use JSON, or XML etc to pass your data back an forth, unless the response is simple text. Mike. On Aug 19, 2:43 am, venki pola.ve...@gmail.com wrote: Thank you DaveS Ok cool instance... One more doubt Dave. I understand your example. Let us suppose my service is going to use by GWT client only. So in this case i can use either GWT RPC or HTTP. So i can do my application with out using RPC also rather i can use HTTP.Can you please tell me an instances why should i opt for GWT RPC mechanism only. I mean i am expecting the answers that in what cases we are forced to use RPC rather than HTTP. If possible can you please tell me the advantages RPC over HTTP. Once again thank you very much for your reply.. Have a good day Dave On Aug 19, 1:34 pm, DaveS dave.sell...@gmail.com wrote: Our application uses both, depending on quite a few factors. In some cases we are putting data into Flash (.swf) components, and need it in XML, so we use a 'raw' HTTP request to get the data. In most other cases we use GWT RPC to retreive data from the server, or to initiate actions in the server. There really is no single answer, it just depends on your application. We have considered moving away from GWT RPC more than once, thinking we might provide an 'open interface' or web-service interface, but so far the convenience of RPC has been the overwhelming reason we are continuing to use it. I guess you could say, if there is no need to make the service available to anything other than your GWT client, then use RPC, but if you want to open the interface to 3rd parties, other apps or anything like that, consider using HTTP. Dave. On Aug 18, 5:56 pm, venki pola.ve...@gmail.com wrote: Hi to all, I am new to GWT. I read GWT communication with server tutorial. It provides various mechanisms to communicate with the server. Any way i know how to use GWT RPC and HTTP mechanism to communicate with server. I request all of you can you give perfect explanation towhenshould we use RPC mechanism andwhenshould we use HTTP mechanism. I mean at what type instances we are forced to use particular mechanism. Great thanks in advance.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
SetVisible() problems
Hi, I seem to be repeatedly struggling with setVisible() with IE 6/7, and the Hosted browser (IE also). On some of my forms, I need to show/hide various fields based on listbox change events, or when evaluating data coming from an RPC call. The problem occurs when Widgets are in a FlowPanel or in other types of layout panels. When calling setVisible(false) on widgets, some of them are still visible either in front of the panel, or sometimes behind other widgets -- they should be invisible. I originally had the problem with widgets added to FlowPanels, so I tried changing the panel to a FlexTable. With the flexTable I have tried calling flexTable.getRowFormatter().setVisible(row,false); --- same problem. I checked the row with Firebug and it shows the row with a style of display:none II have been experimenting with DeferredCommand to try to see if this is a timing problem...so far not very successful. Has anyone else had this kind of problem, or know of a solution? I am trying to avoid removing from the DOM to hide, and adding back again to show, since this adds complexity, and the possibility of error. Thanks, Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: RichTextToolbar Question
Hi, Making the toolbar standard would be great. I am using the demo version in one of my projects. I have a small enhancement request however. Would it be possible for the link button/ dialog box to allow specifing a target for the URL. My application will allow admin users to post an HTML message for other users to view after logging in. If the admin users add a link,and a user clicks on the link, it unloads the application with it's current state, and jumps to the URL. The GWT app state is now lost, and must be reloaded by navigating back to the entry point url, in my case it forces them to login again. I would like to be able to specify that the URL open in a new window to keep the App in the browser. Thanks, Mike. On Aug 4, 12:24 am, Sean Loughran slough...@gmail.com wrote: Glad to see I wasn't the only one. I added a Star as well as add my comment that the toolbar really should be in the default package. Thank you! -Sean On Mon, Aug 3, 2009 at 11:37 PM, Sumit Chandel sumitchan...@google.comwrote: Hi Sean, You may want to keep an eye on Issue #3042 (link below). You're not the first to be stumble upon the lack of a toolbar within GWT itself after dropping the RichTextArea in your project. I've bumped up the priority on Issue #3042 to make sure it's on the radar for a future release. Issue #3042: http://code.google.com/p/google-web-toolkit/issues/detail?id=3042 Cheers, -Sumit Chandel On Fri, Jul 31, 2009 at 11:42 AM, Sean slough...@gmail.com wrote: Ah, thank you. I forgot all the examples are in the GWT source code. This thing is pretty sweet, I'm surprised it's not part of the normal API. Thank you, Sean On Jul 31, 9:23 am, Imran imran...@gmail.com wrote: This class is not part of the API. Instead, it was created in the demo to show you what can be done. Download the code for the demo and copy the file from there. Petarian. On Fri, Jul 31, 2009 at 9:11 AM, Sean slough...@gmail.com wrote: So, I am looking at the GWT Showcase and at: http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText They have this amazing Toolbar. I look at the source code and they have: RichTextArea area = new RichTextArea(); area.ensureDebugId(cwRichText-area); area.setSize(100%, 14em); RichTextToolbar toolbar = new RichTextToolbar(area); Problem is, I can't find RichTextToolbar in GWT. Eclipse can't include it and I can't find it in the javadocs. Are they using something that isn't in language yet? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to solve this basic problem in GWT..Pls help
Hi, Please check your Error message, and look for the java stack trace. With out the stack trace it's hard to locate your error. P.S. in your code: RootPanel.get(slot1).add(quoteText); I don't see any div or span elements with ID=slot1 I believe the code is trying to find an element with an ID of 'slot1' to insert your quote into that location on the HTML page. Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 with sorting accentuated words
Hi, I've never used GridPanel before, however I did create a custom column sorter for the Incubator table. My sorter accepted objects that implemented the Comparable interface. So I was able to create special wrapper classes for my displayable data that needed special sorting. The wrapper class implements a custom compareTo() method that takes care of any special-need sorting.. The sortable objects over-ride the toString() method to provide custom formatting of data also. Not sure if you can apply a similar technique to your GridPanel.. (Example snippet) public class SortableDate implements ComparableSortableDate{ public Date myDate; public SimpleDate(Date myDate){ this.myDate = myDate; } public int compareTo(SimpleDate other) { return myDate.compareTo(other.myDate); } public String toString(){ return this.formatDate_MMDD(); } Mike. On Jun 7, 11:22 pm, akim...@hotmail.fr maxime.o...@gmail.com wrote: Hello all, I'm currently working on a GWT application and i have some problems with my GridPanel. I have to manage the CRUD of objects in a GridPanel, all it's ok for the CRUD ... but I still have a problem for manage the display of Objects in my Grid. In fact, when i try to ordonate mine Objects with an alphabetic range, all accentuated char aren't sorted. The main language is the French, so accent are very usefulls. I give you an exemple with 5 words: Google Web Toolkit Is étincellant After the sort i got this result Google Is Toolkit Web étincellant The é char isn't considered as a e for the sort ... Anyone has an idea ? Thanks a lot fort 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: Announcing GWT Mosaic 0.2.0
Hi George, This looks just like jGoody for swing. Is that the layout concept you are using? Thanks, Mike. On May 14, 6:52 am, georgopoulos.georg...@gmail.com georgopoulos.georg...@gmail.com wrote: Hi All, GWT Mosaic 0.2.0 based on GWT 1.6 is out. Showcase demo:http://69.20.122.77/gwt-mosaic-current/Showcase.html Home page:http://code.google.com/p/gwt-mosaic/ Kind Regards, George. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: parsing dates
Hi sindroide, Are you trying to change a Text String date, into another Text String date? I'm not sure if I understand your needs. But, look at the static parse method in the Date class: Date d = Date.parse(Tue, xx); String newDate = DateTimeFormat.getFormat(dd/MM/).format(d); Mike. On May 12, 3:28 am, sindroide efectob...@gmail.com wrote: Hi, I can not get in anyway a Date value like 2009/05/12 from text like 'Tue May 12 00:00:00 ART 2009' The only way I can not get illegalArgumentexception es like Date f = new Date(); // this print like i want but it's text System.out.println(DateTimeFormat.getFormat(dd/MM/).format (f)); //this prints date but ... in words format System.out.println(DateTimeFormat.getFormat(dd/MM/).parse (DateTimeFormat.getFormat(dd.MM.).format(f))); cuold you please help me. Thanks for 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 -~--~~~~--~~--~--~---
Incubator ScrollTable how to remove icon right-top corner
Hi, I'm not sure if this is the right place for incubator questions. I haven't been able to find the incubator group. I am using the scroll table from the incubator, it has a small icon (2 mini arrows pointing left and right). I would like to remove/hide this icon. Any ideas? Thanks, Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Best way to add App configuration properties
Hi, I am trying to figure out the best way to add an application config file. This file will contain things like database connection information, and other app parameters. I will be using Tomcat as the servlet container. I would like this config file to be readable by the Servlet in the Hosted mode browser (development mode) but also when deployed to a production Tomcat environment. Any thoughts? Thanks, Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---