Re: GWT 2.3 Upgrade breaks hibernate queries?
Hi All, I am facing the same issue and I have added the validation-api-1.0.0.GA.jar, validation-api-1.0.0.GA-sources.jar, hibernate-validator-4.1.0.Final-sources.jar, and hibernate-validator-4.1.0.Final.jar to the war/WEB-INF/lib and to the eclipse classpath(buildpath) but the issue still remains. When I remove the validation-api-1.0.0.GA.jar from the classpath it gets resolved, but when I add it again issue persists. I am using Hibernate 3 and Spring in the application. I am not sure why it is not able to find BeanValidationFactory inspite of adding hibernate-validator in the classpath. Is there any particular version that is required?? Your inputs will be helpful as I am stuck with this for quite some time. Below is the complete error message for reference. [WARN] Server class 'javax.validation.Validation' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/Workspace/OneBill/src/war/WEB-INF/lib/hibernate-validator/validation-api-1.0.0.GA.jar' to the web app classpath for this session For additional info see: file:/F:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.2.0.v201103311225/gwt-2.2.0/doc/helpInfo/webAppClassPath.html ERROR [main] (ContextLoader.java:220) - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/spring/spring-common-config.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:461) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) Caused by: org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127) at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1704) at
Re: a basic gwt-maven-plugin question
Right click on that folder and then select Build Path Use as Source Folder. -- 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/-/qpRZjOnQUg0J. 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 Upgrade breaks hibernate queries?
Hi All, I am facing the same issue and I have added the validation-api-1.0.0.GA.jar, validation-api-1.0.0.GA- sources.jar, hibernate-validator-4.1.0.Final-sources.jar, and hibernate-validator-4.1.0.Final.jar to the war/WEB-INF/lib and to the eclipse classpath(buildpath) but the issue still remains. When I remove the validation-api-1.0.0.GA.jar from the classpath it gets resolved, but when I add it again issue persists. I am using Hibernate 3 and Spring in the application. I am not sure why it is not able to find BeanValidationFactory inspite of adding hibernate-validator in the classpath. Is there any particular version that is required?? Your inputs will be helpful as I am stuck with this for quite some time. Below is the complete error message for reference. [WARN] Server class 'javax.validation.Validation' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/Workspace/OneBill/src/war/WEB-INF/lib/hibernate-validator/validation-api-1.0.0.GA.jar' to the web app classpath for this session For additional info see: file:/F:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.2.0.v201103311225/gwt-2.2.0/doc/helpInfo/webAppClassPath.html ERROR [main] (ContextLoader.java:220) - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/spring/spring-common-config.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:461) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) Caused by: org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127) at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1704) at
Re: a basic gwt-maven-plugin question
The problem with that is *Maven-Update Project Configuration* wipes out this manual setting. Is it possible to do configure this in POM? Ideally, it would useful to control the project from the command line outside of Eclipse. -- 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/-/GfTvC3hHSzkJ. 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 basic gwt-maven-plugin question
It doesn't happen to me (Eclipse 3.6). I'd suggest you check this wiki for eclipse setup: http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven Regards, Warren Tang http://blog.tangcs.com On 9/16/2011 2:58 PM, Y2i wrote: The problem with that is /Maven-Update Project Configuration/ wipes out this manual setting. Is it possible to do configure this in POM? Ideally, it would useful to control the project from the command line outside of Eclipse. -- 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 create image sprits
Hello Ramesh, If you want to bundle your 200+ images, you have to manually write a declaration like @Source(image/image.gif) ImageResource image(); for each of them. Though tedious, this method is quite handy and avoid the overhead of using 200+ separate files. While I understand your need to create image sprites, I misunderstood something: do you need to use your images in your GWT webapp? If not, this would not be helpful since the client bundle would only be useful if you need to access the sprite from inside a GWT application. Let me know and we will discuss further. -- 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.
Exception LogConfiguration GWT2.4
Hello I get this exception (in production mode). She's throw by 10 ou 100 by seconds, one ore two times a day. [CODE] 2011-09-16 08:36:47 ERROR [gwt.client.com.google.gwt.logging.client.LogConfiguration:74] One or more exceptions caught, see full set in UmbrellaException#getCauses java.lang.Throwable: One or more exceptions caught, see full set in UmbrellaException#getCauses at java.lang.Exception.Exception(Exception.java:32) at java.lang.RuntimeException.RuntimeException(RuntimeException.java: 32) at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java: 36) at com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java: 25) at com.google.gwt.event.shared.HandlerManager. $fireEvent(HandlerManager.java:117) at com.google.gwt.user.client.ui.Widget.$fireEvent(Widget.java:127) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 102) at com.google.gwt.user.client.ui.Widget.$onBrowserEvent(Widget.java: 163) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 163) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1302) at Unknown.anonymous(Unknown Source) at com.google.gwt.core.client.impl.Impl.apply(Impl.java:165) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:196) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) Caused by: java.lang.Throwable: (TypeError): 'a' a la valeur Null ou n'est pas un objet. number: -2146823281 description: 'a' a la valeur Null ou n'est pas un objet. [/CODE] Do you know what it is? 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.
Re: a basic gwt-maven-plugin question
Could you please send us the relevant part of your POM and GWT module configuration file? -- 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: is it possible to integrate PersistentUnit annotations in RequestFactoryServlet?
i know i CAN use guice, but i CAN't use it, becouse our CTO is against integrating anything else aside from GWT (yea i know using GWT alone is an anti-pattern, but he doesn't want any added risks, hell he won't let us even use Activity places) so i was wondering if there is any underlying mechanism i can tap into. something that would retrieve a name maybe from the servlet web.xml and i'd be able to somehow use it in my api. On Thu, Sep 15, 2011 at 5:20 PM, Jens jens.nehlme...@gmail.com wrote: You can use guice with RequestFactory: http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory -- 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/-/6YEPMo8CcXUJ. 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: HOWTO handle right click on CellTable Header ?
Ok, that's work. I can display my popup menu. But it doesn't prevent default browser popup menu : http://xemelios.org/private/many-menus.png To stop propagation, I've tried this without any success : public void onBrowserEvent(Cell.Context context, final Element parent, SafeHtml value, final NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { event.stopPropagation(); ... Any idea ? Thanks in advance, Christophe On 15 sep, 17:23, Thomas Broyer t.bro...@gmail.com wrote: Where is this sinkEvents from? class SafeHtmlCellWithContextMenuT extends SafeHtmlCell { public SetString getConsumedEvents() { return Collections.singleton(contextmenu); } public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml value, NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { // here, event.getType() should be contextmenu } } Then use with: new Header(new SafeHtmlCellWithContextMenu()); (best IMO would be to turn the above into a generic Cell that can wrap any other Cell, delegating everything to the wrapped cell, except for getConsumedEvents to add contextmenu to the list, and onBrowserEvent to handle the contextmenu) -- 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: JSNI - Call Javascript native method from another
'this' is a keyword, which depends on the way the function has been called. Because you do not pass this as an argument to addHandler, it's clear that the function you pass won't ever be called with its this set to the value of this at the time you called addHandler. Storing this in to a variable works around it. in Java, this is a bit similar to the this in anonymous classes refering to the anonymous class, and not the class it was defined in. However, in Java, you have the TheParentClass.this notation; that does not exist in JavaScript (and, this is contextual to the *call* in JS, whereas it's contextual to the *declaration* in Java; always). -- 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/-/YV5kST9OYqAJ. 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: Generated AutoBean name length for Proxies too long
Yes, you can safely ignore them. What they tell you is that you won't find the source for the generated class in the …target/.generated/…; which is generally the reason you'd use -gen (have access to the generated sources to help debug things –setting breakpoints and debug step-by-step–) I wish there was a way to disable -gen for gwt-maven-plugin, as it generates a whole lot of I/O, which slows down the compilation. -- 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/-/wSTl7tWkG-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.
Re: Missing required argument 'module[s]' error
The missing module argument is the full name of your module, e.g. com.google.gwt.sample.mail.Mail. Add it to the end of the argument in Run Configuration and the error should disappear. -- 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/-/dhOokgwLBOMJ. 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 basic gwt-maven-plugin question
Maven - update project configuration does break things for me: 1. Modules argument missing in .launch files. 2. GWT support unchecked. Seems like gwt-maven-plugin does not catch up and still works in old ways. Regards, Warren Tang http://blog.tangcs.com On 9/16/2011 3:29 PM, Alexandre Dupriez wrote: Could you please send us the relevant part of your POM and GWT module configuration file? -- 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: EJB integration in GWT-jBoss-project
Hi Karim, thanks for the help - and you were totally right. I just made the well i failed in adding compiled classes. Instead I included the source-files :-) Now, that I get this far, however, another error (of course) occurs: My jBoss brings up a deployment error: DEPLOYMENTS IN ERROR: Deployment vfs:///D:/Development/jboss-6.1.0.Final/server/default/ deploy/kylintv.gwt.war is in error due to the following reason(s): java.lang.RuntimeException: Could not resolve @EJB reference: [EJBReference: beanInterface 'sung.app.kylintv.product.Product', beanName 'null', mappedName 'null', lookupName 'null', owning unit 'AbstractVFSDeploymentContext@73321136{vfs:///D:/Development/ jboss-6.1.0.Final/server/default/deploy/kylintv.gwt.war}'] for environment entry: env/Product in unit AbstractVFSDeploymentContext@73321136{vfs:///D:/Development/ jboss-6.1.0.Final/server/default/deploy/kylintv.gwt.war} at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java: 1228) [:2.2.2.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java: 905) [:2.2.2.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java: 87) [:6.1.0.Final] at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java: 107) [:0.2.2] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java: 135) [:6.1.0.Final] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java: 56) [:6.1.0.Final] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java: 827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6] at org.jboss.bootstrap.impl.base.server.AbstractServer $StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl- base.jar:2.1.0-alpha-6] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25] Like this, there seems to be an error with my called in classes. relvant code-snippets: gwt-server: ... private Product product; @EJB(name = Product ) public void setProduct(Product product) { this.product = product; } ... ejb-source: ... Stateless(name=Product) @Local(Product.class) public class ProductHome extends HomeBaseProductEntity implements Serializable, Product { ... Is there another requirement, which I didnt include? -- 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.
Cannot lo0ad my application since the upgrade to gwt 2.4
Hi everyone, I just upgraded to gwt2.4, but when I load my application I get this exception: [exception] [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: javax/validation/Path at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:196) at com.google.gwt.user.server.rpc.RemoteServiceServlet.loadSerializationPolicy(RemoteServiceServlet.java:90) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:293) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:157) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:455) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:237) at cri.domodentweb.server.rpc.BaseServiceImpl.processCall(BaseServiceImpl.java:44) 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 cri.domodentweb.server.servlets.GWTCacheControlFilter.doFilter(GWTCacheControlFilter.java:41) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) 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.ClassNotFoundException: javax.validation.Path at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at
Re: Cannot lo0ad my application since the upgrade to gwt 2.4
You need to add validation-api-1.0.0.GA.jar to your classpath. -- 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/-/vLXHE6By7CAJ. 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.
Generating module.cache.js instead of module.nocache.js
The default behavior of GWT is to generate the *module.nocache.js* versions. But how can I generate a *module.cache.js* version of a module? I've foundsome informationhttp://code.google.com/p/google-web-toolkit/wiki/LinkerDesignabout this issue but it seems to be obsolete. Also what does *cache.js *mean exactly? Can't I achieve the same result by adding *.*nocache.js to HTML5's App Cache?* -- 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/-/Lw3HChYQBC0J. 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 lo0ad my application since the upgrade to gwt 2.4
…or gwt-servlet-deps.jar (contains javax.validation and org.json) -- 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/-/pCUEO2XX8YkJ. 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: Generating module.cache.js instead of module.nocache.js
*.cache.* and *.nocache.* are just naming conventions adopted by GWT to help setup the perfect cachinghttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#perfect_cachingconfigurations. If you enable caching for the *.nocache.js file, then you explicitly allow intermediate servers/proxies, and browsers, to serve/use a possibly obsolete version of you app, without necessarily checking for a fresher on at your server. That means your servlets have to be prepared receiving requests from such versions even after you pushed an update to your server. -- 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/-/yrGsA3FkfFsJ. 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: HOWTO handle right click on CellTable Header ?
Have you tried with event.preventDefault() ? On Sep 16, 10:35 am, Christophe christophe.march...@contactoffice.net wrote: Ok, that's work. I can display my popup menu. But it doesn't prevent default browser popup menu :http://xemelios.org/private/many-menus.png To stop propagation, I've tried this without any success : public void onBrowserEvent(Cell.Context context, final Element parent, SafeHtml value, final NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { event.stopPropagation(); ... Any idea ? Thanks in advance, Christophe On 15 sep, 17:23, Thomas Broyer t.bro...@gmail.com wrote: Where is this sinkEvents from? class SafeHtmlCellWithContextMenuT extends SafeHtmlCell { public SetString getConsumedEvents() { return Collections.singleton(contextmenu); } public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml value, NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { // here, event.getType() should be contextmenu } } Then use with: new Header(new SafeHtmlCellWithContextMenu()); (best IMO would be to turn the above into a generic Cell that can wrap any other Cell, delegating everything to the wrapped cell, except for getConsumedEvents to add contextmenu to the list, and onBrowserEvent to handle the contextmenu) -- 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.
byte array to Image
Hi all, From a web service I am receiving a byte array that represents a image. I need to somehow squeeze this byte array into a image widget or similar widget on my client side. First I tried to convert the byte array to a base64 string: String base64 = Base64Utils.toBase64(image); base64 = data:image/png;base64,+base64; This didn't work. The developer of the web service informed me that I should not convert the byte array to a base64 string, and just use it directly. To test if the byte array represented a correct image, I saved the byte array to a physical image: InputStream in = new ByteArrayInputStream(image); BufferedImage bImage = ImageIO.read(in); File outputfile = new File(saved.png); ImageIO.write(bImage, png, outputfile); This succesfully resulted in a physical image being created. However I don't want to write the file and then send the URL to the image widget on my client side. Anybody have any suggestion about how I can get this byte array squeezed into a image? Or convert this byte array to a base64 string that does work? -- 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: Generating module.cache.js instead of module.nocache.js
On Friday, September 16, 2011 12:00:59 PM UTC+2, Thomas Broyer wrote: *.cache.* and *.nocache.* are just naming conventions adopted by GWT to help setup the perfect cachinghttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#perfect_cachingconfigurations. Really useful insights! If you enable caching for the *.nocache.js file, then you explicitly allow intermediate servers/proxies, and browsers, to serve/use a possibly obsolete version of you app, without necessarily checking for a fresher on at your server. That means your servlets have to be prepared receiving requests from such versions even after you pushed an update to your server. That's also what I had in mind. I just wondered why so many Google apps use the *.cache.js version. Ok, if the content ist pretty static and for a *very high* number of reqs/s it may be a viable solution. -- 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/-/3LfdY32RvbwJ. 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: Radiobutton vs checkbox in celltable
The simplest thing to do is to copy and paste CheckboxCell as RadioCell (for example) and then just change the templates at the top to input type=radio name=blah But you do need to put in a name for a radio cell, and if you use blah as the name than the radio cell will give you problem if you have cells in multiple columns. Derek On Sep 15, 3:02 pm, Roger Studner rstud...@gmail.com wrote: If I do a single selection model etc.. (canonical).. I get a checkbox. Technically, you'd think, this would render as a radio button.. Anyone experiment/discover how to replace the default check box column w/ a radio button ? thanks Roger -- 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 Upgrade breaks hibernate queries?
http://osdir.com/ml/Google-Web-Toolkit/2011-02/msg02044.html Found a solution to the problem, where validation is disabled for hibernate, so no need to add the additional jars. This worked for me. -- 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/-/QRg6l2wa_YIJ. 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, Canvas, and excanvas.js
Please see http://code.google.com/p/gwt-g2d/ and http://gwt-g2d.appspot.com/doc/index.html. I have used the canvas provided there. It is very good. J.Ganesan www.DataStoreGwt.com On Sep 16, 2:29 am, Christopher Piggott cpigg...@gmail.com wrote: Hi, I have been searching for information on excanvas.js and GWT, and I find a lot of information that is old/obsolete. Some documents say that you still need excanvas; others do not. I have tried to make it work by including excanvas.js then creating a little canvas in my GWT project's html loader page (index.html in my case). What I see are two things. First, my little sample canvas draws just fine in IE8 (I drew a box). But then, my GWT initiated canvas still doesn't work. My code fails here: canvas = Canvas.createIfSupported(); if (canvas == null) { initWidget(new Label(Sorry, your browser doesn't support the HTML5 Canvas element)); return; } It always thinks there's no canvas support. Can anybody definitively say for version 2.3.0 of GWT 1) whether or not it should work 2) what steps you need to take to initialize it so it does? Thanks, --Chris -- 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: NullPointerException in MethodPropertyContext
On Sep 15, 5:52 pm, Thomas Broyer t.bro...@gmail.com wrote: You should make one sub-interface of AValueProxy per type of AGenericEntityProxy that you'd use for its T type parameter; remove the type parameter (making AValueProxy no longer generic), and using @ExtraTypes (GWT 2.4 onwards) for polymorphism, listing the sub-interfaces you previously created. Hello again Thomas, I tried to do as you suggest, but I'm having a hard time understanding how this ExtraTypes is supposed to be used. The RequestFactory doc page doesn't say much... What I'm trying to make is a generic widget to deal with Hibernate Envers audited entities. On my server side, I have a type RevisionT extends AuditedEntity, where AuditedEntity is an abstract class extended by every entity which is supposed to be audited by Envers. So, as you suggested, I created an interface RevisionProxy which is a @ProxyFor(Revision.class). I also created an interface EntityARevisionProxy which is supposed to be a proxy for RevisionEntityA, so I added @ProxyFor(Revision.class) as well. This interface extends RevisionProxy. Now, you say that I should add @ExtraTypes({EntityARevisionProxy.class}) to RevisionProxy, is that it? That didn't work, I got a stack overflow during compilation time. The stack overflow goes away if I remove the @ProxyFor from EntityARevisionProxy, but then the compiler complains about this @ProxyFor absence. As you can see, I'm lost here... can you say what I'm doing wrong, or point me to an example I could follow? Thank you in advance -- 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.
Changing app from one gwt version to another version problem
Hi previously i am using GWT 2.3 now i am using GWT 2.4 i coppied my app from 2.3 to 2.4 it shows some errors like below. couls u plz help me when any body know. The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT SDK library gwt-servlet.jar; perhaps it is a different version? gwt- servlet.jar /Welcome/war/WEB-INF/libUnknown Google Web Toolkit Problem Thanks and Regards in advance -- 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 TextButton class - How to set an icon?
Hi, I'd like to have Buttons with a text and an icon in my app. Seems the TextButtonhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/widget/client/TextButton.htmlclass is exactly what I'm looking for. The only way to set the icon seems to be the constructor that takes a TextButtonCell, but it is protected. Can't use that. :( Bug or feature?? How can I set the icon for a TextButton in a short, elegant way? regards Tom -- 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/-/F6yv8xlrdqoJ. 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: HOWTO handle right click on CellTable Header ?
Great Thanks a lot, Thomas, for your help. I wish you a nice week-end. Christophe On 16 sep, 12:35, redjhawk jorges...@gmail.com wrote: Have you tried with event.preventDefault() ? On Sep 16, 10:35 am, Christophe christophe.march...@contactoffice.net wrote: Ok, that's work. I can display my popup menu. But it doesn't prevent default browser popup menu :http://xemelios.org/private/many-menus.png To stop propagation, I've tried this without any success : public void onBrowserEvent(Cell.Context context, final Element parent, SafeHtml value, final NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { event.stopPropagation(); ... Any idea ? Thanks in advance, Christophe On 15 sep, 17:23, Thomas Broyer t.bro...@gmail.com wrote: Where is this sinkEvents from? class SafeHtmlCellWithContextMenuT extends SafeHtmlCell { public SetString getConsumedEvents() { return Collections.singleton(contextmenu); } public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml value, NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { // here, event.getType() should be contextmenu } } Then use with: newHeader(new SafeHtmlCellWithContextMenu()); (best IMO would be to turn the above into a generic Cell that can wrap any other Cell, delegating everything to the wrapped cell, except for getConsumedEvents to add contextmenu to the list, and onBrowserEvent to handlethe contextmenu) -- 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: IE8 CellTable Events
Hi I have something like this and it works but in my case work dialogoBox cellTableColumn = new ColumnBlocksVarible, String(new EditTextCell()) { @Override public String getValue(BlocksVarible object) { return object.getVariable(); } }; cellTableColumn .setFieldUpdater(new FieldUpdaterBlocksVarible, String() { public void update(int index, BlocksVarible blocksVarible, String value) { Window.open(xxx); } }); return cellTableColumn; -- 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: Generating module.cache.js instead of module.nocache.js
AFAICT, most Google Apps do on the server side what the *.nocache.js does on the client side in a default setup (i.e. choose the right permutation, i.e. the right *.cache.* file, to load for a given user agent, locale, whatever combination). They use the xsiframe (or actually probably a custom linker, similar to xsiframe) that generates *.cache.js instead of *.cache.html so they can include a script src=…/script to it in the generated HTML. I believe their linker generates some sort of JSP code or similar, instead of the *.nocache.js that the other linkers output. That way, they save one round-trip to the server, and given that the host page is already non-cacheable due to authentication, they don't lose anything (in a default setup, the host page is a static HTML page, so you can generally enable some level of caching on it; what matters being that the *.nocache.js is non-cacheable). -- 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/-/wr0-FXA4axYJ. 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: Remember username password in GWT
I'm assuming you just want to have the browser handle this, right? If so, you need to make sure the Text and Password input boxes are part of your host page. IE won't store off the information if you add them after the page is loaded. http://stackoverflow.com/questions/2778350/let-browser-save-username-password-values-in-a-login-form On Sep 14, 11:23 pm, Markandayarushi Pamu pmru...@gmail.com wrote: Hi, I want to implement the remember username and password functionality in my application. We are using the GWT version 2.2. I have tried to implement but user name auto complete is only working in the Fiirefox, Chrome and not working IE. remember the password is not working any browser. Actually when submit the form it is asking to save the password and it is stored in the browser but when I select the user name from auto complete suggested items password is not populating. My code is FormPanel formPanel = new FormPanel(); formPanel.setMethod(FormPanel.METHOD_POST); HTMLPanel verticalPanel = new HTMLPanel(); TextBox textBox = new TextBox(); textBox.setName(username); verticalPanel.add(textBox); PasswordTextBox password= new PasswordTextBox(); password.setName(password); verticalPanel.add(password); Button btn = new SubmitButton(); btn.setText(Click); verticalPanel.add(btn); formPanel.add(verticalPanel); formPanel.setAction(/); HTMLPanel htmlPanel = new HTMLPanel(); htmlPanel.add(formPanel); RootPanel.get().add(formPanel); Please help me how to implement remember user name and password in GWT . Thanks P.M.Rushi -- 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: byte array to Image
Modern browsers accept in URI the source of an image encoded in base64 and render it. See http://stackoverflow.com/questions/2035811/send-bytearray-to-javascript What did you do exactly? And why the web service's author told you that you should not convert the picture in base64? Is the image already encoded in base64? -- 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.
Calling GWT RPC Services in another server
Hi to all the group Is there a way to call GWT RPC Services in another server by passing the same-server AJAX policy? Regards, Néstor Boscán -- 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.
Uncaught exception escaped
HI sir I AM SASINDRAN newcomer to gwt i wrote a example(StockWatcher) project provided by google.When I build this project in development mode using eclipse IDE.This shows an error [ERROR] [stockwatchers] - Uncaught exception escaped PROJECT CODE package com.google.gwt.sample.stockwatchers.client; import java.util.ArrayList; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyPressEvent; import com.google.gwt.event.dom.client.KeyPressHandler; import com.google.gwt.user.client.Random; import com.google.gwt.user.client.Timer; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.i18n.client.NumberFormat; import java.util.Date; /** * Entry point classes define codeonModuleLoad()/code. */ public class StockWatchers implements EntryPoint { /** * The message displayed to the user when the server cannot be reached or * returns an error. */ private static final String SERVER_ERROR = An error occurred while + attempting to contact the server. Please check your network + connection and try again.; /** * Create a remote service proxy to talk to the server-side Greeting service. */ private final GreetingServiceAsync greetingService = GWT .create(GreetingService.class); VerticalPanel mainPanel = new VerticalPanel(); HorizontalPanel addPanel = new HorizontalPanel(); TextBox newSymbolTextBox = new TextBox(); Button addStockButton = new Button(Add); private ArrayListString stocks=new ArrayListString(); FlexTable stockFlexTable = new FlexTable(); private static final int REFRESH_INTERVAL=5000; Label lastUpdateLabel = new Label(); /** * This is the entry point method. */ public void onModuleLoad() { // Add the nameField and sendButton to the RootPanel // Use RootPanel.get() to get the entire body element RootPanel.get(stockList).add(mainPanel); mainPanel.add(stockFlexTable); mainPanel.add(addPanel); addPanel.add(newSymbolTextBox); addPanel.add(addStockButton); mainPanel.add(lastUpdateLabel); stockFlexTable.setText(0,0,Symbol); stockFlexTable.setText(0,1,Price); stockFlexTable.setText(0,2,Change); stockFlexTable.setText(0,3,Remove); newSymbolTextBox.setFocus(true); addStockButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub addStock(); } }); newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { // TODO Auto-generated method stub if(event.getCharCode()==KeyCodes.KEY_ENTER) { addStock(); } } }); /* Timer refreshTimer=new Timer() { @Override public void run() { // TODO Auto-generated method stub refreshWatchList(); } };*/ lastUpdateLabel.setText(Last update :+DateTimeFormat.getMediumDateTimeFormat().format(new Date())); //refreshTimer.scheduleRepeating(REFRESH_INTERVAL); } private void addStock() { final String symbol=newSymbolTextBox.getText().toUpperCase().trim(); if(stocks.contains(symbol)) return; newSymbolTextBox.setFocus(true); if(!symbol.matches(^[0-9A-Z\\.]{1,10}$)) { Window.alert(' + symbol + ' is not a valid symbol.); newSymbolTextBox.selectAll(); newSymbolTextBox.setText(); return; } int row=stockFlexTable.getRowCount(); stocks.add(symbol);
Re: Calling GWT RPC Services in another server
Your problem is the same origin policy? http://en.wikipedia.org/wiki/Same_origin_policy Then a solution could be ReST: http://restygwt.fusesource.org/ -- 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/-/0jIKF8x7gW4J. 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.
Client side bean validation using jsr + hibernate provider
Hi, Does anyone know of a quick tutorial that explains how to setup bean validation on the client side? I'm running into gwt compilation problems and before I start describing them here I'd like to read-up on it first. (my attempt to inferred usage from source was unsuccessful.) In short, I can't seem to get standard validation annotations (such as @NotNull), validation API, validation groups, messages and custom hibernate annotations (such as @Email) to work! -- 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: JSNI - Call Javascript native method from another
Crystal clear!, Thanks everyone. Jésica. -- 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/-/D3H9MSpLbP0J. 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: byte array to Image
Base64Utils from GWT's source does not use the standard MIME characters when encoding data to Base64. So I think thats why the browser does not display the image. To verify this, you can try and search a MIME standard Base64 encoder, convert the byte array and put the base64 string into your data url. Depending on what you want to do with the image you can try the following: 1.) Create a class BinaryData that holds the byte array and a mime type string (in your case image/png) 2.) Write a plain servlet that reads data from your session based on a unique id and when its a BinaryData object returns the byte array with the correct mime type (and deletes the session entry to keep things clean). 3.) Use your existing servlet that fetches the byte array image, save it into a BinaryData instance and save that instance into your server session. Then return some unique id to your app and your app will use that id to fetch the data using the servlet from 2). So basically your app asks your server to fetch an image from the web service. The server will do so and returns something like 193823903 as unique id. Now your app creates an Image widget and as URL it uses http://yourapp.com/service/binary?id=93823903. Your binary servlet will take the unique id, look it up in the session, found the BinaryData object with the byte array and returns the array with the specified mime type (image/png). The browser will display the image directly. The only downside is that you can only access the image once (when you clean up your session when the image is requested) or you have to write a clean up thread so that your session doesn't get larger and larger. Works great for me and I can use this for any kind of binary data like server side generated pdf's, sound files, images, etc. -- 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/-/WUQA9KZ3S9kJ. 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 GWT RPC Services in another server
You could also set up a reverse proxy that delegates requests to other external servers. -- 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/-/Pt5jFxYq68wJ. 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.
RequestFactory only send changes
I create a form for editing an EntityProxy(campaignProxy) with the Editor + RequestFactory, everything is working/saved in Database (create/edit). But when i am editing a existing an existing Entity, all the entity is send (i seeing this behaviour in firebug), even i made any changes in my object. PRE editorDriver.isDirty() = false POST editorDriver.isDirty() = false The editor confirm any changes but in my firebug, in the panel network i see {F:.CampaignRequestFactory,O:[{T:aHB9TlK6zvrYcCFpvMxkS6KFH4w =,V:NTEuMA==,P:{flights:[{T:Y4M0dDfC34axdGshieWi$JsiuEQ=,S:MjguMA==},{T:Y4M0dDfC34axdGshieWi$JsiuEQ =,S:MzMuMA==}]},S:MzIuMA==,O:UPDATE},{T:Y4M0dDfC34axdGshieWi$JsiuEQ=,V:NDkuMA== ,P:{flightDayparts:[{T:m7TMD_VGSQ1a8KEFeD5jh$efaYo=,S:MjkuMA==}]},S:MjguMA==,O:UPDATE },{T:m7TMD_VGSQ1a8KEFeD5jh$efaYo=,V:NDkuMA==,S:MjkuMA==,O:UPDATE},{T:Y4M0dDfC34axdGshieWi$JsiuEQ =,V:NTAuMA==,P:{flightDayparts:[{T:m7TMD_VGSQ1a8KEFeD5jh$efaYo=,S:MzQuMA==}]},S:MzMuMA ==,O:UPDATE},{T:m7TMD_VGSQ1a8KEFeD5jh$efaYo=,V:NTAuMA==,S:MzQuMA==,O:UPDATE}],I :[{P:[{T:aHB9TlK6zvrYcCFpvMxkS6KFH4w=,S:MzIuMA==}],O:o5CHhcaaGm_AeZ6uNN2pVB0XjYQ=}]} In the documentation is write On the client side, RequestFactory keeps track of objects that have been modified and sends only changes to the server, which results in very lightweight network payloads Here my java code {{{ public class CampaignPanelImpl extends Composite implements CampaignPanel { @Override public void loadData(CampaignProxy campaignProxy, RequestContext requestContext) { this.campaignProxyEdited = campaignProxy; //create a requestContext if we are in edit mode RequestContext request = requestContext == null ? contextProvider.get() : requestContext; editorDriver.initialize(eventBus, requestFactory, listFlightsEditor); editorDriver.edit(campaignProxyEdited, request); listFlightsEditor.setFlightTitles(campaignProxy.getFlights()); } @UiHandler(saveContinueButton) void save(ClickEvent event) { GWT.log(PRE editorDriver.isDirty() = +editorDriver.isDirty()); CampaignRequestContext requestContext = (CampaignRequestContext)editorDriver.flush(); GWT.log(POST editorDriver.isDirty() = +editorDriver.isDirty()); if (editorDriver.hasErrors()) { Window.alert(there is some errors. Cannot save); return; } presenter.save(requestContext,campaignProxyEdited); } } public class CampaignActivity extends AbstractActivity implements CampaignView.Presenter { private void edit(String campaingId) { contextProvider.get().getCampaignById(new Integer(campaingId)).with(flights, flights.flightDayparts) .fire(new ReceiverCampaignProxy() { @Override public void onSuccess(CampaignProxy campaignProxy) { editCampaignFlightsView.loadData(campaignProxy, null); } }); } . @Override public void save(CampaignRequestContext request, CampaignProxy campaignProxy) { request.save(campaignProxy).fire(new ReceiverVoid() { @Override public void onSuccess(Void response) { navigationController.next(); } public void onFailure(ServerFailure error) { Window.alert(error.getMessage()); } }); } }}} Any Guess, whats wrong. thanks -- 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/-/wa4mmnyG8uIJ. 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: Uncaught exception escaped
*Caused by: java.lang.IllegalArgumentException: Multiple decimal separators in pattern #,##.0.00; * at com.google.gwt.i18n.client.NumberFormat.parseTrunk(NumberFormat.java: 1564) at com.google.gwt.i18n.client.NumberFormat.parsePattern(NumberFormat.java: 1501) at com.google.gwt.i18n.client.NumberFormat.lt;initgt; (NumberFormat.java:774) at com.google.gwt.i18n.client.NumberFormat.lt;initgt; (NumberFormat.java:790) at com.google.gwt.i18n.client.NumberFormat.getFormat(NumberFormat.java: 422) at com.google.gwt.sample.stockwatchers.client.StockWatchers.updateTable( StockWatchers.java: 206) Your format string is incorrect. As the exceptions say you can not have two dots (decimal separator) in the format String. Fix it and it should work. -- 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/-/zv-67u_MgyUJ. 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: RequestFactory only send changes
RequestContext#isChanged is buggy with collections: http://code.google.com/p/google-web-toolkit/issues/detail?id=5952 -- 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/-/LhJcYUbz8CoJ. 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: byte array to Image
Hello Jens, Why not converting into the right MIME type in one shot? -- 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/-/YHEU2zSsCjoJ. 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.
java.lang.NoClassDefFoundError:org/json/JSONException
I have an error when the application is deployed. The exception is Caused by: java.lang.NoClassDefFoundError: org/json/ JSONException. But the rare is that I have all libraries in de WEB- INF/lib gwt-servlet.jar gwt-servlet-deps.jar requestfactory-servlet.jar validation-api-1.0.0.GA.jar I'm not using maven and ther version of GWT is 2.4. 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.
Re: Cannot lo0ad my application since the upgrade to gwt 2.4
Thank you very much. I added gwt-servlet-deps.jar and it works. Best regards, Nicanor Cristian Babula. -- 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/-/wcx91vgjOssJ. 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 basic gwt-maven-plugin question
Alexandre, the POM is attached to the first post. Attaching the GWT module. The POM and module files are generated using these instructionshttp://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html . Thank 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/-/p5BkRJkBYs0J. 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. MyGwt.gwt.xml Description: XML document
Re: JAXB + GWT
No. There is no issue in putting JIBX *.java files in shared package. I use it in shared package without any issue. Make sure you r using JIBX 1.2.3 Deepak On Fri, Sep 16, 2011 at 5:49 PM, J.Ganesan j.gane...@datastoregwt.comwrote: Mike, Will there be any issue in putting the JIBX generated *.java files in shared package ? If not, JIBX has a huge advantage. I tried to put the *.java files from JAXB in shared package and I encountered a number of compilation problems. J.Ganesan www.DataStoreGwt.com On Sep 15, 8:23 pm, Maiku mike.wid...@gmail.com wrote: Hi, If you are not totally tied to JAXB you may want to check out JIBX. I was successfully using the beans that it creates on both Server side and Client side. The way it marshals is by injecting information into the bytecode and this seems to allow GWT to still recognize the source of the beans as being the same as the compiled server object. I have since refactored to use RequestFactory so that this entire issue is moot but if you cannot then I highly recommend JIBX. - 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: a basic gwt-maven-plugin question
Thanks for the link Warren! -- 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/-/kr_dIa2Qu-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.
Re: byte array to Image
I believe that GWT (and browsers in general) use what the RFC calls Base 64 Encoding with URL and Filename Safe Alphabet (see section 4 in http://www.faqs.org/rfcs/rfc3548.html). You can find a Java Base64 class with URL-safe encoding at http://iharder.sourceforge.net/current/java/base64/ On Sep 16, 9:38 am, Alexandre Dupriez alexandre.dupr...@gmail.com wrote: Modern browsers accept in URI the source of an image encoded in base64 and render it. Seehttp://stackoverflow.com/questions/2035811/send-bytearray-to-javascript What did you do exactly? And why the web service's author told you that you should not convert the picture in base64? Is the image already encoded in base64? -- 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: JAXB + GWT
There shouldn't be any problems. In my case, I had my JIBX stuff in a separate project that got included into my webapp so I had to provide a *.gwt.xml file in it's base folder and do an include in my main *.gwt.xml file but other than that everything just worked. I was working with RPC methods, passing my XML domain objects back and forth and converting them to XML on the server side without any gwt related problems. Now I should note that I had a little it of trouble with JIBX itself in terms of converting enums to XML but that isn't related to GWT and a benefit of JIBX is you can modify your java beans to your heart's content (as long as your mapping files reflect what needs to be converted) and I was able to solve any problems that way. Another thing to mention is that JIBX has relatively little in terms of validation in order to keep its conversion process light. But since it produces beans you could, in theory, use a jsr 303 implementation to do the validation annotations there (a bit of duplication from the XML schema but can't be helped at the moment). -- 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: java.lang.NoClassDefFoundError:org/json/JSONException
I dunno a Maven repository for JSON, but you can download and build the package yourself from http://www.json.org/java/index.html On Sep 16, 10:45 am, Cristian Rinaldi csrina...@gmail.com wrote: I have an error when the application is deployed. The exception is Caused by: java.lang.NoClassDefFoundError: org/json/ JSONException. But the rare is that I have all libraries in de WEB- INF/lib gwt-servlet.jar gwt-servlet-deps.jar requestfactory-servlet.jar validation-api-1.0.0.GA.jar I'm not using maven and ther version of GWT is 2.4. 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.
Re: a basic gwt-maven-plugin question
Warren, I think that the manually configured things should be broken after running Update Project Configuration. If the project is driven by maven, it does not make sense to store Eclipse configuration in the source control system. Eclipse support should be automatically generated from the POM when importing a maven project to eclipse. And *mvn eclipse:clean* should wipe out all eclipse support. -- 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/-/2seqbEgqbr4J. 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 create image sprits
Hi Alexandre, My required is...Combine those 200+ images in to single sprite and use this single sprite image in my web application. I heard that GWT automatically created Image sprites based on Client Bundle and CssResource. Explicitly we need not create image sprites from Tools(like photoshop and some other tools). Am i correct ? Please clarify my doubt. Thanks. On Fri, Sep 16, 2011 at 1:17 PM, Alexandre Dupriez alexandre.dupr...@gmail.com wrote: Hello Ramesh, If you want to bundle your 200+ images, you have to manually write a declaration like @Source(image/image.gif) ImageResource image(); for each of them. Though tedious, this method is quite handy and avoid the overhead of using 200+ separate files. While I understand your need to create image sprites, I misunderstood something: do you need to use your images in your GWT webapp? If not, this would not be helpful since the client bundle would only be useful if you need to access the sprite from inside a GWT application. Let me know and we will discuss further. -- 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. -- With Regards Ramesh Jegurupati -- 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: byte array to Image
How do you mean that? You either have to use a correct (browser compatible) base64 encoding or you need an URL that represents the data. If you want to support older browsers you would go with URL. Also I wouldn't send anything large in a base64 encoded way because base64 encoding makes things ~33% larger. Also I think IE8 only supports up to 32kb for a data URI scheme and only supports the data URI scheme for attributes that load images. -- 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/-/yvKU_7eOjjQJ. 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 multiple CellTables on one page
Thanks for your help... that's the piece I was missing I think...the last line of extending of the Style interface. I will try it today and let you know how it goes. Thanks again for your help! On Sep 14, 6:12 am, Thomas Broyer t.bro...@gmail.com wrote: That's not enough. As I said on the issue tracker (see link in previous message in this thread), you have to create interfaces that extend the Style interface too, otherwise your class names from the two CSS files will have the same obfuscated names. -- 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: java.lang.NoClassDefFoundError:org/json/JSONException
The problem is requestfactory-server.jar may or may not have org/json/JSONException, depending where it's coming from. Check out this threadhttps://groups.google.com/d/topic/google-web-toolkit/R5QNo2y8Nyo/discussion . -- 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/-/rfZJ5nF_uDAJ. 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: java.lang.NoClassDefFoundError:org/json/JSONException
On Friday, September 16, 2011 4:45:45 PM UTC+2, Cristian Rinaldi wrote: I have an error when the application is deployed. The exception is Caused by: java.lang.NoClassDefFoundError: org/json/ JSONException. But the rare is that I have all libraries in de WEB- INF/lib gwt-servlet.jar gwt-servlet-deps.jar requestfactory-servlet.jar validation-api-1.0.0.GA.jar There is no requestfactory-servlet.jar, I suppose you mean * requestfactory-server.jar* which should be available during both run time and compile time. Also you *don't need neither gwt-servlet-deps.jar nor gwt-servlet.jar* since you're using requestfactory-server.jar. Also you probably don't need validation-api-1.0.0.GA.jar. However you must have a working Annotation Processing configurationhttp://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation . -- 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/-/t_WwHPoXxGQJ. 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 basic gwt-maven-plugin question
Sorry, I did not see the POM before. There are two plugins registered in your POM : gwt-maven-plugin and maven-war-plugin. Why do you need both of them? The problem might come from that: if the plugin maven-war is executed before gwt-maven, the asynchronous classes will not be executed yet when maven-war-plugin is triggered. Alexandre. On 16 sep, 17:20, Y2i yur...@gmail.com wrote: Warren, I think that the manually configured things should be broken after running Update Project Configuration. If the project is driven by maven, it does not make sense to store Eclipse configuration in the source control system. Eclipse support should be automatically generated from the POM when importing a maven project to eclipse. And *mvn eclipse:clean* should wipe out all eclipse support. -- 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: RequestFactory only send changes
Thanks a lot. I vote for the issue. I will wait for a good workaround or a fix. -- 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/-/haCmrn0XgF8J. 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 basic gwt-maven-plugin question
True. That's what the Update Project Configuration command is meant to do. So the settings needs to be in pom.xml for it to survive the command. This can be done with the build-helper-maven-plugin: groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId version1.7/version executions execution idadd-source/id goals goaladd-source/goal /goals configuration sources source${project.build.directory}/generated-sources/apt/source source${project.build.directory}/generated-sources/gwt/source /sources /configuration /execution Regards, Warren Tang http://blog.tangcs.com On 9/16/2011 11:20 PM, Y2i wrote: Warren, I think that the manually configured things should be broken after running Update Project Configuration. If the project is driven by maven, it does not make sense to store Eclipse configuration in the source control system. Eclipse support should be automatically generated from the POM when importing a maven project to eclipse. And /mvn eclipse:clean/ should wipe out all eclipse support. -- -- 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 basic gwt-maven-plugin question
Thanks for the response Alexandre. The POM is auto-generated. The war plugin is used for packaging since the project has packagingwar/packaging. The asynchronous classes are actually generated, but the compiler does not see them because they are placed in unusual directory. -- 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/-/XEFHHFDs7HAJ. 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.
GWT4Touch is now in beta phase, take it for a spin!
All: Ready for you to play with is our latest addition GWT4Touch which includes chart support. Develop slick Sencha Touch mobile apps in Java. Take it for a spin, visit us at http://www.emitrom.com/gwt4touch As usual any feedback will be greatly appreciated. The Emitrom Team. -- 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: byte array to Image
Hi, I've used http://sourceforge.net/projects/migbase64/ in my application, to convert the byte array to a base64 string, which works pretty well and efficient My code is like : String base64 = data:image/png;base64, + Base64.encodeToString(bytes,false); And at the client side, you just set the value into an image element's src attribute. But be careful, IE CAN NOT take charge of an image that bigger than 32KB by using the Base64 way. Hope this can help you. On 16 sep, 12:54, AgitoM karel.m...@gmail.com wrote: Hi all, From a web service I am receiving a byte array that represents a image. I need to somehow squeeze this byte array into a image widget or similar widget on my client side. First I tried to convert the byte array to a base64 string: String base64 = Base64Utils.toBase64(image); base64 = data:image/png;base64,+base64; This didn't work. The developer of the web service informed me that I should not convert the byte array to a base64 string, and just use it directly. To test if the byte array represented a correct image, I saved the byte array to a physical image: InputStream in = new ByteArrayInputStream(image); BufferedImage bImage = ImageIO.read(in); File outputfile = new File(saved.png); ImageIO.write(bImage, png, outputfile); This succesfully resulted in a physical image being created. However I don't want to write the file and then send the URL to the image widget on my client side. Anybody have any suggestion about how I can get this byte array squeezed into a image? Or convert this byte array to a base64 string that does work? -- 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 basic gwt-maven-plugin question
Thanks Warren. -- 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/-/byx1yhmPrx4J. 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.
Problem with EntityProxyChange handling
Hello, in my app, I've got a tree that displays data for my EntityProxies. Now when an EntityProxy is updated, I'd like to update the data shown in the tree. For this, I've implemented an EntityProxyChange handler that is then registered for the type of EntityProxies I want to handle the updates for. This works fine. Every time I persist my EntityProxies, an EntityProxyChangeEvent with an UPDATE WriteOperation is fired and it ends up in my handler. The problem is that the handler is also notified when the tree loads the data (every time a new node is expanded). I guess this happens because seeing an EntityProxy for the first time is also an EntityProxyChangeEvent with an UPDATE WriteOperation. How can I distinguish these two different events? regards Tom -- 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/-/c2Gx-bC7neIJ. 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 GWT RPC Services in another server
Maybe this article helps: http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html -- 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/-/quwR7yttq2oJ. 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.
Client side bean validation using jsr + hibernate provider
Anyone know of a quick/good tutorial that explains how to setup bean validation on the client side? GWT compilation problems are occurring and before I start describing them here I'd like to read-up on it first. (my attempt to infer usage from source was unsuccessful.) In short, we can't seem to get standard validation annotations (such as @NotNull), validation API, validation groups, messages and custom hibernate annotations (such as @NotBlank) to work! -- 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: JAXB + GWT
Hi, I'm planning to add JAXB support http://code.google.com/p/piriti/wiki/JAXBto Piriti http://code.google.com/p/piriti/. Piriti is an XML / JSON mapper for GWT. Currently XML mapping is implemented using custom annotations. Regarding JAXB support I'm in the early design phase (see first link). So it might take some time until a first implementation is ready. But the goal is to re-use the basic JAXB annotations to (de)serialize POJOs on the cient side. This will enable you to have the same model on the server and client and use XML or JSON for the communication. - Harald -- 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/-/qrfbncN2DIoJ. 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: Remember username password in GWT
Thank for your reply .. Same thing we have implemented , this is working in IE, but in Mozila and Chrome somehow not working.. In Firefox after enter the username password it will ask to remember the pasword, after remember the password, logout from the system then enter login name then it user name auto complete is showing the previous users, but after select the user password is not populating. But once you refresh the borwser it is coming. I don't know what is this strange behaviour ... Please suggest me if it has any solution .. On Fri, Sep 16, 2011 at 7:08 PM, jhulford jhulf...@gmail.com wrote: I'm assuming you just want to have the browser handle this, right? If so, you need to make sure the Text and Password input boxes are part of your host page. IE won't store off the information if you add them after the page is loaded. http://stackoverflow.com/questions/2778350/let-browser-save-username-password-values-in-a-login-form On Sep 14, 11:23 pm, Markandayarushi Pamu pmru...@gmail.com wrote: Hi, I want to implement the remember username and password functionality in my application. We are using the GWT version 2.2. I have tried to implement but user name auto complete is only working in the Fiirefox, Chrome and not working IE. remember the password is not working any browser. Actually when submit the form it is asking to save the password and it is stored in the browser but when I select the user name from auto complete suggested items password is not populating. My code is FormPanel formPanel = new FormPanel(); formPanel.setMethod(FormPanel.METHOD_POST); HTMLPanel verticalPanel = new HTMLPanel(); TextBox textBox = new TextBox(); textBox.setName(username); verticalPanel.add(textBox); PasswordTextBox password= new PasswordTextBox(); password.setName(password); verticalPanel.add(password); Button btn = new SubmitButton(); btn.setText(Click); verticalPanel.add(btn); formPanel.add(verticalPanel); formPanel.setAction(/); HTMLPanel htmlPanel = new HTMLPanel(); htmlPanel.add(formPanel); RootPanel.get().add(formPanel); Please help me how to implement remember user name and password in GWT . Thanks P.M.Rushi -- 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. -- Regards, *MARKANDAYARUSHI PAMU* Hyderabad - India Mobile - +919704604177 -- 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: remember places
Will it still work if you refresh the browser (F5 key) or just jump up the places by Back button? I think redirectAfterLogin may be null in those cases as they are not set via previous activity class. On Sep 15, 12:07 pm, Alex Dobjanschi alex.dobjans...@gmail.com wrote: Your login place should have a 'redirectAfterLogin' String member, like this: class LoginPlace extends Place { String redirectAfterLogin; } Optionally, you could go for, this is closely bound to GWT specific implementation: class LoginPlace extends Place { Place redirectAfterLogin; } -- 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: what is the differences between Event and GwtEvent?
I assume you mean com.google.web.bindery.event.shared.EventH ? In true, GwtEvent is a specialized EventH bound to Gwt and its event handling mechanism (XEventHandler, HasXHandlers, EventBus, etc). -- 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/-/_sK9m4yF20EJ. 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.
SmartGwt not working in GoogleChrome
Hi, when I'm using smartgwt 2.5 in my gwt web application, I get the following error in Chrome: Exception while loading module com.smartgwt.client.SmartGwtEntryPoint. See Development Mode for details. java.lang.reflect.InvocationTargetException 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.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 525) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Unknown Source) Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'Browser' of undefined at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java: 289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java: 107) at com.smartgwt.client.SmartGwtEntryPoint.init(SmartGwtEntryPoint.java) at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java: 239) ... 9 more it works fine in Internet Explorer 7. -- 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 basic gwt-maven-plugin question
Hi, Take a look at these posts: - http://uptick.com.au/content/getting-started-gwt-maven-and-eclipse - http://uptick.com.au/content/gwt-cx-maven-multimodule-enterprise-project and the posts towards the end of this thread: - http://groups.google.com/group/gwt-platform/browse_thread/thread/cad03cb1a7b98c9e Cheers Rob On Sep 17, 3:15 am, Y2i yur...@gmail.com wrote: Thanks Warren. -- 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: SmartGwt not working in GoogleChrome
SmartGWT does not work well with the developer plugin in Chrome. Try compiling it (red GWT box) and then using Chrome without the ?gwt.codesvr= 127.0.0.1:9997 at the end of the URL. On Fri, Sep 16, 2011 at 12:30 PM, Serge srdjanstanko...@hotmail.com wrote: Hi, when I'm using smartgwt 2.5 in my gwt web application, I get the following error in Chrome: Exception while loading module com.smartgwt.client.SmartGwtEntryPoint. See Development Mode for details. java.lang.reflect.InvocationTargetException 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.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 525) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Unknown Source) Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'Browser' of undefined at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java: 289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java: 107) at com.smartgwt.client.SmartGwtEntryPoint.init(SmartGwtEntryPoint.java) at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java: 239) ... 9 more it works fine in Internet Explorer 7. -- 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.
Searching for advice on a B-Portal.
Dear beta's . My question is quite simple but i really need someone's advice for this. The question : How can i build an business portal with a back-end and front-endd of G.W.T. The reason i like to use G.W.T is the many widgets and easy forms and GUIshaping and ofcourse the AJAX conversion. But that's just client-side. What can i do for my server? I want to use spring to work with EJB and Hibernate for my datasets. Actually im pretty beginner but I really want to work with this as it is my purpose to develop an Enterprise application(website) wich suffices my needs. I got alot of forms in my portal for database entries and just let me call it brief that i want to make my users input different formdata and save them in DB and besides that offer some services to them. as Time management, Resultgraphs automatic emails and ofcourse my company's portfolio. So thats for what i need a portal. I tried out Drupal. But php scripts for me doesnt work. I hate all the functions and shortcuts. Just let me code it myself. Thus what can i do except of licensing a Smart GWT EE for this. Or this is really gonne be the only way. p.s i heard its pretty overkill to use JEE just for a website. But what should i do then go to asp.net for their MVC. Much thanks in advance. PJAY -- 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.
Remote Logging
I'm attempting to use remote logging as described in http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging I'm using a very simple test app based on the Greeting example. It appears to work in the Eclipse hosted mode, but when I deploy to Tomcat6 I see nothing in the logs. A network trace shows that the HTTP flows are working as desired, so this leads me to think that it somehow a Tomcat configuration. The Firebug console shows that things appear to be working. I'm trying to a FINE level message. Do I need some kind of logging config file someplace? Do I need to sure the common loggings library is accessible to Tomcat? Any suggestions will be greatly appreciated. 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.
Re: remember places
While a Place can hold any data structure, including other places, as you said once you refresh the browser, the data is lost. To circumvent this, Place must be considered to be a special kind of object in GWT, such that, the state of the place must be represented as part of url. This is the reason for having a PlaceTokenizerhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/place/shared/PlaceTokenizer.java?r=9076. So in spite of having a reference to the toBeRedirectedPlace, you must also have a url param redirectTo=xxx, from which you can reconstruct the place on browser refresh. Hope this helps! -- 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/-/i_mxvBlIcV4J. 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: SOLVED: An IncompatibleRemoteServiceException was thrown
Rob,, The fundamental reason for the problem is, as you have rightly guessed there were residues. But what caused these residues? If you are using GPE, the first time you run it, it would ask for webapp directory. Select *target/web-app-name* for that. Do not use *src/main/webapp *which is for a different purpose. Do check if you still have GWT compiler output in *src/main/webapp*, if yes, you are likely to run into the same problem again! Hope this helps,, -- 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/-/F6NLGjxHw-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.
Re: Generated HTML Doesn't Display
Also found that the login page isn't being displayed properly in Firefox (only part of the page is displayed). Pressing the tab key resolves the problem which makes me think there is something weird going on with the way GWT does layout. It is possible this might be related to the image map not showing up. Fix one and it might fix the other. Haven't done any major changes which could be causing these issues. On Sep 12, 9:37 pm, Nick Apperley napper...@gmail.com wrote: Ran the application in Firefox instead of Chrome and found it displays a funny looking blue box. Right clicked on it, selected View Image and found that the image (an ordinary SVG file) isdisplayedjust fine. Talk about bizarre rendering behavior between browsers. Not sure why the image map is no longerdisplayedproperly as it used to work fine in both browsers. -- 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-contrib] Re: Comment on IE8Support in google-web-toolkit
Comment by t.broyer: This page has last been updated on Feb 4th of 2010, nearly 2 years ago; and it starts with IE8 was recently released, so it's quite clear that it's outdated. See http://code.google.com/webtoolkit/release-notes.html#Release_Notes_1_7_0 which says: This release adds explicit support for Internet Explorer 8 For more information: http://code.google.com/p/google-web-toolkit/wiki/IE8Support -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
For historical purposes, I figured out a working solution ( at least it works for me) and posted it in the gwt-maven-plugin user group. https://groups.google.com/forum/#!topic/codehaus-mojo-gwt-maven-plugin-users/Lha85tfYiz4 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
http://gwt-code-reviews.appspot.com/1547804/diff/4017/samples/mobilewebapp/src/main/webapp/WEB-INF/appengine-web.xml File samples/mobilewebapp/src/main/webapp/WEB-INF/appengine-web.xml (left): http://gwt-code-reviews.appspot.com/1547804/diff/4017/samples/mobilewebapp/src/main/webapp/WEB-INF/appengine-web.xml#oldcode19 samples/mobilewebapp/src/main/webapp/WEB-INF/appengine-web.xml:19: system-properties Have you tried deploying to GAE without this? I thought it was required. http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
Back to all apt all the time. I've learned the lesson from Jeff, but don't need most of it. * We're using build-helper to expose target/generated-sources/apt as a source path (no need for clean up under the target umbrella). * We also don't need his resource setting because we are not generating client code * And there is no need to turn on Eclipse's built in apt support unless you want the very cool red squiggles http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
Also, David: I confirmed that we can deploy without that logging stuff, no harm. http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
Jeff's fix good, no GPE change required! http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10651 committed - The DynaTable RF and Mobile Web App samples now use requestfactory-apt...
Revision: 10651 Author: rj...@google.com Date: Fri Sep 16 10:13:44 2011 Log: The DynaTable RF and Mobile Web App samples now use requestfactory-apt to generate the decoder needed by the rf server. Also drops some unneeded config from mwa Works with GPE Review at http://gwt-code-reviews.appspot.com/1547804/ Review by: drfibona...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10651 Deleted: /trunk/samples/mobilewebapp/src/main/java/META-INF Modified: /trunk/samples/dynatablerf/pom.xml /trunk/samples/mobilewebapp/pom.xml /trunk/samples/mobilewebapp/src/main/webapp/WEB-INF/appengine-web.xml /trunk/samples/validation/pom.xml === --- /trunk/samples/dynatablerf/pom.xml Mon Sep 12 09:46:24 2011 +++ /trunk/samples/dynatablerf/pom.xml Fri Sep 16 10:13:44 2011 @@ -1,6 +1,8 @@ ?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; +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; modelVersion4.0.0/modelVersion groupIdcom.google.gwt.sample.dynatablerf/groupId @@ -23,23 +25,42 @@ /properties dependencies -!-- Google Web Toolkit (GWT) itself -- +!-- Google Web Toolkit (GWT) -- dependency groupIdcom.google.gwt/groupId - !-- Could use requestfactory-server instead -- - artifactIdgwt-servlet/artifactId + artifactIdgwt-user/artifactId version${gwtVersion}/version - scoperuntime/scope + !-- provided so that we don't deploy -- + scopeprovided/scope /dependency + +!-- For the servlet filter -- + dependency - groupIdcom.google.gwt/groupId - artifactIdgwt-user/artifactId + groupIdjavax.servlet/groupId + artifactIdservlet-api/artifactId + version2.5/version +/dependency + +!-- RequestFactory server -- + +dependency + groupIdcom.google.web.bindery/groupId + artifactIdrequestfactory-server/artifactId version${gwtVersion}/version - scopeprovided/scope /dependency -!-- GWT RequestFactory will use JSR 303 javax.validation if you let it -- +!-- Generate the decoder needed by RequestFactory Server -- +!-- Doesn't yet work in eclipse. See maven-processor-plugin below. +dependency + groupIdcom.google.web.bindery/groupId + artifactIdrequestfactory-apt/artifactId + version${gwtVersion}/version +/dependency +-- + +!-- RequestFactory will use JSR 303 javax.validation if you let it -- dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId @@ -62,25 +83,8 @@ /exclusions /dependency -!-- GWT RequestFactory requires org.json -- -!-- TODO: can we declare the json and validation dependencies somewhere for the world to pick up, -rather than requiring everyone to know about them? -- -dependency - groupIdorg.json/groupId - artifactIdjson/artifactId - version20090211/version -/dependency - -!-- for the servlet filter -- -dependency - groupIdjavax.servlet/groupId - artifactIdservlet-api/artifactId - version2.5/version -/dependency - !-- Required by Hibernate validator because slf4j-log4j is - optional in the hibernate-validator POM - -- + optional in the hibernate-validator POM -- dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId @@ -94,10 +98,62 @@ /dependencies build -!-- Generate compiled stuff in the folder used for developing mode -- +!-- Generate compiled stuff in the folder used for development mode -- outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory plugins + !-- requestfactory-apt runs an annotation processor (APT) to + instrument its service interfaces so that + RequestFactoryServer can decode client requests. Normally + you would just have a dependency on requestfactory-apt + with scopeprovided/scope, but that won't work in + eclipse due to m2e bug + https://bugs.eclipse.org/bugs/show_bug.cgi?id=335036 -- + plugin +groupIdorg.bsc.maven/groupId +artifactIdmaven-processor-plugin/artifactId +version2.0.5/version +executions + execution +idprocess/id +goals + goalprocess/goal +/goals +phasegenerate-sources/phase + /execution +/executions +dependencies + dependency +groupIdcom.google.web.bindery/groupId +
[gwt-contrib] Remove uneeded samples checkstyle exception. (issue1548804)
Reviewers: rjrjr, Description: Remove uneeded samples checkstyle exception. Add a comment explaining the remaining exception Please review this at http://gwt-code-reviews.appspot.com/1548804/ Affected files: M samples/common.ant.xml Index: samples/common.ant.xml === --- samples/common.ant.xml (revision 8405) +++ samples/common.ant.xml (working copy) @@ -189,7 +189,7 @@ target name=checkstyle description=Static analysis of source gwt.checkstyle outputdirectory=${sample.build} fileset dir=src -exclude name=main/java/org/**/super/org/**/*.java/ +!-- ValidationMessages is generated and has funny method names -- exclude name=main/java/com/google/gwt/sample/validation*/**/ValidationMessages.java / /fileset /gwt.checkstyle -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10653 committed - Changed lifecycle mapping for exec-maven-plugin to maven-processor-plu...
Revision: 10653 Author: drfibona...@google.com Date: Fri Sep 16 14:53:25 2011 Log: Changed lifecycle mapping for exec-maven-plugin to maven-processor-plugin http://code.google.com/p/google-web-toolkit/source/detail?r=10653 Modified: /wiki/WorkingWithMaven.wiki === --- /wiki/WorkingWithMaven.wiki Mon Sep 12 11:34:00 2011 +++ /wiki/WorkingWithMaven.wiki Fri Sep 16 14:53:25 2011 @@ -105,11 +105,11 @@ /pluginExecution pluginExecution pluginExecutionFilter -groupIdorg.codehaus.mojo/groupId -artifactIdexec-maven-plugin/artifactId -versionRange[1.2,)/versionRange +groupIdorg.bsc.maven/groupId +artifactIdmaven-processor-plugin/artifactId +versionRange[2.0.5,)/versionRange goals - goalexec/goal + goalprocess/goal /goals /pluginExecutionFilter action -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Remove uneeded samples checkstyle exception. (issue1548804)
On 2011/09/16 21:23:38, Nick Chalko wrote: LGTM http://gwt-code-reviews.appspot.com/1548804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10654 committed - Remove uneeded samples checkstyle exception....
Revision: 10654 Author: ncha...@google.com Date: Fri Sep 16 12:34:41 2011 Log: Remove uneeded samples checkstyle exception. Add a comment explaining the remaining exception Review at http://gwt-code-reviews.appspot.com/1548804 Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10654 Modified: /trunk/samples/common.ant.xml === --- /trunk/samples/common.ant.xml Wed Sep 14 06:33:50 2011 +++ /trunk/samples/common.ant.xml Fri Sep 16 12:34:41 2011 @@ -189,7 +189,7 @@ target name=checkstyle description=Static analysis of source gwt.checkstyle outputdirectory=${sample.build} fileset dir=src -exclude name=main/java/org/**/super/org/**/*.java/ +!-- ValidationMessages is generated and has funny method names -- exclude name=main/java/com/google/gwt/sample/validation*/**/ValidationMessages.java / /fileset /gwt.checkstyle -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10655 committed - Integrates r10651 to releases/2.4, DynaTable RF and Mobile Web App sam...
Revision: 10655 Author: gwt.mirror...@gmail.com Date: Fri Sep 16 15:47:37 2011 Log: Integrates r10651 to releases/2.4, DynaTable RF and Mobile Web App samples now use requestfactory-apt http://code.google.com/p/google-web-toolkit/source/detail?r=10655 Deleted: /releases/2.4/samples/mobilewebapp/src/main/java/META-INF Modified: /releases/2.4/samples/dynatablerf/pom.xml /releases/2.4/samples/mobilewebapp/pom.xml /releases/2.4/samples/mobilewebapp/src/main/webapp/WEB-INF/appengine-web.xml /releases/2.4/samples/validation/pom.xml === --- /releases/2.4/samples/dynatablerf/pom.xml Tue Sep 13 08:28:51 2011 +++ /releases/2.4/samples/dynatablerf/pom.xml Fri Sep 16 15:47:37 2011 @@ -1,6 +1,8 @@ ?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; +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; modelVersion4.0.0/modelVersion groupIdcom.google.gwt.sample.dynatablerf/groupId @@ -23,23 +25,42 @@ /properties dependencies -!-- Google Web Toolkit (GWT) itself -- +!-- Google Web Toolkit (GWT) -- dependency groupIdcom.google.gwt/groupId - !-- Could use requestfactory-server instead -- - artifactIdgwt-servlet/artifactId + artifactIdgwt-user/artifactId version${gwtVersion}/version - scoperuntime/scope + !-- provided so that we don't deploy -- + scopeprovided/scope /dependency + +!-- For the servlet filter -- + dependency - groupIdcom.google.gwt/groupId - artifactIdgwt-user/artifactId + groupIdjavax.servlet/groupId + artifactIdservlet-api/artifactId + version2.5/version +/dependency + +!-- RequestFactory server -- + +dependency + groupIdcom.google.web.bindery/groupId + artifactIdrequestfactory-server/artifactId version${gwtVersion}/version - scopeprovided/scope /dependency -!-- GWT RequestFactory will use JSR 303 javax.validation if you let it -- +!-- Generate the decoder needed by RequestFactory Server -- +!-- Doesn't yet work in eclipse. See maven-processor-plugin below. +dependency + groupIdcom.google.web.bindery/groupId + artifactIdrequestfactory-apt/artifactId + version${gwtVersion}/version +/dependency +-- + +!-- RequestFactory will use JSR 303 javax.validation if you let it -- dependency groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId @@ -62,25 +83,8 @@ /exclusions /dependency -!-- GWT RequestFactory requires org.json -- -!-- TODO: can we declare the json and validation dependencies somewhere for the world to pick up, -rather than requiring everyone to know about them? -- -dependency - groupIdorg.json/groupId - artifactIdjson/artifactId - version20090211/version -/dependency - -!-- for the servlet filter -- -dependency - groupIdjavax.servlet/groupId - artifactIdservlet-api/artifactId - version2.5/version -/dependency - !-- Required by Hibernate validator because slf4j-log4j is - optional in the hibernate-validator POM - -- + optional in the hibernate-validator POM -- dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId @@ -94,10 +98,62 @@ /dependencies build -!-- Generate compiled stuff in the folder used for developing mode -- +!-- Generate compiled stuff in the folder used for development mode -- outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory plugins + !-- requestfactory-apt runs an annotation processor (APT) to + instrument its service interfaces so that + RequestFactoryServer can decode client requests. Normally + you would just have a dependency on requestfactory-apt + with scopeprovided/scope, but that won't work in + eclipse due to m2e bug + https://bugs.eclipse.org/bugs/show_bug.cgi?id=335036 -- + plugin +groupIdorg.bsc.maven/groupId +artifactIdmaven-processor-plugin/artifactId +version2.0.5/version +executions + execution +idprocess/id +goals + goalprocess/goal +/goals +phasegenerate-sources/phase + /execution +/executions +dependencies + dependency +groupIdcom.google.web.bindery/groupId +artifactIdrequestfactory-apt/artifactId +version${gwtVersion}/version + /dependency +/dependencies +
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
http://gwt-code-reviews.appspot.com/1547804/diff/8/samples/dynatablerf/pom.xml File samples/dynatablerf/pom.xml (right): http://gwt-code-reviews.appspot.com/1547804/diff/8/samples/dynatablerf/pom.xml#newcode136 samples/dynatablerf/pom.xml:136: as an additional source dir-- Probably want to call out here (or somewhere else) that they will actually want to try to find the m2e connector. I know I've gotten used to just always hitting the permanently ignore button since there are so few connectors currently. http://gwt-code-reviews.appspot.com/1547804/diff/8/samples/mobilewebapp/pom.xml File samples/mobilewebapp/pom.xml (right): http://gwt-code-reviews.appspot.com/1547804/diff/8/samples/mobilewebapp/pom.xml#newcode208 samples/mobilewebapp/pom.xml:208: as an additional source dir-- ditto http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)
http://gwt-code-reviews.appspot.com/1547804/diff/8/samples/dynatablerf/pom.xml File samples/dynatablerf/pom.xml (right): http://gwt-code-reviews.appspot.com/1547804/diff/8/samples/dynatablerf/pom.xml#newcode136 samples/dynatablerf/pom.xml:136: as an additional source dir-- It basically auto-installed, so I think they'll figure it out. http://gwt-code-reviews.appspot.com/1547804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors