The <redirect/> does start fresh but I cannot use it because I loose my backing-bean which has the original object to be modified. My backing bean is request scope and passed around with the <t:saveSate/> which doesn't work across a <redirect/>.
Here is the REALLY INTERESTING thing.... The good news is it seems to work without the <redirect/> as long as I go thru a different navigation rule. Previously the startAgain() method was just returning null. I changed the startAgain() method to to return "startAgain" and added a navigation rule back to the same page and now it is working. So why is this working? - If I redisplay the same page without navigation the view components retain there previous values. - If I go thru navigation rules and return to the same page the view components get there values from binding to the backing bean. Is this expected/defined behaviour? Or is it a fluke? I don't want to rely on it if it may change in the next release. -----Original Message----- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 04, 2006 3:07 PM To: MyFaces Discussion Subject: Re: How to implement a Start Again Button on a edit view You could probably create a second navigation rule which includes <redirect/> and activate it after your've updated your view. That should start the page out as if you were going to it again for the first time, provided you've reset everything stored in session and application scope. On 4/4/06, Lindholm, Greg <[EMAIL PROTECTED]> wrote: ----------------------------------------------------- I have an edit view that let's the user modify an object thru a number of steps. All the "steps" redisplay the same view with additional/changed information. Once all the information has been entered there is a Save button to make the changes permanent. I want to have a "Start Again" button that the user can press at anytime to discard all the changes and start again in the same view. <h:commandButton immediate="true" action="#{bb.startAgain}" value="Start Again" /> In the startAgain() action I reset all the backing beans properties from the saved original object. The problem is the view components still have the last values displayed. (I've tried both an Action and ActionListener and get the same result.) The form that gets redisplayed to the user has the last values displayed NOT my backing bean property values. Is this because the "Update Model Values" phase was skipped? Is there a way to reset the view so it acts like this is the first time in? I want the view components to get all there values from the bound backing bean properties like they normally would following a non immediate action event. Can anyone help? Using MyFaces and Tomahawk 1.1.1.

