GWT 1.6 crashes in Host Mode under Vista

2009-04-03 Thread WadeC
I am already sucessfully running GWT 1.5 without any problems. I decided to try out the new release candidate of 1.6. I built the default project (with the webAppCreator) and didn't change anything. It runs fine under web mode - but under Host mode I get: Navigation to the webpage was canceled

Re: How to define a Context Listener

2009-04-03 Thread Rohit Vadera
Any ideas guys? On Apr 2, 7:32 pm, Pints rohitvad...@gmail.com wrote: Hi, Does anyone has any idea that how can we define a servlet in GWT which can behave as a Listeners of servlets. Do i have to do a complete RPC to call any normal servlet also.? I believe yes as to talk to server RPC

Re: GWT 1.6 - How do I change the default war directory name

2009-04-03 Thread Jan
Hi, actually the layout of my application looks as shown below: - src - WebContent - ... (a couple of other dirs not relevant for the problem) Below src I have separate directories for java, test and a couple of special source directories. Inside of my WebContent directory, I have WEB-INF and

Re: PopupPanel Align Right

2009-04-03 Thread alan m
Try adding another widget on top of the panel and adding the background to that? If you are not familiar enough with the output html/css page structure in your browser you should inspect this with the MS Developer Toolbar plugin for IE and/or Firebug plugin for FF. They also allow you to change

Does TypeOracle.getType support parameterized types?

2009-04-03 Thread Richard Kennard
Hi guys, Is TypeOracle.getType, which the JavaDoc says 'finds a type given its fully qualified name', meant to work with parameterized qualified names? I've got a Generator that does... typeOracle.getType( myType.getQualifiedSourceName() ) ...and it works fine, but when I change it to...

Re: can inlineHTML be used to load static HTML pages?

2009-04-03 Thread alex.d
Well, you can always take an iframe to load a complete gwt-app. But that's probably not exactly what you need. On 3 Apr., 03:28, myapplicationquestions bhagwat.pa...@gmail.com wrote: Thanks a lot. But isn't this a major limitation that we cannot harness the power of page designers? Can GWT

Re: can inlineHTML be used to load static HTML pages?

2009-04-03 Thread myapplicationquestions
Thanks.. sorry to bug everyone again.. but to what extent can i customize the page created by GWT as i need and just include 2 modules one on the left and center everything else my own html,flash? Thanks, Parag On Apr 3, 6:58 am, alex.d alex.dukhov...@googlemail.com wrote: Well, you can

[no subject]

2009-04-03 Thread GWT GWT
Hi, I have developed simple GWT application which conatian firsrname,lastname, birthYear field. Now I am trying to add validation for birthYear field . I have added 1) gwt-validation-1[1].0.jar 2)gwt-vl-hibernate-0.5b.jar in classpath of environment variable. my application code are:

Newbie question

2009-04-03 Thread redzedi
Hi All, Here are a couple of elementary questions, pardon me if they sound very naive but i really really need to know the answer :- 1. why do we need to do a setEndPoint on the client-side stub we get from GWT.create() ?? 2. is the resultant stub as thus created threadsafe or is their any

Re: same-origin security restriction

2009-04-03 Thread DavidPShaw
has there been any update on this problem? I have a PHP backend exposed via JSON, and want to develop using hosted mode. Is this simply impossible without tricky proxy stuff in apache? My backend cannot run in hosted mode, so I basically have no way to do step- through debugging.

Re: Doubt abut DialogBox

2009-04-03 Thread 秦锋
In 1.6.2, I have tried inject my css in gwt.xml, and it works! Does it mean I lost all standard.css style? And could you give an example about The other possibility (untested) is to inherit the xxxResources module (e.g. ChromeResources) instead and include the appropriate link rel=stylesheet in

Re: Newbie question

2009-04-03 Thread Paul Robinson
redzedi wrote: Hi All, Here are a couple of elementary questions, pardon me if they sound very naive but i really really need to know the answer :- 1. why do we need to do a setEndPoint on the client-side stub we get from GWT.create() ?? because you choose what the name of your

