My Oracle Support Banner

HTML Comment in JSF Templates is Partially Incorrectly Encoded (HTML special characters) (Doc ID 1564248.1)

Last updated on OCTOBER 28, 2019

Applies to:

Oracle Exalogic Elastic Cloud Software - Version to
Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


You have migrated a JSF Web Application module from Websphere to Weblogic. There is an issue when having comments with special characters in a xhtml template (for example, a conditional comment for Internet Explorer). The special characters are partially replaced by an html encoded eqivalent (for example < instead of <).

The application works, but the partial comment of the <head> element is shown in the browser (Internet Explorer 9 on Windows 7).

Summary: With the implementation of JSF, when the xhtml is implemented with the conditional comments, the commented html tags is seen in .xhtml page as shown below:


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.