Community
Participate
Working Groups
Build Identifier: M20110909-1335 Web fragment project wizard should present JSF facet selection Reproducible: Always Steps to Reproduce: - launch web fragment project wizard - click modify, the listing doesn't present JSF facet
At present, we have no intention of supporting the installation of a JSF facet on a web fragment project. A facet applied during use of the web fragment project wizard applies to the web fragment project, and not any web app project that may also be created (so the JSF facet would need to be manually added to a created web app project after the wizard completes). The JSF facet that we currently have enables capabilities that we do not see as having a useful purpose in a web fragment project, such as JSF authoring. A web fragment project is not a web application, it is essentially a utility project with intelligence to understand web app configuration (in web-fragment.xml and in annotations) such that a consuming web app project merges the configuration into the overall web app model. There is no merging of such things as faces-config.xml, since web fragments are part of Servlet 3.0 and have no relevant counterpart in JSP or JSF specification. JSF pages (JSP or facelets) authored in the web fragment project would not be accessible in a consuming web app project, and so that capability is also not useful in a web fragment project. For these reasons, we see no reasonable use case that makes applying the JSF facet to a web fragment project worthwhile at this time. We should revisit in the future to see if relevant use cases have evolved as people have started to use web fragment projects.
I would vote for the JSF facet option in web fragment projects. Perhaps you should read the following article: http://ocpsoft.org/java/jsf-java/how-to-modular-jsf-applications-with-cdi-and-prettyfaces/ I tried that with Glassfish and it worked as described. But - in Eclipse - it wasn't possible to use the JSF functions in the module jar project. Please reconsider offering that option.
We will review for M7.
Created attachment 231320 [details] Initial work to support web fragments with JSF features This is work done so far to support web fragment projects with JSF features. Not all features are 100% functional (for example, one known issue is that managed beans are not located by content-assist when faces-config is in META-INF).
The fix for this involves too many changes and is risky to check in to the Kepler release. We will continue to work on this issue and will get this into the first maintenance release.
Plan for Kepler SR2
Triage: Luna is in ramp down mode. We will review these for the first maintenance release.
*** Bug 489094 has been marked as a duplicate of this bug. ***