Re: 1.6.2 upgrade has produced a script error in our code

2009-04-03 Thread ArekZ
if (o.nodeType) works after change to: if (o o.nodeType) { On Apr 2, 3:14 pm, Christopher Lariscy - Curriculum Advantage chris.lari...@gmail.com wrote: We are now receiving an IE error on each page of our existing code. When tracing this into the compiled files we find that it is

How to load a new GWT app from another GWT app?

2009-04-03 Thread Shank
I am new to GWT , i have created a app where a user has to login now whenever a user logs in successfully, i have to load a application according to the user logged in . How do i load a new application from another GWT application. --~--~-~--~~~---~--~~ You

Re: Announcing GWT 1.6 RC2

2009-04-03 Thread Jason Essington
For reference, you can already use the latest webkit nightly (safari4) as your hosted mode engine (web inspector and all) on OS X! This works in both GWT 1.5 and 1.6. The trick is to set the environment variable: DYLD_FRAMEWORK_PATH=/ Applications/WebKit.app/Contents/Frameworks/10.5 This

Re: Doubt abut DialogBox

2009-04-03 Thread Thomas Broyer
On 3 avr, 15:52, 秦锋 feng.w@gmail.com wrote: In 1.6.2, I have tried inject my css in gwt.xml, and it works! Does it mean I lost all standard.css style? I don't understand... And could you give an example about The other possibility (untested) is to inherit the xxxResources module

Re: PopupPanel Align Right

2009-04-03 Thread cj
Ah, that is what I've been wondering. Is this is a limitation of GWT that I have to work around, or am I'm just missing something. One comment in that issue page says that you can use a SimplePanel and set the position to absolute in the CSS. I am unable to get that to work. Below is the code

Re: best practise when using GWT.create()

2009-04-03 Thread Thomas Broyer
On 3 avr, 02:53, asianCoolz second.co...@gmail.com wrote: when using GWT.create(..) for image bundle, i18n or service 1.should i put the GWT.create() as global variable private final in the main class (entry point) and pass as reference to all my composite class files that required it? 2.

Re: can inlineHTML be used to load static HTML pages?

2009-04-03 Thread Thomas Broyer
On 3 avr, 03:28, myapplicationquestions bhagwat.pa...@gmail.com wrote: Thanks a lot. But isn't this a major limitation that we cannot harness the power of page designers? Can GWT module be embedded in any existing page? Yes, definitely. RootPanel.get(...) will do a document.getElementById

How to get HTTP authentication working in hosted mode using GWT 1.6

2009-04-03 Thread Roman
Hello In my web.xml file I'm using the following configuration to enable HTTP authentication for my app: security-constraint web-resource-collection web-resource-nameDemo Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint

Re: same-origin security restriction

2009-04-03 Thread Thomas Broyer
On 3 avr, 15:47, DavidPShaw wowkr...@gmail.com wrote: has there been any update on this problem?  I have a PHP backend exposed via JSON, and want to develop using hosted mode.  Is this simply impossible without tricky proxy stuff in apache?  My backend cannot run in hosted mode, so I

Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-04-03 Thread rudolf michael
Hello, You can always change your shell command params to point to any other Servlet container/app server. i dont think that the Jetty server which comes with the toolkit has support for such thing. in you shell-cmd.bat, add the following: com.google.gwt.dev.GWTShell -noserver -port 8080 where

Re: PopupPanel Align Right

2009-04-03 Thread cj
LOL I wish I could delegate to a front-end designer. It's not always an option. What I am struggling with is how to add another widget on top of a panel. The link you provided does not describe how to do this. AbsolutePanel and PopupPanel seem to be the only way that I have found. PopupPanel

Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-04-03 Thread Roman
Thanks, for your reply. This would mean, that I could only debug the client code in Eclipse and that the war file needs to be rebuilt and deployed every time I change the server code, right? -- Roman On Apr 3, 5:00 pm, rudolf michael roud...@gmail.com wrote: Hello, You can always change your

Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-04-03 Thread rudolf michael
if you changed the static files like .css, .html and others then yes you will need to re-deploy the war to see the changes in your hosted mod browser. But if you did change the .java files, then you will see the changes on the fly. means that no need to re-delpoy your war, just refresh your hosted

Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-04-03 Thread Vitali Lovich
Cool trick I found on the web:

Re: same-origin security restriction

2009-04-03 Thread Jason Essington
Your case is simple, just use the -noserver option to launch hosted mode, and load your host page directly from your [test] php server. The embedded tomcat server is really only useful for testing the simplest of java back-end bits, and is not particularly useful for any other back-end

Re: How to define a Context Listener

2009-04-03 Thread Tony Strauss
GWT RPC is *NOT* the only way to talk to your web server. See: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideServerCalls for more details. Although I imagine that you can setup hosted mode's embedded Tomcat instance (assuming that you're

Re: 1.62 cannot compile my project

2009-04-03 Thread Michal Bergmann
I'm also getting StackOverflowError from com.google.gwt.dev.Compiler. I've tried to increase stack size to 32 MB (-Xss32m), but compilation still fails with StackOverflowError. When I tried to use even bigger stack size, jvm failed to start with OutOfMemoryError. M. On Apr 1, 2:25 pm, Isaac

Re: 1.62 cannot compile my project

2009-04-03 Thread Isaac Truett
Michal, Have a look at issue #3510 (link below). Scott's working on reducing the memory usage in the compiler. I think he committed some of that work to trunk recently, but I haven't tried it yet. http://code.google.com/p/google-web-toolkit/issues/detail?id=3510q=stack%20overflow Some things

Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-04-03 Thread Roman
Thanks for the suggestions I still wished it would be possible to use internal jetty server and configure it to support HTTP authentication. It would make debugging of the server code a lot easier. -- Roman On Apr 3, 5:33 pm, Vitali Lovich vlov...@gmail.com wrote: Cool trick I found on the

permutations

2009-04-03 Thread Alejandro D. Garin
Hi, I have a xml module just to compile only for Firefox. I override the following directive: set-property name=user.agent value=gecko1_8/ Why the compiler say: Compiling 2 permutations ? The same for happend for set-property name=user.agent value=safari/ I don't have an extra locate, just

Re: How to load a new GWT app from another GWT app?

2009-04-03 Thread Tony Strauss
One way is to call Window.Location.assign with the URL of the new application (which the URL varying based on the user's identity). We've implemented a similar requirement with our current project. Our login page actually is *NOT* a GWT application but instead is a simple form (handled by a

Re: Back Refresh button handling

2009-04-03 Thread bigtruckdriver
yeah, the widget trigger won't work. I think you can interfere somewhat with window closing -- if you take a look at what happens in Gmail, when you are drafting up a reply, and you try to close the window, it will give you that confirmation popup. The same functionality is available in GWT. I

Re: java.lang.StackOverflowError with GWT

2009-04-03 Thread bond
Thanks very much!! Sorry but I had not noticed that post! For me is working with: gwt.compiler.jvmargs=-Xmx1G -Xss1024k Regards On 3 Apr, 19:58, Jason Essington jason.essing...@gmail.com wrote: have you tried increasing the stack size? -Xss -jason On Apr 3, 2009, at 11:46 AM, bond wrote:

The call failed on the server; see server log for details

2009-04-03 Thread oumar ndiaye
Please Help,I just tested my gwt app with RPC on host mode it works fine. When I deployed the app to Tomcat it does not work. I get the following message when the client issue a RPC call to the server: The call failed on the server; see server log for details . When I looked at the logs of Tomcat

Extreme Slowest with HostedMode in upgrade from 1.5.3 to 1.6.3

2009-04-03 Thread chrisM
Hello, I am having issues of extreme slowness with an upgrade to 1.6.3.RC2 Windows. I am able to run the WebApp in Hosted Mode and everything is displaying and interacting with RPC no problems with both versions. I the classpath is the same within both run configurations. I have added

Problem with GWT Widget Printing

2009-04-03 Thread HommeDeJava
Greetings folks, I have an application developed in GWT and I would like to print tall GWT widgets (i.e. taller than one page). I found a method that works with Safari and Chrome browsers but it didn't work with FireFox. Maybe, it's related to the fact that Safari and Chrome are based on the

Re: GWT Eclipse Plugin made by GWT Team?

2009-04-03 Thread Isaac Truett
This video? http://www.youtube.com/watch?v=dJbt2CHOd9g Yeah. I'd love to get my hands on that plugin. But nobody's talking about it. If I ever get a job at Google, I am allowed to know more about the plugin, and I am allowed to talk about it, I'll let you know. ;) On Thu, Apr 2, 2009 at

Re: Multi-module application: load module on request

2009-04-03 Thread Isaac Truett
http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting That sounds like what you need. On Wed, Apr 1, 2009 at 6:24 AM, JK samochad...@gmail.com wrote: Hi All, I’ve read a lot of discussions related to multi-module applications but I still don’t have a solution for my problem. In

Re: A thought about GWT project structure

2009-04-03 Thread Ken
Why not just give the MyProjectWeb project to the GWTShell in the classpath? Provided you used the client and server subpackages of the same root package in all three projects (or made a gwt module in the same package as the server code in the MyProjectGwt project and inherited it

Re: Problem with upgrade to 1.6.3

2009-04-03 Thread Sumit Chandel
Hi TwiZ, Are you using the MyApplication-shell script generated by the projectCreator in GWT 1.5 or are you using an Eclipse run configuration to start up hosted mode? In either case, you will need to make the change as described in the documentation reference you made above. The documentation

Calling a function within a native javascript function

2009-04-03 Thread alberto
Hi I have theese two native javascript functions: (just a simply example) public native void function1( ) { alert( function2( ) ); } public native int function2( ) { return 9; } It seems that function1 can not see and invoke function2. Is that true? Is there a way to resolve that

Re: Problem with GWT Widget Printing

2009-04-03 Thread jay
It seems that prior to GWT 1.5, element.toString() did the right thing. When I moved to GWT 1.5.3, I had to switch to using DOM.toString( elem ); jay On Apr 3, 11:53 am, HommeDeJava claude.coulo...@gmail.com wrote: Greetings folks, I have an application developed in GWT and I would like to

Re: Problem with GWT Widget Printing

2009-04-03 Thread HommeDeJava
Hi Jay, Using DOM.toString(obj.getElement()) I get something more usable. no more [object HTMLDivElement] or [object] There's still some problems but I'm out of the dark age! Thank you so much! Claude On Apr 3, 5:27 pm, jay jay.gin...@gmail.com wrote: It seems that prior to GWT 1.5,

How to create CSS style for disabled buttons

2009-04-03 Thread newbie09
I am new to GWT, below style is not working, .gwt-Button[diabled] { font-family: Tahoma, Arial, Verdana, sans-serif; font-size: 10pt; border: black 1px solid; } any suggestions on how to provide style info for disabled buttons using CSS.

Re: gwt framework recomendations

2009-04-03 Thread kedar
Thanks guys, I was considering either JBoss or Spring and it looks like Spring is the better choice. On Mar 17, 9:07 am, Harald Pehl harald.p...@googlemail.com wrote: We alos use spring / hibernate. Furthermore we used GWT Server Library (http://gwt-widget.sourceforge.net/) for the clue code

Re: How to create CSS style for disabled buttons

2009-04-03 Thread mikedshaffer
Don't know if you're directly pasting your css here or retyping, But your rule says diabled and not disabled On Apr 3, 3:55 pm, newbie09 som.siva...@gmail.com wrote: I am new to GWT, below style is not working, .gwt-Button[diabled] {     font-family: Tahoma, Arial, Verdana, sans-serif;    

Re: A thought about GWT project structure

2009-04-03 Thread Isaac Truett
Agreed (though sticking to the recommended client and server, and possibly shared, subpackages, it's still fairly easy to *not* reference client code form server code and vice versa). Human beings will make mistake if they are able to. I don't want to keep telling my developers all these

Re: GWT Programmer Wanted

2009-04-03 Thread Adligo
Hi, You might want to mention where your located. Cheers, Scott On Apr 1, 3:15 pm, mike177 mikeall...@gmail.com wrote: Hello, We are looking for an exprienced GWT developper with visible references to work onwww.homeprodigy.com. This might develop into a long term relationship once this

Tomcat deployment problem: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread mike wade
Please Help, I just tested my gwt app with RPC on hosted mode, it works fine. When I deployed the app to Tomcat (Linux) it does not work. I get the following message when the client issue a RPC call to the server: The call failed on the server; see server log for details . I included

navigating from one HTML page to another

2009-04-03 Thread mrfreeze81
I want to navigate from one HTML page to another (P1.html to P2.html). On start up my code loads P1.html as entrypoint. I have a few buttons there as navigation buttons. One of the buttons when clicked should take me to p2.html. I have to load a new page (that's my requirement) but do not want

Re: navigating from one HTML page to another

2009-04-03 Thread Ian Bambury
Why do you want to do it like this? It's a very strange requirement for an Ajax-based site, and not wanting to remove and add widgets means that you will get very little (if any) benefit from using GWT. If that is really what you want to do, I'd suggest looking at some other languages. Ian

Re: How to load a new GWT app from another GWT app?

2009-04-03 Thread Shank
On Apr 3, 10:03 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: One way is to call Window.Location.assign with the URL of the new application (which the URL varying based on the user's identity). We've implemented a similar requirement with our current project.  Our login page

Re: How to load a new GWT app from another GWT app?

2009-04-03 Thread Shank
On Apr 3, 10:03 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: One way is to call Window.Location.assign with the URL of the new application (which the URL varying based on the user's identity). We've implemented a similar requirement with our current project.  Our login page

GWT import external jar

2009-04-03 Thread Qing
Hi, I'm now using gwt develop my web application. I create a gwt project 'OnlineBanker' in command line and import it into eclipse. The server side code of OnlineBanker need to use the class in another java project 'FinancialToolkit'. I export FinancialTookit as a jar file, and import it into

[gwt-contrib] More interfaces part 2

2009-04-03 Thread Ed
Hellu, I would like to know whtat the current status is of incoparating more basis interface in GWT? We talked about this a long time ago, but there more important issues then:

[gwt-contrib] Comment on NoClassMetadataOptimization in google-web-toolkit

2009-04-03 Thread codesite-noreply
Comment by kibork: Enabling this option breaks all RPC calls that do return some complex type(also not void or primitive). For more information: http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization --~--~-~--~~~---~--~~

[gwt-contrib] Comment on NoCastCheckingOptimization in google-web-toolkit

2009-04-03 Thread codesite-noreply
Comment by kibork: First impression is that this really makes some performance boost. At least it's noticeable. I'll try to make some benchmarking and calculate absolute values. For more information: http://code.google.com/p/google-web-toolkit/wiki/NoCastCheckingOptimization

[gwt-contrib] Re: Comment on NoClassMetadataOptimization in google-web-toolkit

2009-04-03 Thread Joel Webber
The RPC subsystem has been updated in trunk to deal with this properly (using a server-side type map). If you're seeing breakage as a result of this, please describe the scenario in detail. On Fri, Apr 3, 2009 at 10:43 AM, codesite-nore...@google.com wrote: Comment by kibork: Enabling this

[gwt-contrib] Feature request: Better compiler error message

2009-04-03 Thread Vitali Lovich
[java]Scanning for additional dependencies: file:/home/vlovich/workspace/sacred_heart/src/ece456/client/services/ResourceFactory.java [java] Computing all possible rebind results for 'ece456.client.services.comm.rpc.StaffService' [java] Rebinding

[gwt-contrib] [google-web-toolkit commit] r5183 - Hooking up a couple of missing cause chains in the server-side RPC exception handling code.

2009-04-03 Thread codesite-noreply
Author: sco...@google.com Date: Fri Apr 3 09:36:11 2009 New Revision: 5183 Modified: trunk/user/src/com/google/gwt/user/client/rpc/impl/RequestCallbackAdapter.java trunk/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java Log: Hooking up a couple of

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread rjrjr
LGTM Some nits, do with them what you will and commit this puppy. http://gwt-code-reviews.appspot.com/15803/diff/4001/4004 File user/src/com/google/gwt/dom/client/StyleInjector.java (right): http://gwt-code-reviews.appspot.com/15803/diff/4001/4004#newcode35 Line 35: head).getItem(0)); line

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread cromwellian
http://gwt-code-reviews.appspot.com/15803/diff/4001/4004 File user/src/com/google/gwt/dom/client/StyleInjector.java (right): http://gwt-code-reviews.appspot.com/15803/diff/4001/4004#newcode35 Line 35: head).getItem(0)); I mentioned this in another review, but this common idiom can fail if the

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread Ray Ryan
Can we add safely add head if we don't find it? On Fri, Apr 3, 2009 at 2:43 PM, cromwell...@gmail.com wrote: http://gwt-code-reviews.appspot.com/15803/diff/4001/4004 File user/src/com/google/gwt/dom/client/StyleInjector.java (right):

[gwt-contrib] RR: shorten filenames for SOYC reports

2009-04-03 Thread Lex Spoon
Bob, can you review this patch for me? Currently SOYC can run into some really long file names when generating output for large packages. The attached patch shortens the package names to reduce the frequency this happens. It's likely worth doing such shortening more consistently, but package

[gwt-contrib] Getting available TimeZones, Detecting Timezones?

2009-04-03 Thread Ray Cromwell
Am I missing something? There doesn't appear to be a way to query for all of the supported Common Timezones, which makes it problematic to construct a UI dialog that asks the user to specify a TimeZone without hard coding. Simple Timezones have the problem that they don't provide DST information,

[gwt-contrib] Re: Getting available TimeZones, Detecting Timezones?

2009-04-03 Thread John Tamplin
On Fri, Apr 3, 2009 at 7:28 PM, Ray Cromwell cromwell...@gmail.com wrote: Am I missing something? There doesn't appear to be a way to query for all of the supported Common Timezones, which makes it problematic to construct a UI dialog that asks the user to specify a TimeZone without hard

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread Miroslav Pokorny
This is probably the wrong time to ask -but updating styles via the addition of style tags seems very limiting. If I recall IE (cant recall which vetsion was probably 7) chokes when a page has more than thirty odd style elements. Why not add new rules using StyleSheet.addRule/insertRule or

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread Ray Cromwell
It seems to me that calling addRule/insertRule a hundred times would be pretty slow (just look how many rules are in the GWT Theme CSS), not to mention there are cross-browser issues to deal with, when a simple, well-tested, mechanism exists already. Sometimes doing the 'proper' thing is not an

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread Ray Cromwell
You can get the CssRule/CSSStyleDeclaration as text via the cssText property, but AFAIK, there is no property on document.styleSheets[n] that allows setting the whole stylesheet at once using text. If there is, it's certainly not part of the W3C DOM CSS OM. -Ray On Fri, Apr 3, 2009 at 8:21 PM,

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread Miroslav Pokorny
That's correct because they cascade. The benefit of specifying which stylesheet to inject into is that the gwt stylesheet can contain defaults which are in turn overridden at will in user defined stylesheets. Currently it's a free for all with ordering being undpecified which makes it

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-03 Thread Ray Cromwell
The current solution of allowing you to inject as the first child of head works just fine, at the loss of user defined stylesheets needing to use !important, but it is also extremely simple to implement, and the low hanging fruit. Iimposing that StyleInjector would have to use