This content has been marked as final.
Show 3 replies
-
1. Re: How to put java comments in facelet (xhtml)?
fup Aug 16, 2009 11:50 AM (in response to bharathiya)You can force facelets to ignore <!-- --> comments by adding the following text to web.xml file:
<context-param><param-name>facelets.SKIP_COMMENTS</param-name><param-value>true</param-value></context-param>
(I'm not sure, if that is what you're looking for?)
-
2. Re: How to put java comments in facelet (xhtml)?
amitev Aug 16, 2009 11:50 PM (in response to bharathiya)The other way is to nest the components inside ui:remove.
-
3. Re: How to put java comments in facelet (xhtml)?
hosamaly Aug 26, 2009 5:43 PM (in response to bharathiya)You can use <ui:remove> along with HTML/XML comments as follows:
<ui:remove><!-- <tags you want to remove/> --!></ui:remove>
This way you get the behavior you want while still allowing your editor to highlight this section of code as commented. This way you don't need to alter your web.xml file nor add the context parameter.