Type: New Feature
Affects Version/s: 2.1
Fix Version/s: None
Operating System: All
Currently, any <!-- --> comment is sent to the HTML output, if this parameter is
not set in faces-config.xml:
This is often done to avoid publishing comments that most of the time have for
audience the developers. However, if the choice is done to skip the comments,
all will be skipped, and you won't be able to send any public information you
would really like to see in comments, and more than that, special statements for
browser management (of the kind <!-- [IE7 ...] -->) won't reach the output.
Another way, if the facelets.SKIP_COMMENTS isn't used, is to surround each
internal comment with
<ui:remove><!-- My comment --></ui:remove>,
provided an initial declaration
is written at the beginning of the JSF xhtml file.
Whatever, choosing to edit the xml(s) files to add facelets.SKIP_COMMENTS or
surrounding internal comments with <ui:remove> +
xmlns:ui="http://java.sun.com/jsf/facelets", is clumsy.
Some kind of comment should be created
<%-- --%> or any other style, that would set an internal comment never published
in the HTML output.