评论与JSF UI:插入
问题描述:
我想把此评论到:评论与JSF UI:插入
<head>
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js">
</script>
<![endif]-->
<ui:insert name="faceletHeader"/>
</head>
但评论会从头部被删除。配置文件中没有设置跳过注释值。 如何插入评论?
感谢
答
使用<h:outputText escape="false">
<h:outputText value="<!--[if lt IE 8]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script><![endif]-->" escape="false" />