Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317756

Summary: [JSF2.0] CompositeTagRegistryFactory caching causes major loss of service
Product: [WebTools] Java Server Faces Reporter: Cameron Bateman <cameron.bateman>
Component: CoreAssignee: Gerry Kessler <gerry.kessler>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: raghunathan.srinivasan
Version: 3.2   
Target Milestone: 3.2.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Removes the caching in CompositeTagRegistryFactory none

Description Cameron Bateman CLA 2010-06-23 19:04:00 EDT
The CompositeTagRegistryFactory caches the tag registry factories that declare their applicability to a project.  However, this fails to take into account the fact that applicability by change.

To reproduce:

1) Create a new dynamic web project *WITHOUT* a JSF facet.
2) Open the web page editor on a JSP page to load the tag registry for the project.
3) Add a JSF 2.0 facet to the project.
4) Create a new xhtml file with the Composition Page template.
5) Try to validate the page and use content assist in the "template" attribute of the composition tag.

Expected:

1) A warning should be flagged on the empty template attribute
2) Content assist should show a list of directories.

Actual:

Neither feature will work.
Comment 1 Cameron Bateman CLA 2010-06-23 19:05:35 EDT
Created attachment 172560 [details]
Removes the caching in CompositeTagRegistryFactory
Comment 2 Gerry Kessler CLA 2010-06-30 15:58:18 EDT
Checked in 6/30/10 to HEAD for 3.2.1