<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Bean Validation: Integrating JSR-303 with Spring</title>
	<atom:link href="http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/</link>
	<description>Keep updated on what we&#039;re doing!</description>
	<lastBuildDate>Wed, 28 Jul 2010 21:43:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Spring MVC form validation with Hibernate Validator</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-3839</link>
		<dc:creator>Spring MVC form validation with Hibernate Validator</dc:creator>
		<pubDate>Thu, 08 Jul 2010 06:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-3839</guid>
		<description>[...] Bean Validation: Integrating JSR-303 with Spring [...]</description>
		<content:encoded><![CDATA[<p>[...] Bean Validation: Integrating JSR-303 with Spring [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-2716</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Sat, 15 May 2010 21:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-2716</guid>
		<description>Great post. Thanks.

@sandy:
Check out this post: http://java.dzone.com/articles/using-hibernate-validator , under &quot;Customizing Error Messages&quot;.</description>
		<content:encoded><![CDATA[<p>Great post. Thanks.</p>
<p>@sandy:<br />
Check out this post: <a href="http://java.dzone.com/articles/using-hibernate-validator" rel="nofollow">http://java.dzone.com/articles/using-hibernate-validator</a> , under &#8220;Customizing Error Messages&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandy</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-2706</link>
		<dc:creator>sandy</dc:creator>
		<pubDate>Fri, 14 May 2010 06:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-2706</guid>
		<description>Is there any way to specify our own ResourceBundle? I would like to use, say, TestValidationMessages.properties apart from ValidaitonMessages.properties?</description>
		<content:encoded><![CDATA[<p>Is there any way to specify our own ResourceBundle? I would like to use, say, TestValidationMessages.properties apart from ValidaitonMessages.properties?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-2698</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 13 May 2010 11:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-2698</guid>
		<description>i am getting the same exception as well, but for Integer types

No validator could be found for type: java.lang.Integer

I did nothing more than @Min(value = 5, message=&quot;my message&quot;)

It works nice just for @NotEmpty values!

What is worng?</description>
		<content:encoded><![CDATA[<p>i am getting the same exception as well, but for Integer types</p>
<p>No validator could be found for type: java.lang.Integer</p>
<p>I did nothing more than @Min(value = 5, message=&#8221;my message&#8221;)</p>
<p>It works nice just for @NotEmpty values!</p>
<p>What is worng?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mimi Tam</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-2637</link>
		<dc:creator>Mimi Tam</dc:creator>
		<pubDate>Wed, 05 May 2010 00:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-2637</guid>
		<description>I am getting the following exception and have same thought as Michael Chang. 

&quot;No validator could be found for type: java.lang.Long&quot;

Is there any other info on this? Is there any workaround?

How was this resolved?

Thanks.</description>
		<content:encoded><![CDATA[<p>I am getting the following exception and have same thought as Michael Chang. </p>
<p>&#8220;No validator could be found for type: java.lang.Long&#8221;</p>
<p>Is there any other info on this? Is there any workaround?</p>
<p>How was this resolved?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-2469</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 15 Apr 2010 20:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-2469</guid>
		<description>Hey. Does anybody realized how to live without applyIf? Can it be emulated using another construct?</description>
		<content:encoded><![CDATA[<p>Hey. Does anybody realized how to live without applyIf? Can it be emulated using another construct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Swan</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-2313</link>
		<dc:creator>Andrew Swan</dc:creator>
		<pubDate>Sun, 28 Mar 2010 02:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-2313</guid>
		<description>&gt; The only thing that is left to do, is to create a ValidationMessage.properties file

That should say &quot;ValidationMessages.properties&quot;, with an &quot;s&quot; before the dot.</description>
		<content:encoded><![CDATA[<p>&gt; The only thing that is left to do, is to create a ValidationMessage.properties file</p>
<p>That should say &#8220;ValidationMessages.properties&#8221;, with an &#8220;s&#8221; before the dot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Chang</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-1886</link>
		<dc:creator>Michael Chang</dc:creator>
		<pubDate>Mon, 01 Mar 2010 19:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-1886</guid>
		<description>Hey, Uri.  Thanks so much for the thorough writeup.  There&#039;s not too much out there yet for Google to pick up, so any pointers on this new spec are helpful.

Anyway, I tried creating a little test to test this whole thing out using Spring MVC (3.0) and Hibernate Validation (4.0.2).  I created a simple form that captures a &#039;name&#039; and an &#039;ID&#039;, which were backed by a form bean containing a String and a Long, respectively.  I wired up a Spring controller using annotations (specifically, @Valid).  The form displays correctly, and I intentionally enter data that violates the constraints.  Now here&#039;s where the problem comes in.  When I submit the form, I get a 500 error and a long stacktrace with the following message: &quot;javax.validation.UnexpectedTypeException: No validator could be found for type: java.lang.Long&quot;.  I tried replacing the wrapper Long with a primitive &#039;long&#039; type, but the same exception gets thrown with the same error message.  So my understanding now is that the new Bean Validation is not even able to understand primitive types except for &#039;String&#039;.  That&#039;s almost as bad as javac not understanding a &#039;char&#039; or &#039;byte&#039;.  If I turn on debug logging, I see that Spring itself is able to convert from the submitted form&#039;s String to a Long.  It&#039;s the validator itself that doesn&#039;t understand what a Long is (the validator fires after Spring has finished performing conversion, according to the call sequence indicated in the logs).  Uri, can you confirm that this is true?  Try doing this yourself by using a command/form-bean containing a Long (you don&#039;t even need to put a constraint on it, in fact), and see if you can submit a form.  I find it hard (or even impossible) to believe that it can&#039;t understand even primitive types, so I&#039;m assuming that there is some kind of disagreement between Spring and Hibernate Validator.
I&#039;d appreciate it if you could test this out and see if you can duplicate this.  If so, a bug report is in order.

Michael Chang</description>
		<content:encoded><![CDATA[<p>Hey, Uri.  Thanks so much for the thorough writeup.  There&#8217;s not too much out there yet for Google to pick up, so any pointers on this new spec are helpful.</p>
<p>Anyway, I tried creating a little test to test this whole thing out using Spring MVC (3.0) and Hibernate Validation (4.0.2).  I created a simple form that captures a &#8216;name&#8217; and an &#8216;ID&#8217;, which were backed by a form bean containing a String and a Long, respectively.  I wired up a Spring controller using annotations (specifically, @Valid).  The form displays correctly, and I intentionally enter data that violates the constraints.  Now here&#8217;s where the problem comes in.  When I submit the form, I get a 500 error and a long stacktrace with the following message: &#8220;javax.validation.UnexpectedTypeException: No validator could be found for type: java.lang.Long&#8221;.  I tried replacing the wrapper Long with a primitive &#8216;long&#8217; type, but the same exception gets thrown with the same error message.  So my understanding now is that the new Bean Validation is not even able to understand primitive types except for &#8216;String&#8217;.  That&#8217;s almost as bad as javac not understanding a &#8216;char&#8217; or &#8216;byte&#8217;.  If I turn on debug logging, I see that Spring itself is able to convert from the submitted form&#8217;s String to a Long.  It&#8217;s the validator itself that doesn&#8217;t understand what a Long is (the validator fires after Spring has finished performing conversion, according to the call sequence indicated in the logs).  Uri, can you confirm that this is true?  Try doing this yourself by using a command/form-bean containing a Long (you don&#8217;t even need to put a constraint on it, in fact), and see if you can submit a form.  I find it hard (or even impossible) to believe that it can&#8217;t understand even primitive types, so I&#8217;m assuming that there is some kind of disagreement between Spring and Hibernate Validator.<br />
I&#8217;d appreciate it if you could test this out and see if you can duplicate this.  If so, a bug report is in order.</p>
<p>Michael Chang</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-1884</link>
		<dc:creator>Ross</dc:creator>
		<pubDate>Mon, 01 Mar 2010 10:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-1884</guid>
		<description>@Christoph

Please could you post your solution -- I have a similar setup as you and I am looking for the same functionality. I have tried a number of things but at the moment just not working. 

thanks</description>
		<content:encoded><![CDATA[<p>@Christoph</p>
<p>Please could you post your solution &#8212; I have a similar setup as you and I am looking for the same functionality. I have tried a number of things but at the moment just not working. </p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/comment-page-1/#comment-1685</link>
		<dc:creator>praveen</dc:creator>
		<pubDate>Mon, 08 Feb 2010 20:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=656#comment-1685</guid>
		<description>I am getting following error when I am trying to run tomcat server
Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to get the default Bean Validation factory. Kindly assist me</description>
		<content:encoded><![CDATA[<p>I am getting following error when I am trying to run tomcat server<br />
Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to get the default Bean Validation factory. Kindly assist me</p>
]]></content:encoded>
	</item>
</channel>
</rss>
