Page 1 of 1

How to use comments in JSF 2.0

PostPosted: Wed Nov 07, 2012 1:24 pm
by haretu
How to use comments in JSF 2.0
Method 1 add following code in web.xml
Code: Select all

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


Method 2

use the “ui:remove” tag around the content you want to remove.

Code: Select all
<ui:remove>
         <h:commandButton type="button"
          value="#{msg.buttonLabel}" />
        </ui:remove>