Re: MySQL server in development mode

2011-03-17 Thread Erel Segal
It doesn't work at Tomcat either, but I don't know if the problems are related. This is what I did regarding Tomcat: * I put the file mysql-connector-java-5.1.15-bin.jar in Tomcat's lib/ folder; * I edited the file conf/context.xml to declare a resource: Context

New project - serialization for gears workers

2011-03-17 Thread dominikz
We hacked GWT compiling/linking process and RPC serialization so that it is possible to write workers in Java and have DTOs only in Java. http://code.google.com/p/gj-workers/ We believe that this code actually belongs to GWT-gears library and we would really like to see this code merged there.

Re: GWT application requires Plugin to be installed in browser

2011-03-17 Thread BhaskerT
Hi Ben David, Thanks alot for the suggetions:) It worked:) Do we have any option of getting it worked in debug mode also. without deploying it on server? On Mar 15, 11:49 pm, David Chandler drfibona...@google.com wrote: Hi BhaskerT, welcome to GWT. Ben is correct. GWT development mode

Constant turned into unclobberable portion by I18N.

2011-03-17 Thread dindeman
Hi everyone. Please look at the below simple UiBinder using a constant: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g=urn:import:com.google.gwt.user.client.ui ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/ g:HTMLPanel

How to call existing javascript functions (without arguments) in GWT?

2011-03-17 Thread Thai
Hi All, addSymbolButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { // How to call a javascript function, e.g. buttonClick(), here? } }); and how to call an existing javascript function after GWT finishes everything on a page? Let me

Re: Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread Alex Nederlof
Hi, You need a Java application server like Tomcat (or Jetty or Glassfish, etc.) to run Java. Apache (httpd) alone can't run your java code. Best, Alex On Thu, Mar 17, 2011 at 9:38 AM, dg damaya...@bitscrape.com wrote: I have developed a GWT application which connects to a MySQL database

Re: How to call existing javascript functions (without arguments) in GWT?

2011-03-17 Thread Thai Dang Vu
It's easy for the 1st question: addSymbolButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { test(); } }); private native void test() /*-{ $wnd.testFunction(); }-*/; where testFunction is the existing javascript function. I

Re: Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread dg
Thanks for the reply. If my web hosting service does not provide Java application server like TomCat, should I be able to install one in the subdomain in the web hosting site or should the web hosting service owners do it? On Mar 17, 3:38 pm, Alex Nederlof a...@nederlof.com wrote: Hi, You need

Re: How to call existing javascript functions (without arguments) in GWT?

2011-03-17 Thread federico
on your EntryPoint: public void onModuleLoad() { .. test(); } private native void test() /*-{ $wnd.testFunction(); }-*/; or if you want extra time defer it Scheduler.get().scheduleDeferred(new Command() { public void execute() { test();

Proxy POST

2011-03-17 Thread julio
Hi, I'm using GWT 2.1.1 and in my app there is a RequestBuilder/POST to a different url respect to the client (basically client in dev mode against 8080 localhost server). The POST fails cos of the XSS from Firefox. I followed suggestions here:

Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Johannes Stein
But if i have two seperate modules each client will get a different sessionId from the server (rpc-call), because the servers interprets each module as a single client!? On 16 Mrz., 20:00, Johannes Stein johannes.st...@googlemail.com wrote: No ideas? On 16 Mrz., 18:58, Johannes Stein

Re: MySQL server in development mode

2011-03-17 Thread Erel Segal
OK, the problem with Tomcat was solved when I deleted mysql-connector- java-5.1.15-bin.jar from WEB-INF/lib under webapps. It probably should be only in the Tomcat lib. Very strange, as it means I cannot just copy my project and paste it into webapps. On 17 מרץ, 09:42, Erel Segal

Re: MySQL server in development mode

2011-03-17 Thread Juan Pablo Gardella
Try this: 1) Verify if you put the mysql-connector-java-5.1.15-bin.jar in correct place. See http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html. 2) What version of mysql you use? Is the driver for this version? If yes perhaps the jar is corrupt. Try download it again 3) Delete

Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Uemit
It depends how session management is done on the client. If you use cookies to store the session id it should make no difference as long as you communicate with the same domain (Cookies are domain specific). If you open gmail in two tabs in your browser you won't have to authenticate twice

Re: RequestFactory: return persisted ID in proxy after successful persist()

2011-03-17 Thread Jake Wharton
Is this possible using the editors as well? When you flush the driver you get a RequestContext whose fire() only accepts a ReceiverVoid. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Master-Detail View Proxies (GWT 2.2)

2011-03-17 Thread Jerome Thoma
Hi everyone, I am building a typical business application that manipulates database tables. Most screens of the application manage one datatype with two different views: - a master view that shows all records of a give type as rows in a table - a detail view that shows all fields for a given

Re: How to extend gwt designer

2011-03-17 Thread Eric Clayberg
The core of GWT Designer is an Eclipse open source project called WindowBuilder. Source for WindowBuilder is available at Eclipse.org, if you want to look at any of the extension points in detail. You should also look at the following two PDF files in the docs...

Re: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a required module?)

2011-03-17 Thread Khanh Dao Minh
Dear Dg, AFAIK, GWT Maps API now work only with GWT 2.1, not 2.2, since some abstract classes now changed to interfaces. However, if you want GWT 2.2, you can: - Re-compile the GWT Maps API from source code: http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource - Rewrite bytecode

Re: Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread Khanh Dao Minh
I think, first, you need to deploy your app to the web container (maybe Tomcat, Jetty, ...) on the hosting server, double check the database parameter (url, port, database name, user, password). Then, check the permission of the user on MySQL database. If any error, please show the stack trace /

Using Ant 1.7.1 with GWT 2.2 in Eclipse Dev Mode

2011-03-17 Thread Simon
Hello, I want to use Ant 1.7.1 on the server side for some zip tasks. However, if I start the application from within eclipse using the development mode, there is a conflict between the ant library included within the gwt-dev.jar (as it includes ant 1.8.2) and ant 1.7.1 I want to use. If I

Re: Need Help for gwt-rpc mysql database connectivity

2011-03-17 Thread Khanh Dao Minh
It sound you need a SocketPermission. Try this: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html#SocketPermission Regards, KhanhDM. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

GWT menu item text alignment issue

2011-03-17 Thread maximus
Hi all, Is it possible in GWT to set Menu Item text in two different alignments,what I mean to say is I want my menu item's label to be left justified and its accelerator key to be right justified. i.e, Create Alt+Ctrl+C Edit Shift+E Optimize Ctrl+O

Re: Vertical menu

2011-03-17 Thread Khanh Dao Minh
I think there are two options: - Use Tree instead of MenuBar, or - Extends the MenuBar then make it expand when init Hope this help, KhanhDM. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Johannes Stein
Cookies are fine, but what happens if cookies are disabled? Then two sessions will be created by the server, or not? On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote: It depends how session management is done on the client.  If you use cookies to store the session id it should make no

how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread tanteanni
(this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great) stockwatcher tutorial). I am facing problem on getting server side services to work. on starting my app

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread Jim Douglas
You said: The Implementation uses a jar ... Does that jar file contain only .class files? GWT needs the .java files so it can wave a magic wand over them and translate them to JavaScript. On Mar 17, 8:03 am, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread Khanh Dao Minh
Maybe problem at GWZmenu.java:39 Could you post this code here? -- 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

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread David Chandler
Looks like the Java source for AgsService is not available, but it should be available by default since it's under the client package. However, if you've put a source path in your gwt.xml to make another package hierarchy available to the GWT compiler, you have to explicitly include client , as

Re: Proxy POST

2011-03-17 Thread julio
basically what I have done is adding: gwt-dev.jar in the client classpath, and adding at the file web.xml: servlet servlet-nameJettyProxy/servlet-name servlet-classorg.mortbay.servlet.ProxyServlet$Transparent/ servlet-class init-param !-- This points to the actual server where

