How to use Javascript script tag in Facelets xhtml file
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>
Github
Jitesh 9:11 am on September 16, 2010 Permalink
Thanx a lot
Fernando 2:10 am on April 2, 2011 Permalink
thanks for the tip! very helpfull
Federico González Brizzio 11:57 am on May 3, 2011 Permalink
Thank you!
Wender Freese 12:41 pm on December 18, 2012 Permalink
Hey, Thanks a lot.
Julian 8:57 pm on February 22, 2013 Permalink
public void ThankYou(){
System.out.println(“Thank you!”);
ThankYou();
}