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.
Create new Web Application with JSF 2.0 select some code in index.xhtml type this code in index.xhtml: -------------- <c:if test="${1 == 1}"> do IT! </c:if> -------------- add xml namespace definition: -------------- xmlns:c="http://java.sun.com/jsp/jstl/core" -------------- select the code and invoke convert to composite component new component is generated, many useless JSF namespaces are generated, but xmlns:c namespace is not generated and thus the code is not compilable
nasty issue, but this has never worked, but I'll try to fix to 68 patch.
All the original and the snippet related "imports" needs to be used in the generated component file. Currently the template has only some predefined static declarations.
fixed in web-main#66c9065eeac6, now the imports in the template instance are generated according to the snippet content.
Integrated into 'main-golden', will be available in build *201001131418* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/568fffe17109 User: Marek Fukala <mfukala@netbeans.org> Log: #179379 - convert to composite component doesn't generate correct JSF namespaces
NetBeans IDE Dev (Build 201001140201)
The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/f23c127544e3 The fix has been ported together with the bugfix of issue #178751. If a rollback is needed, both issues have to be skipped together.
verified in 68_fixes build NetBeans IDE 6.8 (Build 201001261800)