Re: MySQL server in development mode

2011-03-17 Thread Erel Segal
I did 3 and it worked. But I still wonder, do I really have to manually delete this jar whenever I upload my application to Tomcat? Or is there a better way? On 17 מרץ, 13:35, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Try this: 1) Verify if you put the

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread tanteanni
I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real problem: the 3rd party class the server side uses jpa2 as mentioned before. and its code now throws no persistence unit

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread tanteanni
I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real problem: the 3rd party class the server side uses jpa2 as mentioned before. and its code now throws no persistence unit

have to invoke eclipse/project/clean for modified server classes

2011-03-17 Thread cri
I've got a gwt project that accesses a Spring server back end. The project was initially created using the gwt-maven-plugin maven archetype. Every time I change a back end Spring service class, my eclipse project doesn't pick up the changes unless I invoke Eclipse/ Project/clean on my project.

Re: Javascript exception when deleting the last node in a CellTree

2011-03-17 Thread rujan
Hi, doesn't anybody encounter the same problem ? I don't know if I misuse the framework or if there's a bug in the CellTree composite. Thank you for all help you can give me. On 11 mar, 11:41, rujan rudy.jan...@gmail.com wrote: I found another problem which finally seems to have the same cause

Syntax error, insert enum Identifier to complete EnumHeaderName when using ClientBundle

2011-03-17 Thread David E.
I'm trying to use ClientBundle and I'm getting the following two errors in Eclipse with the following class. What am I doing wrong? Thanks, David Syntax error, insert enum Identifier to complete EnumHeaderName ImageResources.java FormsUI_v2/src/com/dve/client/imagebundle line 9 Java

Re: Syntax error, insert enum Identifier to complete EnumHeaderName when using ClientBundle

2011-03-17 Thread David E.
Got it, 1. delete the semicolon at the end of @Source 2. make sure image is on classpath Thanks, On Mar 17, 1:10 pm, David E. dve1...@gmail.com wrote: I'm trying to use ClientBundle and I'm getting the following two errors in Eclipse with the following class. What am I doing wrong?

Where placeholders in uibinder?

2011-03-17 Thread ss.require
Let's assume I need to paste some piece of html in my page: e.g. div Hello, MAX /div Where MAX is a parameter. If I would do that in the code I would make the next function: public String getHtmlTemplate(String parameter){ return div Hello, + parameter + /div } But If I would

Re: Javascript exception when deleting the last node in a CellTree

2011-03-17 Thread rujan
Hi, doesn't anybody encounter the same problem ? I don't know if I misuse the framework or if there's a bug in the CellTree composite. Thank you for all help you can give me. On 11 mar, 11:41, rujan rudy.jan...@gmail.com wrote: I found another problem which finally seems to have the same cause

Re: have to invoke eclipse/project/clean for modified server classes

2011-03-17 Thread Juan Pablo Gardella
Are you open your project after run mvn eclipse:eclipse? Probably your pom.xml is bad configurate. I use this plugin and work well with eclipse 2011/3/17 cri chuck.irvine...@gmail.com I've got a gwt project that accesses a Spring server back end. The project was initially created using the

CellTable Filter

2011-03-17 Thread gadaleta.marco
Hello everyone, I was wondering if there is the possibility to apply a filter on a celltable or celllist. If so, could you tell me how? Txh, Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Where placeholders in uibinder?

2011-03-17 Thread Hilco Wijbenga
On 17 March 2011 17:20, ss.require ss.requ...@gmail.com wrote: Let's assume I need to paste some piece of html in my page: e.g. div    Hello, MAX  /div Where MAX is a parameter. If I would do that in the code I would make the next function: public String getHtmlTemplate(String parameter){

Re: Where placeholders in uibinder?

2011-03-17 Thread Thomas Broyer
UiBinder is not a templating tool, it's a UI building tool. If you want templating, use Messages or SafeHtmlTemplates. In the case of your Hello MAX, assuming its part of a bigger UiBinder template, I'd rather put the ui:field on the div and use setInnerHtml or setInnerText on it, building the

