Community
Participate
Working Groups
Build ID: 3.0M5-20080218 Steps To Reproduce: I had a dynamic web project named "Prj" with a bunch of modifications to faces-config. I deleted this project, and checked the box to remove its contents from the disk. Every time I create a new dynamic web project named "Prj", its faces-config file contains the data that I pasted into the old project. The old project seems to be cached and isn't actually deleted when the project is. More information:
*** Bug 209137 has been marked as a duplicate of this bug. ***
A consistent way to reproduce the bug is as follows (Step 3 below has been added to the original steps, to make it reproduce consistently). (1) Create a new dynamic web project (JSF) (2) Make one or more modifications to faces-config.xml (add a managed bean for instance) (3) Click on the Source tab in the faces-config.xml editor. (4) Delete the project (check "Delete project contents on disk") (5) Create a new dynamic web project (JSF) with the same project name you'd entered in Step 1 (6) Open faces-config.xml. You should be able to see the changes you had made the last time. The problem it appears, is when the Source tab is clicked (even once) within the Faces-Config Editor. Apparently, clicking on the Source tab increments the reference count for an edit (ModelManagerImpl.SharedObject.referenceCountForEdit), and this increase in the reference count never gets decremented (when the editor is closed etc.). As a result, the in-memory copy of the model is returned each time, even though the XML file itself may have changed.
Created attachment 96317 [details] The Source page in the FacesConfigEditor now disposes all the relevant models correctly Please review the attached patch for this bug-fix.
Please review the attached patch for this bug-fix
Created attachment 96683 [details] Updated patch to enhance FacesConfigEditor.dispose()
Please review the updated patch (attached) for this bug-fix
Checked in 4/21/08.
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword.
Hi Xiaonan, Could you please verify this bugs so that we can close it for 3.0? Thanks
Verified.