This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Today I fixed the issue #114217. There is still issue, which you can reproduce: - Create a web application with jsf framework. - Add one testing page - Open the page flow editor - Add navigation case between two pages. Don't switch to the XML view. The change has to be done only in the page flow editor. - Don't save, but close the editor -> the ide asks, whether you want to save the file. Choose Discard. The editor is closed without saving file. - Open the page flow editor again. The page flow editor displays the state, which was before canceling the change. If you look at the source editor, the change is not there. It looks like the page flow editor doesn't ask for refreshed model.
This is interesting. I am going to take a closer look at it, but the Page Flow Editor always draws from scratch (upon open) from the FacesModel. Is it possible the FacesModel is not getting refreshed?
Petr, it seems I need a little help from you on this bug. Currently get the JSFConfigEditorContext from the Multiview Descriptor that the Multiview creator passes me. Then I go through the following steps to get the rules. 1) Contructor receives a JSFConfigEditorContext context. 2) FileObject configFile = context.getFacesConfigFile() /* get the fileobject */ 3) configDataObj = DataObject.find(configFile); /* Get the Dataobject */ 4) configModel = ConfigurationUtils.getConfigModel(configFile, true); 5) FacesConfig facesConfig = configModel.getRootComponent(); /* get the FacesConfig instance */ From the facesConfig I grab the rules. I used debugger and confirmed that facesConfig is not giving me the non-updated rules. Is there something I need to do to tell facesConfig or configModel to get what is new? Are you sure, your refreshing the context before you hand it to me?
*** Issue 116632 has been marked as a duplicate of this issue. ***
*** Issue 116633 has been marked as a duplicate of this issue. ***
Fixed in the trunk.
verified Product Version: NetBeans IDE Dev (Build 200811050201) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Linux version 2.6.27-7-generic running on i386; UTF-8; en_US (nb)