If you want to use javascript, with the <script> tag in Facelets xhtml file, and your script have characters like ‘>’, ‘<’, you may get this error message:

com.sun.facelets.FaceletException: Error Parsing /filename.xhtml: Error Traced[line: xx] 
The content of elements must consist of well-formed character data or markup.
...
To avoid this parsing error use the script in a "commented" way:

<script type="text/javascript">
<!--
your script here.
//-->
</script>

About these ads

Join the conversation! 5 Comments

  1. Thanx a lot

  2. thanks for the tip! very helpfull

  3. Thank you!

  4. Hey, Thanks a lot.

  5. public void ThankYou(){
    System.out.println(“Thank you!”);
    ThankYou();
    }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Category

facelets, javaserver faces, jsf

Tags

, ,