karolkpl
karolkpl

Reputation: 2209

JSF 2.0/Facelets - JavaScript characters get encoded as html entities

I'm using jQuery inside Faceletes template. The problem is that special characters are encoded as html entities, eg if (y >= top) { to if (y >= top) {

I'm using JSF 2.0 with Glassfish 3.

Upvotes: 0

Views: 455

Answers (1)

Tommy
Tommy

Reputation: 1985

Try this

<script type="text/javascript">
//<![CDATA[
  //your script here
//]]>
</script>

Upvotes: 1

Related Questions