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 83220 - Regenerating JSF pages creates dups in faces-config
Summary: Regenerating JSF pages creates dups in faces-config
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on: 76722
Blocks:
  Show dependency tree
 
Reported: 2006-08-22 18:30 UTC by tnelson
Modified: 2007-06-20 06:58 UTC (History)
1 user (show)

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 tnelson 2006-08-22 18:30:40 UTC
[ NB VERSION : 5.5 beta 2 (build 200607190830, Ent. Pack 20060810) ]
[ JVM Version : 1.5.0_04 ]

When I modify an Entity class and then subsequently re-generate the JSF page, I
get duplicate <converter> and <managed-bean> sections in my faces-config.xml
file.  I also get duplicate links in the index.jsp file.  I do not get duplicate
<navigation-rule>s.
Comment 1 tnelson 2006-08-22 18:43:37 UTC
Whoops!  I should have looked closer.  I *am* getting duplicate
<navigation-rule> sections.
Comment 2 Pavel Buzek 2006-08-25 22:32:54 UTC
Yup, another round of generation is not supported very well. This is also
related to issue 77519. I need to generate different names of converters and
managed beans if the default ones are already in use - hope to fix that for 5.5.
Ultimately if you be nice to just regenerate the old beans and pages but I will
not do that for 5.5.
Comment 3 Petr Jiricka 2007-01-05 10:04:01 UTC
Issue 77519 is now fixed in NB 5.5 FCS, but there are still problems:

1. Two entries in index.jsp are generated
2. Now the wizard forces me to first delete the previously generated converter
and controller. However, when I simply delete it, the entries in
faces-config.xml are still present. This needs to be addressed by issue 91871.
Comment 4 martin_adamek 2007-06-20 06:58:36 UTC
Feature is dropped in 6.0