Thank you!
________________________________ From: Jakob Korherr <[email protected]> To: MyFaces Discussion <[email protected]> Sent: Tue, January 4, 2011 1:29:21 PM Subject: Re: Does flash.keep work in MyFaces? Hi, I tried out your example and you're right: it does work with Mojarra, but not with MyFaces. I created MYFACES-3009 for this one. Regards, Jakob 2011/1/4 Werner Punz <[email protected]>: > Hi, this might be a bug, it would be good to file a bugreport on this one. > > > Werner > > > > Am 31.12.10 20:31, schrieb am am: >> >> Hi, >> >> I am starter in JSF2.0 and picked up MyFaces 2.0.3. >> Also I am using Tomcat 7 and eclipse (Helios)- added JSF facet. >> I have a trivial application trying to use flash via redirection but it >> seems it >> does not work. >> >> Please note that if I switch libraries and use Mojarra implementation >> instead it >> works fine! Am I missing something in MyFaces configuration? >> >> Example as follows: >> 1) A facelet called Entry.xhtml >> >> <h:form> >> <table> >> <tr> >> <td>First Name:</td> >> <td> >> <h:inputText id="fname" >> value="#{flash.firstName}"required="true"/> >> </td> >> </tr> >> <tr> >> <td>Last Name:</td> >> <td> >> <h:inputText id="lname" value="#{flash.lastName}" >> required="true"/> >> </td> >> </tr> >> </table >> <p><h:commandButton value="Submit" >> action="confirmation?faces-redirect=true" >> /></p> >> </h:form> >> >> and the confirmation.xhtml: >> <table> >> <tr> >> <td>First Name:</td> >> <td> >> <h:outputText value="#{flash.keep.firstName}" /> >> </td> >> </tr> >> <tr> >> <td>Last Name:</td> >> <td> >> <h:outputText value="#{flash.keep.lastName}"/> >> </td> >> </tr> >> </table> >> <h:form> >> <p><h:commandButton value="Confirm" action="finished?faces-redirect=true" >> /></p> >> </h:form> >> >> >> But when the confirmation page is loaded, the firstName and lastName I >> submitted >> is missing. Why? I am using flash.keep. According to what I read it should >> keep the values more than a PRG cycle. >> It works if I use Mojarra. >> >> Thank you! >> >> >> > > > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at