Re: Where placeholders in uibinder?

2011-03-17 Thread ss.require
UiBinder is not a templating tool, it's a UI building tool. templating, use Messages or SafeHtmlTemplates. I understand that clearly. In other words, Why does GWT not provide a templating tool.? For example, like JSP. In general, a templating tool is much more clever and simple solution than UI

Re: Where placeholders in uibinder?

2011-03-17 Thread Thomas Broyer
On Thursday, March 17, 2011 7:51:47 PM UTC+1, ss.require wrote: UiBinder is not a templating tool, it's a UI building tool. templating, use Messages or SafeHtmlTemplates. I understand that clearly. In other words, Why does GWT not provide a templating tool.? I don't have the answer,

GWT Error

2011-03-17 Thread but43r
Ok. So I'm trying to create login page for my Application from this article http://checkappointments.com/gwt/ All is good until I click login button. I get this error: Error 404 html head meta http-equiv=Content-Type content=text/ html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head

Re: GWT Error

2011-03-17 Thread David Chandler
Check that the URL in your @RemoteServiceRelativePath annotation (ria2/calendar) matches the URL you've mapped in web.xml (/riaca2/calendar). /dmc On Thu, Mar 17, 2011 at 11:28 AM, but43r gvug...@gmail.com wrote: Ok. So I'm trying to create login page for my Application from this article

Re: GWT Error

2011-03-17 Thread Juan Pablo Gardella
See: Problem accessing /ria2/calendar. And in your web.xml have this:/riaca2/calendar Juan 2011/3/17 but43r gvug...@gmail.com Ok. So I'm trying to create login page for my Application from this article http://checkappointments.com/gwt/ All is good until I click login button. I get this

Re: MySQL server in development mode

2011-03-17 Thread Juan Pablo Gardella
I use maven. So I put this jar as scope provided that meaning that this jar is provided for the environment where I put the WAR. Now, you doesn't need the jar to compile because you use it at runtime, so you can compile your application without the jar in your classpath. Then delete this jar in

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread Juan Pablo Gardella
Put the persistence.xml in your source in the correct place. Juan 2011/3/17 tanteanni tantea...@hotmail.com I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real

Extending a ClientBundle and using replace-with in gxt.xml

2011-03-17 Thread Chris Martin
I'd like to change the default css for CellTable in my entire application. I have a subtype defined like so: public interface MyCellTableResources extends CellTable.Resources { interface CellTableStyle extends CellTable.Style {} @Source({celltable.css, CellTable.Style.DEFAULT_CSS})

How to pass objects between modules, in a RPC based service

2011-03-17 Thread Ashish Sinha
Hi all, I am working on a project, in which RPC based services are implemented using GWT. This project is to be deployed on GAE. The first module contains UI for login. After a successful login, a session id is created and send back to this module (login module). Immediately after this, I

Re: Programmatic manipulation of the style elements

2011-03-17 Thread Simon M
I used the # 3 : - arrow.getElement().getStyle().setTop(y, Style.Unit.PCT); Thank you for your 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

Unit Testing RequestFactory with ServiceLocator

2011-03-17 Thread Kathiravan Tamilvanan
We have used EntityLocator and ServiceLocator with our Application's RequestFactory. Now that we want to unit test the implementation, What is the best way to unit test ? I have looked at RequestFactoryMagic which creates InProcessRequestFactory but not quiet sure how that applies to a

math performance

2011-03-17 Thread csillag
Hi there, We are developing an application which neds to do some heavy calculations on the client side. We are using the Java double type, standard arithmetic operations, plus sqrt and power from math. When I run the app on dev mode, the code runs OK, but when I actually deploy it, the time

Re: math performance

2011-03-17 Thread joe kolba
Why do you have to do it on the client side? why not just do all of your processing on the server side and send the client the results. Not every client is going to have a machine that can do heavy calculations and they might actually be using IE On Thu, Mar 17, 2011 at 9:04 PM, csillag

