Re: Gwt touch ui
Here is a preview of gwt4touch 1.0 wich will be shipped in the next release of gwt4air. http://gwt4air.googlecode.com/svn/trunk/touch/GwtAir.html Like alway feedbacks are really welcome Cheers, Alain 2011/7/8 Gal Dolber gal.dol...@gmail.com great news! thanks Alain On Friday, July 8, 2011, Alain Ekambi jazzmatad...@googlemail.com wrote: Not Flash.Pure Gwt based solution 2011/7/8 Gal Dolber gal.dol...@gmail.com Hi Alain,touch support with flash? do you mean only for android devices? On Fri, Jul 8, 2011 at 3:27 AM, Alain Ekambi jazzmatad...@googlemail.com wrote: gwt4air 2.2 will actually have a Gwt Touch moduleStay tuned :) 2011/7/8 Gal Dolber gal.dol...@gmail.com Is anyone doing some open source work on gwt + touch ui? This demo is totally incredible http://dev.sencha.com/deploy/touch/examples/kitchensink/ We must have this implemented with gwt -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IncompatibleRemoteServiceException SerializationException Issue.....
Hi Pablo, Thanks a lot for the offer to help.. I am using gwt 2.3 coupled with gwtp framework, gin guice.. These are the specific external jars i am using... gin-1.5-post-gwt-2.2.jar guice-3.0.jar guice-assistedinject-3.0.jar guice-servlet-3.0.jar gwtp-all-0.6.jar javax.inject.jar jaxen-1.1.1.jar GwtAI-Client.jar GwtAI-Core.jar aopalliance.jar mvel2-2.0.17.jar xstream-1.2.2.jar commons-lang-2.4.jar ecj-3.6.2.jar Thnaks Regards Jugunu On Jul 28, 8:18 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java: 27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Caused by: com.google.gwt.user.client.rpc.SerializationException: Invalid type signature for com.sample.project.shared.model.UserInfo at
Purpose of JSR-BeanValidation in RequestFactory
I wonder if the JSR 303 bean validation at the client-server-interface is really helpful. I stumbled upon two restrictions why I decided to deactivate the validation: - Beans created within the client might be populated in the back-end. For instance, I have a @NotNull column which contains the creationDate of an entity. It doesn't make sense to let clients set this value, instead it is set just before persisting the first time. - Beans object graph needs to be complete for relations with cardinality 1 or 1..n. Again a @NotNull association prevents partially filled beans to be send back to the server. Opinions? Regards, Stefan. -- 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/-/Bt_UircGSkIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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/GPE 2.4.0 RC1 is available
David, you've mentioned that you would also upload the requestfactory-*.jars to Maven Central. Currently I can find only the gwt-*.jars but no rf-*.jars. I'd like to replace gwt-servlet monster JAR by rf-server+client.jars as I'm not using GWT-RPC but only the RF. Are both, rf-server and rf-client required to replace gwt-servlet and which scope each of them should have? -Alex -- 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/-/H8K_N-KuPgIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 + collectios
Hi. I would be happy to implement the support for MapS. Anyclue i should start looking at for this implementation? where should it be contributed to. Thanks. On 13 juil, 17:59, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, July 13, 2011 7:48:27 PM UTC+2, frog wrote: Hi Dev guides say that RF supported collection types are Set and List Is there a way to get around RF this limitation? What do you do if an entity contains a map? Send a List of pairs (make a ValueProxy for that) instead, representing the Map#entrySet() (I've seen bugs reported about Sets of proxies, so you'd better use a List). Map will be supported in due time, as it's already supported at the AutoBean level AFAIK. …or you could contribute the Map support if you really need it and would better spend time building it than working around it ;-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IncompatibleRemoteServiceException SerializationException Issue.....
This error ocurr in dev mode too? 2011/7/29 Jugunu jugunu.a...@gmail.com Hi Pablo, Thanks a lot for the offer to help.. I am using gwt 2.3 coupled with gwtp framework, gin guice.. These are the specific external jars i am using... gin-1.5-post-gwt-2.2.jar guice-3.0.jar guice-assistedinject-3.0.jar guice-servlet-3.0.jar gwtp-all-0.6.jar javax.inject.jar jaxen-1.1.1.jar GwtAI-Client.jar GwtAI-Core.jar aopalliance.jar mvel2-2.0.17.jar xstream-1.2.2.jar commons-lang-2.4.jar ecj-3.6.2.jar Thnaks Regards Jugunu On Jul 28, 8:18 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java: 27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Caused by:
Re: Gwt touch ui
Thanks Alain!! Wonderfull!! 2011/7/29 Alain Ekambi jazzmatad...@googlemail.com Here is a preview of gwt4touch 1.0 wich will be shipped in the next release of gwt4air. http://gwt4air.googlecode.com/svn/trunk/touch/GwtAir.html Like alway feedbacks are really welcome Cheers, Alain 2011/7/8 Gal Dolber gal.dol...@gmail.com great news! thanks Alain On Friday, July 8, 2011, Alain Ekambi jazzmatad...@googlemail.com wrote: Not Flash.Pure Gwt based solution 2011/7/8 Gal Dolber gal.dol...@gmail.com Hi Alain,touch support with flash? do you mean only for android devices? On Fri, Jul 8, 2011 at 3:27 AM, Alain Ekambi jazzmatad...@googlemail.com wrote: gwt4air 2.2 will actually have a Gwt Touch moduleStay tuned :) 2011/7/8 Gal Dolber gal.dol...@gmail.com Is anyone doing some open source work on gwt + touch ui? This demo is totally incredible http://dev.sencha.com/deploy/touch/examples/kitchensink/ We must have this implemented with gwt -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Calling an inherited module RPC (using GIN)
I think you can use a provider methodhttp://code.google.com/p/google-guice/wiki/ProvidesMethods . I don't test, but you can try: @Provides @Singleton SessionServiceAsync sessionServiceAsyncProvider() { SessionServiceAsync s = GWT.create(SessionService.class); ((ServiceDefTarget) s).setServiceEntryPoint(GWT .getHostPageBaseURL() + s.END_POINT); return s; } Juan 2011/7/28 vehdra music veh...@gmail.com Hi, I am using Gin in my project. In my activity I have this code: private MyServiceAsync rpcService; @Inject public MyListActivity(MyListView view, PlaceController placeController, MyServiceAsync rpcService) { this.view = view; this.placeController = placeController; this.rpcService = rpcService; } This works great if my RPC is created in the same module. But I need to have my RPCs in another module (Core), and inherit this module from others (ie: Admin). I was googling about relative paths and RPCs and I've found this post: http://borgestech.blogspot.com/2011/03/gwt-calling-rpc-service-inside-another.html But (as I am a really newby to Gin) I can't figured how to mix what that post says with Gin. Can anyone give me a hand? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Lots of DIVs
Very smart :) Alisson Prestes www.google.com/profiles/javalisson On Thu, Jul 28, 2011 at 4:30 PM, Thomas Broyer t.bro...@gmail.com wrote: First, as soon as you use a layout panel, it adds a div to the document's body, using it as a ruler to measure centimeters in pixels (this is the very first div here, moved out of view using top:-20cm). Then, each layout panel is a div, containing another ruler to measure EMs and EXs (it has to be repeated for each panel because it depends on the font-size applied locally or inherited). Then, each child of layout panel lives in its own div (I don't remember the rationale for this, but it had to be done so it works in all browsers and allows some kinds of styling –borders and margins–). So here, you have the CM rule, followed by the RootLayoutPanel, containing its own ruler and a child. That child in turns is a layout panel, with its own ruler and a single child. -- 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/-/cUsZ2VaB3m4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: RequestFactory + collectios
Here :) http://code.google.com/p/google-web-toolkit/issues/detail?id=5524q=mapscolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars -- 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/-/sGU0BY-EdN0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Can We develop G-Talk kindOf desktop application using GWT
Have a look at https://addons.mozilla.org/en-US/firefox/addon/mozilla-labs-rainbow/. Putting a GWT wrapper, one can implement voice chat but it is limited to FireFox. WebRTC looks far more advanced though. J.Ganesan www.DataStoreGwt.com On Jul 28, 8:28 am, msp munukutlaprav...@gmail.com wrote: Hi GWT, Can we develop G-Talk kindof desktop application using GWT ? oor GWT is specific for Desktop applications ? Kindly someone ackowledge with answer. Thanks in advance. ~MSP -- 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: Can We develop G-Talk kindOf desktop application using GWT
On Fri, Jul 29, 2011 at 2:01 PM, J.Ganesan j.gane...@datastoregwt.com wrote: Have a look at https://addons.mozilla.org/en-US/firefox/addon/mozilla-labs-rainbow/. Putting a GWT wrapper, one can implement voice chat but it is limited to FireFox. WebRTC looks far more advanced though. If you want to go for xmpp - try emite-gwt - great lib: http://code.google.com/p/emite/ best, raphael J.Ganesan www.DataStoreGwt.com On Jul 28, 8:28 am, msp munukutlaprav...@gmail.com wrote: Hi GWT, Can we develop G-Talk kindof desktop application using GWT ? oor GWT is specific for Desktop applications ? Kindly someone ackowledge with answer. Thanks in advance. ~MSP -- 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. -- inc: http://ars-machina.raphaelbauer.com tech: http://ars-codia.raphaelbauer.com web: http://raphaelbauer.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can We develop G-Talk kindOf desktop application using GWT
Was ntot the question about Desktop application with GWT or m i missunderstanding ? 2011/7/29 J.Ganesan j.gane...@datastoregwt.com Have a look at https://addons.mozilla.org/en-US/firefox/addon/mozilla-labs-rainbow/. Putting a GWT wrapper, one can implement voice chat but it is limited to FireFox. WebRTC looks far more advanced though. J.Ganesan www.DataStoreGwt.com On Jul 28, 8:28 am, msp munukutlaprav...@gmail.com wrote: Hi GWT, Can we develop G-Talk kindof desktop application using GWT ? oor GWT is specific for Desktop applications ? Kindly someone ackowledge with answer. Thanks in advance. ~MSP -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Alternative to Drop Down List Box !
I just wanted to update on the Drop Down List Box, GWT Incubator Drop Down List BoxNot planned at this time, but some people use a vertical MenuBarhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/MenuBar.html to achieve the same effect While trying to achieve the above I managed to get a drop down or drop up list in a different way, with popup ups and menuBar. Hope this helps if you are looking to achieve something similar. While I tried to use a MenuBar instead of a Popup it always lists down which I didn't want. It is definitely nicer when it lists up !! There are other options as well. You can use labels instead of a the menubar. You just have to add the labels in the PopupPanel in a vertical Panel, and define a clickHandler for each Label. Please do update if you have a better solution. // below PopUp panel to show the options that the user can click PopupPanel mainPopup = new PopupPanel(true, true); // Commands to be executed when user clicks the option Command option1 = new Command() { @Override public void execute() { Window.alert(Option 1); select.setText(Option 1); } }; Command option2 = new Command() { @Override public void execute() { Window.alert(Option 2); select.setText(Option 1); } }; // MenuBar that will contain the options MenuBar options = new MenuBar(true); options.addItem(Option 1, option1); options.addItem(Option 2, option2); // A Label that triggers the PopUp Label select = new Label(Select); // Click handler for the Label select.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (!mainPopup.isShowing()) { mainPopup.showRelativeTo(select); } else { mainPopup.hide(); } } }); // finally we add the options to the popup mainPopup.add(options); } ** I wish there was a code box widget here :-) so that I can easily show the code I want in a preformatted way. *** -- 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/-/DRxeGXm4ZsgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
Hmm, I tried going down the onViolation / onFailure paths, but ran in to other problems with those. For onFailure, is there a way to send a valueProxy back inside the exception payload? It looks like the default behavior is just to extract the message out of any thrown exception. I'd like to return my errors to the client in a meaningful format so I can mark up the editor. I guess worst case I could serialize the object array as a string and decode it on the client, but I'd like to avoid that if possible. onConstraintViolation is what I really wanted, but couldn't find any hooks on the server side to allow me to convert my legacy application's server-side violations into the necessary ViolationMessages. Basically I'd like to run the code from the SimpleRequestProcessor:process(request,response) function: // Validate entities ListViolationMessage errorMessages = validateEntities(source); if (!errorMessages.isEmpty()) { resp.setViolations(errorMessages); return; } but rather than get the errors from the validateEntries method, my service layer method invocation will either return or throw them. Unfortunately it doesn't look like the SimpleRequestProcessor is override-able since it's declared private final in the RequestFactoryServlet, and I couldn't find any hooks to allow me to post-process the response after the invocation. Thanks, Eric -- 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/-/ZvpcOJlgnpoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Spring related post
I think that is a classic... you probably instantiated the controller in an application-context rather than a web-application-context On Jul 27, 6:49 pm, spandu spandana@gmail.com wrote: Hi, I am using GWT 2.0 integrated with Spring in the application, after executing the applicationwhen I try to login into the application..I am getting the following error. I have searched a lot to find out the solution, if anyone has encountered this kind of error and found some solution, please help me out with this, I would atleast need what might be the root cause for this exception..thanks in advance. [WARN] Exception while dispatching incoming RPC call java.lang.NullPointerException at javax.servlet.GenericServlet.getServletName(GenericServlet.java: 322) at javax.servlet.GenericServlet.log(GenericServlet.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: 237) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: 117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: 429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: 86) at com.shris.emr.server.common.rpc.AbstractShrisRpcSerivce.handleRequest(AbstractShrisRpcSerivce.java: 60) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: 48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 771) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 716) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 647) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: 563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1097) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java: 113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 76) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1088) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:343) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: 83) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java: 97) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java: 100) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java: 78) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java: 54) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java: 35) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java: 187) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:355) at
RPC Serialization
Hey there, I want to make a RPC Call with an Object called Feature. This class included an ArrayList with refereces to other Object. So when I do the RPC Call and want to reach the Object from the ArrayList, i get the following Eception: com.google.gwt.user.client.rpc.SerializationException at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java: 153) at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 125) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 179) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java: 45) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java: 40) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer.serial(ArrayList_FieldSerializer.java: 23) at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 126) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 179) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at de.fhdo.kuss.client.Feature_FieldSerializer.serialize(Feature_FieldSerializer.java: 51) at de.fhdo.kuss.client.Feature_FieldSerializer.serial(Feature_FieldSerializer.java: 64) at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 126) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 179) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at de.fhdo.kuss.client.SpeicherService_Proxy.test(SpeicherService_Proxy.java: 327) at de.fhdo.kuss.client.FM_Gui.test(FM_Gui.java:834) at de.fhdo.kuss.client.FM_Gui.init(FM_Gui.java:67) at de.fhdo.kuss.client.Kuss_Projekt.buildGui(Kuss_Projekt.java:61) at de.fhdo.kuss.client.Kuss_Projekt.onModuleLoad(Kuss_Projekt.java: 31) 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: 193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Unknown Source) Is it because of the ArrayList? Thats my Class: public class Feature implements Serializable { private static final long serialVersionUID = 1L; private String name; private ArrayListGroup subgroups = new ArrayListGroup(); private String context; public Feature(){ } public Feature(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void addSubgroup(Group group) { subgroups.add(group); } public ArrayListGroup getSubGroups() { return subgroups; } } And that is my Call: public void test() { AsyncCallbackString callback = new AsyncCallbackString() { public void onFailure(Throwable caught) { caught.printStackTrace(); } public void onSuccess(String result) { Window.alert(result); } }; Feature feature2 = new Feature(test Feature); Feature feature = new Feature(root); Group group = new Group(GroupType.mandatory,feature2); feature.addSubgroup(group); SpeicherService.Util.getInstance().test(feature, callback); } -- 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
Re: CellTable question
Jeff, that worked like a charm! Thanks for helping me make it up the Java curve! On Jul 28, 1:27 pm, Jeff Larsen larse...@gmail.com wrote: when you build the column, specify the number MyTextColumn extends TextColumnString[]{ public MyTextColumn(int index){ this.index = index; } public String getValue(String[] strings){ return strings[index]; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IncompatibleRemoteServiceException SerializationException Issue.....
I am not getting it always, after doing a gwtcompile i am getting it sometimes even in dev server... I tried to deploy it in tomcat after creating a war, that time the response returns from handler, but doesn't reach the async call back .. Previously i was getting serialization error in Arraylist , but now i am getting only this, not sure what changed... Note: I am not extending IsSerializable but just extending all my objects with java.io.Serializable... On Jul 29, 4:40 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: This error ocurr in dev mode too? 2011/7/29 Jugunu jugunu.a...@gmail.com Hi Pablo, Thanks a lot for the offer to help.. I am using gwt 2.3 coupled with gwtp framework, gin guice.. These are the specific external jars i am using... gin-1.5-post-gwt-2.2.jar guice-3.0.jar guice-assistedinject-3.0.jar guice-servlet-3.0.jar gwtp-all-0.6.jar javax.inject.jar jaxen-1.1.1.jar GwtAI-Client.jar GwtAI-Core.jar aopalliance.jar mvel2-2.0.17.jar xstream-1.2.2.jar commons-lang-2.4.jar ecj-3.6.2.jar Thnaks Regards Jugunu On Jul 28, 8:18 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java: 27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
Tested class changes not visible to test class using gwt-maven-plugin
Can anyone help with this? (I know there is a separate mailing list for gwt-maven-plugin but I'm not sure it has a lot of subscribers.) Given that you have a JUnit test case class in /src/test/java/*/ FooTest.java and a tested class /src/main/java/*/Foo.java. If you attempt run your test case in FooTest.java you will get a runtime error indicating that FooTest doesn't have access to the modified Foo.class file. Steps to reproduce. 1) Generate a GWT project using the gwt-maven-plugin archetype. 2) Import the project into Eclipse using new-Existing Projects into Workspace. 3) Create class Foo.java in /src/main/java/**/client. 4) Define a simple test method in Foo.java public hello(){return hello} 5) Create class FooTest.java in /src/test/java/**/client. 6) Define a test in FooTest.java: @Test public void testFooTest() {Foo foo = new Foo(); assertEquals(hello, foo.hello());} 7) Run the test case method. You will get a runtime message complaining that Foo can't be found. A workaround is to: 1) open the junit run configuration. 2) select the classpath tab. 3) select user entries 4) click advanced button 5) select Add folders radio button 6) click ok button 7) add folder src/main/webapp/WEB-INF/classes Its not a great workaround since you have to do this with every test case run configuration. Another workaround is to run Project/clean on the project. -- 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 Page flows - want to start a open source project - thoughts
Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt touch ui
Just tested it on the IPad2 works great. It looks like Sencha Touch. Is it Sencha touch ? 2011/7/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Thanks Alain!! Wonderfull!! 2011/7/29 Alain Ekambi jazzmatad...@googlemail.com Here is a preview of gwt4touch 1.0 wich will be shipped in the next release of gwt4air. http://gwt4air.googlecode.com/svn/trunk/touch/GwtAir.html Like alway feedbacks are really welcome Cheers, Alain 2011/7/8 Gal Dolber gal.dol...@gmail.com great news! thanks Alain On Friday, July 8, 2011, Alain Ekambi jazzmatad...@googlemail.com wrote: Not Flash.Pure Gwt based solution 2011/7/8 Gal Dolber gal.dol...@gmail.com Hi Alain,touch support with flash? do you mean only for android devices? On Fri, Jul 8, 2011 at 3:27 AM, Alain Ekambi jazzmatad...@googlemail.com wrote: gwt4air 2.2 will actually have a Gwt Touch moduleStay tuned :) 2011/7/8 Gal Dolber gal.dol...@gmail.com Is anyone doing some open source work on gwt + touch ui? This demo is totally incredible http://dev.sencha.com/deploy/touch/examples/kitchensink/ We must have this implemented with gwt -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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 / Maven (again!)
For quite a while, we've been somewhat successful using gwt-maven- plugin in conjunction with GWT/GPE. However, there has been lots of effort and frustration getting to where we are. And, I've just encountered another problem that I've yet to figure out. It seems to me that a lot of the trouble comes from the fact that the standard GWT directory structure is very different than the directory structure that gwt-maven-plugin wants. My question for those that know Maven better than me (and there has to be lots of those) is how difficult would it be to mavenize a GWT project with GWT's standard layout? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IncompatibleRemoteServiceException SerializationException Issue.....
The error is: Caused by: com.google.gwt.user.client.rpc.SerializationException: Invalid type signature for com.sample.project.shared.model.UserInfo I google and found some explanations (thanks a T. Broyer again) in this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/dcc7441ed78bc3ee. I paste the here the explanation: The invalid type signature for message indicates that the object used by the client is different than the one known to the server (at compile-time, a checksum of the object's fields is computed and sent along with the object's class in the RPC payload; the same checksum is computed at runtime on the server and compared to the one received from the client). Please read the details in thread, perhaps help to you. Juan 2011/7/29 Jugunu jugunu.a...@gmail.com I am not getting it always, after doing a gwtcompile i am getting it sometimes even in dev server... I tried to deploy it in tomcat after creating a war, that time the response returns from handler, but doesn't reach the async call back .. Previously i was getting serialization error in Arraylist , but now i am getting only this, not sure what changed... Note: I am not extending IsSerializable but just extending all my objects with java.io.Serializable... On Jul 29, 4:40 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: This error ocurr in dev mode too? 2011/7/29 Jugunu jugunu.a...@gmail.com Hi Pablo, Thanks a lot for the offer to help.. I am using gwt 2.3 coupled with gwtp framework, gin guice.. These are the specific external jars i am using... gin-1.5-post-gwt-2.2.jar guice-3.0.jar guice-assistedinject-3.0.jar guice-servlet-3.0.jar gwtp-all-0.6.jar javax.inject.jar jaxen-1.1.1.jar GwtAI-Client.jar GwtAI-Core.jar aopalliance.jar mvel2-2.0.17.jar xstream-1.2.2.jar commons-lang-2.4.jar ecj-3.6.2.jar Thnaks Regards Jugunu On Jul 28, 8:18 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sounds conflicts of version. Put gwt version and your dependencies to help you. 2011/7/28 Jugunu jugunu.a...@gmail.com Hi GWT Group, I am getting a IncompatibleRemoteServiceException serialization exception... But i have extended my class with java.io.Serializable... Also i have observed that I am having duplicate entry in the gwt.rpc file..one starting with[L and the other without... Can you give me some guidance to solve this issue? UserInfo extends AResponse *** .GWT.RPC Content... com.sample.project.shared.model.UserInfo, true, true, true, true, com.sample.project.shared.model.UserInfo/3419115833, 3419115833 [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true, [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643 com.delta.rafg.coredata.AResponse, true, false, true, false, com.delta.rafg.coredata.AResponse/3701931059, 3701931059 [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true, [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197 ERROR LOG... *** Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext log SEVERE: Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.sample.project.shared.model.UserInfo at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java: 263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java: 178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java: 91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 62) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 113) at
Re: GWT / Maven (again!)
This sample https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home is a gwt project with maven standard layout 2011/7/29 cri chuck.irvine...@gmail.com For quite a while, we've been somewhat successful using gwt-maven- plugin in conjunction with GWT/GPE. However, there has been lots of effort and frustration getting to where we are. And, I've just encountered another problem that I've yet to figure out. It seems to me that a lot of the trouble comes from the fact that the standard GWT directory structure is very different than the directory structure that gwt-maven-plugin wants. My question for those that know Maven better than me (and there has to be lots of those) is how difficult would it be to mavenize a GWT project with GWT's standard layout? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Page flows - want to start a open source project - thoughts
Is swing applications pageflow? I think not. Perhaps you can look at architecture proposed in ProGWT bookhttp://books.google.com/books?id=OG816JSZYVcCprintsec=frontcoverdq=Pro+Web+2.0+Application+Development+with+GWThl=enei=hsQyTtmKI6f00gH0gN3rCwsa=Xoi=book_resultct=resultresnum=1ved=0CC4Q6AEwAA#v=onepageqf=false . In this architecture you don't need use a whole page. 2011/7/29 dreamer venugopal.vasire...@gmail.com Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using a custom DateFormatProvider in GWT
Thanks, just the information I needed. On 17 Jun., 05:37, John A. Tamplin j...@google.com wrote: GWT uses the data from the Unicode CLDR, and supports ta and ta_LK, so ta_IN should get the ta defaults, which should be appropriate for IN. If you believe there should be a specialization for ta in India, then I suggest filing a bug against CLDR to add it. Aside from that, search for *_ta.* under user/src/com/google/gwt/i18n and make a copy under *_ta_IN.* and edit it as needed. You could put those files in your own project and GWT will use them if they are on the classpath. -- 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 / Maven (again!)
What I meant is to somehow create a mavenized project having the standard GWT directory structure (so that it plays better with GPE). On Jul 29, 9:30 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: This sample https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home is a gwt project with maven standard layout 2011/7/29 cri chuck.irvine...@gmail.com For quite a while, we've been somewhat successful using gwt-maven- plugin in conjunction with GWT/GPE. However, there has been lots of effort and frustration getting to where we are. And, I've just encountered another problem that I've yet to figure out. It seems to me that a lot of the trouble comes from the fact that the standard GWT directory structure is very different than the directory structure that gwt-maven-plugin wants. My question for those that know Maven better than me (and there has to be lots of those) is how difficult would it be to mavenize a GWT project with GWT's standard layout? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Purpose of JSR-BeanValidation in RequestFactory
I am having the same issue. I need to do some pre-processing of my beans on the server before I fire validation, but the framework doesn't allow that. It only fires validation on the beans as soon as they are decoded off the wire. As far as I can tell, the RequestFactory also doesn't give you hooks to fire your own validation later or to feed your own validation errors back into the onViolation callback. -- 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/-/ru5eIviFkA8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: Purpose of JSR-BeanValidation in RequestFactory
On server side you can use a custom ServiceLayerDecorator and implement the validate method to customize the validation process (ReflectiveServiceLayer contains the default way of validaton). In your bean you could use validation groups: the default one that is used by the client side code and an additional server validation group. In your ServiceLayerDecorator you would then validate against the server validation group. I think that way you should be able to allow null fields on client side but disallow them on server side. -- 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/-/L7ETpIDfBJYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ProgressBar for GWT 2.3
Hello, I need a progressbar for my application developed with GWT 2.3. after searching I found a widget realizing exactly what I want:http:// code.google.com/p/google-web-toolkit-incubator/ But the problem is that this project is no longer maintained and uses deprecated methods that are reported during the execution of my application. [WARN] [testProgressBar] - Line 30: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl' [WARN] [testProgressBar] - Line 122: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [WARN] [testProgressBar] - Line 103: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.Grid' is there any other progressbar widget that are compatible gwt 2.3? Thanks in advance for your help Ahmed -- 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: Tested class changes not visible to test class using gwt-maven-plugin
I have the same issue, and am using a similar workaround. The only difference is that I add the external class folder to my Java build path. When I run JUnit tests, I make sure the class folder is at the top of the Order and Export list, and when in standard development I put it at the bottom. This way it works for all test cases - but still not a great workaround. -- Sébastien Tromp 2011/7/29 cri chuck.irvine...@gmail.com Can anyone help with this? (I know there is a separate mailing list for gwt-maven-plugin but I'm not sure it has a lot of subscribers.) Given that you have a JUnit test case class in /src/test/java/*/ FooTest.java and a tested class /src/main/java/*/Foo.java. If you attempt run your test case in FooTest.java you will get a runtime error indicating that FooTest doesn't have access to the modified Foo.class file. Steps to reproduce. 1) Generate a GWT project using the gwt-maven-plugin archetype. 2) Import the project into Eclipse using new-Existing Projects into Workspace. 3) Create class Foo.java in /src/main/java/**/client. 4) Define a simple test method in Foo.java public hello(){return hello} 5) Create class FooTest.java in /src/test/java/**/client. 6) Define a test in FooTest.java: @Test public void testFooTest() {Foo foo = new Foo(); assertEquals(hello, foo.hello());} 7) Run the test case method. You will get a runtime message complaining that Foo can't be found. A workaround is to: 1) open the junit run configuration. 2) select the classpath tab. 3) select user entries 4) click advanced button 5) select Add folders radio button 6) click ok button 7) add folder src/main/webapp/WEB-INF/classes Its not a great workaround since you have to do this with every test case run configuration. Another workaround is to run Project/clean on the project. -- 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.
Online Javadoc not up-to-date
Hi, all, Minor issue... The online Javadoc that the GWT documentation links to is not up-to-date. Compare: 404 Not Found: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/SimpleLayoutPanel.html Up-to-date goodness: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/SimpleLayoutPanel.html Greetings, Andrew -- 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: Tested class changes not visible to test class using gwt-maven-plugin
I like your workaround a little better than mine. It does result in a non project relative directory path in my .classpath file. We check .classpath files into svn and the non relative directory wouldn't match the directory setup of other users. I'm thinking that there may be a way to make this relative. Do you know how? I suppose that I'll find out soon enough, but that problems occur if you don't move the external classpath to the bottom of order and export? Thanks a lot Sebastien! Chuck On Jul 29, 12:14 pm, Sébastien Tromp sebastien.tr...@gmail.com wrote: I have the same issue, and am using a similar workaround. The only difference is that I add the external class folder to my Java build path. When I run JUnit tests, I make sure the class folder is at the top of the Order and Export list, and when in standard development I put it at the bottom. This way it works for all test cases - but still not a great workaround. -- Sébastien Tromp 2011/7/29 cri chuck.irvine...@gmail.com Can anyone help with this? (I know there is a separate mailing list for gwt-maven-plugin but I'm not sure it has a lot of subscribers.) Given that you have a JUnit test case class in /src/test/java/*/ FooTest.java and a tested class /src/main/java/*/Foo.java. If you attempt run your test case in FooTest.java you will get a runtime error indicating that FooTest doesn't have access to the modified Foo.class file. Steps to reproduce. 1) Generate a GWT project using the gwt-maven-plugin archetype. 2) Import the project into Eclipse using new-Existing Projects into Workspace. 3) Create class Foo.java in /src/main/java/**/client. 4) Define a simple test method in Foo.java public hello(){return hello} 5) Create class FooTest.java in /src/test/java/**/client. 6) Define a test in FooTest.java: @Test public void testFooTest() {Foo foo = new Foo(); assertEquals(hello, foo.hello());} 7) Run the test case method. You will get a runtime message complaining that Foo can't be found. A workaround is to: 1) open the junit run configuration. 2) select the classpath tab. 3) select user entries 4) click advanced button 5) select Add folders radio button 6) click ok button 7) add folder src/main/webapp/WEB-INF/classes Its not a great workaround since you have to do this with every test case run configuration. Another workaround is to run Project/clean on the project. -- 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: Online Javadoc not up-to-date
Noticed com.google.gwt.user.client.ui.ResizeLayoutPanel is missing, too. On Jul 29, 12:49 pm, Andrew Green andrew.green...@gmail.com wrote: Hi, all, Minor issue... The online Javadoc that the GWT documentation links to is not up-to-date. Compare: 404 Not Found:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... Up-to-date goodness:http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g... Greetings, Andrew -- 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.
Dynamically convert between TextBox and PasswordTextBox
I have a requirement to turn some financial fields into masked fields and I wanted to use the password input type to simplify the logic. I need to be able to change a TextBox to a PasswordTextBox and have it change the value in the box to circles without affecting the value or style of the element. I'm having trouble finding a good way to do this as TextBox does not let you modify the type property. Any advice/help would be greatly appreciated. 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: Dynamically convert between TextBox and PasswordTextBox
From a code and css points of view they are exactly the same. You should be able to change from TextBox to PasswordTextBox without changing anything. On Fri, Jul 29, 2011 at 5:05 PM, Ben Munge ben.mu...@gmail.com wrote: I have a requirement to turn some financial fields into masked fields and I wanted to use the password input type to simplify the logic. I need to be able to change a TextBox to a PasswordTextBox and have it change the value in the box to circles without affecting the value or style of the element. I'm having trouble finding a good way to do this as TextBox does not let you modify the type property. Any advice/help would be greatly appreciated. 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dynamically convert between TextBox and PasswordTextBox
Yes you should be able to, however you are not. There is no constructor for PasswordTextBox that takes in a TextBox. I ended up just using getElement and setting the attribute directly. textBox.getElement().setAttribute(type, password); On Jul 29, 3:17 pm, Gal Dolber gal.dol...@gmail.com wrote: From a code and css points of view they are exactly the same. You should be able to change from TextBox to PasswordTextBox without changing anything. On Fri, Jul 29, 2011 at 5:05 PM, Ben Munge ben.mu...@gmail.com wrote: I have a requirement to turn some financial fields into masked fields and I wanted to use the password input type to simplify the logic. I need to be able to change a TextBox to a PasswordTextBox and have it change the value in the box to circles without affecting the value or style of the element. I'm having trouble finding a good way to do this as TextBox does not let you modify the type property. Any advice/help would be greatly appreciated. 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dynamically convert between TextBox and PasswordTextBox
An resourceful user could probably still watch the value, via a javascript debugging tool like Firebug, as its being set into those input fields. Assuming you are still sending the financial data to the client from the server, of course. This is also assuming the reason you want to use a password field is to hide the value from the user. If that isn't the use case, then ignore my ramblings. -Ben -- 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/-/Qkq0CiNTQtUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can't create HTML file
I attempting to follow Jeff Douglas's Blog tutorial for HelloUiBinder using Eclipse Helios. I did get the first example to work but the screenshot of the New Project Webproject wizard doesn't have the check box to include sample code. If I check the box I get useless classes. Today I attempted to recreate his project without loading in the example code and all went well for his first example until I needed to create an HTML page. If I created an HTML file in the WAR folder then CP from the example HTML file Eclipse I cannot get Eclipse to include the page in the project. But I can't use New HTML page either. It asks for a file name and a Module. I am not able to use the Add Module part of the wizard. It finds nothing in all cases and I have not yet found any help. How is this wizard used for this purpose? Thanks Nate -- When I was 12 I thought I would live forever. So far, so good. -- 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.
UiBinder.useSafeHtmlTemplates
Hi all, I'm sure you're familiar with the warning Configuration property UiBinder.useSafeHtmlTemplates is false!. I did the obvious, I added set-configuration-property name=UiBinder.useSafeHtmlTemplates value=true/ to the lowest level GWT module I have (it gets included directly or indirectly by all other modules). Well, colour me surprised: [INFO] Loading inherited module 'com.example.domain.request.DomainRequestImpl' [INFO]Loading inherited module 'com.example.domain.request.DomainRequestApi' [INFO] Loading inherited module 'com.example.domain.proxy.DomainProxyApi' [INFO] Loading inherited module 'com.example.domain.DomainApi' [INFO] [WARN] Setting configuration property named UiBinder.useSafeHtmlTemplates in com.example.domain.DomainApi that has not been previously defined. This may be disallowed in the future. [INFO] Loading inherited module 'com.example.fe.Measurements' [INFO]Loading inherited module 'com.google.web.bindery.requestfactory.RequestFactory' [INFO] Loading inherited module 'com.google.web.bindery.autobean.AutoBean' [INFO] Loading inherited module 'com.google.gwt.user.User' [INFO] Loading inherited module 'com.google.gwt.uibinder.UiBinder' [INFO][WARN] Definition of already set configuration property named UiBinder.useSafeHtmlTemplates in com.google.gwt.uibinder.UiBinder (set in com.example.domain.DomainApi). This may be disallowed in the future. [INFO] Compiling module com.example.fe.MeasurementsApp [INFO]Scanning for additional dependencies: file:/home/me/workspaces/project-workspace/measurements/src/main/java/com/example/fe/widgets/DefaultMeasurementsApi.java [INFO] Computing all possible rebind results for 'com.example.fe.widgets.Measurements.UiBinder' [INFO] Rebinding com.example.fe.widgets.Measurements.UiBinder [INFO] Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [INFO][WARN] Configuration property UiBinder.useSafeHtmlTemplates is false! UiBinder SafeHtml integration is off, leaving your users more vulnerable to cross-site scripting attacks. This property will default to true in future releases of GWT. What's going on here? First it complains about it not being defined, then that it's already set, and finally that it's *not* set?!? Cheers, Hilco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Page flows - want to start a open source project - thoughts
What if we need to port very complex web app with 100's of jsp/html pages into GWT ? Yes. swing and gwt got lot of similarities. But loosing web advantages being on web may be not cool. yep Swing is Forms flow with thick client nature. There is a huge paradigm shift between these two worlds. as per my understanding GWT is trying to simulate thick client (yep swing) where all the forms/pages are at client and makes rpc to create Models thus MVP to refresh GUI. My thought is to preserve the thin client nature, when you are getting completely new page, just make URL / URI call to load javascript component. Server serves Model and View, on client presenter can update view, before rendering GUI. this way application stays very light weight , just like HTML pages, I beleive complex application with hundereds of jsp/html pages can be easily ported into GWT. sure AJAX reduces # of pages. but not down to one or two pages. Partial refreshes will will be done as usual. - venu - http://schoolk12.appspot.com/ On Jul 29, 7:34 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is swing applications pageflow? I think not. Perhaps you can look at architecture proposed in ProGWT bookhttp://books.google.com/books?id=OG816JSZYVcCprintsec=frontcoverdq=... . In this architecture you don't need use a whole page. 2011/7/29 dreamer venugopal.vasire...@gmail.com Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Support for IE6 isn't feasible in this format, because structural changes to the DOM are necessary to implement a windowing effect. Once it's possible to distinguish ie6 and ie7 in user.agent, we co
In the section Image Sprites of this doc(http://code.google.com/ webtoolkit/doc/latest/DevGuideClientBundle.html#ImageResource), Google says: = Support for IE6 isn't feasible in this format, because structural changes to the DOM are necessary to implement a windowing effect. Once it's possible to distinguish ie6 and ie7 in user.agent, we could revisit support for ie6. In the current implementation, the ie6 code won't render correctly, although is a purely cosmetic issue. = How do i understand why IE6 couldn't be supported? Does IE itself not support CSS sprite? Does this mean I won't benefit from GWT's image sprite feature if I want my application to run well on IE6? Any reply will be appreciated. -- 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.
Support for IE6 isn't feasible in this format, because structural changes to the DOM are necessary to implement a windowing effect. Once it's possible to distinguish ie6 and ie7 in user.agent, we co
In the section Image Sprites of this doc(http://code.google.com/ webtoolkit/doc/latest/DevGuideClientBundle.html#ImageResource), Google says: = Support for IE6 isn't feasible in this format, because structural changes to the DOM are necessary to implement a windowing effect. Once it's possible to distinguish ie6 and ie7 in user.agent, we could revisit support for ie6. In the current implementation, the ie6 code won't render correctly, although is a purely cosmetic issue. = How do i understand why IE6 couldn't be supported? Does IE itself not support CSS sprite? Does this mean I won't benefit from GWT's image sprite feature if I want my application to run well on IE6? Any reply will be appreciated. -- 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 ProtocolBuffers in google-web-toolkit
Comment by getmay...@gmail.com: Is this functionality already implemented. How can I get gwt-pb.sh and use it For more information: http://code.google.com/p/google-web-toolkit/wiki/ProtocolBuffers -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: [google-web-toolkit] r10459 committed - JsoNormalizer did not give unique names to devirtualized...
Hi, I'd like to know what are the implications of this issue. I just updated from GWT 2.1 to 2.3, and I'm having an error where the xxx__devirtual$ function is undefined for one of my JSO objects methods. The hierarchy of my JSO is as follows: InterfaceA + getId InterfaceB extends InterfaceA MyJSO extends JavaScriptObject implements InterfaceB + getId There are other java classes (i.e. non-JSO) implementing InterfaceA. Any insight would be appreciated, Thanks -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Prevent an AutoBean property named property from causing a compilation error. (issue1505804)
Reviewers: rjrjr, Message: Review requested. Description: Prevent an AutoBean property named property from causing a compilation error. Patch by: bobv Review by: rjrjr Please review this at http://gwt-code-reviews.appspot.com/1505804/ Affected files: M user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java M user/test/com/google/web/bindery/autobean/gwt/client/AutoBeanTest.java Index: user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java === --- user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java (revision 10473) +++ user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java (working copy) @@ -231,8 +231,9 @@ String castType; if (returnType.isPrimitive() != null) { castType = returnType.isPrimitive().getQualifiedBoxedSourceName(); -// Boolean toReturn = getOrReify(foo); -sw.println(%s toReturn = getOrReify(\%s\);, castType, method.getPropertyName()); +// Boolean toReturn = Outher.this.getOrReify(foo); +sw.println(%s toReturn = %s.this.getOrReify(\%s\);, castType, type +.getSimpleSourceName(), method.getPropertyName()); // return toReturn == null ? false : toReturn; sw.println(return toReturn == null ? %s : toReturn;, returnType.isPrimitive() .getUninitializedFieldExpression()); @@ -241,17 +242,19 @@ sw.println(return data.isNull(\%1$s\) ? null : data.get(\%1$s\);, method .getPropertyName()); } else { -// return (ReturnType) values.getOrReify(\foo\); +// return (ReturnType) Outer.this.getOrReify(\foo\); castType = ModelUtils.getQualifiedBaseSourceName(returnType); -sw.println(return (%s) getOrReify(\%s\);, castType, method.getPropertyName()); +sw.println(return (%s) %s.this.getOrReify(\%s\);, castType, type +.getSimpleSourceName(), method.getPropertyName()); } } break; case SET: case SET_BUILDER: { JParameter param = jmethod.getParameters()[0]; - // setProperty(foo, parameter); - sw.println(setProperty(\%s\, %s);, method.getPropertyName(), param.getName()); + // Other.this.setProperty(foo, parameter); + sw.println(%s.this.setProperty(\%s\, %s);, type.getSimpleSourceName(), method + .getPropertyName(), param.getName()); if (JBeanMethod.SET_BUILDER.equals(method.getAction())) { sw.println(return this;); } Index: user/test/com/google/web/bindery/autobean/gwt/client/AutoBeanTest.java === --- user/test/com/google/web/bindery/autobean/gwt/client/AutoBeanTest.java (revision 10473) +++ user/test/com/google/web/bindery/autobean/gwt/client/AutoBeanTest.java (working copy) @@ -15,14 +15,14 @@ */ package com.google.web.bindery.autobean.gwt.client; +import com.google.gwt.core.client.GWT; +import com.google.gwt.junit.client.GWTTestCase; import com.google.web.bindery.autobean.shared.AutoBean; import com.google.web.bindery.autobean.shared.AutoBeanFactory; import com.google.web.bindery.autobean.shared.AutoBeanFactory.Category; import com.google.web.bindery.autobean.shared.AutoBeanUtils; import com.google.web.bindery.autobean.shared.AutoBeanVisitor; import com.google.web.bindery.autobean.shared.AutoBeanVisitor.ParameterizationVisitor; -import com.google.gwt.core.client.GWT; -import com.google.gwt.junit.client.GWTTestCase; import java.util.ArrayList; import java.util.Collection; @@ -42,6 +42,7 @@ public static Object seen; public static T T __intercept(AutoBeanHasCall bean, T value) { + assertNotNull(bean); seen = value; return value; } @@ -129,9 +130,14 @@ interface Intf { int getInt(); +String getProperty(); + String getString(); void setInt(int number); + +// Avoid name conflicts in AbstractAutoBean +void setProperty(String value); void setString(String value); } @@ -150,6 +156,7 @@ static class RealIntf implements Intf { int i; +String property; String string; @Override @@ -161,6 +168,11 @@ return i; } +@Override +public String getProperty() { + return property; +} + public String getString() { return string; } @@ -172,6 +184,11 @@ public void setInt(int number) { this.i = number; +} + +@Override +public void setProperty(String value) { + this.property = value; } public void setString(String value) { @@ -473,7 +490,7 @@ if (int.equals(propertyName)) { assertEquals(42, value); assertEquals(int.class,
[gwt-contrib] Re: Prevent an AutoBean property named property from causing a compilation error. (issue1505804)
LGTM On 2011/07/29 16:59:28, bobv wrote: Review requested. http://gwt-code-reviews.appspot.com/1505804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Prevent an AutoBean property named property from causing a compilation error. (issue1505804)
http://gwt-code-reviews.appspot.com/1505804/diff/1/user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java File user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java (right): http://gwt-code-reviews.appspot.com/1505804/diff/1/user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java#newcode234 user/src/com/google/web/bindery/autobean/gwt/rebind/AutoBeanFactoryGenerator.java:234: // Boolean toReturn = Outher.this.getOrReify(foo); Outher http://gwt-code-reviews.appspot.com/1505804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Reduce the visiblity of a UiBinderWriter method. (issue1500807)
Reviewers: hermes, Description: Reduce the visiblity of a UiBinderWriter method. Please review this at http://gwt-code-reviews.appspot.com/1500807/ Affected files: M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java Index: user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java === --- user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (revision 10473) +++ user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (working copy) @@ -540,31 +540,6 @@ } /** - * Declares a field of the given type name, returning the name of the declared - * field. If the element has a field or id attribute, use its value. - * Otherwise, create and return a new, private field name for it. - */ - public String declareField(String typeName, XMLElement elem) - throws UnableToCompleteException { -JClassType type = oracle.findType(typeName); -if (type == null) { - die(elem, Unknown type %s, typeName); -} - -String fieldName = getFieldName(elem); -if (fieldName == null) { - // TODO(rjrjr) could collide with user declared name, as is - // also a worry in HandlerEvaluator. Need a general scheme for - // anonymous fields. See the note in HandlerEvaluator and do - // something like that, but in FieldManager. - fieldName = f_ + elem.getLocalName() + ++fieldIndex; -} -fieldName = normalizeFieldName(fieldName); -fieldManager.registerField(type, fieldName); -return fieldName; - } - - /** * If this element has a gwt:field attribute, create a field for it of the * appropriate type, and return the field name. If no gwt:field attribute is * found, do nothing and return null @@ -948,9 +923,7 @@ JClassType type = findFieldType(elem); // Declare its field. -String fieldName = declareField(type.getQualifiedSourceName(), elem); - -FieldWriter field = fieldManager.lookup(fieldName); +FieldWriter field = declareField(type.getQualifiedSourceName(), elem); // Push the field that will hold this widget on top of the parsedFieldStack // to ensure that fields registered by its parsers will be noted as @@ -959,7 +932,7 @@ // Give all the parsers a chance to generate their code. for (ElementParser parser : getParsersForClass(type)) { - parser.parse(elem, fieldName, type, this); + parser.parse(elem, field.getName(), type, this); } fieldManager.pop(); @@ -1097,6 +1070,30 @@ String parser = com.google.gwt.uibinder.elementparsers. + className + Parser; addElementParser(gwtClass, parser); + } + + /** + * Declares a field of the given type name, returning the name of the declared + * field. If the element has a field or id attribute, use its value. + * Otherwise, create and return a new, private field name for it. + */ + private FieldWriter declareField(String typeName, XMLElement elem) + throws UnableToCompleteException { +JClassType type = oracle.findType(typeName); +if (type == null) { + die(elem, Unknown type %s, typeName); +} + +String fieldName = getFieldName(elem); +if (fieldName == null) { + // TODO(rjrjr) could collide with user declared name, as is + // also a worry in HandlerEvaluator. Need a general scheme for + // anonymous fields. See the note in HandlerEvaluator and do + // something like that, but in FieldManager. + fieldName = f_ + elem.getLocalName() + ++fieldIndex; +} +fieldName = normalizeFieldName(fieldName); +return fieldManager.registerField(type, fieldName); } /** @@ -1818,8 +1815,7 @@ w.write(}); } - private void writeRendererGetters(IndentedWriter w, JClassType owner, String rootFieldName) - throws UnableToCompleteException { + private void writeRendererGetters(IndentedWriter w, JClassType owner, String rootFieldName) { ListJMethod getters = findGetterNames(owner); // For every requested getter -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10475 committed - Fixes a bug in AbstractPager where clearing the display and resetting ...
Revision: 10475 Author: jlaba...@google.com Date: Thu Jul 28 04:00:59 2011 Log: Fixes a bug in AbstractPager where clearing the display and resetting it causes an NPE. Review at http://gwt-code-reviews.appspot.com/1500803 Review by: andych...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10475 Modified: /trunk/user/src/com/google/gwt/user/cellview/client/AbstractPager.java /trunk/user/test/com/google/gwt/user/cellview/client/AbstractPagerTest.java === --- /trunk/user/src/com/google/gwt/user/cellview/client/AbstractPager.java Tue Oct 12 07:55:56 2010 +++ /trunk/user/src/com/google/gwt/user/cellview/client/AbstractPager.java Thu Jul 28 04:00:59 2011 @@ -27,6 +27,10 @@ */ public abstract class AbstractPager extends Composite { + // Visible for testing. + HandlerRegistration rangeChangeHandler; + HandlerRegistration rowCountChangeHandler; + private HasRows display; /** @@ -39,9 +43,6 @@ */ private int lastRowCount; - private HandlerRegistration rangeChangeHandler; - private HandlerRegistration rowCountChangeHandler; - /** * Get the {@link HasRows} being paged. * @@ -109,29 +110,28 @@ } if (rowCountChangeHandler != null) { rowCountChangeHandler.removeHandler(); - rangeChangeHandler = null; + rowCountChangeHandler = null; } // Set the new display. this.display = display; if (display != null) { - rangeChangeHandler = display.addRangeChangeHandler( - new RangeChangeEvent.Handler() { -public void onRangeChange(RangeChangeEvent event) { - if (AbstractPager.this.display != null) { -onRangeOrRowCountChanged(); - } -} - }); - rowCountChangeHandler = display.addRowCountChangeHandler( - new RowCountChangeEvent.Handler() { -public void onRowCountChange(RowCountChangeEvent event) { - if (AbstractPager.this.display != null) { -handleRowCountChange( -event.getNewRowCount(), event.isNewRowCountExact()); - } -} - }); + rangeChangeHandler = display.addRangeChangeHandler(new RangeChangeEvent.Handler() { +@Override +public void onRangeChange(RangeChangeEvent event) { + if (AbstractPager.this.display != null) { +onRangeOrRowCountChanged(); + } +} + }); + rowCountChangeHandler = display.addRowCountChangeHandler(new RowCountChangeEvent.Handler() { +@Override +public void onRowCountChange(RowCountChangeEvent event) { + if (AbstractPager.this.display != null) { +handleRowCountChange(event.getNewRowCount(), event.isNewRowCountExact()); + } +} + }); // Initialize the pager. onRangeOrRowCountChanged(); === --- /trunk/user/test/com/google/gwt/user/cellview/client/AbstractPagerTest.java Tue Aug 17 10:14:36 2010 +++ /trunk/user/test/com/google/gwt/user/cellview/client/AbstractPagerTest.java Thu Jul 28 04:00:59 2011 @@ -19,6 +19,8 @@ import com.google.gwt.view.client.HasRows; import com.google.gwt.view.client.MockHasData; import com.google.gwt.view.client.Range; +import com.google.gwt.view.client.RangeChangeEvent; +import com.google.gwt.view.client.RowCountChangeEvent; /** * Tests for {@link AbstractPager}. @@ -235,6 +237,45 @@ pager.previousPage(); assertEquals(new Range(25, 20), display.getVisibleRange()); } + + public void testSetDisplay() { +AbstractPager pager = createPager(); +assertNull(pager.getDisplay()); + +// Set display to a value. +MockHasDataString display0 = new MockHasDataString(); +pager.setDisplay(display0); +assertEquals(display0, pager.getDisplay()); +assertEquals(1, display0.getHandlerCount(RangeChangeEvent.getType())); +assertEquals(1, display0.getHandlerCount(RowCountChangeEvent.getType())); +assertNotNull(pager.rangeChangeHandler); +assertNotNull(pager.rowCountChangeHandler); + +/* + * Set display to null. + * + * Verify that the handlers are removed. + */ +pager.setDisplay(null); +assertNull(pager.getDisplay()); +assertEquals(0, display0.getHandlerCount(RangeChangeEvent.getType())); +assertEquals(0, display0.getHandlerCount(RowCountChangeEvent.getType())); +assertNull(pager.rangeChangeHandler); +assertNull(pager.rowCountChangeHandler); + +/* + * Set display again. + * + * Verify that the handlers are re-added. + */ +MockHasDataString display1 = new MockHasDataString(); +pager.setDisplay(display1); +assertEquals(display1, pager.getDisplay()); +assertEquals(1, display1.getHandlerCount(RangeChangeEvent.getType())); +assertEquals(1, display1.getHandlerCount(RowCountChangeEvent.getType())); +
[gwt-contrib] [google-web-toolkit] r10477 committed - Reverting behavior in AbstractCellTable so it calls Column#onBrowserEv...
Revision: 10477 Author: jlaba...@google.com Date: Thu Jul 28 08:15:51 2011 Log: Reverting behavior in AbstractCellTable so it calls Column#onBrowserEvent() if the target Cell is in a Column. AbstractCellTable now supports any HasCell implementation, not just Columns, and a recent change modified the behavior to fire the event to the Cell directly, instead of going through Column#onBrowserEvent(). However, overriding onBrowserEvent() is common, and this behavior was a breaking change. The fix checks if the HasCell is a column and uses the legacy Column#onBrowserEvent() method. Review at http://gwt-code-reviews.appspot.com/1500805 Review by: tlaub...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10477 Modified: /trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java === --- /trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java Thu Jul 28 04:03:54 2011 +++ /trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java Thu Jul 28 08:15:51 2011 @@ -2370,20 +2370,29 @@ return; } -// Create a FieldUpdater. -final FieldUpdaterT, C fieldUpdater = column.getFieldUpdater(); -final int index = context.getIndex(); -ValueUpdaterC valueUpdater = (fieldUpdater == null) ? null : new ValueUpdaterC() { - @Override - public void update(C value) { -fieldUpdater.update(index, rowValue, value); - } -}; - -// Fire the event to the cell. C cellValue = column.getValue(rowValue); boolean cellWasEditing = cell.isEditing(context, parentElem, cellValue); -cell.onBrowserEvent(context, parentElem, column.getValue(rowValue), event, valueUpdater); +if (column instanceof Column) { + /* + * If the HasCell is a Column, let it handle the event itself. This is + * here for legacy support. + */ + ColumnT, C col = (ColumnT, C) column; + col.onBrowserEvent(context, parentElem, rowValue, event); +} else { + // Create a FieldUpdater. + final FieldUpdaterT, C fieldUpdater = column.getFieldUpdater(); + final int index = context.getIndex(); + ValueUpdaterC valueUpdater = (fieldUpdater == null) ? null : new ValueUpdaterC() { +@Override +public void update(C value) { + fieldUpdater.update(index, rowValue, value); +} + }; + + // Fire the event to the cell. + cell.onBrowserEvent(context, parentElem, column.getValue(rowValue), event, valueUpdater); +} // Reset focus if needed. cellIsEditing = cell.isEditing(context, parentElem, cellValue); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10478 committed - Javadoc tweak for SafeUri.
Revision: 10478 Author: rj...@google.com Date: Thu Jul 28 13:18:05 2011 Log: Javadoc tweak for SafeUri. http://code.google.com/p/google-web-toolkit/source/detail?r=10478 Modified: /trunk/user/src/com/google/gwt/safehtml/shared/SafeUri.java === --- /trunk/user/src/com/google/gwt/safehtml/shared/SafeUri.java Mon Jun 6 10:00:08 2011 +++ /trunk/user/src/com/google/gwt/safehtml/shared/SafeUri.java Thu Jul 28 13:18:05 2011 @@ -50,6 +50,8 @@ * * p * Implementations must not return {@code null} from {@link #asString()}. + * + * @see UriUtils */ public interface SafeUri { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Introducing a new CellTableBuilder API, which allows users to customize the structure of a CellT... (issue1501803)
committed as r10476 http://gwt-code-reviews.appspot.com/1501803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes a bug in AbstractPager where clearing the display and resetting it causes an NPE. (issue1500803)
committed as r10475 http://gwt-code-reviews.appspot.com/1500803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit
Comment by kandula@gmail.com: Is there a build configuration change I have to do for using AutoBean API? I'm using gwt-maven-plugin and I see this error when I try to compile my GWT module [ERROR] Errors in 'file:/C:/ccm_wa/Professional/NewsLetter/NewsLetter/newsletter/src/main/java/com/conceptis/newsletter/gwt/mailinggroup/client/util/MailFactory.java' [ERROR] Line 7: No source code is available for type com.google.gwt.autobean.shared.AutoBeanFactory; did you forget to inherit a required module? [ERROR] Line 8: No source code is available for type com.google.gwt.autobean.shared.AutoBeanT; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/ccm_wa/Professional/NewsLetter/NewsLetter/newsletter/src/main/java/com/conceptis/newsletter/gwt/mailinggroup/client/util/SerializationHelper.java' For more information: http://code.google.com/p/google-web-toolkit/wiki/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Eliminates the code for the long deprecated urn:with feature. (issue1500808)
Reviewers: hermes, Description: Eliminates the code for the long deprecated urn:with feature. Please review this at http://gwt-code-reviews.appspot.com/1500808/ Affected files: D user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParser.java D user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java M user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java M user/src/com/google/gwt/uibinder/elementparsers/GridParser.java M user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java M user/src/com/google/gwt/uibinder/rebind/FieldManager.java M user/src/com/google/gwt/uibinder/rebind/FieldWriterOfGeneratedCssResource.java M user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java M user/src/com/google/gwt/uibinder/rebind/XMLElement.java M user/src/com/google/gwt/uibinder/rebind/XMLElementProviderImpl.java M user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java M user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java M user/test/com/google/gwt/uibinder/rebind/AbstractUiBinderWriterTest.java M user/test/com/google/gwt/uibinder/rebind/DesignTimeUtilsTest.java M user/test/com/google/gwt/uibinder/rebind/UiBinderParserUiWithTest.java M user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java M user/test/com/google/gwt/uibinder/test/client/DomBasedUi.ui.xml M user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml -- http://groups.google.com/group/Google-Web-Toolkit-Contributors