Type: New Feature
Affects Version/s: None
Fix Version/s: None
This issue captures the reduced scope of
JAVASERVERFACES_SPEC_PUBLIC-971 that we are attempting for JSF 2.2.
This is the scope advocated by Frank and Imre during our last conference
call. First, recall that we've already made it so facelets are loadable
from Resource Libraries. In fact, all facelets are now served via the
We introduce an additional piece of metadata to the concept of a
Resource Library. Frank calls it a "resource prefix". We provide a
read/write property on the FacesContext for it. Thus, we have the
notion of the currently active resource prefix.
We modify the spec for ResourceHandler such that whenever a resource is
requested, we first check if we have one that declares it supports the
currently active resource prefix. If we do, it gets served by the
ResourceHandler. If not, we look for one without the prefix.
Care must be taken with respect to the Facelet cache.
I'm pretty convinced that we should go with the Reduced
Multi-Templating, but I want to get your thoughts before pulling it out
and rewriting it more simply.
While it is true that one can achieve the contract re-use of the Full
proposal with the Reduced proposal, the contract is informal, and you
really have to take the Resource Library apart to discover the contract
if you want to offer multiple Resource Library instances that look
different but have the same usage contract.
The JSF spec is already gigantic so adding a whole site management
system on top of it may not be the best choice.