Servlet GWT

2008-09-03 Thread sim123
How can I configure servlet Filters with GWT? Thanks for all the 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

Errors in hosted mode after upgrading from 1.5.0 to 1.5.2 on Windows

2008-09-03 Thread chrizbo
Hi. I just upgraded from 1.5.0 to 1.5.2. I am using Eclipse so I had to two things (or at least I thought): 1. Changed the Java Build Path properties for the project to point to the 1.5.2 gwt-user.jar. 2. Update my machines 'path' value to point to the 1.5.2 directory. After doing this I get

Re: How to write xml files with GWT

2008-09-03 Thread alex.d
If you xml-file is on the client side, you'll have to upload it to the server, parse it(a lot of xml-parser avaliable for java) and then download the result. You can also upload the xml-file, read it, send it back to the client, parse it there and then show the result. On 2 Sep., 23:22, Max

Catching Window.onUnload event

2008-09-03 Thread [EMAIL PROTECTED]
Hello, Is there a way in GWT to catch Window.onUnload event. I need that to detect when user navigates away from the page, but does not close the browser. I have written a native implementation, but are there any plans to add Window.addUnloadListener() functionality? Or am I missing something?

Re: Need to get images original dimensions before displaying.

2008-09-03 Thread Reinier Zwitserloot
Use onLoad, but also start a timer, and check after 10 seconds. If the image has dimensions that aren't 0x0, remove the onload trigger, and do the resize. On Sep 2, 4:00 pm, darkflame [EMAIL PROTECTED] wrote: Dosnt really help me. I cant even show them at the correct size without knowing what

Re: Accessing Location of an iframe from another iframe and Cross Domain Security

2008-09-03 Thread MN
one possible workaround: send from your page samplexxx a heartbeat to the top page (remember the time of the last heartbeat). then you can check this value. if this value is too long not updated, then the iframe have a different content. On 1 Sep., 22:29, Jayant [EMAIL PROTECTED] wrote: Hello,

FormPanel rendering time

2008-09-03 Thread Sanj
Hi All, I am using GWT EXt formPanel, it takes lot of time in adding/rendering in hosted mode. It takes appx. 1.5 sec for two text fields and two labels. How can i reduce this rendering? I am using GWT-Exit 2.0.4 and GWT 1.5. --~--~-~--~~~---~--~~ You

Re: Catching Window.onUnload event

2008-09-03 Thread Thomas Broyer
On 3 sep, 11:13, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Is there a way in GWT to catch Window.onUnload event. use a WindowCloseListener. I need that to detect when user navigates away from the page, but does not close the browser. This is not possible in JavaScript, there's

Re: Chrome support

2008-09-03 Thread obesga
My app work, faster than other browsers - really faster ! I heard Safari and Firefox are also implementing their own JS VM, so we can expect a general performance increase for our loved GWT. I also hear than IE8 ( beta ) eats more RAM than WindowsXP, so we can urge people to use any alternative

Re: Configuring GWT applications

2008-09-03 Thread Len
There will be some difference in the deployment if you want different setting per deployment. you could : 1. have the config stored in a properties file that the server knows how to locate and send back to the GWT app in some fashion 2. Same as 1 except in a database 3. Same as 1 except the

Re: wait for DialogBox

2008-09-03 Thread walden
The above responses are how to disable the controls while waiting for the RPC. The rest of the answer is to put the application logic that depends on the RPC result in the rpc callback's onSuccess method, as opposed to coding it inline with the rpc call itself. On Sep 3, 6:04 am, Manuel

GWT and web.xml configuration

2008-09-03 Thread sim123
I have created a web application for GWT using cypal studio, I have different servlets handling different requests (based on different business modules I have), Now I want to configure Servlet Listener and Servlet Filter, how should I configure those in GWT application? In traditional web

Re: Invalid version number null when using the hosted mode

