myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murray Brandon <mur...@hotmagna.com>
Subject Re: <ui:include src=... />
Date Wed, 28 Jun 2006 00:15:19 GMT

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
>   


Mime
View raw message