RequestFactory and server side validation
I'm trying to use RequestFactory in my application for entity exchange between client and server. (Which I think it was designed for.) But I have one workflow, that it kind of standard, but I can't solve it in any normal way (with out overriding part of RF logic). The workflow is follow: 1. User press New button and create new entity at the client side. (RequestFactory used for that) 2. User put some data into this object (fills fields) and press Save. 3. Client side validation called and passed. 4. RequestFactory method is called to save entity. 5. Server-side method detects some problems with this data (data do not pass some server-side validation) and want's to inform User about that (using errorCode or throwing exception) 6. Client receives this info and show it to User. 7. User make corrections to the data and press Save again --And here is where the problems start. I can't call persist method again on same RequestContext, because it was already used and will throw an error. I also can create a new RequestContext and attach entity to it - because I can't detach it from previous RequestContext. What I'm missing here? How server-side validation should work with RequestContext? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Data-binding, Konckout.js
We are using Editors a lot. And they are coll (at least much cooler than it was before). But they are still far way from full data binding as shown in Knockout.js (or as it's done in Silverlight). I'm not a fan of Silverlight and hope that GWT would remove all this plug-ins soon, but watching GWT and Silverlight groups working is parallel in out company - I could definitely say that Silverlight data-binding style gives huge advantage and removes a lot of extra code. GWT with Editors support WinForms style of binding, where each form could be bind to the object and then editors values would be bounded to properties of that object. In Knockout.js (and WPF and Silverlight) I could bind ANY property to the values of binding object (that is called context in that case) and get NotifyPropertyChnage support. For example I could have panel (for example loading indicator), which visibility is controlled by IsBusy property (get and set in Java). Setting this property to false and true will automatically hide and show the panel. Many more use cases could be shown... Please check Knockout.js demo for more examples... Is there are any plans to do the same in GWT? On May 3, 11:58 pm, El Mentecato Mayor rogelio.flo...@gmail.com wrote: Take a look at Editors in GWT:http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html On Apr 30, 9:35 am, Artem Nikulchenko a...@cloudwk.com wrote: I've recently seenKnockout.js presentation at MIX 11 and it looks amazing. It removes all boilerplate code around data-binding and looks really amazing!!! We do have a lot of development in both GWT and Silverlight, and Silverlight data-binding is probably the only advantage left (and we really miss it when switch to GWT and write data oriented applications). And it looks likeKnockout.js could give same experience, if it would be integrated into GWT. Is there are any plans to integrateKnockout.js into GWT? Or maybe make same binding experience in GWT by it's own? Best regards, Artem -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Data-binding, Konckout.js
I've recently seen Knockout.js presentation at MIX 11 and it looks amazing. It removes all boilerplate code around data-binding and looks really amazing!!! We do have a lot of development in both GWT and Silverlight, and Silverlight data-binding is probably the only advantage left (and we really miss it when switch to GWT and write data oriented applications). And it looks like Knockout.js could give same experience, if it would be integrated into GWT. Is there are any plans to integrate Knockout.js into GWT? Or maybe make same binding experience in GWT by it's own? Best regards, Artem -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.lang.NoClassDefFoundError: javax/validation/ValidationException
Hi, I'm trying to use GWT application in GAE. I tried to use RequestFactory (framework introduced in GWT 2.1) to make client-server communication. But I'm constantly getting an error: java.lang.NoClassDefFoundError: javax/validation/ValidationException at com.google.gwt.requestfactory.server.ServiceLayer.create(ServiceLayer.java: 66) at com.google.gwt.requestfactory.server.RequestFactoryServlet.init(RequestFactoryServlet.java: 88) at com.google.gwt.requestfactory.server.RequestFactoryServlet.init(RequestFactoryServlet.java: 74) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) Does anybody know how to fix it? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.