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.

Bug 116315 - The page flow editor displays state which is not correct
Summary: The page flow editor displays state which is not correct
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 116632 116633 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-21 14:09 UTC by Petr Pisl
Modified: 2008-11-05 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2007-09-21 14:09:37 UTC
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.
Comment 1 Joelle Lam 2007-09-22 18:29:38 UTC
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?
Comment 2 Joelle Lam 2007-09-23 00:26:57 UTC
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?  
Comment 3 Joelle Lam 2007-09-25 14:22:29 UTC
*** Issue 116632 has been marked as a duplicate of this issue. ***
Comment 4 Joelle Lam 2007-09-25 14:23:41 UTC
*** Issue 116633 has been marked as a duplicate of this issue. ***
Comment 5 Petr Pisl 2007-10-02 14:08:19 UTC
Fixed in the trunk.
Comment 6 martin_zmrhal 2008-11-05 12:10:19 UTC
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)