Facelets lets you can put anything that is a valid Java URL in the src.
eg.
<ui:include src="file:/temp/test1.xhtml" />
Anything more elegant you can write your own url handler, but then it
needs to be in the classpath of the application server which is annoying
and few admins will allow you to do it:
<ui:include src="ctc://app/test1.xhtml" />
Chen, Wei wrote:
Hi all,
is it possible to load a file outside the war-package in <ui:include />? Exactly to say:
I have a file "mytest.txt" under c:\temp. Can I do follows:
...
<ui:include src="c:\\temp\\mytest.txt" />
...
If not, is there any other way?
Regards