Which version of javax.validation.validation-api?

35 views
Skip to first unread message

Sébastien Tromp

unread,
Jul 12, 2011, 11:53:24 AM7/12/11
to google-we...@googlegroups.com
Hello,

I am currently trying to integrate the gwt-validation framework (http://code.google.com/p/gwt-validation) in my application.

While debugging through javax.validation.Validation.byDefaultProvider(), I see something puzzling: the line highlighted by the debugger (line 125) does not correspond to anything useful in my source code (line 125 is just a comment; the byDefaultProvider() method starts at line 131).
I have looked around the dependencies I have in my pom.xml (attached), and the only reference to the validation-api is the one I set, to version 1.0.0.GA.
Looking at the runtime classpath, the only references I see are to the 1.0.0.GA version

After a look at the various versions of javax.validation.Validation out there, it looks like the only ones for which line 125 corresponds to the beginning of the byDefaultProvider() method are the beta3 and beta4 version.

Hence my question: do you know if anything related to GWT / GAE uses this version of the validation-api? 

For information, everything is just fine (i.e. uses the 1.0.0.GA version) when I run unit tests.

Thanks for you help,
-- 
seb
pom.xml

Sébastien Tromp

unread,
Jul 12, 2011, 12:41:37 PM7/12/11
to google-we...@googlegroups.com
I forgot to specify that this desynchronization happens only the on the client side of GWT. On the server side, it looks like the proper version of validation-api is used.
-- 
seb

2011/7/12 Sébastien Tromp <sebasti...@gmail.com>

Nick Chalko

unread,
Jul 12, 2011, 2:57:41 PM7/12/11
to google-we...@googlegroups.com
GWT 2.4 beta include support for built in Validation take a look at 

Sébastien Tromp

unread,
Jul 12, 2011, 3:47:25 PM7/12/11
to google-we...@googlegroups.com
Thanks for the pointer. I'll just wait for 2.4 to implement a proper validation mechanism then.
Thanks :)
-- 
seb

2011/7/12 Nick Chalko <nch...@google.com>
GWT 2.4 beta include support for built in Validation take a look at 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Elhanan Maayan

unread,
Jul 13, 2011, 3:34:58 AM7/13/11
to google-we...@googlegroups.com
does this mean i cannot use validation if i'm not using requestFactory? http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#validation


On Tue, Jul 12, 2011 at 9:57 PM, Nick Chalko <nch...@google.com> wrote:
GWT 2.4 beta include support for built in Validation take a look at 

--

Jens

unread,
Jul 13, 2011, 4:43:38 AM7/13/11
to google-we...@googlegroups.com
I think you can use it without RequestFactory. You just have to start the validation process yourself before doing your server request.

Adolfo Panizo Touzon

unread,
Jul 13, 2011, 6:51:52 AM7/13/11
to google-we...@googlegroups.com
Hi everybody,

I can confirm that I am using this API without using the RequestFactory.

If you have any questions, write them!

Regards.

2011/7/13 Jens <jens.ne...@gmail.com>
I think you can use it without RequestFactory. You just have to start the validation process yourself before doing your server request.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet
Reply all
Reply to author
Forward
0 new messages