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 250400 - JSF 2.2 Composite components ignored when are inside Taglib
Summary: JSF 2.2 Composite components ignored when are inside Taglib
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 20:16 UTC by rekiem87
Modified: 2015-04-22 02:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proyect with the smallest possible test case (7.19 KB, application/zip)
2015-02-12 20:16 UTC, rekiem87
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rekiem87 2015-02-12 20:16:41 UTC
Created attachment 151978 [details]
Proyect with the smallest possible test case

According to Jsf 2.2 specification, you can add composite components to your taglibs, but Netbeans complains about not found the component, and when you run the web app it works well.

With an example provided from https://jsflive.wordpress.com/2013/04/06/jsf22-cc-taglib/ i created and added a composite component to my taglib:
(test.taglib) With 2 components, one composite:

    <tag>
        <tag-name>decorated</tag-name>
        <source>ui/decorated.xhtml</source>
    </tag>
    <tag>
        <tag-name>compositeTest</tag-name>
        <component>
            <resource-id>ui/compositeTest.xhtml</resource-id>
        </component>
    </tag>

Then when i try to use in a view the autocomplete can get me the decorated component, but netbeans complains about "The component library http://test.org/jsf/ui does not contain component compositeTest", if you ignore the error and run the app the everything work as spected.
Attached a simple test case created with NB 8.0.2 and Glassfish tested in ubuntu, you can see how the editor mark an error but if you run the app the two components are rendered fine.
Comment 1 Petr Hejl 2015-04-21 13:59:43 UTC
Fixed in web-main 2ed1ac72a5fa.
Comment 2 Quality Engineering 2015-04-22 02:03:54 UTC
Integrated into 'main-silver', will be available in build *201504220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2ed1ac72a5fa
User: Petr Hejl <phejl@netbeans.org>
Log: #250400 - JSF 2.2 Composite components ignored when are inside Taglib