javascript eval() does not have scope to a local variable

2010-09-10 Thread dane.molotok
I have a JSNI method that I want to pass two strings, one that is the JSON response from a server, and one that is a JavaScript snippet that will parse the JSON and return a list of JavaScriptObjects to be displayed in a combo box (the JavaScriptObjects will contain displays and values). The

Re: GWT 2.0.4 app does not work with Java JDK 1.5

2010-08-25 Thread dane.molotok
I face this when I'm running with Java 5 in development mode, and on a previous project I thought we tracked it back to a bug that was fixed in Java 6. So we run with java 6 in development mode, but a runtime of Java 5 with the fully built war works fine. Have you tried the deferred command

Re: How do I set the border around elements in a DockLayoutPanel?

2010-08-12 Thread dane.molotok
How did you do it with a DockPanel? Wouldn't you want to style the elements you've placed in the panel? So it shouldn't matter if it's a DockPanel or a DockLayoutPanel. On Aug 12, 12:09 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: The topic pretty much says it all.  I know how to do this

Re: Building two war-files with Maven using different web.xml

2010-08-12 Thread dane.molotok
. Regards, Andreas On 6 Aug., 19:02, dane.molotok dane.molo...@gmail.com wrote: I've thought about doing that also, in order to to have a war where my .gwt.xml inherits the Debug module, and one that does not, but I'm beginning to think it's not even buying me much to find out how

Re: GWT 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-11 Thread dane.molotok
The documentation is frustrating, so let's all document some stuff here so that other googlers will find help. Hilco, can you link to your pom or post some relevant snippets? My current configuration is broken but I feel like I am very close with having GPE, maven, and the maven-war-plugin happy

Re: 404 Error on RPC Call

2010-08-06 Thread dane.molotok
My first guess is the disparity between /sample/myService as your RequestURI and /myService as your url-pattern. Nits: * you don't have to cast to a MyServiceAsync, generics tells the compiler this will be returned * don't mark methods as throwing a runtime exception, it kind of misses the point

Re: viewing server log in eclipse

2010-08-06 Thread dane.molotok
If you're using the Google Eclipse plugin the server-side sysout will be output to the Console view in eclipse. Client-side stuff, like your code not successfully compiling into JavaScript will show up in the Development Mode view. On Aug 5, 12:35 am, newguy yfe...@gmail.com wrote: Hi I'm

Re: Building two war-files with Maven using different web.xml

2010-08-06 Thread dane.molotok
I've thought about doing that also, in order to to have a war where my .gwt.xml inherits the Debug module, and one that does not, but I'm beginning to think it's not even buying me much to find out how to do it. I'm assuming you have a similar reason for wanting to do this? On Aug 6, 3:57 am,

Re: How to integrate GWT app into an Existing Project ? (Details Inside)

2010-08-06 Thread dane.molotok
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html On Aug 6, 10:44 am, Chirayu chirayu.diwa...@gmail.com wrote: I have a lot of hope from this community...can someboody please help me... I'll be very thankful. On Aug 5, 1:41 pm, Chirayu Diwan

Re: java.lang.NoClassDefFoundError: com/google/gwt/dev/DevMode; 2.1.0-M1

2010-07-29 Thread dane.molotok
DevMode is provided by gwt-dev.jar, which is in the SDK. So let's start simple: is gwt-dev.jar on your classpath? (I have zero experience with IDEA, sorry). On Jul 29, 5:17 am, capgeti capg...@googlemail.com wrote: Hello. I have a problem to start gwt-devmode since last week. I use intellij

Re: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread dane.molotok
I guess I'm missing something in the question. Have you tried some things and it's not working like you'd expect? I would think you could put it in src/org/jose/server. On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Good day everybody, I have this particular need,

Re: First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread dane.molotok
I have done exactly that for an application. There's no reason you cannot have a view, with a corresponding presenter, that contains two views that have their own presenters. You can even use UiBinder to put those two views within the higher level view. So your DockLayoutPanel might be your base

Re: DialogBox seems to interfere with scrolling a ScrollPanel when mouse is over a widget...

