Bug 142790

Summary: JSF App Detection
Product: [WebTools] Java Server Faces Reporter: Gerry Kessler <gerry.kessler>
Component: CoreAssignee: Debajit Adhikary <debajit.adhikary>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: raghunathan.srinivasan
Version: 1.5Keywords: bugday, helpwanted
Target Milestone: Future   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Gerry Kessler CLA 2006-05-19 11:43:12 EDT
After importing a WAR, I forgot to add the JSF facet and stuff wasn't working correctly.   Yes this is a flaw in the facet stuff, but until there is a mechanism in facets to add them during import, we can do better.

The utility method isValidProject(IProject) could, after not finding the facet, check for a WEB-INF\faces-config.xml file if the project is a wst.web faceted project.  If config is found, we can prompt the user to add the facet and we could even do that silently if we find the faces servlet already hooked up in the web.xml file.
Comment 1 Raghunathan Srinivasan CLA 2006-06-14 16:49:13 EDT
Deferred for 1.5. Document the limitation.
Comment 2 Gerry Kessler CLA 2006-06-14 18:04:37 EDT
limitation documented in the User Guide: Concepts: JSF Facets
Comment 3 David Williams CLA 2007-07-19 02:00:26 EDT
re-opening to change resolved-later to open-Future
Comment 4 Raghunathan Srinivasan CLA 2008-04-01 16:31:49 EDT
Import of a JSF web project doesn't loose the facet, so I think this is resolved. Please verify and close this as WORKSFORME.