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.
JSF Libraries could have a facelets taglib xml file like this: (see myfaces tomahawk for jsf 2.0 1.1.10) <facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd" version="2.0"> <namespace>http://myfaces.apache.org/tomahawk</namespace> <composite-library-name>org.apache.myfaces.custom</composite-library-name> <!-- Component Tags --> <tag> <tag-name>commandButton</tag-name> <component> <component-type>org.apache.myfaces.HtmlCommandButton</component-type> <renderer-type>org.apache.myfaces.Button</renderer-type> </component> </tag> Take a look on the part that specifies a composite-library-name. In theory it is possible to have libraries with normal jsf artifacts (components, converters, validators, behaviors, facelets tags) and composite components under the same namespace (in this case http://myfaces.apache.org/tomahawk ). Netbeans code completion does not take into account this fact and ignore the additional entries, so when I try to use this library, the code completion only detect composite components (t:inputHtml), and not the other ones.
The facelets support of course does recognize all the components, not just cc. It uses the mojarra JSF engine implementation internally which does the descriptors scanning. I'll take a look at the tomahawk library ...
reproducible - a regression, it used to work
Hmm. I didn't assume there might be a mixed tag library with both composite components and class components. If there's the <composite-library-name>...</composite-library-name> tag inside the facelets VDL descriptor netbeans assumes there are only composite components bound to the declared namespace. This needs to be fixed. Thanks for filling the issue.
fixed in web-main#99af0b626480 and releases/release701#2291fb521759
Integrated into 'main-golden', will be available in build *201105190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/99af0b626480 User: Marek Fukala <mfukala@netbeans.org> Log: #198649 - JSF libraries could contain composite components AND normal components
*** Bug 196548 has been marked as a duplicate of this bug. ***