2010-07-23 Thread dane.molotok
My understanding is that the scroll wheel is like anything else, and only applies to what has focus. So even though your dialog box is open, it somehow doesn't have focus yet. I would start with using DialogBox#setModal(boolean) to see if that helps. On Jul 23, 8:59 am, Asfand Yar Qazi

Re: Getting elements by ID for UI testing

2010-07-23 Thread dane.molotok
We use selenium. By using the ensureDebugId' method on any widgets you want to identify during testing, inheriting the Debug module (only for testing, don't ship the code with this module inherited), it makes it much easier to use XPath and selenium. The best part is that GWT compiles away the

Re: Using preemptive basic authentication with GWT-RPC.

2010-07-23 Thread dane.molotok
Thanks for this post, it gets a 5 star rating. Follow-up question to it, though. What if the server code is distributed? For example, I have a three server cluster running on WebSphere. Will these standard session techniques work here, too? I'm with Jorel on this, I'm not sure yet what that

Session IDs, user credentials, and distributed deployment

2010-07-23 Thread dane.molotok
I'm stuck on how to implement the server-side code for my app. At app startup I want to authenticate the user, leave the credentials on the server side and use the session ID for the client to make future calls that need to be authenticated, in lieu of sending the user credentials over the wire

Re: GWT app looks ugly in IE6

2010-07-22 Thread dane.molotok
I agree with you, but there's still the issue of when your application has to be consumable by an enterprise, where the end user does not have permission to install an alternative browser, upgrade the one they have, or install the Google Chrome Frame plugin (+1). On Jul 22, 1:03 pm, Brett Thomas

Re: GWT and maven

2010-07-22 Thread dane.molotok
, dane.molotok dane.molo...@gmail.com wrote: Have you gone through what the Google Eclipse Plugin's FAQ[1] has? http://code.google.com/eclipse/docs/faq.html#gwt_with_maven Thanks a lot for this link Dane! I was struggling with Maven and the GPE and how to integrate them. My intention

Re: GWT and maven

2010-07-21 Thread dane.molotok
Have you gone through what the Google Eclipse Plugin's FAQ[1] has? http://code.google.com/eclipse/docs/faq.html#gwt_with_maven On Jul 21, 9:36 am, lam lama.gh...@gmail.com wrote: hi, I am trying to run a GWT project by calling the main in DevMode. This works fine. However, I want to use the

Re: Error loading module No source code is available for com.google.gdata.util.AuthenticationException; did you forget to inherit a required module in GWT after using gdata-java-client and appeng

2010-02-19 Thread dane.molotok
I bet this addresses GWT not being able to find your Exception: http://thejavamonkey.blogspot.com/2009/08/gwt-basics-reusable-bean-libraries.html On Feb 19, 9:03 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Can anyone help me with this error? TIA -Shyam. On Feb 19, 12:56 am, Shyam

Re: Debugging a maven GWT project in Eclipse with gwt-maven-plugin

2010-02-17 Thread dane.molotok
with class paths trying to import libraries twice (once from eclipse and again from local repo?) which i haven't been able to resolve On Feb 6, 8:12 am, dane.molotok dane.molo...@gmail.com wrote: I've been trying to do what I read here[1]. I am able to use the gwt:run goal to launch the app

PNG transparency with a FlexTable in GWT 2.0

2010-02-15 Thread dane.molotok
I have a FlexTable that I want to programmatically add a plus or minus icon next to rows for which the user has pending changes. I do this with FlextTable#setWidget(int, int, Widget), specifying an Image for the Widget. The Image is constructed from an ImageResource that I obtain with a

Debugging a maven GWT project in Eclipse with gwt-maven-plugin

2010-02-05 Thread dane.molotok
I've been trying to do what I read here[1]. I am able to use the gwt:run goal to launch the app in development mode, make code changes in Eclipse, and then refresh the browser and see the code changes reflected. However when I try to use gwt:debug instead, my first attempt to hit the server

DecoratorPanel wrapping a HorizontalSplitPanel

2009-12-03 Thread dane.molotok
I found this post [1], and have a similar question, but it didn't really get answered. I e-mailed the OP and he said he never got it to work, so I'm asking again to see if other people have seen this problem more recently, and how they go about avoiding it if it really isn't able to be worked