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 107567 - Components added after page add don't appear in PFE
Summary: Components added after page add don't appear in PFE
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Joelle Lam
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 04:15 UTC by _ krystyna
Modified: 2007-06-27 23:32 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 _ krystyna 2007-06-21 04:15:35 UTC
Zip build 06201745
XP
JDK1.6.0_02


1. create an ee5 project then click on expand Configuration Files->faces-config.xml to open it into view.
2. via Project Navigator->WebPages node context menu and add a new VW JSF Page. Page 2 opens in designer. OK.
3. click on faces-config tab and add a button to Page 1 via context menu
4. expand the "^" icon to see button component
>but component doesn't show
5. context menu of the PFE -> "New File", select VW JSF Page and Page3 opens. OK.
6. click on faces-config tab and add a button to Page2 via context menu of PFE
7. expand the "^" icon to see button component 
>but component doesn't show

If you view the pages in the designer, the components are there.
Close and Reopen the project doesn't help - still can't see components in PFE.
Comment 1 Joelle Lam 2007-06-22 00:11:58 UTC
This looks like another place in which I do not end the model transaction.

Krys, is this reproducible with just these steps?  It works for me with the steps before, however, I have seen some
issues when a page has been removed.  If you can help me get reproducible steps that would be great.
Comment 2 _ krystyna 2007-06-22 00:29:18 UTC
Yes, this is reproducible with the above steps on today's build as well. Steps 1-4 illustrate when the page added is 
from ProjectNavigator; 5-7, when the page is added via PFE. 
Comment 3 Joanne Lau 2007-06-25 18:33:16 UTC
I can constantly reproduce the issue with the latest build 200706241200.
The workaround to close and restart the IDE.

- From Projects window, create a VW page (Page2.jsp)
- From the PFE, Add a button to each page (Page1, Page2) via Add button context menu 
- Create nav links from button1 of Page1 -> Page2, and vice versa
- <cntl>shift the links and press Delete key via PFE
- From Projects window, create a subfolder s1
- Create 1 VW page under s1 via Projects -> New
- From the PFE,  Add a button to s1/Page1 
- From the PFE,  select Page1.jsp and right click to Add another button
  button does not show up 

Issues previously reported:
   http://www.netbeans.org/issues/show_bug.cgi?id=104654
   http://www.netbeans.org/issues/show_bug.cgi?id=106347
Comment 4 Joelle Lam 2007-06-27 00:33:52 UTC
Yes, this is a bad issue and needs to be fixed.  Almost good enough for a M10 Stopper.
Comment 5 Joelle Lam 2007-06-27 04:23:37 UTC
This bug really bothers me.  Promoting to P1 since it is a regression from M9.
Comment 6 Joelle Lam 2007-06-27 04:26:40 UTC
Checking in visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java;
/cvs/visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java,v  <--  VWPContentModel.java
new revision: 1.12.2.1; previous revision: 1.12
done
Checking in visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModelProvider.java;
/cvs/visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModelProvider.java,v  <-- 
VWPContentModelProvider.java
new revision: 1.7.2.1; previous revision: 1.7
done
Comment 7 _ krystyna 2007-06-27 23:32:07 UTC
Verified fixed in NetBeans IDE 6.0M10 (build 200706271158) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)