2008-09-03 Thread Joonas
I have the same problem. It seems that the hosted mode browser somehow manages to load an old version of hosted.html. When I use web inspector to see the URL of hosted.html and try to load this file directly (also in hosted mode browser), it loads the correct up-to- date version. The problem is

Re: How to write xml files with GWT

2008-09-03 Thread Michael Vogt
Hi Max. I know how to read and parse xml file with GWT. But I would like to write or modify xml files with GWT. Is there a way to do it? Is there any demo or example ? I have googled it a bit but has no luck yet. Thanks for your help. Where do you want to save the xml-file? On the

Re: Widget Style

2008-09-03 Thread Len
you can use the setStyle(myFunkyStyle) on the HorizontalPanel to attach your own styles to it if you like. What does your css look like for the DecoratorPanel ? 2008/9/2 Riyaz Mansoor [EMAIL PROTECTED]: Hi HorizontalPanel don't have any styles. How can I add padding horizontally to the

GWT Generator: BuildStamp

2008-09-03 Thread JAmes Atwill
Hey, I do a lot of prototyping in GWT before I build the backend and I've recently had the need to generate a build version for my GWT interface. While there are about fiftybazillionmillion different ways to do this, I've chosen a GWT generator to create a buildstamp. This lets me tar up the

Problem in display data inside the combobox

2008-09-03 Thread Karl
Hi, Why is it that I can't display inside the combobox the string name . All string that has and are affected with this problem. Is there a workaround for this problem? Thanks, Karl Chan --~--~-~--~~~---~--~~ You received this message because you are

First thoughts on Chrome

2008-09-03 Thread Raymondo
Generally very impressive.Two small glitches: 1. Using Gmail it doesn't seem to remember user names,not to be confused with remember me on this computer so each time you log on you have to enter your user name unlike on other Browsers. 2. On the BBC Business page there is a button - Market

Timer and DeferredCommand

2008-09-03 Thread obesga
I've implemented a method to execute code in a asynchronous fashion, with a random pause before . Like if you were doing a RPC call. The code uses a Timer than fires a DeferredCommand where the executable code is written. Here it is:

Add Chrome as hosted browser option?

2008-09-03 Thread gwtlearner
With a much faster browser, I do believe add chrome as a hosted browser option will definitely benefit GWT developers a lot from a much shortened turn around time. Thx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Google Chrome

2008-09-03 Thread matias_warrior
What about a GWT DOM impl for Chrome? On Sep 3, 7:24 am, Reinier Zwitserloot [EMAIL PROTECTED] wrote: askar: Did you try to contribute to GWT? They accept anyone, and are willing to listen to any patch proposal you have, provided you of course do the work. It doesn't look like anyone cares

Re: Google Chrome

2008-09-03 Thread Jason Essington
Chrome uses the Webkit engine so the GWT DOM implementation for Chrome is the same as for Safari, therefor, no need for separate support -jason On Sep 3, 2008, at 5:43 AM, matias_warrior wrote: What about a GWT DOM impl for Chrome? On Sep 3, 7:24 am, Reinier Zwitserloot [EMAIL PROTECTED]

Re: Google Chrome

2008-09-03 Thread Reinier Zwitserloot
askar: Did you try to contribute to GWT? They accept anyone, and are willing to listen to any patch proposal you have, provided you of course do the work. It doesn't look like anyone cares if you actually work at google. This meritocracy system is essentially the same as any open source project,

Re: problem to call a method

2008-09-03 Thread Sumit Chandel
Hi Robert, Were you able to get Spring and GWT working together using a previous version of GWT? Either way, it seems like you might be doing work that has already been done in the GWT-SL library. Many developers in the group have been using it to get GWT and Spring together. You may want to take

Re: GWT 1.5.2 and HTTP Method PUT error

2008-09-03 Thread Eric B
I deleted this post because this is a firebug problem. If you open firebug in firefox, go to the Net tab, and click on an rpc call, then the response tab will say that the post has to be resubmitted. When it is, the PUT error is returned. My rpc failures are being caused by Hibernate, C3P0,

