开发者

Comments with jsf ui:insert

I want to put this comment into the :

<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>

开发者_如何转开发but comment will be removed from head. There is no setted skip comment value in config files. How to insert this comment?

Thanks


Use <h:outputText escape="false">

<h:outputText value="&lt;!--[if lt IE 8]&gt;&lt;script src=&quot;http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;" escape="false" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