This content has been marked as final.
Show 6 replies
-
1. Re: Commenting out code in .xhtml?
dgalland Jan 6, 2010 4:33 PM (in response to boy18nj)Hello,
If you use facelets you must put
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
in your web.xml file. -
-
3. Re: Commenting out code in .xhtml?
nbelaevski Jan 7, 2010 10:09 AM (in response to boy18nj)There is a special <ui:remove> tag for this. -
4. Re: Commenting out code in .xhtml?
boy18nj Jan 7, 2010 4:21 PM (in response to nbelaevski)Hey Nick,
As now i am using
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
in web.xml file.And I have commented out the code in .xhtml using <!-- -->
Still I need to use the ui:remove tag ?
-
5. Re: Commenting out code in .xhtml?
nbelaevski Jan 9, 2010 4:33 AM (in response to boy18nj)You can use any of two solutions. ui:remove is a special tag for commenting parts of Facelets view source file. There are situations when you want comments to be rendered to the browser, so you'll use ui:remove then. -
6. Re: Commenting out code in .xhtml?
boy18nj Jan 9, 2010 5:35 PM (in response to nbelaevski)thanks Nick, very cool info. you rock.