在Facelet模板中包括非Facelet内容 [英] Include non-Facelet content in a Facelet template
本文介绍了在Facelet模板中包括非Facelet内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将HTML文件的内容插入Facelet模板中? Facelets标记仅用于包含Facelet内容,因此无法使用.
Is there a way to have the content of an html file inserted into a Facelet template? The Facelets tag will not work since it is only for including Facelet content.
换句话说,我正在寻找与JSP include指令<%@ include file="..." %>
等效的Facelets.
To put it another way, I am looking for the Facelets equivalent to the JSP include directive <%@ include file="..." %>
.
推荐答案
Facelets中唯一的include机制是,该机制不允许包含任意内容,只有格式正确的XML. Facelets中没有等效的JSP include指令.
The only include mechanism in Facelets is , which doesn't allow arbitrary content to be included, only well formatted XML. There is no equivalent to the JSP include directive in Facelets.
这篇关于在Facelet模板中包括非Facelet内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文