user1285928
user1285928

Reputation: 1476

Comments in JSF pages and configuration files after compilation

I'm interested when I compile JSF page in Netbeans what happens with the comments into the JSF pages and the faces-config.xml file? Are they preserved or they are deleted by the compiler. If they are preserved can I delete them somehow? I know that comments in java beans code are deleted by the compiler but I'm not sure about the JSF pages.

Upvotes: 0

Views: 607

Answers (1)

Matt Handy
Matt Handy

Reputation: 30025

For JSF pages you can use the following context parameter in web.xml:

<context-param>
    <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
    <param-value>true</param-value>
</context-param>

The config files are not processed.

Upvotes: 6

Related Questions