<?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: A ValueChangeListener Question and Answer</title> <atom:link href="http://blogs.steeplesoft.com/2008/02/a-valuechangelistener-question-and-answer/feed/" rel="self" type="application/rss+xml" /><link>http://blogs.steeplesoft.com/2008/02/a-valuechangelistener-question-and-answer/</link> <description></description> <lastBuildDate>Mon, 06 Feb 2012 08:22:23 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Gary T</title><link>http://blogs.steeplesoft.com/2008/02/a-valuechangelistener-question-and-answer/comment-page-1/#comment-8235</link> <dc:creator>Gary T</dc:creator> <pubDate>Fri, 22 Feb 2008 16:29:28 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/a-valuechangelistener-question-and-answer/#comment-8235</guid> <description>I really enjoyed this JUG topic. Myself coming from a Struts Framework environment to JSF/Facelets, I had to endure a learning curve. The more comfortable I become, the more that I like JSF/Facelets.
This dialog and example code has helped me under stand how the “binding” with the component works.I&#039;m still confused on which is &quot;best&quot;, but for now I will continue using the method attribute approach until an issue arises that would behoove creating a class that implements ValueChangeListener.Sorry about my lack of communication skills, when I get nervous, I start speaking Gar-bonics. Anyone that has worked me knows what I mean! :razz:Great JUG, guys!</description> <content:encoded><![CDATA[<p>I really enjoyed this JUG topic. Myself coming from a Struts Framework environment to JSF/Facelets, I had to endure a learning curve. The more comfortable I become, the more that I like JSF/Facelets.<br
/> This dialog and example code has helped me under stand how the “binding” with the component works.</p><p>I&#8217;m still confused on which is &#8220;best&#8221;, but for now I will continue using the method attribute approach until an issue arises that would behoove creating a class that implements ValueChangeListener.</p><p>Sorry about my lack of communication skills, when I get nervous, I start speaking Gar-bonics. Anyone that has worked me knows what I mean! <img
src='http://blogs.steeplesoft.com/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /></p><p>Great JUG, guys!</p> ]]></content:encoded> </item> <item><title>By: jason</title><link>http://blogs.steeplesoft.com/2008/02/a-valuechangelistener-question-and-answer/comment-page-1/#comment-8234</link> <dc:creator>jason</dc:creator> <pubDate>Thu, 21 Feb 2008 22:37:06 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/a-valuechangelistener-question-and-answer/#comment-8234</guid> <description>Fadi, here is what the javadocs say:&lt;div style=&quot;margin-left: 3em&quot;&gt;When the validate() method of this UIInput  detects that a value change has actually occurred, and that all validations have been successfully passed, it will queue a ValueChangeEvent. Later on, the broadcast()  method will ensure that this event is broadcast to all interested listeners. This event will be delivered by default in the Process Validators phase, but can be delivered instead during Apply Request Values if the immediate  property is set to true.&lt;/div&gt;Typically, I&#039;ve seen VCLs used to change something on the UI, i.e., the user selects a new state so the list of cities is updated to show only those in the currently selected state.  With such an operation, the app usually is not ready to update the model yet, which happens when an action (i.e., a h:commandButton click) occurs.  I think if you&#039;re handling VCLs in the UPDATE_MODEL_VALUES phase, you might be going about it in a slightly incorrect, and apparently painful manner. :)  You have my email if you&#039;d like to send code and discuss it in more detail.  Feel free.  Or not. :)</description> <content:encoded><![CDATA[<p>Fadi, here is what the javadocs say:</p><div
style="margin-left: 3em">When the validate() method of this UIInput  detects that a value change has actually occurred, and that all validations have been successfully passed, it will queue a ValueChangeEvent. Later on, the broadcast()  method will ensure that this event is broadcast to all interested listeners. This event will be delivered by default in the Process Validators phase, but can be delivered instead during Apply Request Values if the immediate  property is set to true.</div><p>Typically, I&#8217;ve seen VCLs used to change something on the UI, i.e., the user selects a new state so the list of cities is updated to show only those in the currently selected state.  With such an operation, the app usually is not ready to update the model yet, which happens when an action (i.e., a h:commandButton click) occurs.  I think if you&#8217;re handling VCLs in the UPDATE_MODEL_VALUES phase, you might be going about it in a slightly incorrect, and apparently painful manner. <img
src='http://blogs.steeplesoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> You have my email if you&#8217;d like to send code and discuss it in more detail.  Feel free.  Or not. <img
src='http://blogs.steeplesoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Fadi S</title><link>http://blogs.steeplesoft.com/2008/02/a-valuechangelistener-question-and-answer/comment-page-1/#comment-8229</link> <dc:creator>Fadi S</dc:creator> <pubDate>Wed, 20 Feb 2008 19:01:41 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/a-valuechangelistener-question-and-answer/#comment-8229</guid> <description>Typo:
&quot;so my question is, when isn’t value change listener execution defaulted to Update Model Phase in JSF ??&quot;I meant:  Why isn’t value change listener execution defaulted to Update Model Phase in JSF ??</description> <content:encoded><![CDATA[<p>Typo:<br
/> &#8220;so my question is, when isn’t value change listener execution defaulted to Update Model Phase in JSF ??&#8221;</p><p>I meant:  Why isn’t value change listener execution defaulted to Update Model Phase in JSF ??</p> ]]></content:encoded> </item> <item><title>By: Fadi S</title><link>http://blogs.steeplesoft.com/2008/02/a-valuechangelistener-question-and-answer/comment-page-1/#comment-8228</link> <dc:creator>Fadi S</dc:creator> <pubDate>Wed, 20 Feb 2008 04:04:11 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/a-valuechangelistener-question-and-answer/#comment-8228</guid> <description>Comment on :
&quot;There’s no way to tell for sure, so the onus for controlling the timing of the event falls on the page author, and rightly so, I think.&quot;Using JSF before,i found my self having to check for the current phase, and if it is not the Update Model phase, i had to re-queue the event to execute in the Update Model Phase (almost every time) , so my question is, when isn&#039;t value change listener execution defaulted to Update Model Phase in JSF ??</description> <content:encoded><![CDATA[<p>Comment on :<br
/> &#8220;There’s no way to tell for sure, so the onus for controlling the timing of the event falls on the page author, and rightly so, I think.&#8221;</p><p>Using JSF before,i found my self having to check for the current phase, and if it is not the Update Model phase, i had to re-queue the event to execute in the Update Model Phase (almost every time) , so my question is, when isn&#8217;t value change listener execution defaulted to Update Model Phase in JSF ??</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 11/22 queries in 0.778 seconds using disk: basic

Served from: blogs.steeplesoft.com @ 2012-02-07 14:58:07 -->
