Re: GWT and BV/javax.validation 1.1
I am the original author of the GWT validation implementation, but I have no plans to upgrade it. I can't speak for the GWT team (which I am not part of). I am however happy to to review code. (aka patches welcome). On Thu, Apr 24, 2014 at 2:52 PM, joerg.hohwil...@googlemail.com joerg.hohwil...@googlemail.com wrote: Hi there, I had to upgrade BV on the server side. Now my GWT client fails: [ERROR] [mmm] - Line 43: No source code is available for type javax.validation.ParameterNameProvider; did you forget to inherit a required module? ... [ERROR] [mmm] - Unable to find type 'net.sf.mmm.app.client.SampleValidatorFactory.GwtValidator' are there any plans to support more recent versions of BV in GWT? Any workarounds for the moment (maybe I just have to override BV versions in client POMs)? Is there a roadmap for a more modularized variant of GWT without gwt-dev and gwt-sevlet that contain arbitrary third-party code in fixed versions? Thanks regards Jörg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- Nick Chalko | Software Engineer | ncha...@google.com | :-) Generate your java flags for easier testing. go/java_flags -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: How to validate TextBox fields?
On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a valid age before creating the person object) If you want to use the annotations that are on your Person fields, then you have to create a Person object. Technically, I believe you could generate code, the generator reading the annotations and producing code that will be able to validate data before creating the Person object, but there's no such things in GWT proper. That being said, creating a Person object shouldn't be that expensive that you want to avoid it a all costs. http://docs.oracle.com/javaee/6/api/javax/validation/Validator.html#validateValue(java.lang.Class, java.lang.String, java.lang.Object, java.lang.Class...) validateValue T java.util.SetConstraintViolation http://docs.oracle.com/javaee/6/api/javax/validation/ConstraintViolation.htmlT *validateValue*(java.lang.ClassT beanType, java.lang.String propertyName, java.lang.Object value, java.lang.Class?... groups) Validates all constraints placed on the property named propertyName of the class beanType would the property value be value ConstraintViolation objects return null for ConstraintViolation#getRootBean() and ConstraintViolation#getLeafBean() *Parameters:*beanType - the bean type propertyName - property to validate value - property value to validategroups - group or list of groups targeted for validation (default to Defaulthttp://docs.oracle.com/javaee/6/api/javax/validation/groups/Default.html ) *Returns:*constraint violations or an empty Set if none*Throws:* IllegalArgumentException - if beanType is null, if propertyName null, empty or not a valid object property or if null is passed to the varargs groups ValidationException - if a non recoverable error happens during the validation process -- -- Nick Chalko | Software Engineer | ncha...@google.com | :-) Generate your java flags for easier testing. go/java_flags -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Validation on client side whit Editors
Here is the key line, at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at you are missing a compile time dependency. You need the complete hibernate validator at compile to to generate the validation code. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Server side gwt-validation doesn't work (?)
On Tue, Dec 6, 2011 at 7:46 AM, Nicolas.Rocca nicolas.ro...@t-online.dewrote: We use gwt-validation-2.0-BETA-SNAPSHOT-r269.jar and GWT 2.4. The field of the entity is annotated with javax.validation.constraints.NotNull Client side validation works and also server side validation in hosted mode (jetty). But when deployed in tomcat (6.0.20), we get the following exception when server side validation is invoked: Caused by: javax.validation.UnexpectedTypeException: No validator was found for javax.validation.constraints.NotNull with type [...deleted...] at com.em.validation.client.CoreValidatorImpl.validateConstraint(CoreValidatorImpl.java: 372) at com.em.validation.client.CoreValidatorImpl.validateValue(CoreValidatorImpl.java: 202) at com.em.validation.client.CoreValidatorImpl.validateProperty(CoreValidatorImpl.java: 119) at com.em.validation.client.CoreValidatorImpl.validate(CoreValidatorImpl.java: 76) at com.em.validation.client.CoreValidatorImpl.validate(CoreValidatorImpl.java: 96) at com.em.validation.client.ValidatorImpl.validate(ValidatorImpl.java: 48) at ... Our war-file contains the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar and also the validation-api-1.0.0.GA.jar. Replacing the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar in the war file with hibernate-validator-4.2.0.Final.jar seems to fix the problem (as a workaround). Partially Correct, Try just adding the hibernate-validator jar. and leave the GWT one in place. To have server side validation you need hibernate or some other vilidation provider like apache-bval. GWT validation only handles the client side part -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Converts the validation sample to build with maven. (issue1537805)
On Thu, Sep 8, 2011 at 5:00 PM, rj...@google.com wrote: Getting closer, still not ready for review. I learned how to pull in both the binary and the source for hibernate validator. Now getting the app's An error occurred dialog when sending, nothing in the console. At launch still seeing the ClassNotFound exception below. Will debug in the morning, but if anyone has clue to share in the meantime I'll be obliged. 00:00:30.295 [SPAM] Resolving org.hibernate.validator.**constraints.ScriptAssert 00:00:30.296 [SPAM] Found type 'org.hibernate.validator.**constraints.ScriptAssert' 00:00:30.296 [ERROR] Annotation error: cannot resolve org.hibernate.validator.**constraints.impl.**ScriptAssertValidator So ScriptAssertValidator should not be getting compiled. Let me try to find where it is excluded. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Converts the validation sample to build with maven. (issue1537805)
org.hibernate.validator.**constraints.impl.**ScriptAssertValidator So ScriptAssertValidator should not be getting compiled. Let me try to find where it is excluded. user/src/org/hibernate/validator/HibernateValidator.gwt.xml excludes that file with. source path=constraints exclude name=impl/scriptassert/ / exclude name=super/ / /source Not sure why this is not used. -- Nick Chalko | Software Engineer | ncha...@google.com | :-) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Integrating RequestFactory into an eclipse project
What do I use as a validator of my choice that I can use with GAE and which is easily gettable? http://www.hibernate.org/subprojects/validator.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Question about the API of Validation
Remember @Valid Foo foo. Just recurses into foo calling the Validator on it. @Valid Integer int. at best will do nothing because the Integer class has no constraints. @Valid is made for your classes that you have put constraints on. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Question about the API of Validation
On Thu, Jul 21, 2011 at 2:45 AM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: As I said in another email I'm working with gwt api validation. Now I'm doing some tests, it is still not allowed the validation of fields belonging to the package java.util with @Valid constraint. Can you show the code you have that fails. You might also try the GWT 2.4 beta it includes Validation see http://code.google.com/p/google-web-toolkit/wiki/BeanValidation. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Validation java.util fields
On Tue, Jul 19, 2011 at 11:00 AM, Kevin Jordan ke...@kjordan.net wrote: You can do a custom constraint. That seems like a good approach, 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: Which version of javax.validation.validation-api?
GWT 2.4 beta include support for built in Validation take a look at http://code.google.com/p/google-web-toolkit/wiki/BeanValidation -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved
On Thu, Jun 30, 2011 at 7:09 AM, Eugen Paraschiv hanrisel...@gmail.comwrote: Adding the validation-api to the classpath now results in javax.validation.ValidationException: Unable to find a default provider I do have gwt-servlet on the classpath as well, but it seems that without something like hibernate-validator (which is a provider), it doesn't find one. Any thoughts on this? Correct you need hibernate-validator in your class path to generate Client Side validators. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved
On Thu, Jun 30, 2011 at 8:50 AM, Eugen Paraschiv hanrisel...@gmail.comwrote: I have indeed added it to the classpath, but the HibernateValidator.gwt.xml module is nowhere to be found. Thanks for the feedback. svn/trunk/user/src/org/hibernate/validator/HibernateValidator.gwt.xml ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved
On Thu, Jun 30, 2011 at 8:53 AM, Nick Chalko ncha...@google.com wrote: On Thu, Jun 30, 2011 at 8:50 AM, Eugen Paraschiv hanrisel...@gmail.comwrote: I have indeed added it to the classpath, but the HibernateValidator.gwt.xml module is nowhere to be found. Thanks for the feedback. svn/trunk/user/src/org/hibernate/validator/HibernateValidator.gwt.xml ? Which is probably not included until gwt 2.4 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved
On Thu, Jun 30, 2011 at 8:58 AM, Eugen Paraschiv hanrisel...@gmail.comwrote: Saw it there. Ok so until 2.4 what is the recommended way of doing validation? Not supported on the client. And in 2.4 is still experimental, it is my 20% project, I hope to finish it this summer. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Validation-api-1.0.0, Doesn't work
Take a look at http://code.google.com/p/google-web-toolkit/wiki/BeanValidation -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Validation-api-1.0.0, Doesn't work
You will need to do something like this. public class ExposeImpl implements IsSerializable { @SuppressWarnings(unused) private ConstraintViolationImpl? constraintViolationImpl; @SuppressWarnings(unused) private PathImpl pathIpml; @SuppressWarnings(unused) private HashSet? hashSet; } And then Create a dummy method like the following in your RemoteService ExposeImpl dummy(); I am working on a simpler solution. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Running GWT Developing mode
The validation jar is not on the path, search the group history you will find some answers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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-contrib] Check for IsWidget rather than Widget when determining if a class is a Widget in UiBinder (issue1421809)
I will patch this and test it in raptical On Thu, Apr 28, 2011 at 11:59 AM, unn...@google.com wrote: Reviewers: rjrjr, Description: Check for IsWidget rather than Widget when determining if a class is a Widget in UiBinder Please review this at http://gwt-code-reviews.appspot.com/1421809/ 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 10100) +++ user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (working copy) @@ -39,7 +39,7 @@ import com.google.gwt.uibinder.rebind.model.OwnerClass; import com.google.gwt.uibinder.rebind.model.OwnerField; import com.google.gwt.user.client.ui.Attachable; -import com.google.gwt.user.client.ui.Widget; +import com.google.gwt.user.client.ui.IsWidget; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -687,7 +687,7 @@ public boolean isWidgetElement(XMLElement elem) throws UnableToCompleteException { -return isSubclassOf(elem, Widget.class); +return isSubclassOf(elem, IsWidget.class); } /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Generate your java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: GWT Validator with Editor Framework
On Fri, Mar 11, 2011 at 10:17 AM, keyvez key...@gmail.com wrote: Hi, I just found the DynaTableRf sample and see that onViolation is fired there. Going through its setup I realized that I was missing the hibernate-validator jar, so I put it in my libs and build path, but still no entity property violations are caught. Any help is greatly appreciated. The client side validation is working somewhat now if your are using SVN head. Take a look at http://code.google.com/p/google-web-toolkit/wiki/BeanValidation r, Nick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Added missing validation jars to gwt-user.jar. Fixes Issue 5950. (issue1323803)
On Fri, Feb 11, 2011 at 10:11 AM, Rodrigo Chandia rchan...@google.comwrote: Oh, sorry. I guess I pasted confusingly similar links. So far there are two approaches to fix Issue 5950: http://gwt-code-reviews.appspot.com/1323803/show (This one) http://gwt-code-reviews.appspot.com/1342803/show (The other one) So adding to gwt-user seems like the simplest approach -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add validation jars to the expenses sample build.xml (issue1309802)
I need a g4 approve -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: GWT Validation Framework
On Mon, Jan 17, 2011 at 7:43 AM, SVR svr...@gmail.com wrote: Has anybody used the GWT Validation Framework based on the JSR-303http://code.google.com/p/gwt-validation/ Can you please provide your thoughts on its usefulness and can you please point to some useful links on its usage with examples. thanks -- JSR-303 of course already works on the server side, DynatableRf should show that. I am working on getting the client side working. See http://code.google.com/p/google-web-toolkit/wiki/BeanValidation. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Validation Framework
On Mon, Jan 17, 2011 at 12:02 PM, SVR svr...@gmail.com wrote: This is not part of any released code? Is it planned to be part of ver x.y? Eventually it will be in released code. No time line yet. Is http://code.google.com/p/gwt-validation/ a different project? yes it is a different project and does not match the JSR-303 spec -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Add support for mapping ConstraintViolation objects into SimpleBeanEditor. (issue1260801)
Will do. On Thu, Jan 6, 2011 at 9:31 AM, rj...@google.com wrote: Nick, could you take a look at this? Is Bob making reasonable assumptions about how ConstraintViolation acts, especially its paths? http://gwt-code-reviews.appspot.com/1260801/show -- Generate your java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Mark test as Failing or NotSupported (issue1245801)
Take a look again when you are back from Vacation. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Basic MessageIntrpolation. (issue1230801)
I see where I missed those. Working on them now. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Handle composite constraints. (issue1231801)
On Fri, Dec 17, 2010 at 8:52 AM, rchan...@google.com wrote: Compiling the validation sample (with ant) produces the following warning (is that intended?): [java] [WARN] No ConstraintValidator of ConstraintDescriptorImpl{annotation=com.google.gwt.sample.validation.shared.Zip, payloads=[], hasComposingConstraints=false, isReportAsSingleInvalidConstraint=false, elementType=FIELD, definedOn=DEFINED_LOCALLY, groups=[interface javax.validation.groups.Default], attributes={message=Wrong zipcode, payload=[Ljava.lang.Class;@10bc5c9, groups=[Ljava.lang.Class;@1e64d34}} for zip of type class java.lang.String I assume that you are planning to update the validation app frontend to show Address and Zip fields, right? Yes the sample needs to be improved, for now I have just been using it as a way to generate condition I am working on, but testing in the TCK. The warning is cause because Zip it self doesn't specify which constraint validator to use. It is a composite constraint and I believe that is legal. However I have not worked out exactly what the spec says to do. There should be a TODO in the code to fix this. On 2010/12/17 07:09:22, Nick Chalko wrote: http://gwt-code-reviews.appspot.com/1231801/show -- Generate your java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Gilead AND GWT
On Wed, Nov 24, 2010 at 10:24 AM, Noor baken...@gmail.com wrote: Hi, I am getting lots of difficulty in integrating gilead in gwt. Can someone please send the jars they have successfully used that works because the one I have downloaded does not work Hi, What is gilead? What version is gilead are you using? What version of GWT are you using? What errors are you having? What have you tried so far? R, Nick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Public: GWT version of the JSR 303 Bean Validation TCK (issue1085801)
I have, but not from a clean dir (must have created that by hand at some time, my bad) Let me fix that. -- Generate your java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Overhaul the RequestFactory server code. (issue1080801)
If I would have to choose, I would definitely go for invocation to return both validation errors and a result object. ContraintViolationExcpetion, is serializable, but it does not return the the root object. see http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/org/hibernate/validator/engine/ConstraintViolationImpl_CustomFieldSerializer.java -- Generate you java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Removing third party jars from gwt-servlet.jar. (issue1047802)
http://gwt-code-reviews.appspot.com/1047802/diff/3001/4002#newcode25 samples/validation/build.xml:25: include name=hibernate/validator/hibernate-validator-4.1.0.Final-sources.jar / GWT user provides super source versions of hibernate validator, which the sample uses, so we need the sources to compile. I hope to eventually donate that back to hibernate, once the code is stable enough. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: GWT Validator
Hi Benjamin, Thanks for you interest in GWT Validation. I am excited to work on it, but it is my 20% project not my normal project, so the progress on this will be slow at times. The first thing to remember is that this is PRE ALPHA code. While it will do constraint checking on the client side right now, There are so many constraints that make it basically unusable. See https://wave.google.com/wave/waveref/googlewave.com/w+yAUzf_-lA/~/conv+root/b+59joSgy6A On Oct 20, 1:26 pm, Benjamin Papez jahia.pa...@gmail.com wrote: Hello, I saw the recent ongoing work on GWT validation (http://gwt-code-reviews.appspot.com/863801). I am currently in the process of evaluating how to best implement validations into our CMS product (http://www.jahia.org) as we offer content editing via GWT panels. The only problem is that we do not really have beans, but as the product is based on JCR, we have JCR nodes, which can be asked for properties with getProperty(propertyName). 1.) Do you perhaps know if the GWT validation will solely be based on Java Beans or will it also be possible to define the validations in an XML file, where the beans / properties are not necessarily JavaBeans, but can be JCR nodes and properties ? In previous versions I used commons-validator and DynaBean interface to wrap around our JCR nodes and act as a bean, but I guess that hibernate validator and GWT validation needs real bean classes. I am doing my best to implement JSR-303 bean validation. Which is based on beans, but it does have a way of expressing constraints in XML. I am a long way from being able to support that in GWT. so for now wrapping you JCR may be the best choice. 2.) We are using GWT 2.0.4, can your work also be used with this version or do we need to wait and upgrade to a future version ? I suppose you could try to pull out the parts from head and use it. With the current state I would wait. Unless you want to help be get checkout GWT from svn HEAD and help me make it work. http://code.google.com/webtoolkit/makinggwtbetter.html R, Nick Regards, Benjamin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Public: First take at GWT validation that actually validates on the client side. (issue863801)
On Tue, Sep 21, 2010 at 7:04 AM, b...@google.com wrote: For the untranslatable validators, it seems more straightforward to have a super-source version of the annotation that's tagged as @NotGwtCompatible. Hmm, that might work. However it could be complicated because I am actually deciding what validators to use for GWT from the server side. Note also the spec allows the constraints defined in source to be overridden via a config file. Instead of having the sample app import the HibernateValidator package, would it make sense to have the gwt.Validation package include the HibernateValidator instead? That would tie the user to Hibernate, I think it is better to let the choose between hibernate or apache bval, or any serverside JSR-303 implementation. -- Generate you java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Public: First pass at generating a GWT Validator. (issue845801)
Unintentional. I am OOO today, so I can't fix it till at least tonight. I will be happy to review a CL. On Fri, Sep 10, 2010 at 10:54 AM, jlaba...@google.com wrote: Why did you remove classes/marker? Its needed by Eclipse or it throws an error because it can't find the classes/ directory where it is supposed to dump compiled files. http://gwt-code-reviews.appspot.com/845801/show -- Generate you java flags for easier testing. go/java_flags https://goto.google.com/java_flags https://goto.google.com/java_flags -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Public: Start of a sample application showing GWT validation. (issue760802)
I will need a g4 approved also On Aug 25, 2010 5:26 AM, b...@google.com wrote: LGTM http://gwt-code-reviews.appspot.com/760802/diff/6001/1032 File samples/validation/src/com/google/gwt/sample/validation/client/Validation.java (right): http://gwt-code-reviews.appspot.com/760802/diff/6001/1032#newcode55 samples/validation/src/com/google/gwt/sample/validation/client/Validation.java:55: public void onModuleLoad() { Note this is what the Eclipse, create a sample app does. Looks like the webapp sample creator is a few years behind the curve. I'll file a bug about modernizing it. http://gwt-code-reviews.appspot.com/760802/diff/20001/21007 File samples/build.xml (right): http://gwt-code-reviews.appspot.com/760802/diff/20001/21007#newcode37 samples/build.xml:37: target name=validation description=Build validaiton typo in the description attribute. http://gwt-code-reviews.appspot.com/760802/diff/20001/21010 File samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml (right): http://gwt-code-reviews.appspot.com/760802/diff/20001/21010#newcode2 samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml:2: !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 0.0.999//EN http://google-web-toolkit.googlecode.com/svn/tags/0.0.999/distro-source/core/src/gwt-module.dtd This doctype produced by the webapp creator is wrong and unnecessary. http://gwt-code-reviews.appspot.com/760802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors