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 198649 - JSF libraries could contain composite components AND normal components
Summary: JSF libraries could contain composite components AND normal components
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 196548 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-16 18:27 UTC by lu4242
Modified: 2011-06-02 14:40 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 lu4242 2011-05-16 18:27:04 UTC
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.
Comment 1 Marek Fukala 2011-05-17 09:28:30 UTC
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 ...
Comment 2 Marek Fukala 2011-05-17 09:35:12 UTC
reproducible - a regression, it used to work
Comment 3 Marek Fukala 2011-05-17 11:41:03 UTC
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.
Comment 4 Marek Fukala 2011-05-18 13:50:42 UTC
fixed in web-main#99af0b626480 and releases/release701#2291fb521759
Comment 5 Quality Engineering 2011-05-19 08:41:49 UTC
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
Comment 6 Marek Fukala 2011-06-02 14:40:12 UTC
*** Bug 196548 has been marked as a duplicate of this bug. ***