<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Not quite what I expected&#8230;JSF &amp; Validation</title>
	<atom:link href="http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/</link>
	<description>A collection of thoughts and solutions from an independent software Integration Consultant</description>
	<lastBuildDate>Thu, 22 Oct 2009 23:53:06 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Boy96</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1103</link>
		<dc:creator>Boy96</dc:creator>
		<pubDate>Thu, 22 Oct 2009 23:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1103</guid>
		<description>All I can say is She went where others fear to tread. ,</description>
		<content:encoded><![CDATA[<p>All I can say is She went where others fear to tread. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark from Ohio</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1101</link>
		<dc:creator>Mark from Ohio</dc:creator>
		<pubDate>Wed, 12 Aug 2009 16:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1101</guid>
		<description>Yes, I too have struggled with JSF validation!  I think I ran into almost all of the scenarios posted on this blog.</description>
		<content:encoded><![CDATA[<p>Yes, I too have struggled with JSF validation!  I think I ran into almost all of the scenarios posted on this blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andi</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1096</link>
		<dc:creator>Andi</dc:creator>
		<pubDate>Mon, 11 May 2009 15:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1096</guid>
		<description>hi again,

just read

http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html

well its not bad, but most of the stuff the guy wrote i was already ware of. and where the hell we get to if i have to reimplement phasecallback listeners in jsf ?
by the way, the id of the ui component which is invalid is anyway included in the new jsf facesmessages. i also get it easily done to display an icon next to the invalid field, but how to easily highlight the input field ITSELF???. consider style problems, when showing an icon or even the whole validation message it might bust your layout.
so, the article above does not provide any solution for me. by the way the guys from oracle, maybe his adf components are really as powerful as he says, honestly i doubt it.

@jamie: worked with icefaces as well, really nice, though im not really into its validation mechanisms and wether they do better than the ones of richfaces, which we migrated to from icefaces after having problems.</description>
		<content:encoded><![CDATA[<p>hi again,</p>
<p>just read</p>
<p><a href="http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html" rel="nofollow">http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html</a></p>
<p>well its not bad, but most of the stuff the guy wrote i was already ware of. and where the hell we get to if i have to reimplement phasecallback listeners in jsf ?<br />
by the way, the id of the ui component which is invalid is anyway included in the new jsf facesmessages. i also get it easily done to display an icon next to the invalid field, but how to easily highlight the input field ITSELF???. consider style problems, when showing an icon or even the whole validation message it might bust your layout.<br />
so, the article above does not provide any solution for me. by the way the guys from oracle, maybe his adf components are really as powerful as he says, honestly i doubt it.</p>
<p>@jamie: worked with icefaces as well, really nice, though im not really into its validation mechanisms and wether they do better than the ones of richfaces, which we migrated to from icefaces after having problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie McIlroy</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1095</link>
		<dc:creator>Jamie McIlroy</dc:creator>
		<pubDate>Mon, 11 May 2009 15:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1095</guid>
		<description>Terrific comment and sorry for taking so long in replying to it.  I&#039;m going to have a look as I&#039;m back on this project and working through it.

Cheers.</description>
		<content:encoded><![CDATA[<p>Terrific comment and sorry for taking so long in replying to it.  I&#8217;m going to have a look as I&#8217;m back on this project and working through it.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie McIlroy</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1094</link>
		<dc:creator>Jamie McIlroy</dc:creator>
		<pubDate>Mon, 11 May 2009 15:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1094</guid>
		<description>the address is on the website...make sure it&#039;s cold.


;-)</description>
		<content:encoded><![CDATA[<p>the address is on the website&#8230;make sure it&#8217;s cold.</p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie McIlroy</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1093</link>
		<dc:creator>Jamie McIlroy</dc:creator>
		<pubDate>Mon, 11 May 2009 14:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1093</guid>
		<description>Here&#039;s the funny part (to me)...I wrote that post close to 3 years ago.  I&#039;m back at the same client I was working with at the time of that article and working on...you guessed it, JSF.  I&#039;m taking that same application and porting it to a new JSF implementation (icefaces, which is quite nice) and removing all the hibernate from behind the scenes.  Friday I bumped up against this validation issue again...all that&#039;s old is new again I suppose</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the funny part (to me)&#8230;I wrote that post close to 3 years ago.  I&#8217;m back at the same client I was working with at the time of that article and working on&#8230;you guessed it, JSF.  I&#8217;m taking that same application and porting it to a new JSF implementation (icefaces, which is quite nice) and removing all the hibernate from behind the scenes.  Friday I bumped up against this validation issue again&#8230;all that&#8217;s old is new again I suppose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andi</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1092</link>
		<dc:creator>Andi</dc:creator>
		<pubDate>Mon, 11 May 2009 14:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1092</guid>
		<description>Hey folks,

its definitely rubbish by jsf not to invoke validation on empty inputs.
im currently concerned to create a validation which immediately marks invalid fields on onblur events. this means, when you leave the field the value is submitted via ajax and checked against domain model validation (hibernate validators). this results in less code in the view( no required attributes or defining error messages in the view) and immediate feedback to the user (e.g. highlighting the incorrect field). now i came across a strange thing:
if u use notempty or notnull hibernate annotations on a field (class variable) the validation gets invoked even if the input is null or empty. as hibernate also allows annotation on method level (very useful if you dont have an own field for each setter) i tried to add notempty resp. notnull annotations to the setter of my property. now the validation is not invoked anymore.....how stupid is that.
if anyone knows a solution for that one he gets  a big hug (introducing a class variable which corresponds to the setter isnt one :) )....
so, after years of webdevelopment, there still no proper, user friendly and developer friendly validation framework working...isnt that poor.

greetz</description>
		<content:encoded><![CDATA[<p>Hey folks,</p>
<p>its definitely rubbish by jsf not to invoke validation on empty inputs.<br />
im currently concerned to create a validation which immediately marks invalid fields on onblur events. this means, when you leave the field the value is submitted via ajax and checked against domain model validation (hibernate validators). this results in less code in the view( no required attributes or defining error messages in the view) and immediate feedback to the user (e.g. highlighting the incorrect field). now i came across a strange thing:<br />
if u use notempty or notnull hibernate annotations on a field (class variable) the validation gets invoked even if the input is null or empty. as hibernate also allows annotation on method level (very useful if you dont have an own field for each setter) i tried to add notempty resp. notnull annotations to the setter of my property. now the validation is not invoked anymore&#8230;..how stupid is that.<br />
if anyone knows a solution for that one he gets  a big hug (introducing a class variable which corresponds to the setter isnt one <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )&#8230;.<br />
so, after years of webdevelopment, there still no proper, user friendly and developer friendly validation framework working&#8230;isnt that poor.</p>
<p>greetz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Get Six Pack Fast</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1089</link>
		<dc:creator>How to Get Six Pack Fast</dc:creator>
		<pubDate>Wed, 15 Apr 2009 15:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1089</guid>
		<description>Hey, cool tips. Perhaps I&#039;ll buy a bottle of beer to the man from that forum who told me to go to your blog :)</description>
		<content:encoded><![CDATA[<p>Hey, cool tips. Perhaps I&#8217;ll buy a bottle of beer to the man from that forum who told me to go to your blog <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1076</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 12 Dec 2008 07:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1076</guid>
		<description>Not calling a validator on empty fields is an JSF design decision and for the sake of backward compatibility will not be changed, so let&#039;s not grumble about it, but try to find a wotrking solution, which in fact is quite easy.

Firstly - simple check on empty fields can be done with converters - they, in turn, will always get called, even if nothing is entered. Pretty simple, huh?

Secondly - if you want to introduce a nonstandard, application-wide behavior on conversion/validation that is not doable using available JSF tags, like changing field classes on errors, start working with JSF phase-aware callbacks, like this one:
http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html
They let you find all the fields that have validation/conversion messages assigned and do whatever you like with the fields and messages alike.</description>
		<content:encoded><![CDATA[<p>Not calling a validator on empty fields is an JSF design decision and for the sake of backward compatibility will not be changed, so let&#8217;s not grumble about it, but try to find a wotrking solution, which in fact is quite easy.</p>
<p>Firstly &#8211; simple check on empty fields can be done with converters &#8211; they, in turn, will always get called, even if nothing is entered. Pretty simple, huh?</p>
<p>Secondly &#8211; if you want to introduce a nonstandard, application-wide behavior on conversion/validation that is not doable using available JSF tags, like changing field classes on errors, start working with JSF phase-aware callbacks, like this one:<br />
<a href="http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html" rel="nofollow">http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html</a><br />
They let you find all the fields that have validation/conversion messages assigned and do whatever you like with the fields and messages alike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1075</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Thu, 11 Dec 2008 23:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://jamiemcilroy.wordpress.com/2006/10/10/not-quite-what-i-expectedjsf-validation/#comment-1075</guid>
		<description>Argh, this is a huge let down.

I want to write my own Required Field Validator but can&#039;t as I can&#039;t get it to trigger.

Being able to set a &quot;required&quot; message is not enough, and not very flexible.

I for example, if not valid, set a red border around the text field that is invalid by adding a css style. I can&#039;t do this with the inbuilt required field validator.

I&#039;m a .Net developer, but have been playing around with JSF and quite enjoying it. This is quite a poor design flaw. As is not being able to get a textbox&#039;s associated label (at least in an easy way). 

I&#039;ll post a fix if I find one.</description>
		<content:encoded><![CDATA[<p>Argh, this is a huge let down.</p>
<p>I want to write my own Required Field Validator but can&#8217;t as I can&#8217;t get it to trigger.</p>
<p>Being able to set a &#8220;required&#8221; message is not enough, and not very flexible.</p>
<p>I for example, if not valid, set a red border around the text field that is invalid by adding a css style. I can&#8217;t do this with the inbuilt required field validator.</p>
<p>I&#8217;m a .Net developer, but have been playing around with JSF and quite enjoying it. This is quite a poor design flaw. As is not being able to get a textbox&#8217;s associated label (at least in an easy way). </p>
<p>I&#8217;ll post a fix if I find one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
