I would like to remove all HTML comments from my facelets before delivering to end users. Does any standard approach exist?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are actually two ways:
To remove all comments, add this to
web.xml:or when you’re still on JSF 3.x/2.x:
or when you’re still on JSF 1.x which doesn’t use Facelets as default view technology yet:
To remove specific comments only, use
<ui:remove>.