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 104654 - Newly added button not shown in faces-config
Summary: Newly added button not shown in faces-config
Status: RESOLVED DUPLICATE of bug 106347
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Joelle Lam
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 18:08 UTC by Joanne Lau
Modified: 2007-06-12 04:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot attached (46.07 KB, image/gif)
2007-05-23 18:11 UTC, Joanne Lau
Details
exception log attached (60.38 KB, text/plain)
2007-06-01 22:44 UTC, Joanne Lau
Details
screenshot taken after hyperlink deleted (52.13 KB, image/gif)
2007-06-04 19:11 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-05-23 18:08:21 UTC
NB: 070523

Steps to reproduce:
1) Create a JSF VW project
2) Create a std jsp (j1) , html (h1), 2 VW pages
3) Add a button to each of VW page, and create links Page1->Page2 and vice versa
4) Create a subfolder my_fold under Web Pages
5) Bringup PFE (Dbl Click faces-config)
6) D&D j1.jsp and h1.html to my_fold
7) Close and bring up PFE 
8) From the Projects view, dbl click of Page2.jsp and add another button
9) Close and bring up PFE
10) New button not displayed in the page icon
    
    No exception is generated.  Close and reopen faces-config does not fix
    the problem. 
    Workaround is to close and restart the IDE and bring up PFE.
    This issue is not always reproducible, I've seen it randomly in previous
    builds as well.

 (see attached screenshot)
Comment 1 Joanne Lau 2007-05-23 18:11:16 UTC
Created attachment 42705 [details]
screenshot attached
Comment 2 Joanne Lau 2007-05-23 19:33:56 UTC
It seems that the page icon display in PFE is not always being refreshed when
there is any update to the component.   So far I've experienced the issue
with adding and deleting button/hyperlink/image hyperlink.
Comment 3 Joanne Lau 2007-05-29 21:19:34 UTC
This issue is seen in NB 200705251200. 
I have this scenario:

 - Create 10 VW pages
 - Add button to Page1 via PFE
   Scroll down the up arrow key, button exists
 - Add button to Page9 via PFE
   Scroll down the up arrow key,  button does not exist
   Select open context menu to open Page9,  the button exists in the designer view
Comment 4 Joelle Lam 2007-05-29 23:29:33 UTC
The SyncAll commit that Sandeep mentioned has caused a regression in Page Flow
Editor.  The Insync commit was made on the 23rd of May so I believe the new
notes is a different issue.  Basically if any page is not opened, the Page Flow
Editor can not get the Model since Insync only models when the Page is opened.
Comment 5 Joelle Lam 2007-05-29 23:35:33 UTC
FYI: I meant Sandip and not Sandeep.
Comment 6 Joelle Lam 2007-05-31 22:27:02 UTC
Fixed by deva today.

Checking in FacesModelSet.java;
/cvs/visualweb/insync/src/org/netbeans/modules/visualweb/insync/models/FacesModelSet.java,v
 <--  FacesModelSet.java
new revision: 1.8; previous revision: 1.7
done
Comment 7 Joanne Lau 2007-06-01 22:40:39 UTC
NB: 200706011200

Issue is reproducible in latest trunk build with the following scenario:

- Invoke IDE with a fresh userdir
- Add a button in Page1
- Via PFE,  rename Page1 -> Page1n
- Switch Project view -> Faces-config only view -> back to Project view

The Page icon in PFE has Page1.jsp however the button listed as Page1n:button1

Adding button via PFE at this point seems to be broken for other VW pages as
well.  

(See attached messages log) 
Comment 8 Joanne Lau 2007-06-01 22:44:29 UTC
Created attachment 43137 [details]
exception log attached
Comment 9 Joanne Lau 2007-06-04 19:07:56 UTC
This issue is also seen when deleting a hyperlink component from the page.
faces-config.xml is not being refreshed though after closing and reopening it.
(see attached screenshot)
Comment 10 Joanne Lau 2007-06-04 19:11:01 UTC
Created attachment 43206 [details]
screenshot taken after hyperlink deleted
Comment 11 Joanne Lau 2007-06-07 17:14:11 UTC
Issue seen in latest build 200706070000 in the 2nd VW project created. 
The first VW project does not have this problem (IDE was started with a new
userdir)
Comment 12 Joelle Lam 2007-06-11 23:31:21 UTC
The key to reproducing this bug:
1) Create a link from button to another page
2) Delete link
3) Add button to page.
No button will get added.
Comment 13 Joelle Lam 2007-06-12 04:03:51 UTC

*** This issue has been marked as a duplicate of 106347 ***