Usually, when you enter standard <!-- ... --> html comments in your XHTML definition for a Facelets view, these comments are rendered by Facelets, so they are included in the resulting HTML. Even EL contained in these comments is executed!

In most cases, this is not what you hope to see, because if you want to make real comments, you have to use the <ui:remove> tag, which is not really comfortable.

But there is a trick to tell Facelets not to render comments. Simply add the following lines to your web.xml:

<!–do not render comments –>

Improve Eclipse for JSF and Facelets development
RichFaces: rich:modalPanel with rich:componentControl doesn’t show data
Jazoon 08 (Java Conference in Zurich) - Ajax Push

Are you interested in reading more from CodingClues?
Then subscribe to new postings via RSS or via E-Mail.

close Reblog this comment
blog comments powered by Disqus