[ http://issues.apache.org/jira/browse/MYFACES-268?page=comments#action_12313149 ]
Konstantin Nikolaev commented on MYFACES-268: --------------------------------------------- I will try to describe the problem in other words. I have a list of objects (users) with edit button next to each object. When I hit edit button I go to edit form with inputTexts, save and cancel buttons (cancel button has immediate="true" attribute). If I press cancel button on the edit form I go back to my list of objects. 1. I press edit button next to user 1. 2. I get to the edit form with user 1 data in the inputTexts. 3. I press SAVE button and go back to my list. 4. I hit edit button next to user2. 5. I get to the edit form with user 2 data in the inputTexts. But the next steps cause the problem: 1. I press edit button next to user 1. 2. I get to the edit form with user 1 data in the inputTexts. 3. I press CANCEL button and go back to my list. 4. I hit edit button next to user2. 5. I get to the edit form with user 1 data in the inputTexts. (This is wrong, the form should contain user2 data) > inputText displays wrong value. > ------------------------------- > > Key: MYFACES-268 > URL: http://issues.apache.org/jira/browse/MYFACES-268 > Project: MyFaces > Type: Bug > Versions: 1.0.9 beta > Environment: WinXP, MyFaces 1.0.9 beta > Reporter: Konstantin Nikolaev > Assignee: Martin Marinschek > > In my project I have a form for editing a user profile. There are three > inputTexts (login, password, e-mail) and two commandButtons (Save profile, > Cancel) on it. When I change data in inputTexts and press "Save profile" my > application first saves a new data to the database and then navigates to a > form displaying a user profile with changes (It's OK). > But if I change data in inputTexts and then decide to NOT save a new data I > press "Cancel" and simply navigate to a form displaying a user profile. But > profile displays with changes. This is not what expected. If I cancel changes > the form should display a profile with no changes. > Does anyone have an idea how I can tune MyFaces to solve this problem? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
