I am using JSF 2.0 and have defined property javax.faces.FACELETS_SKIP_COMMENTS
to skip comments in JSF code because there is a lot of other code, deveploping comme
This is crude but it does work (under JSF 1.2 anyway not tested in 2)
<h:outputText value="<!--" escape="false" /> My comment <h:outputText value="-->" escape="false" />
Maybe you could use f:verbatim:
<f:verbatim><!--[if lt IE 7]>
Something just for lower than IE7
<![endif]--></f:verbatim>
Use <ui:remove>
to remove comments instead of the context parameter.
Based on @Juan's and @reevesy's ideas is this one:
<f:verbatim><!--
This is a happy HTML comment :)
--></f:verbatim>
Which will render:
<!--
This is a happy HTML comment :)
-->