<?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: Persist and pass FacesMessages over multiple page redirects</title> <atom:link href="http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/feed/" rel="self" type="application/rss+xml" /><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/</link> <description>&#34;Simple Software&#34;</description> <lastBuildDate>Mon, 26 Jul 2010 23:17:02 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1669</link> <dc:creator>Lincoln</dc:creator> <pubDate>Wed, 02 Jun 2010 19:36:54 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1669</guid> <description>Sure will :) I&#039;m actually writing up the docs on the Seam 3 docs right now. Also -- those silly exceptions should be resolved in Alpha 3, as well. Thanks again for your help!</description> <content:encoded><![CDATA[<p>Sure will <img
src='http://ocpsoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I&#8217;m actually writing up the docs on the Seam 3 docs right now. Also &#8212; those silly exceptions should be resolved in Alpha 3, as well. Thanks again for your help!</p> ]]></content:encoded> </item> <item><title>By: Brian Leathem</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1668</link> <dc:creator>Brian Leathem</dc:creator> <pubDate>Wed, 02 Jun 2010 19:30:34 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1668</guid> <description>Thanks Lincoln, this looks great! - it should tide me over until the Seam 3 Faces module is ready.This will work with JSF2 won&#039;t it?</description> <content:encoded><![CDATA[<p>Thanks Lincoln, this looks great! &#8211; it should tide me over until the Seam 3 Faces module is ready.</p><p>This will work with JSF2 won&#8217;t it?</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1557</link> <dc:creator>Lincoln</dc:creator> <pubDate>Mon, 10 May 2010 15:34:42 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1557</guid> <description>My pleasure, thank you!</description> <content:encoded><![CDATA[<p>My pleasure, thank you!</p> ]]></content:encoded> </item> <item><title>By: Jonathan DB</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1556</link> <dc:creator>Jonathan DB</dc:creator> <pubDate>Mon, 10 May 2010 11:18:21 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1556</guid> <description>Thanks man, this solves my problem! PrettyFaces rocks</description> <content:encoded><![CDATA[<p>Thanks man, this solves my problem! PrettyFaces rocks</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1289</link> <dc:creator>Lincoln</dc:creator> <pubDate>Wed, 10 Mar 2010 15:23:38 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1289</guid> <description>You could add a check to see if the message already exists. Only add the message if it is not already present in the list.</description> <content:encoded><![CDATA[<p>You could add a check to see if the message already exists. Only add the message if it is not already present in the list.</p> ]]></content:encoded> </item> <item><title>By: Kaja</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1288</link> <dc:creator>Kaja</dc:creator> <pubDate>Wed, 10 Mar 2010 08:49:04 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1288</guid> <description>for (Iterator iter = facesContext.getMessages(null); iter.hasNext();) {
messages.add(iter.next());
iter.remove();
}iter.remove(); doesn&#039;t work on MyFaces, it&#039;s probably because MyFaces return copy of collection so you remove item from copy not from orginal collection.First message is saved in INVOKE_APPLICATION, second in RENDER_RESPONSE and also there is orginal message in facesContext so I get 3 same messages on page after all.</description> <content:encoded><![CDATA[<p>for (Iterator iter = facesContext.getMessages(null); iter.hasNext();) {<br
/> messages.add(iter.next());<br
/> iter.remove();<br
/> }</p><p>iter.remove(); doesn&#8217;t work on MyFaces, it&#8217;s probably because MyFaces return copy of collection so you remove item from copy not from orginal collection.</p><p>First message is saved in INVOKE_APPLICATION, second in RENDER_RESPONSE and also there is orginal message in facesContext so I get 3 same messages on page after all.</p> ]]></content:encoded> </item> <item><title>By: David Causse</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-1273</link> <dc:creator>David Causse</dc:creator> <pubDate>Fri, 05 Mar 2010 11:06:40 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-1273</guid> <description>Hi,Very nice, helped a lot...
I tried to implement a CDI version of your idea, see my questions on the weld forum :
http://www.seamframework.org/Community/PersistAndPassFacesMessagesOverMultiplePageRedirectsThank you.</description> <content:encoded><![CDATA[<p>Hi,</p><p>Very nice, helped a lot&#8230;<br
/> I tried to implement a CDI version of your idea, see my questions on the weld forum :<br
/> <a
href="http://www.seamframework.org/Community/PersistAndPassFacesMessagesOverMultiplePageRedirects" rel="nofollow">http://www.seamframework.org/Community/PersistAndPassFacesMessagesOverMultiplePageRedirects</a></p><p>Thank you.</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-751</link> <dc:creator>Lincoln</dc:creator> <pubDate>Fri, 11 Sep 2009 20:46:56 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-751</guid> <description>Hmmm... Can you check to see if the method is being called twice? If so... why? What phases? It may depend on your implementation of JSF... You&#039;re probably using MyFaces?</description> <content:encoded><![CDATA[<p>Hmmm&#8230; Can you check to see if the method is being called twice? If so&#8230; why? What phases? It may depend on your implementation of JSF&#8230; You&#8217;re probably using MyFaces?</p> ]]></content:encoded> </item> <item><title>By: Thom</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-750</link> <dc:creator>Thom</dc:creator> <pubDate>Fri, 11 Sep 2009 06:57:32 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-750</guid> <description>Works great!  One question:  I get duplicated FacesMessages when returning a String value of null from a JSF action method, to indicate the previous page should be rerendered.  Returning a specific String works fine.  Is there a way to work around this, or is it generally bad practice to return null from such methods?</description> <content:encoded><![CDATA[<p>Works great!  One question:  I get duplicated FacesMessages when returning a String value of null from a JSF action method, to indicate the previous page should be rerendered.  Returning a specific String works fine.  Is there a way to work around this, or is it generally bad practice to return null from such methods?</p> ]]></content:encoded> </item> <item><title>By: rua</title><link>http://ocpsoft.com/java/persist-and-pass-facesmessages-over-page-redirects/#comment-669</link> <dc:creator>rua</dc:creator> <pubDate>Thu, 28 May 2009 08:48:05 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=15#comment-669</guid> <description>Thanks a lot! That saved my day!!!</description> <content:encoded><![CDATA[<p>Thanks a lot! That saved my day!!!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: ocpsoft.com @ 2010-07-29 17:05:20 by W3 Total Cache -->