Commenting in JSF 2.0 looks just like commenting in HTML, so you need to write something like this: <!-- this is the comment -->. By default, Facelets xml parser will include your comment in a generated HTML file, so for a file like the one below:
Facelets xml parser would generate the following output:
If you don't want to include comments in a generated HTML file, you need to add the following context-param node to your web.xml file:
With javax.faces.FACELETS_SKIP_COMMENTS, the generated file looks like that:
Showing posts with label Facelets Code comment. Show all posts
Showing posts with label Facelets Code comment. Show all posts
Subscribe to:
Posts (Atom)