Sisak
Sisak

Reputation: 589

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

Upvotes: 2

Views: 541

Answers (1)

BalusC
BalusC

Reputation: 1109252

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

Upvotes: 1

Related Questions