I tried to extend a JSF application by including xhtml files from a directory which is not in the context root:
Point of inclusion:
<form>
<ui:repeat value="#{calcBean.resolveIncludes()}" var="curInc">
<ui:include src="#{curInc}" />
</ui:repeat>
</h:form>
CalcBean delivers:
public List<String> resolveIncludes()
{
final List<String> ret = new ArrayList<>();
ret.add("D:/extensionDir/inc1.xhtml");
ret.add("D:/extensionDir/inc2.xhtml");
return ret;
}
The content of the xhtml files is not included because the path must be relative the origin xhtml according documentation. Is there a way to achieve this? The aim is to extend a JSF application by adding a set of files to a defined extension directory without redeploy.