开发者

Comments with jsf ui:insert

开发者 https://www.devze.com 2023-03-20 01:03 出处:网络
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\">

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

精彩评论

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