Re: math performance

2011-03-17 Thread csillag
On márc. 18, 02:25, joe kolba joekolb...@gmail.com wrote: Why do you have to do it on the client side?  why not just do all of your processing on the server side and send the client the results. Because I do not want to kill the server; the clients can take care of themselves.  Not every client

Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Juan Pablo Gardella
No. SessionId is create. 2011/3/17 Johannes Stein johannes.st...@googlemail.com Cookies are fine, but what happens if cookies are disabled? Then two sessions will be created by the server, or not? On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote: It depends how session management is

Re: GWT menu item text alignment issue

2011-03-17 Thread maximus
On Mar 17, 4:13 pm, maximus mohitchilk...@gmail.com wrote: Hi all, Is it possible in GWT to set Menu Item text in two different alignments,what I mean to say is I want my menu item's label to be left justified and its accelerator key to be right justified. i.e,       Create    

RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-17 Thread Kathiravan Tamilvanan
In our application we have implemented the following 1. User security by extending the RequestFactoryServlet and *overriding the doPost* method for validating the user session. 2. If the user is logged in the request is proceeded further 3. If the user is not logged in Error is

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

2011-03-17 Thread codesite-noreply
Comment by kujans...@googlemail.com: for every one who cares http://code.google.com/p/google-web-toolkit/issues/detail?id=2806#c11 Comment 11 by project member j...@google.com, Jan 12, 2011 The subject of this issue has drifted somewhat, but work derived from RpcAuth has been committed

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread rice
http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java File dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java (right):

[gwt-contrib] non fatal js exception escapes in IE9 devmode. (issue1387802)

2011-03-17 Thread fabiomfv
Reviewers: jlabanca, Description: non fatal js exception escapes in IE9 devmode. http://code.google.com/p/google-web-toolkit/issues/detail?id=6135 Please review this at http://gwt-code-reviews.appspot.com/1387802/ Affected files: M user/src/com/google/gwt/core/client/impl/Impl.java M

[gwt-contrib] Re: non fatal js exception escapes in IE9 devmode. (issue1387802)

2011-03-17 Thread jlabanca
LGTM - but I'm curious why we need to declare a variable to point to the function that we immediately use. http://gwt-code-reviews.appspot.com/1387802/diff/1/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java File user/src/com/google/gwt/user/client/impl/DOMImplStandard.java (right):

[gwt-contrib] Re: non fatal js exception escapes in IE9 devmode. (issue1387802)

2011-03-17 Thread fabiomfv
http://gwt-code-reviews.appspot.com/1387802/diff/1/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java File user/src/com/google/gwt/user/client/impl/DOMImplStandard.java (right):

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java File dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java (right):

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread rice
http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java File dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java (right):

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java File dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java (right):

[gwt-contrib] Devmode support for Firefox = 4b12. (issue1383803)

2011-03-17 Thread fmalita
Reviewers: conroy, jat, fabiomfv, Description: Devmode support for Firefox = 4b12. Mozilla commit http://hg.mozilla.org/releases/mozilla-2.0/rev/4b56bfdf61a7 changed the JSAPI property setter method signature. This adds devmode support for the updated API. Please review this at

[gwt-contrib] Re: Devmode support for Firefox = 4b12. (issue1383803)

2011-03-17 Thread conroy
On 2011/03/17 20:25:36, fmalita wrote: LGTM++ http://gwt-code-reviews.appspot.com/1383803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] [google-web-toolkit] r9861 committed - non fatal js exception escapes in IE9 devmode....

2011-03-17 Thread codesite-noreply
Revision: 9861 Author: fabio...@google.com Date: Thu Mar 17 12:28:03 2011 Log: non fatal js exception escapes in IE9 devmode. http://code.google.com/p/google-web-toolkit/issues/detail?id=6135 Review at http://gwt-code-reviews.appspot.com/1387802 Review by: jlaba...@google.com