Re: First thoughts on Chrome

2008-09-03 Thread Ian Bambury
Both of those work OK for me. Well, the Open MarketWatch Ticker on http://newsvote.bbc.co.uk/1/shared/fds/hi/business/market_data/overview/default.stm does - is that the page you meant? With Gmail, it will remember me on the computer, and if I log out and restart Chrome, it will have filled in

Re: Google Chrome and GWT Apps Speed. Fred Sauer. HornetBlast

2008-09-03 Thread Tim
the game is indeed superhumanly fast :) it's so fast only superhumans can play it. ;) On Sep 2, 3:40 pm, Gabriel Krupa [EMAIL PROTECTED] wrote: Hello, I have just tried the Demo Game from Fred Sauer with Google

Re: Gwt Php Framework

2008-09-03 Thread MN
did you have a special layout for the google chrome browser and IE6? (i not see in chrome a desktop. only the start-menu as a static navigation and each frame as a part of the right content with no windows style) how did you solve this different layouts? On 2 Sep., 17:13, Andrej [EMAIL

Re: Google Chrome

2008-09-03 Thread Jason Essington
On Sep 3, 2008, at 10:27 AM, Ian Bambury wrote: I thought I just said that - well, three hours ago - Maybe you did ... I start writing a response, then forget to press send for a few hours, so when my mail window makes it back to the top of the stack, and I finish up, I very well could be

Re: Google Chrome

2008-09-03 Thread Jason Essington
oh, here it is! Your fist post arrived at 10:28 my time, and this one at 10:55 my time. There must be some crazy time warp thing in the google data centers ... -jason On Sep 3, 2008, at 6:30 AM, Ian Bambury wrote: Chrome uses Google's version of WebKit (whick is a fork of KHTML),

Re: GWT and Eclipse problems

2008-09-03 Thread ALF
I didn't move the files. I did projectCreator and applicationCreator then imported it into Eclipse and clicked the Run button. It launches the GWT browsers (the shell and the app) but then pops up with an IE dialog. It all runs fine from the command line but I would like the ability to debug

Failed to load module MyDirectory

2008-09-03 Thread [EMAIL PROTECTED]
Hello i'am newest gwt user, my first unresolved problem is : When launching MyDirectory appli in hosted mode using MyDirectory- shell.cmd, the browser launch link http://localhost:/com.google.gwt.samples.mydirectory.MyDirectory/MyDirectory.html and say : Failed to load module MyDirectory

Re: Google Chrome GWT

2008-09-03 Thread Harry Holt
If you are on FaceBook, you will notice that there are a lot of links that do not work in Chrome. I haven't tried to dig into which ones or why, but there are quite a few of them. Note, for instance, the comment link next to a user's post. ... HH On Tue, Sep 2, 2008 at 8:07 PM, Ian Bambury

Re: Invalid version number null when using the hosted mode

2008-09-03 Thread Joonas
Couple of more notes: 1.5.2 release notes state that hosted.html is now loaded from classpath. Is this true even for -noserver? Just in case, I tried to make sure that my classpath don't have hosted.html If I remove myapp.nocache.js from the server, hosted mode browser can not load the

Safari import?

2008-09-03 Thread Aozame
Hej Jag undrar om man skulle kunna importera bokmärken från Safari? För stunden fungerar det bara från Firefox och Explorern, men kan man ladda ned något så det går att importera från Safari? --~--~-~--~~~---~--~~ You received this message because you are

Re: Errors in hosted mode after upgrading from 1.5.0 to 1.5.2 on Windows

2008-09-03 Thread chrizbo
I found my mistake after looking around a bit more. I needed to change the paths in the *.launch, *-compile.cmd and *-shell.cmd that are generated by GWT. Hope this helps someone else. :-P --~--~-~--~~~---~--~~ You received this message because you are

Re: Add Chrome as hosted browser option?

2008-09-03 Thread Sumit Chandel
Hi Elliot, There currently aren't any plans for a GWT 1.5 + OOPHM release as it doesn't seem there is really a use case for it. The release that includes OOPHM shouldn't have any breaking changes that would affect your project's move from 1.5 to the newer version aside from OOPHM itself, so it

Re: Add Chrome as hosted browser option?

2008-09-03 Thread JAmes Atwill
Sumit, Am I correct in reading that OOPHM will allow for things like FireBug/ DOM Inspector work on generated code? JAmes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: Add Chrome as hosted browser option?

2008-09-03 Thread elliot
nope, just dont want to have to make breaking changes to use oophm when its there. sounds good to me. thanks! On Sep 3, 3:52 pm, Sumit Chandel [EMAIL PROTECTED] wrote: Hi Elliot, There currently aren't any plans for a GWT 1.5 + OOPHM release as it doesn't seem there is really a use case for

Re: Invalid version number null when using the hosted mode

2008-09-03 Thread Noé
Hummm... Today, the version number passed null to 1.4 in the error: [ERROR] Invalid version number 1.4 passed to external.gwtOnLoad(), expected 1.5; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app And I don't know why...

Re: Server / Client Communication Flipped

2008-09-03 Thread elliot
the only way i know of to accomplish this is to use a heartbeat. every 5s or so, fetch all important notifications from the server. process them in the client, possibly making more calls to do so. i cant imagine that there exists a secure way to trigger events directly from afar. On Sep 3, 4:05 

Problem Upgrading to GWT 1.5

2008-09-03 Thread thitoh
When I try to compile my project, compiler stops in line: Linking compilation into C:\EclipseWorkspace\App\build\gwtOutput \com.my.comp.View Invoking Linker Standard It continues in this line forever. What I have to do? --~--~-~--~~~---~--~~ You received this

Re: getting Content-Type must be 'text/x-gwt-rpc' with 'charset=utf-8' after updating to gwt 1.5RC1

2008-09-03 Thread mrpantsuit
I had the same problem and fixed it by doing a Ctrl-F5 refresh in the browser. On Aug 11, 6:56 am, TimTimGo [EMAIL PROTECTED] wrote: Hi, after updating to gwt 1.5, I'm getting this error: 2008-08-11 12:16:33.899:/:WARN:  Exception while dispatching incoming RPC call

Re: GWT 1.5 RC2 : Strange compile error - Exception in thread main java.lang.NoSuchMethodError:

2008-09-03 Thread maticpetek
Thank you for a tip. It works. On Sep 3, 12:34 am, mrpantsuit [EMAIL PROTECTED] wrote: I had the same problem.  Moving gwt-dev-windows.jar to the top of the classpath (as mentioned in this posthttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...) seems to have fixed it.

Re: GWT 1.5 Now Available

2008-09-03 Thread JohnnyGWT
Congrats! So, is GWT 1.5 now considered production ready? I'm working a project that is approximately 60% done. Should I now update to 1.5? On Aug 28, 6:44 pm, Bruce Johnson [EMAIL PROTECTED] wrote: Hi everyone, The GWT team is proud to announce that GWT 1.5 is now officially released!

Re: Date creation one Locale for all GWT clients

2008-09-03 Thread Dean S. Jones
you can get the timeZoneOffset() from a Date object, send the timezone along with the Date over RPC, and then you can adjust the date back to your normalized preference on the server. The GWT serializers only send the long value of the Date over the wire...

Re: ERROR: The serialization policy file... ...was not found; did you forget to include it in this deployment?

2008-09-03 Thread Dean S. Jones
Actually, implementing IsSerializable is the GWT 1.3 behavior, and using it just MASKS some other issue ( one I stated above ), Serializable should work. What package is your object in??? On Sep 2, 1:54 pm, thitoh [EMAIL PROTECTED] wrote: thanks, Dean S. Jones! I was implementing Serializable,

Re: Invalid Pointer when loading window

2008-09-03 Thread walden
Guess not. Run your application in Hosted Mode. Make the error happen. Look in the shell's console for an unhandled exception. The stacktrace will indicate where in your code to look. Good luck. Walden On Sep 3, 2:49 am, nformosa [EMAIL PROTECTED] wrote: Nobody experienced this problem?

Eclipse trying to find JSNI source

2008-09-03 Thread jchimene
Hi, I'm not sure why Eclipse is trying to find my JSNI source when debugging in hosted mode. Is there any way to tell Eclipse not to look for source of native methods? -30- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: JUnit Test for Deferred Command in Custom Widget

2008-09-03 Thread Thomas Broyer
On 2 sep, 19:55, dhroth [EMAIL PROTECTED] wrote: I have a JavaScript widget library that I am wrapping as GWT widgets. Some of the widget's JavaScript functions can only be called after the widget is attached, so if they are called during the application onModuleLoad, we are issuing a

Re: casting javascript object to interface

2008-09-03 Thread Ian Petersen
On Wed, Sep 3, 2008 at 1:45 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there any way to get the following piece of code to work in script mode: User u = (User)JavaScriptObject.createObject(); Where User is an interface I have defined. Currently I get an classcast

Widget.addFocusEvent, or Widget.removeFocusEvnet bug???

2008-09-03 Thread jhpark
sorry, I can't write English well.. this program is addFocusEvent and removeFocusEvent. if toggle button is down - removeFocusEvnet, if toggle button is up - addFocusEvent. but when the focus is on textbox, focusEvnet is work... How can remove event??? (I test

Re: Best practice: Larger application design

2008-09-03 Thread Pavel Byles
Exactly my point. It depends. And precisely for the reasons you stated. Although I don't see why the project needs to be overly huge to _resort_ to modules. So we do agree that for small projects, modules aren't really necessarily the best. But as it grows or if you have many reusable parts then

Re: Best practice: Larger application design

2008-09-03 Thread Ian Bambury
2008/9/4 Pavel Byles [EMAIL PROTECTED] Exactly my point. It depends. And precisely for the reasons you stated. Although I don't see why the project needs to be overly huge to _resort_ to modules. So we do agree that for small projects, modules aren't really necessarily the best. But as it

Re: Date creation one Locale for all GWT clients

2008-09-03 Thread JohnnyGWT
Additional Question - Has anyone used com.google.gwt.i18n.client.DateRecord to resolve this issue? DateRecord appears to hold all the additional info (including tzOffset) to re'calc' the date 'later'.. as in on the server side?.. I haven't had time to test it out yet. On Sep 3, 6:38 pm,

[gwt-contrib] Re: [google-web-toolkit commit] r3597 - in trunk: dev/core/src/com/google/gwt/dev/javac dev/core/src/com/google/gwt/dev/javac/imp...

2008-09-03 Thread BobV
LGTM. I think that using the timestamp of the ZipEntry is fine. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: [google-web-toolkit commit] r3597 - in trunk: dev/core/src/com/google/gwt/dev/javac dev/core/src/com/google/gwt/dev/javac/imp...

2008-09-03 Thread Scott Blum
Thanks! On Wed, Sep 3, 2008 at 12:01 PM, BobV [EMAIL PROTECTED] wrote: LGTM. I think that using the timestamp of the ZipEntry is fine. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~

[gwt-contrib] [google-web-toolkit commit] r3611 - in releases/1.5: dev/core/src/com/google/gwt/dev/jjs/impl user/test/com/google/gwt/dev/jj...

2008-09-03 Thread codesite-noreply
Author: [EMAIL PROTECTED] Date: Wed Sep 3 15:30:28 2008 New Revision: 3611 Added: releases/1.5/user/test/com/google/gwt/dev/jjs/test/GenericCastTest.java (contents, props changed) Modified: releases/1.5/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java