Re: CSS
Use percent and not px, perhaps with this you can fix it. 2011/8/29 Sandeep D sandeep.dattar...@gmail.com Hi, I'm doing a web project using JSP-TOMCAT-DB2. And i have applied CSS stylesheet for every page. My pc's screen resolution is 1360 x 768 px. But when i run the same project in other computers(less resolution), my pages get widened. Please help me so that my CSS should fit for every resolution. Thanks, Sandeep -- 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: GWT 2.3
This is out of gwt. Check in your server how do this. 2011/8/29 Markus ad...@thandaro.com Hello! I developed for years with struts and tomcat, but I wanted to start with gwt. I want to use GWT only with JDBC and not with GAE. Can anybody explain me how I configure a Connection Pool like in tomcat with JNDI? I Tomcat I just need to configure the Context Context Resource name=kunde auth=Container type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/XXX username=XXX password=XXX maxActive=20 maxIdle=10 maxWait=-1/ /Context Thanks for 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. -- 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: RPC Serialize: set filter at runtime to select fields to serialize
Do you see gilead and transport annotationshttp://noon.gilead.free.fr/gilead/index.php?page=transport-annotations? For me is intrusive but perhaps its help to you. I like use filters instead, you can see in this samplehttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home . Juan 2011/8/28 saul saulsim...@gmail.com I am trying to find a way to control, during runtime, what members of an object are RPC serialized at the server. For example, say we have a POJO and an server side access control filter that only grants access to certain fileds of the object. Resolving the access rights of the request may require us to hide certain fields' values from the response differently for different requests. One may suggest to simply set the fileds that are not accessible to null before returning the object, but this wil pose issue with persistant, cached or immutable POJOs. Further, a feature such as lazy-loading in hibernate becomes difficult to manage without the using DTO. Using DTO or cloning an object is possible but inefficient in the programming model. Is there a way that at runtime, one can set a serialization filter such that any fileds that are defined in the filter will not be accessed during serialization (and hence will not trigger a lazy load) on the server an instead will be serialized as nulls? The particular flow is something like: RPC client request - deserialize on server - request access control logic - request data filter - app logic - response access control logic - response data filter - serialize response -- 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: Minor but frustrating roadblocks
I'm don't understand well what do you need 2011/8/27 Russ Abbott russ.abb...@gmail.com I keep getting hung up on minor but frustrating road blocks. I'm trying to run the History examplehttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html. My problem is that I can't figure out how to construct a web app into which to copy the example. Is there some place that tells me all the pieces one needs -- and how they have to be linked together -- to run an application? In this case I created a Web App (in eclipse) and turned off the part that generated code. I created a war/web.xml file and included a welcome-file-list that listed BrowserHistoryExample.html as the Welcome page. I created a war/BrowserHistoryExample.html page. When I try to run it I got an error message saying that I have not specified the module to be run. I then created a historyExample/BrowserHistoryExample.gwt.xml file that declared a module with rename-to set to 'browserHistoryExample' and the entry point class set to 'historyExample.BrowserHistoryExample'. (I had declared the package to be historyExample when I created the project.) Now when I try to run it, it attempts to open a completely different page -- another application I had been working on. This happens even though I had deleted all the Run Configurations for both BrowserHistoryExample and the other application. This is the URL it generates to double click on: http://127.0.0.1:/BrowserHistoryExample.html?gwt.codesvr=127.0.0.1:9997 . I also cleared the cache of the browser. I have no idea where to look to see why it is attempting to open the wrong page. What I would really like is a page that tells me which files are necessary (the two xml files, the entry point file, and the html file, plus any others that are needed) what those files must contain, how the names are necessary to run, which names are necessary to match up, and all the places the system looks when it makes decisions about how to launch the application. Thanks. *-- Russ* -- 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: Need help MySQL connection with GWT 2.3 RPC
http://stackoverflow.com/questions/6773186/java-sql-sqlexception-url-is-not-in-the-correct-format 2011/8/25 Sed jaballah.sed...@gmail.com Hi All, Basically I'm developing a website which will display the data requested from a database (MySQL in my case). My problem is that I have an exception (see exception bellow) when I run my application in Development mode (the GWT built-in server), and what is strange is that I can execute my code in Java mode (without the built-in server, the main method). I have read many message on the forum and already checked many things like : - mysql jdbc driver is in the WAR libs (WEB-INF\lib\mysql-connector- java-5.1.17-bin.jar) and also in the eclipse classpath Look at the example : package com.company.pandorabox.server; import java.sql.DriverManager; import java.sql.SQLException; import java.util.ArrayList; import com.company.pandorabox.client.Person; public class DBConnection { public static java.sql.Connection con = null; public static void creatConn() { if(con == null){ try{ Class.forName(com.mysql.jdbc.Driver); con = DriverManager.getConnection(jdbc:mysql://localhost:3306/ pandorabox,root,root); // = error raised her in built-in server run mode } catch(Exception e){ e.printStackTrace(); } } } public static void main(String [] args) throws SQLException{// = this code works in java execution mode ArrayList Person personnes = DBRequests.getAllPersons(); for (Person person : personnes) { System.out.println(First name : +person.getFirstname()+ | Last name : +person.getLastname()); } } } Exception : Connection received from 127.0.0.1:59809 [WARN] No file found for: /favicon.ico java.sql.SQLException: URL is not in the correct format: jdbc:mysql:// localhost:3306/pandorabox at com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(Exceptions.java: 103) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.company.pandorabox.server.DBConnection.creatConn(DBConnection.java: 23) at com.company.pandorabox.server.DBRequests.getAllPersons(DBRequests.java: 16) at com.company.pandorabox.server.PersonServiceImpl.getPersons(PersonServiceImpl.java: 28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157)
Re: Re : Re: Need help MySQL connection with GWT 2.3 RPC
You can't connect to mysqlhttp://stackoverflow.com/questions/1651629/can-i-use-a-mysql-database-with-an-app-engine-applicationif you will deploy in app engine. If you aren't do a GAE app, you must remove GAE facet (if you use eclipse) to the project. Right click in the project, Properties - Google - App engine and uncheck the option Then you'll can connect to mysql. Juan 2011/8/25 Sed jaballah.sed...@gmail.com Hi, The article says that we could try to remove the app engine jar from the project, which jar I must remove exactly ? and from where ? Thx -- 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/-/5A48jw4XszQJ. 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: Re : Re: Need help MySQL connection with GWT 2.3 RPC
Hi Sed, If you wanna make a GAE app you can't use mysql. If you wanna do a GWT application that don't run on GAE, remove GAE facet in your project (if you use eclipse). Right click in the project, Google -App Engine and uncheck *Use Google App Engine* * * *Juan * 2011/8/25 Sed jaballah.sed...@gmail.com Any one had this problem before? -- 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/-/I4QR492qr_kJ. 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: Radio Button in celltablet
See http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/cell/client/CheckboxCell.java?r=8562 . It use as: public abstract class CheckBoxColumnT extends ColumnT, Boolean { public CheckBoxColumn() { // Ver http://code.google.com/p/google-web-toolkit/issues/detail?id=5964 super(new CheckboxCell(true, true)); } I think you must do a RarioBoxCell (guide with the source of CheckboxCell) and then use as I do CheckBoxColumn. Juan 2011/8/18 jose felix estevez josefel...@gmail.com buenas noches, quisiera saber como crear radiobutton dentro de un celltablet -- Jose F.Estevez H. T.S.U. en Analisis y Diseño de Sistemas Consultor Staff I Tecnology Consulting Solutions - TCS -- 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: gwt 2.3 + spring 2 + maven 2
See https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home. 2011/8/17 Daniel Guggi daniel.gu...@gmail.com @spring you may have a look here (requestfactory + spring3 integration): http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/ here an example pom (i use maven 3) ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; !-- POM file generated with GWT webAppCreator -- modelVersion4.0.0/modelVersion groupIdgwtapp/groupId artifactIdGwtApp/artifactId packagingwar/packaging version1.0-SNAPSHOT/version namegwtapp.GwtApp/name properties !-- Convenience property to set the GWT version -- gwtVersion2.3.0/gwtVersion !-- GWT needs at least java 1.5 -- maven.compiler.source1.6/maven.compiler.source maven.compiler.target1.6/maven.compiler.target /properties dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version scopeprovided/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version scopetest/scope /dependency dependency groupIdcom.google.gwt.inject/groupId artifactIdgin/artifactId version1.5.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version scopeprovided/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version classifiersources/classifier scopeprovided/scope /dependency /dependencies build !-- Generate compiled stuff in the folder used for developing mode -- outputDirectorytarget/www/WEB-INF/classes/outputDirectory plugins !-- GWT Maven Plugin -- plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.2.0/version dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version /dependency /dependencies !-- JS is only needed in the package phase, this speeds up testing -- executions execution phaseprepare-package/phase goals goalcompile/goal /goals /execution /executions !-- Plugin configuration. There are many available options, see gwt-maven-plugin documentation at codehaus.org -- configuration !-- URL that should be automatically opened in the GWT shell (gwt:run). -- runTargetGwtApp.html/runTarget !-- Location of the develop-mode web application structure (gwt:run). -- hostedWebapptarget/www/hostedWebapp !-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -- compileReporttrue/compileReport /configuration /plugin !-- Add source folders to test classpath in order to run gwt-tests as normal junit-tests -- plugin artifactIdmaven-surefire-plugin/artifactId version2.5/version configuration
Re: gwt 2.3 + spring 2 + maven 2
Nop. It's works in dev mode inside eclipse. I don't use mvn jetty:run so don't make run in this manner. Yes is slow in dev mode. If you use Windows with IE is the fastest browser in dev mode. Juan 2011/8/18 Giuseppe La Scaleia giuseppe.lascal...@geosdi.org With mvn jetty:run doesn't work. In hosted mode is very slow. Regards Giuseppe 2011/8/18 Juan Pablo Gardella gardellajuanpa...@gmail.com See https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home. 2011/8/17 Daniel Guggi daniel.gu...@gmail.com @spring you may have a look here (requestfactory + spring3 integration): http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/ here an example pom (i use maven 3) ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; !-- POM file generated with GWT webAppCreator -- modelVersion4.0.0/modelVersion groupIdgwtapp/groupId artifactIdGwtApp/artifactId packagingwar/packaging version1.0-SNAPSHOT/version namegwtapp.GwtApp/name properties !-- Convenience property to set the GWT version -- gwtVersion2.3.0/gwtVersion !-- GWT needs at least java 1.5 -- maven.compiler.source1.6/maven.compiler.source maven.compiler.target1.6/maven.compiler.target /properties dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version scopeprovided/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version scopetest/scope /dependency dependency groupIdcom.google.gwt.inject/groupId artifactIdgin/artifactId version1.5.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version scopeprovided/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version classifiersources/classifier scopeprovided/scope /dependency /dependencies build !-- Generate compiled stuff in the folder used for developing mode -- outputDirectorytarget/www/WEB-INF/classes/outputDirectory plugins !-- GWT Maven Plugin -- plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.2.0/version dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version /dependency /dependencies !-- JS is only needed in the package phase, this speeds up testing -- executions execution phaseprepare-package/phase goals goalcompile/goal /goals /execution /executions !-- Plugin configuration. There are many available options, see gwt-maven-plugin documentation at codehaus.org -- configuration !-- URL that should be automatically opened in the GWT shell (gwt:run). -- runTargetGwtApp.html/runTarget !-- Location of the develop-mode web application structure (gwt:run). -- hostedWebapptarget/www/hostedWebapp !-- Ask GWT to create the Story of Your Compile (SOYC
Re: gwt 2.3 + spring 2 + maven 2
Nop. It's works in dev mode inside eclipse. I don't use mvn jetty:run so don't make run in this manner. Yes is slow in dev mode. If you use Windows with IE is the fastest browser in dev mode. Juan 2011/8/18 Giuseppe La Scaleia giuseppe.lascal...@geosdi.org With mvn jetty:run doesn't work. In hosted mode is very slow. Regards Giuseppe 2011/8/18 Juan Pablo Gardella gardellajuanpa...@gmail.com See https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home. 2011/8/17 Daniel Guggi daniel.gu...@gmail.com @spring you may have a look here (requestfactory + spring3 integration): http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/ here an example pom (i use maven 3) ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; !-- POM file generated with GWT webAppCreator -- modelVersion4.0.0/modelVersion groupIdgwtapp/groupId artifactIdGwtApp/artifactId packagingwar/packaging version1.0-SNAPSHOT/version namegwtapp.GwtApp/name properties !-- Convenience property to set the GWT version -- gwtVersion2.3.0/gwtVersion !-- GWT needs at least java 1.5 -- maven.compiler.source1.6/maven.compiler.source maven.compiler.target1.6/maven.compiler.target /properties dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version scopeprovided/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version scopetest/scope /dependency dependency groupIdcom.google.gwt.inject/groupId artifactIdgin/artifactId version1.5.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version scopeprovided/scope /dependency dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version classifiersources/classifier scopeprovided/scope /dependency /dependencies build !-- Generate compiled stuff in the folder used for developing mode -- outputDirectorytarget/www/WEB-INF/classes/outputDirectory plugins !-- GWT Maven Plugin -- plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.2.0/version dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwtVersion}/version /dependency /dependencies !-- JS is only needed in the package phase, this speeds up testing -- executions execution phaseprepare-package/phase goals goalcompile/goal /goals /execution /executions !-- Plugin configuration. There are many available options, see gwt-maven-plugin documentation at codehaus.org -- configuration !-- URL that should be automatically opened in the GWT shell (gwt:run). -- runTargetGwtApp.html/runTarget !-- Location of the develop-mode web application structure (gwt:run). -- hostedWebapptarget/www/hostedWebapp !-- Ask GWT to create the Story of Your Compile (SOYC
Re: [WARN] In order to produce smaller client-side code, 'Object' is not allowed; consider using a more specific type
It's a WARN no an error. You can safely ignore it. 2011/8/18 David lujup...@gmail.com When I upgrade GWT version from 1.4.60 to 1.5.3 in my project, I run at hosted mode, I found many errors like below: [WARN] In order to produce smaller client-side code, 'Object' is not allowed; consider using a more specific type Although I can see the pages at hosted mode, but no data can't be retrieved from server, I think the error above results in it. please note all works fine in web mode. Anyone can help me? thanks in advance. -- 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/-/dRy1nVVulPgJ. 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: Debug in client side
Start the app and then add breakpoints. I have no problem for debug client side classes in dev mode. What's gwt version are you use? 2011/8/18 Marko Borges markoborge...@gmail.com Hello! I am getting crazy with this! How can I debug the client side of an application. I am using Eclipse in hosted mode and I use breakpoints in both sides but only works for server side. How can I do the same in client side? Thankful for attention, Mark -- 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: RPC design question
I recommend apply Command Pattern. So you'll have only one servlet listen rpc request. So there you can perform some operations around any rpc request. PD: Check gwt-dispatch http://code.google.com/p/gwt-dispatch/ and gwt app architectures best practiceshttp://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf page 20 2011/8/18 George Agiasoglou george.agiasog...@newsint.co.uk Hi there, I have to run an rpc call before any other rpc call. So far I have managed to centralize Rpc to handle showing loading widgets. What is your suggestion? Thanks, George -- 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/-/l3BMvwEcIC0J. 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: Best way to prevent dual login in gwt.
See apache shiro or spring security. You must manage authentication and authorization in server side 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com Some one can give me a idea of how to manage this? i dont want let users log in in my GWT app (pure GWT dom manipulation) in two places at the same time, including the same browser (different tabs) any help be apreciated -- 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: Best way to prevent dual login in gwt.
You must check every request with a filter, and in the case the request is not valid, show the log. In meanwhile in client side don't check anithing 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com We use our own security implementation (implement shiro or spring will delay our development), i just want a idea of how to implement this whit GWT only, no external fw, a simple way. I was thinking in Timer and check every some time if the USER - SESSION ID are correct but isn't the best way... imagine 1,000 users requesting the server every X time 2011/8/17 Juan Pablo Gardella gardellajuanpa...@gmail.com See apache shiro or spring security. You must manage authentication and authorization in server side 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com Some one can give me a idea of how to manage this? i dont want let users log in in my GWT app (pure GWT dom manipulation) in two places at the same time, including the same browser (different tabs) any help be apreciated -- 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. -- 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: Active GWT websites/blogs/tutorials
Thanks for share! 2011/8/16 Drew Spencer slugmand...@gmail.com Hey all, I was thinking it would be good if we created a post with any useful resources all in one place. I keep finding little titbits online but the sites rarely seem to be active. If people could post any useful stuff here we can build it into a useful resource. Here are a few to start us off: - http://google.wikia.com/wiki/Google_Web_Toolkit - http://turbomanage.wordpress.com/ - http://www.fishbonecloud.com/ - http://borglin.net/gwt-project/ - http://www.bright-creations.com/category/blog/ - http://tbroyer.posterous.com/ For me, a good rule is do I want to add this to my RSS reader? - If the last post was in 2010 then probably not. Cheers all, Drew -- 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/-/R4FO4YFxR3AJ. 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.
Spanish documentation is obsolete
At now, in home page of spanish gwt home said: Google Web Toolkit 1.7 ya está disponible¡Nuevo! * * Any news about update this page? -- 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 do user simple user authentication and provide a different module for different user types?
You can see Spring Security or Apache Shiro. This frameworks are easy and mature. 2011/8/16 Sérgio Miguel Neves Lopes knitter...@gmail.com Hi, I'm struggling with a way to provide authentication in an application I'm developing. I've been trying to get basic user authentication in place but I'm having doubts on how to properly show the users a login page, how to pass around an authorization token (sessions?) or how to give my users the correct module based on their role. I have two user roles, this is a simple application that will manage some car information that a mechanic will fill and that the car's owner can check online. The bulk of the application is of interest only to the mechanic, the owner just checks a few listing screens. After reading this page: htp:// code.google.com/webtoolkit/articles/dynamic_host_page.html, I though about creating a servlet that logs the user in and shows the correct module (car owner/car mechanic) based on the user's credentials (username/password). But I'm completely at loss on how to do this. How can I make the servlet for authentication be the default servlet, confirm that the user is authenticated or needs to login and than send that information to be used by GWT? I've mapped my authentication servlet to respond to the url '/', it also writes the HTML with the correct js files for the modules I need but I'm not seeing a way to send the login info to GWT. Any docs on how to achieve this? Regards, Sérgio Lopes -- https://www.plesform.com - Gestão de formação simples e eficaz. -- 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: Extend GWT-RPC protocol to support AMF3 protocol
Are you look gwt4air? 2011/8/16 Don Rudo carlosalbert...@gmail.com Hello I'm looking for a way to extend the GWT-RPC protocol in order to make the RPC service able to be used from more products (more specific flex and flash products). The intention is to be able to use GWT RPC for applications using the Action Message Format (AMF 3) which specification is open source and according to this benchmarks ( http://www.jamesward.com/2007/04/30/ajax-and-flex-data-loading-benchmarks/ ) it's a very efficient RPC protocol. Best regards, Carlos. -- 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: problem
Simple add jsr303 api and implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation-of-jsr-303-bean-validation-availableto the classpath. 2011/8/15 jose felix estevez josefel...@gmail.com I just migrated to version 2.3 and when I'm creating a Panel I get the following error: ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/EditorDriver.java'. ERROR: Line 20: The import javax.validation.ConstraintViolation cannot be resolved. ERROR: Line 97: ConstraintViolation cannot be resolved to a type. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/Configuration.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'. ERROR: Errors in 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'. DEBUG: Rebinding com.google.gwt.core.client.impl.SchedulerImpl. ERROR: Line 28: Name clash: The method setConstraintViolations(IterableConstraintViolation?) of type BaseEditorDriverT,E has the same erasure as setConstraintViolations(IterableConstraintViolation?) of type EditorDriverT but does not override it. ERROR: Line 31: The import javax.validation.ConstraintViolation cannot be resolved. ERROR: Line 67: ConstraintViolation cannot be resolved to a type. ERROR: Line 25: The import javax.validation.ConstraintViolation cannot be resolved. ERROR: Line 40: ConstraintViolation cannot be resolved to a type. ERROR: Line 43: ConstraintViolation cannot be resolved to a type. ERROR: Line 44: Missing code implementation in the compiler. ERROR: Line 49: ConstraintViolation cannot be resolved to a type. ERROR: Line 49: Missing code implementation in the compiler. ERROR: Line 70: ConstraintViolation cannot be resolved to a type. ERROR: Line 72: ConstraintViolation cannot be resolved to a type. ERROR: Line 73: ConstraintViolation? cannot be resolved to a type. ERROR: Line 77: ConstraintViolationcapture#2-of ? cannot be resolved to a type. ERROR: Line 81: ConstraintViolationcapture#3-of ? cannot be resolved to a type. ERROR: Line 89: ConstraintViolationcapture#4-of ? cannot be resolved to a type. ERROR: Line 93: ConstraintViolationcapture#5-of ? cannot be resolved to a type. ERROR: Line 98: ConstraintViolation cannot be resolved to a type. ERROR: Line 26: The import javax.validation.ConstraintViolation cannot be resolved. ERROR: Line 35: The type MockSimpleBeanEditorDriverT,E must implement the inherited abstract method EditorDriverT.setConstraintViolations(IterableConstraintViolation?). ERROR: Line 107: Name clash: The method setConstraintViolations(IterableConstraintViolation?) of type MockSimpleBeanEditorDriverT,E has the same erasure as setConstraintViolations(IterableConstraintViolation?) of type EditorDriverT but does not override it. ERROR: Line 108: ConstraintViolation cannot be resolved to a type. ERROR: Line 93: TraversableResolver cannot be resolved to a type. ERROR: Line 105: ConstraintValidatorFactory cannot be resolved to a type. ERROR: Line 182: TraversableResolver cannot be resolved to a type. ERROR: Line 182: No source code is available for type TraversableResolver; did you forget to inherit a required module?. ERROR: Line 194: ConstraintValidatorFactory cannot be resolved to a type. ERROR: Line 194: No source code is available for type ConstraintValidatorFactory; did you forget to inherit a required module?. ERROR: Line 202: ValidatorFactory cannot be resolved to a type. ERROR: Line 202: No source code is available for type ValidatorFactory; did you forget to inherit a required module?.
Re: Widget Calendario
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html 2011/8/12 jose felix estevez josefel...@gmail.com sorry but I have responded in Spanish, in this group. 2011/8/12 Hilario Perez Corona hpcor...@gmail.com Please, use english on this group. -- 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/-/DWodS_-Xr_oJ. 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. -- Jose F.Estevez H. T.S.U. en Analisis y Diseño de Sistemas Consultor Staff I Tecnology Consulting Solutions - TCS -- 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: Strange session/cookies problem
How manage authorization and authentication? 2011/8/11 sunny...@gmail.com sunny...@gmail.com Hi all, I have an application that's been in use for the last 6 months or so and will be going into production 2 months. I've now see two instances of the problem described below and I'm fairly lost on how it could possibly happen. The client first needs to login. When the server authenticates the credentials sent by the client, the server returns a User object which has a subset of the user's properties (a 'light' user object), plus the session ID as retrieved on the server by calling getThreadLocalRequest().getSession().getId(). The server keeps a hashmap of session IDs against a fully populated user object (which includes their permissions properties amongst other things). Whenever a client accesses a GWT-RPC that should be protected, one of the parameters of the RPC is the light user object that the client has received from the server. The server authenticates this by: 1) Using HttpServletRequest.isRequestedSessionIdValid() 2) Comparing the session ID sent by the client (as stored in the light user object) and the one stored by the server's hashmap, and the one sent in the RPC's getThreadLocalRequest().getSession.getId(). Any inconsistency between the three raises an exception. Recently, the second occurrence of a weird error happened: The client has a timer which fires one of these RPCs every 5 seconds to refresh a table. This works really really well - we're using SmartGWT to have a grid that loads new data without the need to flicker or refresh (new rows simply appear, or existing rows update their data every 5 seconds). On this RPC's callback onFailure I just give a generic message with a caught.getMessage() appearing in a popup. I've had two instances reported by two different users on two different computers now (but both Chrome) this page has shown a popup showing my generic error, but the contents of the error is actually an error page from another website. Its almost as though GWT made the RPC call to the wrong server! (the user sent me a screenie, and surely in my popup there's a 403 error from the gov website) This completely blows my mind. Both instances the error was from a different website (one was a horse racing site, one a government site). I haven't been able to confirm yet whether the users were actually on those sites at any stage or whether there were cookies from those sites (also note I do not specifically use the Cookies class, and I can verify in Chrome that the JSESSIONID cookie is set with the correct domain and path). I haven't been able to replicate this either. I'm open to any suggestions on how this could be possible. -- 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: Strange session/cookies problem
I tell you because we have similar issue in the past (not with gwt) and is relate to authentication and authorization mechanism. We do the authentication with a servlet and don't put filters. Both authentication and authorization at now is made by filters. All operations is made by filters in same threads (or not is there are clusters). Sounds a concurrency problem. PD: Check if you can have session fixationhttp://en.wikipedia.org/wiki/Session_fixation when you use sessionId. 2011/8/11 sunny...@gmail.com sunny...@gmail.com Authentication is done once at login. The user credentials are sent to the server using GWT-RPC, and the server authenticates using LDAP. Once authenticated, the user loads the full user object into the hashmap keyed by session IDs. Part of this user object contains a hashmap of permissions allowable by this user (loaded from a database). When a client calls a GWT-RPC, the checked session ID is used to retrieve the user object on the server side, and its hashmap of permissions is checked to see it contains the required permissions for using that GWT-RPC. How does my mechanism of authentication/authorisation affect the scenario I described? On Aug 11, 9:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: How manage authorization and authentication? 2011/8/11 sunny...@gmail.com sunny...@gmail.com Hi all, I have an application that's been in use for the last 6 months or so and will be going into production 2 months. I've now see two instances of the problem described below and I'm fairly lost on how it could possibly happen. The client first needs to login. When the server authenticates the credentials sent by the client, the server returns a User object which has a subset of the user's properties (a 'light' user object), plus the session ID as retrieved on the server by calling getThreadLocalRequest().getSession().getId(). The server keeps a hashmap of session IDs against a fully populated user object (which includes their permissions properties amongst other things). Whenever a client accesses a GWT-RPC that should be protected, one of the parameters of the RPC is the light user object that the client has received from the server. The server authenticates this by: 1) Using HttpServletRequest.isRequestedSessionIdValid() 2) Comparing the session ID sent by the client (as stored in the light user object) and the one stored by the server's hashmap, and the one sent in the RPC's getThreadLocalRequest().getSession.getId(). Any inconsistency between the three raises an exception. Recently, the second occurrence of a weird error happened: The client has a timer which fires one of these RPCs every 5 seconds to refresh a table. This works really really well - we're using SmartGWT to have a grid that loads new data without the need to flicker or refresh (new rows simply appear, or existing rows update their data every 5 seconds). On this RPC's callback onFailure I just give a generic message with a caught.getMessage() appearing in a popup. I've had two instances reported by two different users on two different computers now (but both Chrome) this page has shown a popup showing my generic error, but the contents of the error is actually an error page from another website. Its almost as though GWT made the RPC call to the wrong server! (the user sent me a screenie, and surely in my popup there's a 403 error from the gov website) This completely blows my mind. Both instances the error was from a different website (one was a horse racing site, one a government site). I haven't been able to confirm yet whether the users were actually on those sites at any stage or whether there were cookies from those sites (also note I do not specifically use the Cookies class, and I can verify in Chrome that the JSESSIONID cookie is set with the correct domain and path). I haven't been able to replicate this either. I'm open to any suggestions on how this could be possible. -- 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. -- You received this message because you are subscribed to the Google Groups
Re: GWT Compiler Errors
At first, I think you can't use File classes in GWT (client side). 2011/8/11 Matthias Rauer rauer1...@googlemail.com Hello, I am getting compile errors. Looks like caching or synchronize problems. [java] Caused by: javax.imageio.IIOException: Can't create cache file! [java] at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) [java] at javax.imageio.ImageIO.write(ImageIO.java:1558) [java] ... 35 more [java] Caused by: java.io.FileNotFoundException: Z: \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird) [java] at java.io.RandomAccessFile.open(Native Method) [java] at java.io.RandomAccessFile.init(RandomAccessFile.java: 212) [java] at javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutputStream.java: 73) [java] at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(OutputStreamImageOutputStreamSpi.java: 50) [java] at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393) [java] ... 36 more --- C:\...\build\build.xml:459: IOException in C:\...\build\tmp\web\WEB-INF \config\coreReportInvoiceConfig.xml - java.io.FileNotFoundException:C: \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird) in english: process cannot access file, another process uses this file --- same exception again... but different file [java] Caused by: javax.imageio.IIOException: Can't create cache file! [java] at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) [java] at javax.imageio.ImageIO.write(ImageIO.java:1558) [java] ... 35 more [java] Caused by: java.io.FileNotFoundException: Z: \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird) [java] at java.io.RandomAccessFile.open(Native Method) [java] at java.io.RandomAccessFile.init(RandomAccessFile.java: 212) [java] at javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutputStream.java: 73) [java] at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(OutputStreamImageOutputStreamSpi.java: 50) [java] at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393) [java] ... 36 more --- If I compile again and again, I got different exceptions, like these: I already changed the extra and workDir to an RamDisk, deleted these directories before compiling, Deleted these directories before the build, but got same errors again. I also changed number of workers to 1. Any suggestions? Greetings, Matthias -- 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: GWT RPC NOT working with Tomcat
Are you working with tomcat inside eclipse? 2011/8/11 Henkie iits.hen...@gmail.com My GWT rpc message works well in development mode, but has the following behaviour when deployed in Tomcat: - The call DOES go through to the server_ I can see from the log files and the database insert happens successfully. - But the callback methods in my JavaScript is never executed. It is as if the response message back got stuck or loss. There is NO error message in the Tomcat logs. See below. I've disabled the Windows firewall to make sure it is not that. Double checked the jars deployed. How do I debug this? I'm STUCK - please help. Remember this is working in eclipsenot in Tomcat. I'm using GWT 2.3 and Smart GWT 2.5 - this call is a GWT RPC call - here's the code: @RemoteServiceRelativePath(miscService) public interface MiscService extends RemoteService { UserSessionDto beginUserSession(String token) throws BookAServiceException; } public interface MiscServiceAsync { void beginUserSession(String token, AsyncCallbackUserSessionDto callback); } public class MiscServiceImpl extends RemoteServiceServlet implements MiscService { public UserDetailDto userLogin(String email, String password, String sessionId) throws BookAServiceException { UserDetailDto userDetailDto = null; try { . } catch (Throwable e) { throw new BookAServiceException(e); } return userDetailDto; } } Tomcat logs: Aug 11, 2011 3:25:52 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Aug 11, 2011 3:25:52 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Aug 11, 2011 3:25:52 PM org.apache.coyote.AbstractProtocolHandler init INFO: Initializing ProtocolHandler [http-apr-8080] Aug 11, 2011 3:25:52 PM org.apache.coyote.AbstractProtocolHandler init INFO: Initializing ProtocolHandler [ajp-apr-8009] Aug 11, 2011 3:25:52 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 789 ms Aug 11, 2011 3:25:52 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Aug 11, 2011 3:25:52 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.6 Aug 11, 2011 3:25:52 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive BookAService.war === 2011-08-11 15:25:59,241 [ad-2] INFO DispatcherServlet - FrameworkServlet 'bookaservice': initialization started === 2011-08-11 15:25:59,304 [ad-2] INFO XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@746a63d3: display name [WebApplicationContext for namespace 'bookaservice- servlet']; startup date [Thu Aug 11 15:25:59 CAT 2011]; root of context hierarchy === 2011-08-11 15:25:59,366 [ad-2] INFO XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/ bookaservice-servlet.xml] === 2011-08-11 15:25:59,444 [ad-2] INFO XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@746a63d3 ]: org.springframework.beans.factory.support.DefaultListableBeanFactory@538eb7b8 === 2011-08-11 15:25:59,475 [ad-2] INFO DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@538eb7b8 : defining beans [urlMapping,hibernateOperationsController]; root of factory hierarchy === 2011-08-11 15:25:59,522 [ad-2] INFO DispatcherServlet - FrameworkServlet 'bookaservice': initialization completed in 234 ms ISC: Configuring log4j from: file:/C:/Dev/apache-tomcat-7.0.6/webapps/ BookAService/WEB-INF/classes/log4j.isc.config.xml === 2011-08-11 15:25:59,538 [ad-2] INFO ISCInit - Isomorphic SmartClient Framework - Initializing === 2011-08-11 15:25:59,553 [ad-2] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH === 2011-08-11 15:25:59,662 [ad-2] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/ Dev/apache-tomcat-7.0.6/webapps/BookAService/WEB-INF/lib/ isomorphic_core_rpc.jar!/framework.properties === 2011-08-11 15:25:59,662 [ad-2] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2011-08-11 15:25:59,662 [ad-2] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH === 2011-08-11 15:25:59,678 [ad-2] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/ C:/Dev/apache-tomcat-7.0.6/webapps/BookAService/WEB-INF/lib/ isomorphic_core_rpc.jar!/isc_interfaces.properties === 2011-08-11 15:25:59,678
Re: problemas con stylos
mira esto: http://examples.roughian.com/index.htm#Widgets~MenuBar 2011/8/11 jose felix estevez josefel...@gmail.com Buenas amigo les explico mi problema , quiero modificar el css de un menubar logro modificarlo todo excepto cuando esta seleccionado algun item del menu que me coloca un background por defecto quiero modificar ese background. -- 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: problemas con stylos
refresca la cache. con eso debería andar 2011/8/11 jose felix estevez josefel...@gmail.com justo me estoy guiando por ese ejemplo pero el ultimo selector del css que es justo el que quiero modificar no lo toma observe por firebug que el sobrepone el por defecto con el que yo creo ahi. 2011/8/11 Juan Pablo Gardella gardellajuanpa...@gmail.com mira esto: http://examples.roughian.com/index.htm#Widgets~MenuBar 2011/8/11 jose felix estevez josefel...@gmail.com Buenas amigo les explico mi problema , quiero modificar el css de un menubar logro modificarlo todo excepto cuando esta seleccionado algun item del menu que me coloca un background por defecto quiero modificar ese background. -- 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. -- Jose F.Estevez H. T.S.U. en Analisis y Diseño de Sistemas Consultor Staff I Tecnology Consulting Solutions - TCS -- 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: How to use Mockito for testing Async calls?
you can see gwt-dispatch http://code.google.com/p/gwt-dispatch/ for command pattern. 2011/8/11 Miroslav Genov mge...@gmail.com In my experience, using of mocking frameworks for testing of Async calls is not so good and tests are becoming un-readable at some point of time. In our app we are using Command Pattern to send different requests (Action/Response) and here is our helper class that we are using for testing: public class FakeRpcService implements RpcServiceAsync { public Action? lastAction; public AsyncCallback? lastCallback; public T extends Response void execute(ActionT action, AsyncCallbackT async) { lastAction = action; lastCallback = async; } public T T lastAction() { return (T) lastAction; } public void responsesWith(Response response) { // SMELL private members of simple object are referencing template members? ((AsyncCallbackResponse) lastCallback).onSuccess(response); } public void failsWith(RuntimeException e) { ((AsyncCallbackResponse) lastCallback).onFailure(e); } } so our tests now are looking like: @Test public void exportSelectedInvoices() { ListInvoiceDto invoices = Lists.newArrayList(createInvoice(1,PaymentType.CASH)); // filter button was clicked presenter.onReportRequested(); service.responsesWith(new GetInvoicesPeriodReportResponse(invoices)); presenter.onExportSelectedInvoices(new HashSetInvoiceDto()); GenerateAjurExportAction action = service.lastAction(); assertThat(the one selected invoice was not sent for export?,action.getInvoices(), is(equalTo(invoices))); service.responsesWith(new GenerateAjurExportResponse(test test)); assertThat(export response was not displayed?,display.exportResponse,is(equalTo(test test))); } Hope this will help you figure out what's the best choice for you. -- 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/-/OTxCnyHee14J. 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: Alternative to DTO's
What's JPA implementation are you use? 2011/8/11 Cristiano cristiano.costant...@gmail.com I exchange directly JPA annotated POJOs between the client and the server, and I persist the same objects within the servlet. GWT compiler ignores the annotations, the servlet use them for persistence. I do not use RequestFactory (I've not yet studied it, probably I'll use it in the future but for other reasons), I'm using GWT RPC and it works well. I like this approach as I achieve minimal duplication with only one class in the GWT's shared folder, but there might be some side effect in some specific cases (all the persistence logic has to be handled on the server side). Cristiano On 12 Ago, 00:13, J D narusakur...@gmail.com wrote: Thank you for your suggestions. I will look into them promptly. -- 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: multiple gwt modules
You sure use the module: inherits name='com.google.gwt.user.User' / This module is define in gwt-user.jar. Check how is it do. Is this do you need? 2011/8/11 Daemon Zak saje...@gmail.com I want to able to load a gwt module from another gwt module for eg: if i click a button ,the new module should be loaded in a new browser ,with the same session attributes. how do we communicate between modules i.e . if i want to pass some information from one module to another and vice versa . any help is greatly appreicated -- 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: SimpleDateFormat
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsCompatibility.html#similar 2011/8/10 joel jtrun...@gmail.com I get an error trying to use java.text.SimpleDateFormat, do I need to do something to use it, or is there an alternative? -- 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: Cannot deserialized ArrayList object in GWT 2.3
Are you have the same version of gwt in web-inf and in the gwt eclipse plugin? (if you use eclipse) 2011/8/10 BM bhushan.ma...@gmail.com I cleaned all the files and folders inside Target folder (Using Maven). I removed all the files and folders newly created by GWT inside WAR folder (Keeping CSS, WEB-INF, HTML files). I did full rebuild and still has the same problem on simple plain ArrayList of String objects as mentioned in my test case today I am just using ArrayList of String objects. Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/3821976829 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java: 153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java: 114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java: 111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java: 119) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter $ResponseReader$8.read(RequestCallbackAdapter.java:106) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: I am thinking it has to do with some versioning of GWT serialization classes but not sure how do I find that. On Aug 10, 10:21 am, Jens jens.nehlme...@gmail.com wrote: I can't see why this shouldn't work. I am using a command pattern and I have some CommandResult classes that contain ArrayListString as fields and it works with GWT 2.3. I think if it would be a bug it would be recognized much earlier. I think you maybe have outdated serialization information somewhere. Try to clean your project, delete GWT's generated javascript folder in the war folder and do a full rebuild / GWT compile. Also clean your browser cache. If this does not help you have to debug to see whats going on. Looking at the exception it seems like the server call has been successfully done but GWT fails to deserialize the server result. So it seems like a client side problem. -- J. -- 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: GWT 2.2.0 RequestFactory + Spring 3.0.x Integration (SOLVED) - NEW LINK
Thanks for share! 2011/8/10 j.singh.developer j.singh.develo...@gmail.com The blog discussed in one of my post is no longer in production. If you looking for the GWT + Spring integration solution, please visit this link http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/ -- 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: GWT Validation framework
In editor I don't know, but with MVP yes. You can define in presenter objets the validators. 2011/8/9 nacho vela.igna...@gmail.com Any of those validation options can be easily used with MVP Editor fw? -- 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/-/Tnuj01pYZZsJ. 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: Need help for storing Sessions
2011/8/4 Foermchen82 juergen.f...@gmx.de Hi, i actual do my first steps with GWT. Now I want to secure my web application. It is no problem, to build a login dialog with username and password. On several websites i have read, that I have to build a secure token ant store it in a cookie to track the validility of the session. For this, I have several questions: 1. What, if i can't use cookies. How can I remember, that the user is still logged in? If you can't use cookies you can: 1) Tell to the user enable cookies (as many web mail clients) 2) Use a token. 2. If I refresh the page, the login dialog will be shown. How I can display the last state of the website? You can use place/activities systemhttp://code.google.com/intl/es/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html . 3. If I close the browser an open it again, and if I store the token in a cookie, does the laste state of the session will be restored? I hope not! If I close the browser, the session should not be reusable The site don't do magic. You can store same information in a cookie and then restore using this information. 4. I have read, that cookies can possible be a security problem. How can I prevent this? 1) Don't use cookies 2) Tell me the problems and then I tell how solve. Can comebody help me? Thank you -- 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: class suddenly no longer serializable
When I suddenly have this error is when have: 1) Cache some .js in the browser. Clean the cache and fix. 2) I have different versions of compiled classes in client side and server side. I sometimes put in webapp folder the .js files to run in tomcat inside eclipse and the forgot remove the folder. So when I make the war file it have older .js files. Juan 2011/8/8 Dennis Haupt d.haup...@googlemail.com the gwt compiler really needs an option to make it spill out why a class isn't serializable. i have one which i have used for weeks without a change, and suddenly, i get this error: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'whatever' was not included in the set of types which can be deserialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be deserialized. at com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(IncompatibleRemoteServiceException_FieldSerializer.java:16) at com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.create(IncompatibleRemoteServiceException_FieldSerializer.java:25) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:115) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:216) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) no change has been made at the class or at any configuration xml. i did the did i pull the plug-checks, there's nothing wrong. what should i check next? -- 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: GWT with Oracle
Hay mil ejemplos en google, te paso un resultado. http://www.javaworkspace.com/connectdatabase/connectOracle.do 2011/8/5 Gema matesanz gema.mates...@gmail.com Hi!! thanks for the answer, i don't know how to connect in server side to the db, can you give an example? Un saludo - Gema Matesanz -- 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: How to implement SSO?
See JOSSO.http://www.josso.org/confluence/display/JOSSO1/JOSSO+-+Java+Open+Single+Sign-On+Project+Home Works well Juan 2011/8/5 Nano Elefant nanof...@gmail.com Hello, I'd like to add a GWT application to a joomla site. The server setup consists of an apache webserver with tomcat. Could you please briefly explain how to implement a single sign on solution between joomla and gwt? Right now I'd like the users to login to the joomla site and use the ? session? at the gwt app. If that's a viable solution, how would it be implemented? Or maybe there's a better or simpler solution... Any advise is welcome! -- 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: GWT Validation framework
I recommend gwt-vl http://gwt-vl.sourceforge.net/ 2011/8/5 RVSN vimalvino2...@gmail.com I'm a naive to Gwt. I'm trying to implementing GWT validation framework. but i couldnt make this. Could anyone pls help me to implementing GWT validation framework in my web application. For this I need some samples. pls help me out 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. -- 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: Problems with my first application
Its a classpath issue: [ERROR] Line 97: ConstraintViolation cannot be resolved to a type Add the javax.validation jarhttp://mvnrepository.com/artifact/javax.validation/validation-api/1.0.0.GA (jsr303) and some implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation-of-jsr-303-bean-validation-available . Juan 2011/8/3 Apocalypto lmelon...@gmail.com Hello GWT world, I'm a student who is trying to learn how to develop with GWT framework. I already know well Java language but I'm stuck with my first application: it's a simple log in interface which stores user data into cookies, but I can't understand why it doesn't work properly. MainEntryPoint private GWTLogInServiceAsync logInService = GWT.create(GWTLogInService.class); private GWTDeBugServiceAsync deBugService = GWT.create(GWTDeBugService.class); private String dataBaseString; ... logInButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { dataBaseString = null; logInService.logIn(userNameTextBox.getText(), passWordTextBox.getText(), new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { Window.alert(Log in failed!); } @Override public void onSuccess(String result) { dataBaseString = result; } }); deBugService.outPut(2) DataBase: + dataBaseString, new AsyncCallbackVoid() { public void onFailure(Throwable caught) { } public void onSuccess(Void result) { } }); if (dataBaseString != null) { logIn(userNameTextBox.getText(), dataBaseString); } } }); ... private void logIn(String userName, String dataBase) { Cookies.setCookie(userName, userName); Cookies.setCookie(dataBase, dataBase); Location.reload(); } GWTLogInServiceImpl public String logIn(String userName, String passWord) { String dataBase = null; try { Class.forName(org.postgresql.Driver); Connection connection = DriverManager.getConnection(jdbc:postgresql://localhost:5432/User DataBase, postGreSQLUserName, postGreSQLPassWord); String query = SELECT \DataBase\ FROM \User\ WHERE \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + '; ResultSet resultSet = connection.createStatement().executeQuery(query); if (resultSet.next()) { dataBase = resultSet.getString(DataBase); } } catch (Exception exception) { exception.printStackTrace(); } System.out.println(1) DataBase: + dataBase); return dataBase; } GWTDeBugServiceImpl public void outPut(String string) { System.out.println(string); } I get the following output: 2) DataBase: null 1) DataBase: dataBaseName Why does it execute GWTDeBugService before GWTLogInService? I'm using NetBeans 6.9.1 with the latest GWT framework and GWT4NB plugin. In addition, during compilation I get the following errors: Validating newly compiled units [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt- user.jar!/com/google/gwt/editor/client/EditorDriver.java' [ERROR] Line 20: The import javax.validation.ConstraintViolation cannot be resolved [ERROR] Line 97: ConstraintViolation cannot be resolved to a type [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt- user.jar!/com/google/gwt/editor/client/impl/ AbstractSimpleBeanEditorDriver.java' [ERROR] Line 28: Name clash: The method setConstraintViolations(IterableConstraintViolation?) of type BaseEditorDriverT,E has the same erasure as setConstraintViolations(IterableConstraintViolation?) of type EditorDriverT but does not override it [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt- user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java' [ERROR] Line 31: The import javax.validation.ConstraintViolation cannot be resolved [ERROR] Line 67: ConstraintViolation cannot be resolved to a type [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt- user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java' [ERROR] Line 25: The import javax.validation.ConstraintViolation cannot be resolved [ERROR] Line 40: ConstraintViolation cannot be resolved to a type [ERROR] Line 43: ConstraintViolation cannot be resolved to a type [ERROR] Line 44: Missing code implementation in the compiler [ERROR] Line
Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)
Any gwt team member? 2011/8/4 Alexander Orlov alexander.or...@loxal.net On Thu, Aug 4, 2011 at 11:27 AM, Jambi michael.lukaszc...@googlemail.comwrote: I don´t think this is a good idea. The dynamic content, that should be crawlable, doesn´t exist at compile time. What I mean is that you should be able to annotate static parts of your app that might be relevant for crawlers and put default values where your dynamic parts are. These default values could simply state USERNAME, DATE, CURRENT BALANCE. So the crawler could get a better context of the static parts of your app, actually a page in this case. -- 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: Problems with my first application
Is it necessary to include also Hibernate Validator? No exactly hibernate validator, some jsr303 implementation. I think is necesary. I tried to run again the project but the servlets were not executed in the correct order I'm blind. Can you explain a little more your problem? Juan 2011/8/4 Apocalypto lmelon...@gmail.com Thanks for the reply, I included validation-api-1.0.0.GA.jar and validation-api-1.0.0.GA-sources.jar to project libraries and the errors were solved. Is it necessary to include also Hibernate Validator? I tried to run again the project but the servlets were not executed in the correct order On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Its a classpath issue: [ERROR] Line 97: ConstraintViolation cannot be resolved to a type Add the javax.validation jar http://mvnrepository.com/artifact/javax.validation/validation-api/1.0... (jsr303) and some implementation http://stackoverflow.com/questions/1384968/is-there-an-implementation... . Juan 2011/8/3 Apocalypto lmelon...@gmail.com Hello GWT world, I'm a student who is trying to learn how to develop with GWT framework. I already know well Java language but I'm stuck with my first application: it's a simple log in interface which stores user data into cookies, but I can't understand why it doesn't work properly. MainEntryPoint private GWTLogInServiceAsync logInService = GWT.create(GWTLogInService.class); private GWTDeBugServiceAsync deBugService = GWT.create(GWTDeBugService.class); private String dataBaseString; ... logInButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { dataBaseString = null; logInService.logIn(userNameTextBox.getText(), passWordTextBox.getText(), new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { Window.alert(Log in failed!); } @Override public void onSuccess(String result) { dataBaseString = result; } }); deBugService.outPut(2) DataBase: + dataBaseString, new AsyncCallbackVoid() { public void onFailure(Throwable caught) { } public void onSuccess(Void result) { } }); if (dataBaseString != null) { logIn(userNameTextBox.getText(), dataBaseString); } } }); ... private void logIn(String userName, String dataBase) { Cookies.setCookie(userName, userName); Cookies.setCookie(dataBase, dataBase); Location.reload(); } GWTLogInServiceImpl public String logIn(String userName, String passWord) { String dataBase = null; try { Class.forName(org.postgresql.Driver); Connection connection = DriverManager.getConnection(jdbc:postgresql://localhost:5432/User DataBase, postGreSQLUserName, postGreSQLPassWord); String query = SELECT \DataBase\ FROM \User\ WHERE \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + '; ResultSet resultSet = connection.createStatement().executeQuery(query); if (resultSet.next()) { dataBase = resultSet.getString(DataBase); } } catch (Exception exception) { exception.printStackTrace(); } System.out.println(1) DataBase: + dataBase); return dataBase; } GWTDeBugServiceImpl public void outPut(String string) { System.out.println(string); } I get the following output: 2) DataBase: null 1) DataBase: dataBaseName Why does it execute GWTDeBugService before GWTLogInService? I'm using NetBeans 6.9.1 with the latest GWT framework and GWT4NB plugin. In addition, during compilation I get the following errors: Validating newly compiled units [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt- user.jar!/com/google/gwt/editor/client/EditorDriver.java' [ERROR] Line 20: The import javax.validation.ConstraintViolation cannot be resolved [ERROR] Line 97: ConstraintViolation cannot be resolved to a type [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt- user.jar!/com/google/gwt/editor/client/impl/ AbstractSimpleBeanEditorDriver.java' [ERROR] Line 28: Name clash: The method setConstraintViolations(IterableConstraintViolation?) of type BaseEditorDriverT,E has
Re: Help!
Are you debbug with firebug or similar to see the error? 2011/8/4 Thomas Lefort lefortho...@gmail.com If anybody can help, I am really pulling my hairs... I am on my last bit of my jsni integration with maps v3. I want a widget to appear in an infowindow. The widget has buttons and links. All elements appear fine in the infowindow except that none of the links, buttons work anymore. This is what I do: public native void openInfoWindowWidget(EOLatLng markerPosition, Element element) /*-{ var myElement = element; $wnd.mapsJSNI.openInfoWindowWidget(markerPosition.@com.metaaps.webapps.earthimages.shared.domain.EOLatLng ::lat, markerPosition.@com.metaaps.webapps.earthimages.shared.domain.EOLatLng ::lng, myElement); }-*/; public final void openPropertiesWindow(EOLatLng currentCoordinate, ListProperty properties, PropertiesChange callBack) { FlowPanel panel = new FlowPanel(); openInfoWindowWidget(currentCoordinate, panel.getElement()); panel.add(propertiesEditor); } propertiesEditor is my widget, it's a field. I am adding the flowpanel in between to avoid a call to getElement on the widget itself. I would really appreciate any ideas!!! 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. -- 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: Problems with my first application
Its best do the login in a filter. If you do the login in a filter always execute before servlets. If you want use a servlet to do login and have other servlet with similar url pattern read thishttp://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/html/rwsfservletug/4-4.html. With filters you can explicity the order of execution, with servlet no (is not define in the specification, so is the serlvet container decide, unpredictable). Juan 2011/8/4 Luca Meloni lmelon...@gmail.com I have two servlets in my project: - The login servlet tooks the username and the password, checks if user data is correct and eventually returns the name of the related database; - The debug servlet for now can only output a string. In MainEntryPoint I call the login servlet before the debug servlet, but I get an output that indicates that the debug servlet is called before the login servlet; this is the code snippet: logInService.logIn(userNameTextBox.getText(), passWordTextBox.getText(), new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { Window.alert(Log in failed!); } @Override public void onSuccess(String result) { dataBaseString = result; } }); deBugService.outPut(2) DataBase: + dataBaseString, new AsyncCallbackVoid() { public void onFailure(Throwable caught) { } public void onSuccess(Void result) { } }); And this is the related output: 2) DataBase: null 1) DataBase: dataBaseName On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is it necessary to include also Hibernate Validator? No exactly hibernate validator, some jsr303 implementation. I think is necesary. I tried to run again the project but the servlets were not executed in the correct order I'm blind. Can you explain a little more your problem? Juan 2011/8/4 Apocalypto lmelon...@gmail.com Thanks for the reply, I included validation-api-1.0.0.GA.jar and validation-api-1.0.0.GA-sources.jar to project libraries and the errors were solved. Is it necessary to include also Hibernate Validator? I tried to run again the project but the servlets were not executed in the correct order On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Its a classpath issue: [ERROR] Line 97: ConstraintViolation cannot be resolved to a type Add the javax.validation jar http://mvnrepository.com/artifact/javax.validation/validation-api/1.0.. . (jsr303) and some implementation http://stackoverflow.com/questions/1384968/is-there-an-implementation.. . . Juan 2011/8/3 Apocalypto lmelon...@gmail.com Hello GWT world, I'm a student who is trying to learn how to develop with GWT framework. I already know well Java language but I'm stuck with my first application: it's a simple log in interface which stores user data into cookies, but I can't understand why it doesn't work properly. MainEntryPoint private GWTLogInServiceAsync logInService = GWT.create(GWTLogInService.class); private GWTDeBugServiceAsync deBugService = GWT.create(GWTDeBugService.class); private String dataBaseString; ... logInButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { dataBaseString = null; logInService.logIn(userNameTextBox.getText(), passWordTextBox.getText(), new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { Window.alert(Log in failed!); } @Override public void onSuccess(String result) { dataBaseString = result; } }); deBugService.outPut(2) DataBase: + dataBaseString, new AsyncCallbackVoid() { public void onFailure(Throwable caught) { } public void onSuccess(Void result) { } }); if (dataBaseString != null) { logIn(userNameTextBox.getText(), dataBaseString); } } }); ... private void logIn(String userName, String dataBase
Re: Problems with my first application
I use Spring Security. But if you are doing a sample, make a filter that process a post. Simple Example. @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { logger.info(Entrando en filtro para procesar el login afip); // cast HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse resp = (HttpServletResponse) response; // login login(req); // redirect to some url redirectSomeUrl(req, resp); } private void login(HttpServletRequest req) { // If is a POST login. if (POST.equals(req.getMethod())) { validateData(req); } } In validate data check info and create/invalidate session. Hope helps. 2011/8/4 Luca Meloni lmelon...@gmail.com OK I read and now I think it's better to use a filter: have you got some sites to suggest me with filter examples? I would appreciate it, thank you On Aug 4, 4:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Its best do the login in a filter. If you do the login in a filter always execute before servlets. If you want use a servlet to do login and have other servlet with similar url pattern read this http://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/h With filters you can explicity the order of execution, with servlet no (is not define in the specification, so is the serlvet container decide, unpredictable). Juan 2011/8/4 Luca Meloni lmelon...@gmail.com I have two servlets in my project: - The login servlet tooks the username and the password, checks if user data is correct and eventually returns the name of the related database; - The debug servlet for now can only output a string. In MainEntryPoint I call the login servlet before the debug servlet, but I get an output that indicates that the debug servlet is called before the login servlet; this is the code snippet: logInService.logIn(userNameTextBox.getText(), passWordTextBox.getText(), new AsyncCallbackString() { @Override public void onFailure(Throwable caught) { Window.alert(Log in failed!); } @Override public void onSuccess(String result) { dataBaseString = result; } }); deBugService.outPut(2) DataBase: + dataBaseString, new AsyncCallbackVoid() { public void onFailure(Throwable caught) { } public void onSuccess(Void result) { } }); And this is the related output: 2) DataBase: null 1) DataBase: dataBaseName On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is it necessary to include also Hibernate Validator? No exactly hibernate validator, some jsr303 implementation. I think is necesary. I tried to run again the project but the servlets were not executed in the correct order I'm blind. Can you explain a little more your problem? Juan 2011/8/4 Apocalypto lmelon...@gmail.com Thanks for the reply, I included validation-api-1.0.0.GA.jar and validation-api-1.0.0.GA-sources.jar to project libraries and the errors were solved. Is it necessary to include also Hibernate Validator? I tried to run again the project but the servlets were not executed in the correct order On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Its a classpath issue: [ERROR] Line 97: ConstraintViolation cannot be resolved to a type Add the javax.validation jar http://mvnrepository.com/artifact/javax.validation/validation-api/1.0.. . (jsr303) and some implementation http://stackoverflow.com/questions/1384968/is-there-an-implementation.. . . Juan 2011/8/3 Apocalypto lmelon...@gmail.com Hello GWT world, I'm a student who is trying to learn how to develop with GWT framework. I already know well Java language but I'm stuck with my first application: it's a simple log in interface which stores user data into cookies, but I can't understand why it doesn't work properly. MainEntryPoint private GWTLogInServiceAsync logInService = GWT.create(GWTLogInService.class); private GWTDeBugServiceAsync deBugService = GWT.create(GWTDeBugService.class); private String dataBaseString; ... logInButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event
Re: GWT with Oracle
You can't use some classes in GWT (client side): unexpected exception: java.lang.NoClassDefFoundError: oracle.jdbc.driver.OracleDriver is a restricted class See here http://code.google.com/intl/es/webtoolkit/doc/latest/RefJreEmulation.htmlwhat classes you can use directly. If isn't in the list, you must put the sources. I recommend connecto in server side to the DB. Juan 2011/8/4 Gema Mmm gema.mates...@gmail.com Hi!! it's my first time using GWT, i want to connect my application with a db of oracle express. And when i run the application have this exception. ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String pagina.client.GreetingService.greetServer(java.lang.String,java.lang.String)' threw an unexpected exception: java.lang.NoClassDefFoundError: oracle.jdbc.driver.OracleDriver is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 97) 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(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) 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.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) 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) Caused by: java.lang.NoClassDefFoundError: oracle.jdbc.driver.OracleDriver is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.clinit(OracleDriver.java:371) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at pagina.server.Validar.getConnection(Validar.java:30) at
Re: include JSP modules in GWT project
If you need server side functionality you only need add jars. If you need some classes in client/shared side generate a project where define modules. See inside gwt-user.jar Juan 2011/8/4 Bhaskar bhaskar1...@gmail.com Hi, we have existing project with struts framework( we are usinh JSP for View). Now we are using GWT(and GXT) for the new features.(old features are in JSP olny) now we want to create one GWT project for new features, but we want add old code(i.e struts code) in GWT project so that we can debug/ compile with single project. can any one help me in this? Regards, Bhaskar -- 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: RPC and server side classes
RPC only work as transport layer between client and server side, so you must put old project as a jar and define *.gwt.xml inside and define the module. In NewUiProject inherit it. You can't said that the POJO is only in server side if RPC layer try serialize/deseralize Juan 2011/8/3 Mike Dee mdichiapp...@gmail.com I'm updating an existing web app to use GWT and encountering a problem on server side. A goal is to reuse the server side data classes, which are stored in a separate Eclipse project. I have two projects: OldProject, which has old data classes (as POJOs) and NewUiProject, which is GWT. If I put the OldProject POJOs in the NewUiProject, all is fine. Of course the POJOs don't fall under the shared directory, so I created a .gwt.xml file and inherited that into the NewUiProject .gwt.xml. If the OldProject POJOs are left in their project and NewUiProject inherits the .gwt.xml from OldProject a runtime error occurs. [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: [Lcom/mycompany/myproject/data/ FooDataClass; at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:299) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) It looks like FooDataClass is simply not found on the server side and I can't figure out why. I am using Eclipse and NewUiProject has a project reference to OldProject and also includes OldProject in the Java Build Path Projects. If there were a project with references across projects I don't think the project would compile. I also tried packaging a JAR from OldProject and including it in NewUiProject, but that makes no difference. I don't think this is a case of not inheriting classes so that GWT knows to compile them in the client side. That would produce an error when starting up the client and an error message about not being able to find the source code for the data classes. I'm mot seeing that error. The UI comes up and the error is thrown when interacting with the UI in such a way as to cause an RPC. 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. -- 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: RPC and server side classes
java.lang.NoClassDefFoundError: [Lcom/mycompany/myproject/data/FooDataClass; is not the same ClassNotFoundExceptionhttp://stackoverflow.com/questions/1457863/what-is-the-difference-between-noclassdeffounderror-and-classnotfoundexception, so perhaps you have a dependency or is not serializable or instanciable in runtime. Is serializable? have final fields? have a default constructor? 2011/8/3 Mike Dee mdichiapp...@gmail.com I added a .gwt.xml file to the OldProject and inherited it from NewUiProject. Only the data objects (pojos) from the OldProject are listed in the source path of the .gwt.xml. On Aug 3, 11:29 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: RPC only work as transport layer between client and server side, so you must put old project as a jar and define *.gwt.xml inside and define the module. In NewUiProject inherit it. You can't said that the POJO is only in server side if RPC layer try serialize/deseralize Juan 2011/8/3 Mike Dee mdichiapp...@gmail.com I'm updating an existing web app to use GWT and encountering a problem on server side. A goal is to reuse the server side data classes, which are stored in a separate Eclipse project. I have two projects: OldProject, which has old data classes (as POJOs) and NewUiProject, which is GWT. If I put the OldProject POJOs in the NewUiProject, all is fine. Of course the POJOs don't fall under the shared directory, so I created a .gwt.xml file and inherited that into the NewUiProject .gwt.xml. If the OldProject POJOs are left in their project and NewUiProject inherits the .gwt.xml from OldProject a runtime error occurs. [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: [Lcom/mycompany/myproject/data/ FooDataClass; at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:299) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) It looks like FooDataClass is simply not found on the server side and I can't figure out why. I am using Eclipse and NewUiProject has a project reference to OldProject and also includes OldProject in the Java Build Path Projects. If there were a project with references across projects I don't think the project would compile. I also tried packaging a JAR from OldProject and including it in NewUiProject, but that makes no difference. I don't think this is a case of not inheriting classes so that GWT knows to compile them in the client side. That would produce an error when starting up the client and an error message about not being able to find the source code for the data classes. I'm mot seeing that error. The UI comes up and the error is thrown when interacting with the UI in such a way as to cause an RPC. 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. -- 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: RPC and server side classes
This static variable isn't affect. You must put oldproject jar in WEB-INF/lib, isn't run in dev mode? 2011/8/3 Mike Dee mdichiapp...@gmail.com Juan, I thought you may have found the problem. There was a static variable, the old: static final long serialVersionUID = -1L; I removed it, but that didn't make a difference. Could it be that the data classes from the OldProject are really not being picked up in NewUiProject? I tried doing a GWTCompile and looking at the output. I don't see classes from OldProject in the WAR for NewUiProject...even when I include the OldProject.jar! But, maybe I don't understand enough about how GWT works? Mike On Aug 3, 11:49 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: java.lang.NoClassDefFoundError: [Lcom/mycompany/myproject/data/FooDataClass; is not the same ClassNotFoundException http://stackoverflow.com/questions/1457863/what-is-the-difference-bet..., so perhaps you have a dependency or is not serializable or instanciable in runtime. Is serializable? have final fields? have a default constructor? 2011/8/3 Mike Dee mdichiapp...@gmail.com I added a .gwt.xml file to the OldProject and inherited it from NewUiProject. Only the data objects (pojos) from the OldProject are listed in the source path of the .gwt.xml. On Aug 3, 11:29 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: RPC only work as transport layer between client and server side, so you must put old project as a jar and define *.gwt.xml inside and define the module. In NewUiProject inherit it. You can't said that the POJO is only in server side if RPC layer try serialize/deseralize Juan 2011/8/3 Mike Dee mdichiapp...@gmail.com I'm updating an existing web app to use GWT and encountering a problem on server side. A goal is to reuse the server side data classes, which are stored in a separate Eclipse project. I have two projects: OldProject, which has old data classes (as POJOs) and NewUiProject, which is GWT. If I put the OldProject POJOs in the NewUiProject, all is fine. Of course the POJOs don't fall under the shared directory, so I created a .gwt.xml file and inherited that into the NewUiProject .gwt.xml. If the OldProject POJOs are left in their project and NewUiProject inherits the .gwt.xml from OldProject a runtime error occurs. [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: [Lcom/mycompany/myproject/data/ FooDataClass; at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:299) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) It looks like FooDataClass is simply not found on the server side and I can't figure out why. I am using Eclipse and NewUiProject has a project reference to OldProject and also includes OldProject in the Java Build Path Projects. If there were a project with references across projects I don't think the project would compile. I also tried packaging a JAR from OldProject and including it in NewUiProject, but that makes no difference. I don't think this is a case of not inheriting classes so that GWT knows to compile them in the client side. That would produce an error when starting up the client and an error message about not being able to find the source code for the data classes. I'm mot seeing that error. The UI comes up and the error is thrown when interacting with the UI in such a way as to cause an RPC. 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group
Re: GWT and Spring
Thanks Jeff!! 2011/8/2 Jeff Larsen larse...@gmail.com Si estas interesante en usando RequestFactory, es facil usar Spring con RequestFactory en 2.4-RC. Hacer un class se llama SpringServiceLocator public class SpringServiceLocator implements ServiceLocator { public Object getInstance(Class? arg0) { ApplicationContext ctx = WebApplicationContextUtils .getWebApplicationContext(RequestFactoryServlet.getThreadLocalServletContext()); return ctx.getBean(arg0); } } y usarlos en totas sus RequestContext annotations @Service(value=MyService.class, locator=SpringServiceLocator.class) public interface MyRequestContext extends RequestContext{ } -- 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/-/Wm3sEjfoAxMJ. 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: GWT project tree setup
You can open a Enhacement ticket. 2011/8/2 Abi alias@gmail.com Hi All, Any suggestion would appreciate for below, so we can correct initially. On Jul 29, 11:46 am, Abi alias@gmail.com wrote: We are re-writing our ERP system using Java/GWT/Spring.It is something big. We would like to get some suggestion regarding the tree setup. 1. Application.gwt.xml --- We have above 70 modules today. But all of it's having only one entry point and is Application.gwt.xml. But becuase of the same : But each module seems we need to specify in main *.gwt.xml eg. source path='ecommerce/arn/client' / source path='ecommerce/arn/shared' / source path='ecommerce/bol/client' / source path='ecommerce/bol/shared' / source path='ecommerce/bkg/client' / source path='ecommerce/bkg/shared' / Instead of this, Is there any way to specify this source path using file globs ? for e.g: ie,source path='ecommerce/*/{shared,client}' / or ie, source path='ecommerce/*/shared' / source path='ecommerce/*/client' / 2. This is regarding css file. Since each time if there is a change in the file, we seems need to compile and run using GWT. This is fine for a development server and via eclipse. But for a very simple change in production server, may be just a font issue,seems the entire tree need to compile. So we moved the resources filed outside the .war file. ie in a folder say project/resources/css/bol/bol.css project/resources/css/bol/arn.css project/resources/images/a.png project/resources/images/b.png and applied the styles directly in the GWT files. But this found there is no 'GWT-Cache' for images. Is there any fix around for this? Means images are loading now like a normal website, taking time. We tried GWT image pre-load as well, but not a good idea to re-load all the images at single shot as there are many. What is the best approach here else? Please suggest. -- 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: Excluding Classes in a Legacy Application using GWT 2.3
If you wan't compile some classes put in a package that gwt compiler don't pick up to compile. See http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules 2011/7/29 Joe jdess...@gmail.com 1) My legacy application is setup like this: com.app.model com.app.exception com.app.util com.app.service etc. There are 20 classes in the model package, but I only want to serialize and use 4 for RPC. The others have heavy code in them that error out upon compilation. 2) There are references to apache log4j that the GWT cannot find source for: No source code is available for type org.apache.log4j.Logger; did you forget to inherit a required module? This is the same for java.util.Calendar, org.junit.Assert, etc. -- I have tried using the extend-configuration-property rpc.blacklist like extend-configuration-property name=rpc.blacklist value=- java.util.Calendar/ But this seems to do nothing at compile time. I have also tried to use the blacklist to exclude everything in the model package except the classes I need, but the other classes still error out. Is there anyway to tell GWT to only compile certain classes, and ignore others? -- 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: Excluding Classes in a Legacy Application using GWT 2.3
Why do you need log4j in gwt client side? 2011/8/1 Joe jdess...@gmail.com http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuidePathFiltering http://ant.apache.org/manual/dirtasks.html#defaultexcludes Now does anybody know how to handle the issue with log4j and the calendar? On Aug 1, 6:36 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If you wan't compile some classes put in a package that gwt compiler don't pick up to compile. Seehttp:// code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec... 2011/7/29 Joe jdess...@gmail.com 1) My legacy application is setup like this: com.app.model com.app.exception com.app.util com.app.service etc. There are 20 classes in the model package, but I only want to serialize and use 4 for RPC. The others have heavy code in them that error out upon compilation. 2) There are references to apache log4j that the GWT cannot find source for: No source code is available for type org.apache.log4j.Logger; did you forget to inherit a required module? This is the same for java.util.Calendar, org.junit.Assert, etc. -- I have tried using the extend-configuration-property rpc.blacklist like extend-configuration-property name=rpc.blacklist value=- java.util.Calendar/ But this seems to do nothing at compile time. I have also tried to use the blacklist to exclude everything in the model package except the classes I need, but the other classes still error out. Is there anyway to tell GWT to only compile certain classes, and ignore others? -- 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. -- 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: Excluding Classes in a Legacy Application using GWT 2.3
For log4j and for calendar you have alternatives. 2011/8/1 Juan Pablo Gardella gardellajuanpa...@gmail.com Why do you need log4j in gwt client side? 2011/8/1 Joe jdess...@gmail.com http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuidePathFiltering http://ant.apache.org/manual/dirtasks.html#defaultexcludes Now does anybody know how to handle the issue with log4j and the calendar? On Aug 1, 6:36 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If you wan't compile some classes put in a package that gwt compiler don't pick up to compile. Seehttp:// code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec... 2011/7/29 Joe jdess...@gmail.com 1) My legacy application is setup like this: com.app.model com.app.exception com.app.util com.app.service etc. There are 20 classes in the model package, but I only want to serialize and use 4 for RPC. The others have heavy code in them that error out upon compilation. 2) There are references to apache log4j that the GWT cannot find source for: No source code is available for type org.apache.log4j.Logger; did you forget to inherit a required module? This is the same for java.util.Calendar, org.junit.Assert, etc. -- I have tried using the extend-configuration-property rpc.blacklist like extend-configuration-property name=rpc.blacklist value=- java.util.Calendar/ But this seems to do nothing at compile time. I have also tried to use the blacklist to exclude everything in the model package except the classes I need, but the other classes still error out. Is there anyway to tell GWT to only compile certain classes, and ignore others? -- 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. -- 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 and Spring
Hola José Bienvenido a la comunidad. Yo te puedo recomendar que veas el siguiente prototipo: https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home Si bien es un poco avanzado porque tiene varios frameworks, te puede servir de guía. Saludos, Juan 2011/8/1 jose felix estevez josefel...@gmail.com wow gracias amigo por responder tan rapido. El 1 de agosto de 2011 19:52, Gal Dolber gal.dol...@gmail.com escribió: Buenas, bienvenido! No use nunca spring, pero parece haber mucha informacion al respecto, este el primer proyecto que aparece: http://code.google.com/p/gwtrpc-spring/ Tambien hay instrucciones en gwt-incubator http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring Saludos On Mon, Aug 1, 2011 at 12:58 PM, jose felix estevez josefel...@gmail.com wrote: buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con spring alguna ayuda -- 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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. -- Jose F.Estevez H. T.S.U. en Analisis y Diseño de Sistemas Consultor Staff I Tecnology Consulting Solutions - TCS -- 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: GWT Page flows - want to start a open source project - thoughts
Thanks Brian to share!! 2011/7/31 Brian Reilly brian.irei...@gmail.com As promised, I committed my gwt-multipage changes (to a branch) and attached a test jar (gwtmultipage-core-20110731.jar) to the issue: http://code.google.com/p/gwt-multipage/issues/detail?id=21. It's not an official release yet, but that's the jar that I've been using it in production with GWT 2.3 for a couple of months now. -- Brian On Sat, Jul 30, 2011 at 11:35 AM, Brian Reilly brian.irei...@gmail.comwrote: Note that the current build is for GWT = 2.1. If you're using 2.2+, currently you'll need to get the source and build it against 2.2+ yourself. I did some work a couple of months ago to create a jar that would work for any version of GWT, but haven't committed it yet. In fact, that's the only reason I hadn't already mentioned gwt-multipage in this thread. Now that it has been mentioned, I'll make sure I commit my changes this weekend, at least on a branch. BTW, the project page is http://gwtmultipage.org/, and the google code page is http://code.google.com/p/gwt-multipage/. -- Brian On Sat, Jul 30, 2011 at 10:42 AM, Aidan O'Kelly aida...@gmail.comwrote: There is this, http://claudiushauptmann.com/a-framework-for-gwt-multipage-applications.html Which might be of interest to you. On Fri, Jul 29, 2011 at 3:00 PM, dreamer venugopal.vasire...@gmail.com wrote: Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- 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. -- 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: IncompatibleRemoteServiceException SerializationException Issue.....
This error ocurr in dev mode too? 2011/7/29 Jugunu jugunu.a...@gmail.com Hi Pablo, Thanks a lot for the offer to help.. I am using gwt 2.3 coupled with gwtp framework, gin guice.. These are the specific external jars i am using... gin-1.5-post-gwt-2.2.jar guice-3.0.jar guice-assistedinject-3.0.jar guice-servlet-3.0.jar gwtp-all-0.6.jar javax.inject.jar jaxen-1.1.1.jar GwtAI-Client.jar GwtAI-Core.jar aopalliance.jar mvel2-2.0.17.jar xstream-1.2.2.jar commons-lang-2.4.jar ecj-3.6.2.jar Thnaks Regards Jugunu On Jul 28, 8:18 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java: 27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Caused
Re: Gwt touch ui
Thanks Alain!! Wonderfull!! 2011/7/29 Alain Ekambi jazzmatad...@googlemail.com Here is a preview of gwt4touch 1.0 wich will be shipped in the next release of gwt4air. http://gwt4air.googlecode.com/svn/trunk/touch/GwtAir.html Like alway feedbacks are really welcome Cheers, Alain 2011/7/8 Gal Dolber gal.dol...@gmail.com great news! thanks Alain On Friday, July 8, 2011, Alain Ekambi jazzmatad...@googlemail.com wrote: Not Flash.Pure Gwt based solution 2011/7/8 Gal Dolber gal.dol...@gmail.com Hi Alain,touch support with flash? do you mean only for android devices? On Fri, Jul 8, 2011 at 3:27 AM, Alain Ekambi jazzmatad...@googlemail.com wrote: gwt4air 2.2 will actually have a Gwt Touch moduleStay tuned :) 2011/7/8 Gal Dolber gal.dol...@gmail.com Is anyone doing some open source work on gwt + touch ui? This demo is totally incredible http://dev.sencha.com/deploy/touch/examples/kitchensink/ We must have this implemented with gwt -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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 API for non Java based platforms http://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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 API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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 API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- 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: Calling an inherited module RPC (using GIN)
I think you can use a provider methodhttp://code.google.com/p/google-guice/wiki/ProvidesMethods . I don't test, but you can try: @Provides @Singleton SessionServiceAsync sessionServiceAsyncProvider() { SessionServiceAsync s = GWT.create(SessionService.class); ((ServiceDefTarget) s).setServiceEntryPoint(GWT .getHostPageBaseURL() + s.END_POINT); return s; } Juan 2011/7/28 vehdra music veh...@gmail.com Hi, I am using Gin in my project. In my activity I have this code: private MyServiceAsync rpcService; @Inject public MyListActivity(MyListView view, PlaceController placeController, MyServiceAsync rpcService) { this.view = view; this.placeController = placeController; this.rpcService = rpcService; } This works great if my RPC is created in the same module. But I need to have my RPCs in another module (Core), and inherit this module from others (ie: Admin). I was googling about relative paths and RPCs and I've found this post: http://borgestech.blogspot.com/2011/03/gwt-calling-rpc-service-inside-another.html But (as I am a really newby to Gin) I can't figured how to mix what that post says with Gin. Can anyone give me a hand? -- 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: IncompatibleRemoteServiceException SerializationException Issue.....
The error is: Caused by: com.google.gwt.user.client.rpc.SerializationException: Invalid type signature for com.sample.project.shared.model.UserInfo I google and found some explanations (thanks a T. Broyer again) in this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/dcc7441ed78bc3ee. I paste the here the explanation: The invalid type signature for message indicates that the object used by the client is different than the one known to the server (at compile-time, a checksum of the object's fields is computed and sent along with the object's class in the RPC payload; the same checksum is computed at runtime on the server and compared to the one received from the client). Please read the details in thread, perhaps help to you. Juan 2011/7/29 Jugunu jugunu.a...@gmail.com I am not getting it always, after doing a gwtcompile i am getting it sometimes even in dev server... I tried to deploy it in tomcat after creating a war, that time the response returns from handler, but doesn't reach the async call back .. Previously i was getting serialization error in Arraylist , but now i am getting only this, not sure what changed... Note: I am not extending IsSerializable but just extending all my objects with java.io.Serializable... On Jul 29, 4:40 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: This error ocurr in dev mode too? 2011/7/29 Jugunu jugunu.a...@gmail.com Hi Pablo, Thanks a lot for the offer to help.. I am using gwt 2.3 coupled with gwtp framework, gin guice.. These are the specific external jars i am using... gin-1.5-post-gwt-2.2.jar guice-3.0.jar guice-assistedinject-3.0.jar guice-servlet-3.0.jar gwtp-all-0.6.jar javax.inject.jar jaxen-1.1.1.jar GwtAI-Client.jar GwtAI-Core.jar aopalliance.jar mvel2-2.0.17.jar xstream-1.2.2.jar commons-lang-2.4.jar ecj-3.6.2.jar Thnaks Regards Jugunu On Jul 28, 8:18 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113
Re: GWT / Maven (again!)
This sample https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home is a gwt project with maven standard layout 2011/7/29 cri chuck.irvine...@gmail.com For quite a while, we've been somewhat successful using gwt-maven- plugin in conjunction with GWT/GPE. However, there has been lots of effort and frustration getting to where we are. And, I've just encountered another problem that I've yet to figure out. It seems to me that a lot of the trouble comes from the fact that the standard GWT directory structure is very different than the directory structure that gwt-maven-plugin wants. My question for those that know Maven better than me (and there has to be lots of those) is how difficult would it be to mavenize a GWT project with GWT's standard layout? -- 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: GWT Page flows - want to start a open source project - thoughts
Is swing applications pageflow? I think not. Perhaps you can look at architecture proposed in ProGWT bookhttp://books.google.com/books?id=OG816JSZYVcCprintsec=frontcoverdq=Pro+Web+2.0+Application+Development+with+GWThl=enei=hsQyTtmKI6f00gH0gN3rCwsa=Xoi=book_resultct=resultresnum=1ved=0CC4Q6AEwAA#v=onepageqf=false . In this architecture you don't need use a whole page. 2011/7/29 dreamer venugopal.vasire...@gmail.com Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- 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: Blank screen after moving to GWT 2.3.0 on JBoss
Sounds like in your war not package .js files. 2011/7/28 Cristian Lucutar cristian.lucu...@gmail.com Hi guys, I have an application that used to work just fine when I was using GWT 2.0.4 and gwt-maven-plugin 1.2 but now I switched to GWT 2.3.0 and gwt- maven-plugin 2.3.0 and I only get a blank screen after deploying on JBoss. The app still works fine if I run it from the GWT Development Mode. The JBoss doesn't log anything related to this, it simply deploys. Thanks for your help. Regards, Cristian. -- 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: gwt database connectivity
This code Class.forName(oracle.jdbc.driver.OracleDriver); is in your server side? if not, you can't do in client side 2011/7/28 vijayakumar veeraragavan vijayakumar.veer...@gmail.com guys iam try connect to oracle database using GWT but show the following error in the line Class.forName(oracle.jdbc.driver.OracleDriver); [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String org.db.client.GreetingService.greetServer(java.lang.String,org.db.client.GwtBean)' threw an unexpected exception: java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.driver.OracleDriver at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) 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(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) 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.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) 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) Caused by: java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.driver.OracleDriver at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.db.server.Dbconnection.createConnection(Dbconnection.java:19) at org.db.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at
Re: IncompatibleRemoteServiceException SerializationException Issue.....
Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java: 27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Caused by: com.google.gwt.user.client.rpc.SerializationException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateTypeVersions(ServerSerializationStreamReader.java: 916) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 544) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java: 119) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader $ValueReader$8.readValue(ServerSerializationStreamReader.java:137) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java: 384) at
Re: When do activities get disposed of?
See this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/fee377e1bb1947ea?pli=1 the solution. 2011/7/26 Craig Greenhalgh craig.greenha...@intersoftsolutions.co.uk Hi I'm using MVP with activities, places and views. During the start method of the activity, I listen / bind to method on a bus (Errai Bus). When I navigate back to the same place and activity a new set is created (as expected), however if the event is fired, two (or multiple) activities listeners are called When are these activities supposed to be disposed of? Thanks for your help Craig -- 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.comgoogle-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://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: MVP best practices, how to expose a view to a presenter?
I define an interface in the presenter as mention in http://www.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html 2011/7/22 Karthik Reddy karthik.ele...@gmail.com @Thomas When you say cached for a while could you give an example how this can be achieved. (For example: Do you maintain the time it needs to be cached for, in a separate variable. ) In concept, I am able to understand but the execution details are kinda teasing my mind. -- 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/-/-FQBR0HgrTEJ. 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: GWT RPC with large data arrays
I think you can zip the data. 2011/7/21 Daniel Peterson dannothete...@gmail.com I'm trying to transmit large amounts of data from my server to my client using the Asynchronous RPC calls. I've noticed that for these arrays often take quite a long period of time to transmit. I'm only sending four sets of data, but containing several hundred (to perhaps a thousand) points each. I'm transmitting a simple class that holds four parallel double arrays that will be used to populate a DataTable for a visualization (from the Google Visualization API). I could restructure my classes and doubtless get a little speed up (by only having one array that I am transferring), but the entire transmission process occurs three to four times faster if I parse the data on the server from a byte array to a string using a string buffer, than transmit a single string across the RPC. I've seen that I could manually code the serialing interface for the RPC call, but, unless I can find a way to send a large blob of data and escape the arrays, I don't think that will speed up the process too much. I been looking into the JSON queries, but am not sure how much faster they could be since it seems the point of that is to transmit a long string across as well. As I understand it, the parsing would be faster because JavaScript natively reads it. Finally, I've glanced over HTTP requests, but I'm not sure about speed gains there either, and I don't want to have to entirely retool my server. My question is thus: I'm fairly inexperienced at web development and these sorts of client/server interactions. What would be the best way to encode this data for quick transmission to the client? 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. -- 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: [Announcement] GWT animation and effect library with CSS3 support
Thanks for share it! 2011/7/21 mechacha mecha...@gmail.com Tada! I just released it! Hope that will be useful to some of you. Even if the documentation is currently missing. But you can always check the examples. Just try a demo! http://www.visualfox.me/app/visualfox-fx And grab the source: http://code.google.com/p/visualfox-fx/ -- 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: gwt hibernate
See this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/7e46e8c33e7ee5da/e80d1eff4ddb7a81?pli=1 . 2011/7/20 asi mbkas...@gmail.com hi everyone ,i need help ton figure out how to use hibernate and gwt or gxt together nothing that i found seemed to work thx -- 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: login form
I think you must use a form panelhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/FormPanel.html if you want the browser ask store some input. 2011/7/20 Paolo Inaudi p91p...@gmail.com I've made a login form in gwt with a textbox, a passwordtextbox and a button. everything is fine, but browser isn't asking me to store the password. Do I have to make the button a html submit input and create another page? or is there a way to tell the browser this is a login form? thanks a lot Paolo -- 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: my biggest problem with gwt
mmm I work in this manner. I use maven, but is the same. 1) Make the war (mvn package). Only the first time. 2) Start dev mode. 3) Open browser (I use IE, is the fastest in dev mode). Wait at first time a minute. 4) Test the app and modify code. 5) Refresh page in IE. Wait 10s aprox. 6) Repeat 4) and 5). So, first time is slow, but then is productive. Juan 2011/7/15 Dennis Haupt d.haup...@googlemail.com it's the speed. not the execution speed, that one is good enough. what i mean is the compilation speed. compiling my complete java project takes 30 seconds. compiling the tiny gwt part of it takes 91 seconds. activating the hosted mode takes about 1-2 minutes (didn't measure, feels like it). debugging like this takes forever. the write - test - debug - fix - cycle slows me down a lot. is there any way to fix that problem? -- 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: best architecture for GWT + Spring
I vote option #2 with gwt-dispatch too. 2011/7/15 Tom Meech tom.me...@gmail.com I've been using GWT-Dispatch http://code.google.com/p/gwt-dispatch with Spring and have been very happy with the results. -- 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/-/JB6Ddh_flOoJ. 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: A gwt-sample. Integrate Spring, JPA2.
Thanks for the correction :) On Jul 15, 12:27 am, Craig Mitchell craig...@gmail.com wrote: This is the active thread: https://groups.google.com/forum/#!topic/google-web-toolkit/kZwRAds9two -- 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: Internal Compiler Error / Xerces
I think is a classpath issue. You have more than a SAX Parser in your classpath and this is the problem. I have a similar problem and resolve (in maven, not in eclipse). See this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/4645c2e495492306 2011/7/14 Jörn Gersdorf joern.gersd...@gmail.com Hi all, we have a GWT project which is suddenly not compiling anymore but failing with an INternal Compiler error at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java: 128). This happens since a collegue of mine has made some changes (unfortunately he's two weeks on vacation so I can't ask him what could have caused the problem). I experienced the problem with GWT 2.2 and also the same error after upgrading to 2.3. I'm compiling using the GWT plugin in Eclipse. I'm on Eclipse Helios, running Google Web Toolkit SDK 2.3.0 2.3.0.r36v201105191508 com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group and Google Plugin for Eclipse 3.6 2.3.2.r36v201106211634 com.google.gdt.eclipse.suite.e36.feature.feature.group. I appreciate any help on this. Thank you very much. Kind regards, Jörn The error is as follows: [WARN] Configuration property UiBinder.useSafeHtmlTemplates is false! UiBinder SafeHtml integration is off, leaving your users more vulnerable to cross-site scripting attacks. This property will default to true in future releases of GWT. [ERROR] Errors in 'file:/C:/workspaces/LIQ/DEVELOPMENT/ LoanIQ_EventManagerWAR/src/main/java/eventmanager/support/admin/client/ view/mqcrud/MQCrudView.java' [ERROR] Internal compiler error java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/ String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/ Object; at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java: 128) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl $NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java: 64) at com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerator.java: 178) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java: 148) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java: 126) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java: 681) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 285) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 274) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:251) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:170) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:285) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $400(AbstractCompiler.java:139) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 587) at
Re: GWT 2.4: RequestFactory versus GWT-RPC
If you use GWT-RPC and JPA (with Hibernate provider) you will have serialization problemshttp://code.google.com/intl/es/webtoolkit/articles/using_gwt_with_hibernate.html. To solution this, you have this alternatives: 1) Use DTO 2) Use Gilead 3) Use a Filterhttp://books.google.com/books?id=OG816JSZYVcCpg=PA159lpg=PA159dq=hibernate+filter+gwtsource=blots=BM1BDJyWl9sig=Q18Zdh2kOVQmWu2n8L4IpGs-uIohl=esei=VxIfTtrhMsOCgAeY_oyYAwsa=Xoi=book_resultct=resultresnum=4ved=0CDkQ6AEwAw#v=onepageq=hibernate%20filter%20gwtf=false. You can read this http://groups.google.com/group/google-web-toolkit-contributors/msg/b3ccc61d4eebd21ctoo and herehttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/7e46e8c33e7ee5dayou have a sample implementation with GWT 2.3.0. With RF you will no have this problem and is efficient. But as you said, is oriented to data services and (to me) is more complicated. GWT-RPC is more general and you will write less code. Hope helps to decide. 2011/7/14 Michel Jonker michel.jon...@e-office.com Hi, This is a cross post from the AppEngine group, but since I got no response there, I want to try this group. I am trying to figure out the best practise to consume my App Engine services from both Android and GWT. Since the services are not that data oriented, I first considered GWT- RPC. But given the fact that the GPE 2.4 sample project voor Android comes with RequestFactory, I am leaning towards this approach. I was hoping someone could validate this 'best practise' : When you have both Android and GWT consumers of your App Engine service, apply the RequestFactory pattern. TIA Michel Jonker -- 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: rpc with multiple data objects
Check this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/7e46e8c33e7ee5da. Hope helps 2011/7/14 fchas charlesford...@gmail.com my I'm writing a mysql persisted gwt app and I have several data objects that I want shared to the UI for crud operations but I'm confused about how to represent the objects in the service. the online examples use one data object and I don't know how to map multiple objects in the service. do I need one service and servlet mapping per object or is there a better way? i'm new to java servlets so please pardon my complete ignorance. -- 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: A gwt-sample. Integrate Spring, JPA2.
An interensting related thread, GWT 2.4: RequestFactory versus GWT- RPC: http://groups.google.com/group/google-appengine-java/browse_thread/thread/d68fa207e1e36e7e On 12 jul, 15:18, Kayode Odeyemi drey...@gmail.com wrote: Thanks Juan. I hit a road block on this sometime ago. It's good to have this online. I only saw this implementation in the book Google App Engine Java and GWT Application Development for the Connectr App sample. Thanks a lot. On Tue, Jul 12, 2011 at 5:23 PM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Interesting! Thanks!. 2011/7/12 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, I update the sample. I add an Hibernate Filter, an alternative to DTOs or Gilead to the solve the problem of serialization in GWT-RPC comunication. See http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. With this filter, proxys are put to null and initialize collection convert to java collections frameworks implementation. For example PersistenSet to HashSet. With this filter can solve LIE. Is an alternative to Gilead or DTOs. Other alternatives, I think are intrusive (Gilead) or generate a lot of duplicate code (DTOs). Is tested with GWT 2.3.0. Or more complicate as RF. RF is better I suppose, but to me, more complicated. Best regards, Juan On May 27, 4:06 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Hi folks, I wanna contribute to the communitiy with a little sample. I put inhttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home Features: - JPA 2. - gin. - gwt-dispatch. Handlers are spring managed beans. - jsr-330 in client and server side. - Spring. - Spring Security. - H2 database. - Build by maven. - Runnable by jetty (mvn jetty:deploy-war). - Autogenerate database by reading domain classes. Use activity and places. Regards, Juan -- 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. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- 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. -- Odeyemi 'Kayode O.http://www.sinati.com. t: @charyorde -- 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: Maven repo with GWT snapshots or RCs
You can dowload the sources and compile in last instances. 2011/7/14 Alexander Orlov alexander.or...@loxal.net Is there a Maven repo with GWT snapshots or at least GWT milestones or RCs? Also I haven't found any repo with gwt-servlet-deps or requestfactory-* libs. Every hint is appreciated! -Alex -- 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: Need suggestions on supporting both Web and Desktop front-end.
gwt4air perhaps help. 2011/7/12 Warren Tang warren.c.t...@gmail.com I need to build an application which has both a web font-end and a desktop front-end. There is a relational database. Lightweight frameworks are preferred. My previous project was done with SmartGWT + GWT + MyBatis. And it is the only java project I've done. Currently my thought is GWT + Spring + MyBatis. I also heard about SpringRoo. But the idea is quite vague for me. So could someone kindly make it clear for me? How can I use GWT + Swing/SwingRoo to support both the web and the desktop client, and reuse the business code? What else do I need? What's their roles? -- 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/-/HF43CGyLvqQJ. 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: A gwt-sample. Integrate Spring, JPA2.
Hi folks, I update the sample. I add an Hibernate Filter, an alternative to DTOs or Gilead to the solve the problem of serialization in GWT-RPC comunication. See http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. With this filter, proxys are put to null and initialize collection convert to java collections frameworks implementation. For example PersistenSet to HashSet. With this filter can solve LIE. Is an alternative to Gilead or DTOs. Other alternatives, I think are intrusive (Gilead) or generate a lot of duplicate code (DTOs). Is tested with GWT 2.3.0. Or more complicate as RF. RF is better I suppose, but to me, more complicated. Best regards, Juan On May 27, 4:06 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Hi folks, I wanna contribute to the communitiy with a little sample. I put inhttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home Features: - JPA 2. - gin. - gwt-dispatch. Handlers are spring managed beans. - jsr-330 in client and server side. - Spring. - Spring Security. - H2 database. - Build by maven. - Runnable by jetty (mvn jetty:deploy-war). - Autogenerate database by reading domain classes. Use activity and places. Regards, Juan -- 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: Integrating GWT with windows 7 taskbar
Thanks for sharing!! 2011/7/11 Magno Machado magn...@gmail.com I've just released a sample showing how to use Windows 7 taskbar features (like overlay icons, jumplists, etc) on a GWT app https://bitbucket.org/magnomp/gwtpinnedapp/ Hope it can be usefull for someone Hope other browsers implement a similar API, for the end-user it's amazing. As of today only IE9 supports that, afaik -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- 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: How do I render celltable data in chunks?
See this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/f539d58327a351d3?pli=1. Perhaps help you 2011/7/10 Potate sammyjiang...@gmail.com Thanks for the solution. Tho I forgot to mentioned that one of the requirements for the UI is to avoid paging. We would like to show a long list and let users scroll using the browser's scroll bar. I would definitely give a try at the showcased examples. Are there any other workarounds for this? thanks very much On Jul 10, 10:59 pm, Tony Rah xsegr...@gmail.com wrote: Attach a paging control to your cell widget and page say 10 or 20 rows at a time. You can also adapt paging to the scroll bar so the user doesnt have to press buttons. When the scroll gets to the end it will render the next page. There are samples in the gwt showcase to give you an idea how it all works. On Jul 9, 9:28 pm, Potate sammyjiang...@gmail.com wrote: Hi I have 100+ rows to render in a celltable. The actual data is downloaded quite fast via RPC call. However, rendering these 100+ rows in IE6 is awfully slow. It also causes temporary UI lockups. Is it possible to render the table in chunks? maybe like 10 rows at a time incrementally? I tried the following but it doesn't seem to work in IE6. I still get lockups: Scheduler.get().scheduleIncremental(new RepeatingCommand() { int cur = 0; @Override public boolean execute() { int size = data.size(); ListOrderEntry batch = data.subList( cur, Math.min(cur+BATCH_SIZE, size)); tableDataProvider.getList().addAll( batch ); tableDataProvider.flush(); cur = cur + BATCH_SIZE; if (cur = size-1) { // force a sort ColumnSortEvent.fire(table, table.getColumnSortList()); return false; } else { return true; } } }); also, I'm forcing a sort to put the sortable headers in the right state, even tho data got back from the server is already sorted. is there a way to avoid it? 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. -- 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 + Spring Security
Hi Renato, I have a service layer, so in this method I use JSR250 http://en.wikipedia.org/wiki/JSR_250annotations, Spring security can work with this API. In client side I don't protect the invocations. In server side, spring security throws an exception, if try to access to a protected method, and travel to the client. I wrap it in a class and show an alert to the user. Juan 2011/7/7 Renato Beserra renatobese...@gmail.com Hi, I am integrating a GWT application with Spring Security and I got a great example on a previous thread - http://groups.google.com/group/google-web-toolkit/browse_thread/thread/c8032d9a472d975b/b9634461528cd31b?lnk=gstq=renatobeserra#b9634461528cd31b. But now I want to secure my rpc calls, but i have a problem: Spring Security provides some annotations that i should use on the method declaration. But in GWT RPC the interface should be defined on client side, so the annotation is not valid. Is there a simpler solution other than making my rpc implementation to call a secured method on the server-side? Thanks in advance. -- Renato Beserra Sousa -- 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: 2.0 to 2.3
I recommend copy whole eclipse. In this copy desinstall all plugins relate to eclipse and install the lasts. When you desinstall a plugin restart eclipse. I use this way and never have problems. If fail, I continue have the old eclipse well configurated. 2011/7/7 omae...@yahoo.fr omae...@yahoo.fr Hello, I have developed a GWT application in version 2.0. I want to migrate in 2.3. What is the procedure to follow ? The only thing i have to do is to unzip the GWT SDK 2.3 and re-compile my application ? Thanks for the answer Stephane -- 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: 2.0 to 2.3
Sorry, where I put: In this copy desinstall all plugins relate to eclipse and install the lasts. Is In this copy desinstall all plugins relate to gwt and install the lasts. 2011/7/7 Juan Pablo Gardella gardellajuanpa...@gmail.com I recommend copy whole eclipse. In this copy desinstall all plugins relate to eclipse and install the lasts. When you desinstall a plugin restart eclipse. I use this way and never have problems. If fail, I continue have the old eclipse well configurated. 2011/7/7 omae...@yahoo.fr omae...@yahoo.fr Hello, I have developed a GWT application in version 2.0. I want to migrate in 2.3. What is the procedure to follow ? The only thing i have to do is to unzip the GWT SDK 2.3 and re-compile my application ? Thanks for the answer Stephane -- 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: cannot deserialize arraylist - but why?
Paste the complete stack trace 2011/7/4 Dennis Haupt d.haup...@googlemail.com neither the missing default constructor nor different element types are the problem. i suddenly can't deserialize any arraylist, no matter what's inside. is there a way to debug it to see what's wrong? 2011/7/4 Prashant antsh...@gmail.com Hi, I think Class of the object your want to send via GWTRPC must have default constructure. And, if you are putting different kind of objects in one linked list, it will not be deserialised. I faced this issues long back and I am not very sure about the solution ... -- Prashant code.google.com/p/claymus/ On Mon, Jul 4, 2011 at 2:26 PM, Dennis Haupt d.haup...@googlemail.comwrote: this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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. -- 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: avoiding web.xml configuration for rpc servlet
Use a Servlet 3.0. You can configurate via annotations. 2011/7/2 iker casillas...@gmail.com It is possible to create RPC servlet without adding servlet and servlet-mapping to web.xml? I want to create library which has own servlet implementation and uses it but i want to user do not have to adding these tags to web.xml -- 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: Very confusing aspect of MVP documentation!
which did not change with the 2.1 release and is unlikely to change. This is not common in reality. 2011/7/1 David Chandler drfibona...@google.com While it's true that gwt-platform is not supported or endorsed by Google, note that gwt-platform creator Philippe Beaudoin was invited to present at Google I/O this year (see the video at http://code.google.com/p/gwt-platform/). Also note that both gwt-platform and Activities and Places are built on the same core History support in GWT, which did not change with the 2.1 release and is unlikely to change. While GWT may continue to add new features in Activities and Places, I don't anticipate any changes that would break gwt-platform. The GWT team values the many 3rd party projects around GWT and generally tries to keep core GWT APIs as loosely coupled as possible in order to permit different development styles. /dmc On Fri, Jul 1, 2011 at 9:14 AM, cri chuck.irvine...@gmail.com wrote: I would imagine that GWT-Platform is better than GWT's native MVP (by which I mean Activities/Places/ActivityMapper), otherwise it probably wouldn't exist. The problem I have is that GWT-Platform isn't supported by Google while their MVP is. Maybe GWT MVP isn't entirely sufficient but it has worked well for us. It's not unreasonable to assume that Google will enhance it in the future. What happens then for development shops that have migrated to GWT-Platform and they are tempted to switch back? They have existing code that uses another framework and developers that are used to the non standard package. Messy right? On Jul 1, 4:00 am, Russ 10wattmindt...@gmail.com wrote: What I did was read through the MVP articles 1 2, read about the Activity and Places approach, tried coding a bit to get more familiar with the terminology and then started using GWT-Platform. With the new plugin it simplifies all of the cruft and confusion that is MVP.. On Thu, Jun 30, 2011 at 8:02 PM, cri chuck.irvine...@gmail.com wrote: Hmm Well, part of this is semantics I think. What exactly constitutes MVP is the question. But regardless of that, it is true: 1) That one can use the combination of Views, ClientFactory, Activities, Places, PlaceHistoryMapper, and ActivityMapper as described at http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd. .. to organize and automate Activity/View transition. We've done this on several projects and have more in the pipeline. 2) The concepts/methods/classes described in the Part I and II articles seem more manual and labor intensive and, though similar in concept, are distinctly different in their detailed approach compared to the above. We tried both with multiple real world projects and View/ Activities/Places/ActivityMapper/etc we've found to be superior. Interestingly, we really not used them at all for history management. 3) One might argue that one is better than the other I guess but to present them both, side by side, is just plain confusing to your user base. On Jun 30, 5:10 pm, David Chandler drfibona...@google.com wrote: Hi cri, Thanks for pointing this out. Ironically, I added that note along with other changes just a few days ago in order to try to decouple MVP from Activities and Places. The GWT team, including Ray Ryan, doesn't think of Activities and Places as an MVP framework. It's a way to manage browser history and provides no base classes for presenters or views. MVP proper, as we're currently defining it, is not concerned with browser history management. Ray Ryan's talk in 09 and the previous MVP articles mentioned these concepts together, but they are not necessarily coupled, and we're trying to reflect that in the docs going forward. At any rate, I hadn't noticed that the prior MVP articles discuss browser history management and I can see how this would lead you down the wrong path. We're working on updated versions, but in the mean time, I'll add notes to the history management sections pointing forward to Activities and Places instead. Thanks again, /dmc On Thu, Jun 30, 2011 at 4:43 PM, cri chuck.irvine...@gmail.com wrote: I can only say that we've been very happy with the framework described at http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd. .. , aside from the issue I mentioned in my original post. Regarding database access and login/logout - those seem separate from MVP really. On Jun 30, 3:35 pm, Xybrek xyb...@gmail.com wrote: On Friday, 01 July, 2011 04:13 AM, cri wrote: If you go tohttp:// code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd.. ., you'll see the note: ** Strictly speaking, MVP architecture is not concerned with browser history
Re: Kiss Gergely csevegni szeretne
Can you post in english? 2011/6/29 Kiss Gergely kiss.gerg...@gmail.com --- Kiss Gergely hatékonyabban szeretne kommunikálni Önnel a Google néhány remek szolgáltatásával. Ha már használja a Gmail alkalmazást vagy a Google Csevegőt, kattintson ide: http://mail.google.com/mail/b-ef657bb7bb-620168f51f-9JWi-rv0ufJkkSuocwRAjwBrUgI Kövesse ezt a linket, ha csevegni szeretne Kiss Gergely ismerősével. Ha használni szeretné a Gmail alkalmazást - a Google ingyenes e-mail fiókját, amelyhez több mint 2800 MB tárhely tartozik -, és csevegni szeretne Kiss Gergely ismerősével, kattintson ide: http://mail.google.com/mail/a-ef657bb7bb-620168f51f-9JWi-rv0ufJkkSuocwRAjwBrUgI Amit a Gmail kínál: - Csevegés közvetlenül a Gmail alkalmazásban - Hatékony védelem a spam ellen - Beépített kereső az üzenetek megtalálásához és hasznos lehetőség az e-mailek beszélgetésekbe rendezéséhez - Nincsenek előugró hirdetések és célzatlan szalaghirdetések - csak üzenetekhez kapcsolódó szöveges hirdetések és információk Mindez nem kerül semmibe. Várjon csak, ez még nem minden! Ha nyit egy Gmail-fiókot, a Google Csevegőhöz, a Google csevegőszolgáltatásához is hozzáférhet: http://www.google.com/talk/ Amit a Google Csevegő kínál: - Internetalapú csevegő, amely bárhol, külön szoftver letöltése nélkül használható - Címtár, amelyet a rendszer szinkronizál a Gmail-fiókkal - Ingyenes, kiváló minőségű, számítógépek közötti audiohívások a Google Csevegő ügyfélprogram letöltésével Folyamatosan dolgozunk azon, hogy új funkciókat építsünk be és továbbfejlesszük a meglévőket, ezért időről időre az Ön véleményét és javaslatait is kikérhetjük. Nagyra értékeljük segítségét, amelyet termékeink fejlesztéséhez nyújt! Köszönettel: a Google csapata Ha többet szeretne tudni a Gmail és a Google Csevegő működéséről, kattintson ide: http://mail.google.com/mail/help/intl/hu/about.html http://www.google.com/talk/about.html (Ha erre az URL-címre kattintva nem nyílik meg a megfelelő oldal, másolja az URL-t a vágólapra, és illessze be a böngésző címsávjába). -- 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: Using a JPA Entity in the client
I use this approach and I preferr to RF, is more simple. But you need something in the middle to pass jpa classes with proxies (if you use Hibernate). I use the approach mentioned in this threadhttp://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/41abe949b4104817?fwc=1pli=1. No DTO, no Gilead. I will share the code soon. 2011/6/30 Cristiano cristiano.costant...@gmail.com Hello All, While searching for instructions and best practices for using GWT and JPA, I see everywhere guides suggesting to create 2 different bean classes, a JPA Entity for handling on the server-side the persistence on the database, and a DTO for exchange between the servlet and the browser... These guides suggest that GwtRpcService interface uses the DTO bean in the method signature, and in the GwtRpcService implementation, the DTO has to be transformed to the Entity bean so to persist it on the DB. I have instead developed a test application where I have only one single bean, placed in the client folder and annotated with JPA's @Entity, and I exchange it within my RPC service interface. This way it is elegant as I do not have to handle to different classes and convert them, and from my test, it is simple and it seems to _be working fine_. Anyone can give me good reasons why I shouldn't follow this approach? To be noted that someone says that to follow this approach, RequestFactory should be used instead of RPC service... why? Here the significant information about my test project: the GWT module is net.cristcost.test.jpa.TestJpa.gwt.xml, the GWT client package (source path=client /) is net.cristcost.test.jpa.client, the bean is net.cristcost.test.jpa.client.MyBean; the RPC Service interface is net.cristcost.test.jpa.client.MyBeanManagerService; the RPC Service implementation is net.cristcost.test.jpa.server.MyBeanManagerServerImpl; the RPC service has these two methods: public void addBean(MyBean bean); public ListMyBean getBeans(); And here the relevant lines of the bean: package net.cristcost.test.jpa.client; // imports... @Entity @SuppressWarnings(serial) @Table(name=my_beans, schema=jpa_test) public class MyBean implements Serializable { @Id @Column(name=id) @GeneratedValue(strategy=GenerationType.IDENTITY) private Integer id; @Column(name=object) private String object; @Column(name=subject) private String subject; // ... class continues with getter and setters ... } Thanks, Cristiano -- 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: Using a JPA Entity in the client
This side effect will fix with a filter. But I don't know how works Eclipse Link. 2011/6/30 Jeff Larsen larse...@gmail.com If you return a collection in your pojo (List, Map, Set etc) those will not serialize correctly. -- 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/-/jsDkfA1lYRkJ. 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: Hibernate Reverse Engineering + GWT RequestFactory
sl4j http://www.slf4j.org/The problem is related to classpath. You don't have sl4j http://www.slf4j.org/in your classpath. See: Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 2011/6/29 Big38 jshaw1...@gmail.com I'm a total noob in RequestFactory and Hibernate, so bare with me a little :) Any help or pointer is much appreciated. I'd like to know if it's possible to integrate the Hibernate Reverse Engineer generated files with GWT's RequestFactory. If it is, does anyone have any example project that they can show me? I reverse engineered a db table and included in the server package of the project. I can reverse engineer a db table and instantiate the DAO object to get data and output in a normal java project. However, when I tried to instantiate the DAO object on the server in a gwt project, I get the following exception... [WARN] Server class 'org.hibernate.criterion.Criterion' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/ 448321/Start%20Menu/Programs/MyEclipse/MyEclipse%209/configuration/ org.eclipse.osgi/bundles/90/1/.cp/myeclipse-data/3.3/lib/ hibernate3.jar' to the web app classpath for this session For additional info see: file:/C:/Documents%20and%20Settings/448321/ Start%20Menu/Programs/MyEclipse/Common/plugins/ com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201105191508/gwt-2.3.0/doc/ helpInfo/webAppClassPath.html Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.dtv.hibernate.client.GreetingService.greetServer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com.dtv.hibernate.server.ReplayRulesDAO.clinit(ReplayRulesDAO.java: 25) at com.dtv.hibernate.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java: 32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at com.google.gwt.dev.shell.jetty.JettyLauncher
Re: Kiss Gergely csevegni szeretne
Thanks to clarify :) 2011/6/30 Peter ffun...@gmail.com It's about google chat. He probably missclicked on the list of email addresses, and invited google-web-toolkit@googlegroups.com for google chat. There is nothing important in this mail :). 2011/6/30 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you post in english? 2011/6/29 Kiss Gergely kiss.gerg...@gmail.com --- Kiss Gergely hatékonyabban szeretne kommunikálni Önnel a Google néhány remek szolgáltatásával. Ha már használja a Gmail alkalmazást vagy a Google Csevegőt, kattintson ide: http://mail.google.com/mail/b-ef657bb7bb-620168f51f-9JWi-rv0ufJkkSuocwRAjwBrUgI Kövesse ezt a linket, ha csevegni szeretne Kiss Gergely ismerősével. Ha használni szeretné a Gmail alkalmazást - a Google ingyenes e-mail fiókját, amelyhez több mint 2800 MB tárhely tartozik -, és csevegni szeretne Kiss Gergely ismerősével, kattintson ide: http://mail.google.com/mail/a-ef657bb7bb-620168f51f-9JWi-rv0ufJkkSuocwRAjwBrUgI Amit a Gmail kínál: - Csevegés közvetlenül a Gmail alkalmazásban - Hatékony védelem a spam ellen - Beépített kereső az üzenetek megtalálásához és hasznos lehetőség az e-mailek beszélgetésekbe rendezéséhez - Nincsenek előugró hirdetések és célzatlan szalaghirdetések - csak üzenetekhez kapcsolódó szöveges hirdetések és információk Mindez nem kerül semmibe. Várjon csak, ez még nem minden! Ha nyit egy Gmail-fiókot, a Google Csevegőhöz, a Google csevegőszolgáltatásához is hozzáférhet: http://www.google.com/talk/ Amit a Google Csevegő kínál: - Internetalapú csevegő, amely bárhol, külön szoftver letöltése nélkül használható - Címtár, amelyet a rendszer szinkronizál a Gmail-fiókkal - Ingyenes, kiváló minőségű, számítógépek közötti audiohívások a Google Csevegő ügyfélprogram letöltésével Folyamatosan dolgozunk azon, hogy új funkciókat építsünk be és továbbfejlesszük a meglévőket, ezért időről időre az Ön véleményét és javaslatait is kikérhetjük. Nagyra értékeljük segítségét, amelyet termékeink fejlesztéséhez nyújt! Köszönettel: a Google csapata Ha többet szeretne tudni a Gmail és a Google Csevegő működéséről, kattintson ide: http://mail.google.com/mail/help/intl/hu/about.html http://www.google.com/talk/about.html (Ha erre az URL-címre kattintva nem nyílik meg a megfelelő oldal, másolja az URL-t a vágólapra, és illessze be a böngésző címsávjába). -- 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. -- 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: Problem with MySQL connection
Can you paste the complete stack tace? 2011/6/29 devel deve...@googlemail.com Hi everyone, I've got again a problem where I don't know how to proceed. I've got a Hibernate configuration that is perfectly working on a normal Java application. I've copied everything (config, classes, libs) to a GWT application (libs also to WEB-INF/lib) and since then there is no connection to the database server possible. I get an exception when I try to open a transaction: org.hibernate.exception.JDBCConnectionException: Cannot open connection ... Caused by: java.sql.SQLException: URL is not in the correct format: jdbc:mysql://127.0.0.1:3306/sample The format is correct because it is perfectly working in the local application. The curious thing is that everything is running fine if I deploy my application to a Tomcat server. What do I have to configure in order to run it in my Eclipse with Jetty of the GWT SDK? Thanks in advanced for help! devel -- 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: Curious instance equality issue with Longs
You must use equals() to compare objects. I have similar issue, but inverse. In production run and in dev mode not. The problem I think is, for example the next expression: anInteger == otherInteger If are different objects don't work in Java (becouse compare memory pointers), but when GWT compile translate to Javascript works becouse == in Javascript is behave different. Conclusion, use equals always to compare objets and you will don't have this kind of bugs Juan 2011/6/28 Jens jens.nehlme...@gmail.com Hi, I just fixed a bug in my application and the circumstances under which the bug has occurred (or better has been noticed) are really strange and maybe someone here can give me a hint to understand it. First of all the bug itself was pretty dump because I have done a businessObject.getId() == this.currentBo.getId() check on client side and both instances have been loaded from the server (GWT RPC). So both instances are different (deserialization) and it should be an equals check (must have been late). The curious thing is that the instance check has worked for me in my development environment (hosted mode as well as compiled)!! So I thought everything is fine with my code and I deployed to production and then the bug occurs (the instance check always returns false). There is no difference between my development environment and the production environment except the data stored in the database (test data vs. real data). So I have copied production data to my development database and then the bug also occurs in development environment! I know it sounds pretty silly and I am sure the reason is not the actual data but maybe its part of it. So I have done some logging and it turns out that the Long instances returned by getId() can be the same although the businessObject instances are different. So basically: 1.) businessObject == this.currentBo returns false 2.) businessObject.equals(this.currentBo) returns true 3.) businessObject.getId() == this.currentBo.getId() returns true (this should return false!) The id itself can only be set via the BusinessObject's constructor, so its immutable. Does anyone have an idea how this can happen? As the BusinessObjects instances are created by deserializing the GWT RPC payload I thought that every instance is different. How can it happen that Long instances are the same? I do not have any idea that would help me to understand what has happened. -- J. -- 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/-/bAJy30kYUf8J. 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: Error when run in Eclipse in Mac
Any ideas? 2011/6/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, When run in Eclipse an GWT application show me an error (only in a Mac). This error I can fix in maven when add xercesImpl 2.9.1 as depedency in the project and in the plugins. But in eclipse I don't know how resolve. Enviroment: Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) Java version: 1.6.0_24 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.6.8 arch: i386 Family: mac Error: 2011-06-29 00:04:22.908 java[20592:903] [Java CocoaComponent compatibility mode]: Enabled 2011-06-29 00:04:22.912 java[20592:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [WARN] Unable to process 'file:/Users//WEB-INF/web.xml' for servlet validation org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:188) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:172) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:426) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) Loading modules gov.senasa.embalajemadera.EmbalajeMadera [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:324) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:151) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:979) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:548) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:436) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] Unexpected error while processing XML com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:355) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:151) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:979) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:548) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:436) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] shell failed in doStartup method -- 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
Re: Error when run in Eclipse in Mac
Hi Gal!! Thanks for your time: I paste the XML file, but the error is a classpath issue. This error had when compile with maven and fix when add xercesImpl 2.9.1 as dependency in project (with scope provided) and in the plugin gwt-maven-plugin. If I can pass xercesImpl 2.9.1 to the plugin I will fix this problem. En español. Teniamos este error y lo solucionamos agregando xercesImpl como dependencia en el proyecto y en el plugin. Pero el tema es como hacemos para pasarle xerces al plugin de eclipse. Es como que toma un parseador SAX viejo y no funciona, pero si tomara xerces funciona. ?xml version=1.0 encoding=UTF-8? module rename-to='embalajeApp' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User' / inherits name=com.google.gwt.i18n.I18N / inherits name='com.google.gwt.user.theme.standard.Standard' / !-- Other module inherits -- inherits name=com.google.gwt.activity.Activity / inherits name=com.google.gwt.place.Place / !-- GIN: DI para JavaScript -- inherits name=com.google.gwt.inject.Inject / !-- Gwt dispatch -- inherits name='net.customware.gwt.dispatch.Dispatch' / !-- javax.inject -- inherits name='javax.JSR330' / !-- validation framework -- inherits name='eu.maydu.gwt.validation.ValidationLibrary' / !-- Specify the app entry point class. -- entry-point class='...' / !-- Specify the paths for translatable code -- source path='client' / source path='shared' / !-- Spanish language, independent of country -- extend-property name=locale values=es_AR/ set-property name=locale value=es_AR / !-- THIS LINE IS ADDED FOR DEBUGGING PURPOSE -- set-configuration-property name=CssResource.style value=pretty/ /module 2011/6/29 Gal Dolber gal.dol...@gmail.com Can you copypaste the gwt module file that its failing? It should be gov.senasa.embalajemadera.EmbalajeMadera.gwt.xml On Wed, Jun 29, 2011 at 12:24 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Any ideas? 2011/6/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, When run in Eclipse an GWT application show me an error (only in a Mac). This error I can fix in maven when add xercesImpl 2.9.1 as depedency in the project and in the plugins. But in eclipse I don't know how resolve. Enviroment: Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) Java version: 1.6.0_24 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.6.8 arch: i386 Family: mac Error: 2011-06-29 00:04:22.908 java[20592:903] [Java CocoaComponent compatibility mode]: Enabled 2011-06-29 00:04:22.912 java[20592:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [WARN] Unable to process 'file:/Users//WEB-INF/web.xml' for servlet validation org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:188) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:172) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:426) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) Loading modules gov.senasa.embalajemadera.EmbalajeMadera [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:324) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath