Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312358 - [JSF2.0] Composite component defined in project is not being recognized
Summary: [JSF2.0] Composite component defined in project is not being recognized
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 RC2   Edit
Assignee: Cameron Bateman CLA
QA Contact:
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 19:49 EDT by Raghunathan Srinivasan CLA
Modified: 2010-05-18 15:53 EDT (History)
1 user (show)

See Also:
raghunathan.srinivasan: pmc_approved? (david_williams)
raghunathan.srinivasan: pmc_approved? (naci.dai)
deboer: pmc_approved+
raghunathan.srinivasan: pmc_approved? (neil.hauge)
raghunathan.srinivasan: pmc_approved? (kaloyan)
raghunathan.srinivasan: review+


Attachments
Adds tracking of resources folder when it is added and deleted (15.19 KB, patch)
2010-05-14 16:25 EDT, Cameron Bateman CLA
no flags Details | Diff
Test coverage for changes (28.18 KB, patch)
2010-05-14 16:25 EDT, Cameron Bateman CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raghunathan Srinivasan CLA 2010-05-10 19:49:28 EDT
Composite component defined in the resources folder is not being recognized when used in a xhtml page.

Steps:
1) In a new workspace, create a DWP with JSF 2.0 facet
2) Create index.xhtml under the WebContent fodler
3) Create resources\ezcomp folder under the WebContent folder
4) Create testComponnet.xhtml under resources\ezcomp folder
5) Open index.xhtml in the WPE
6) In the source view, in the html tag, type 'xmlns:ez=' and gesture for content assist.
Expected: http://java.sun.com/jsf/composite/ezcomp
Result: The namespace is not listed.

Workaround: 
1) Open the Tag Registry View
2) Select the current project
3) In the tree view, expand the "Facelt Tag Registry' node. Note that the namespace for the ezcomp library is not displayed.
4) Hit the refresh icon next to the project. Select Yes in the resulting dialog
5) The namespace for excomp is displayed
Comment 1 Cameron Bateman CLA 2010-05-14 16:25:25 EDT
Created attachment 168606 [details]
Adds tracking of resources folder when it is added and deleted
Comment 2 Cameron Bateman CLA 2010-05-14 16:25:53 EDT
Created attachment 168607 [details]
Test coverage for changes
Comment 3 Raghunathan Srinivasan CLA 2010-05-16 20:54:58 EDT
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug"
(requested by an adopter) please document it as such. 
Locating composite components is a key feature of the JSF 2.0 support in
Helios. The use case in the description one likely path for the user to define a cusitm component. This bug will break that feature and hence is a stop-ship defect.
* Is there a work-around? If so, why do you believe the work-around is
insufficient? 
No reasonable workaround
* How has the fix been tested? Is there a test case attached to the bugzilla
record? Has a JUnit Test been added? 
New Junit test to cover this use case is included
* Give a brief technical overview. Who has reviewed this fix? 
See description.
* What is the risk associated with this fix?
low-medium
Comment 4 Cameron Bateman CLA 2010-05-18 15:53:54 EDT
Patches applied to HEAD (3.2RC2).