In JSF 2.1 FaceletCache has been created and provided for custom caching
and mapping URL (of view) to Facelet.
Why simmilar assumption has not been done for mapping uri of view to its
physical URL ?
I am talking about DefaultFaceletFactory#getViewMetadataFacelet(String)
method where _relativeLocations class field is use to cache mappings
between view's uri to its physical location.
I can only guess that, it hasn't been done due to the fact, that we are
not handling the situation when physically view (xhtml page) can
disappear. But if myfaces provides now libraries that can be used in
OSGi environemnt, we can provide fragemnts for main JSF application. If
so, those fragments can contains views. Fragments can be uninstalled in
run-time, so pages can disappear. Shouldn't we handle it ? If I am
thinking wrong ?
--
Pozdrawiam,
Kamil Soboń
iso.poczta(at)gmail.com
sobon(at)student.agh.edu.pl