Invisible comments in jsf 2.0? [duplicate]
问题 This question already has an answer here : How can I remove HTML comments in my Facelets? (1 answer) Closed 5 years ago . is it possible to embed comments in my .xhtml-files that are only displayed in the source and not the rendered result? I want to include author, date,... in the files but they should not be visible to the enduser in the generated output. If I use the standard comment-tags <!-- --> the browser displays them. 回答1: Add the following into your web.xml : <context-param> <param