How to use comments in JSF 2.0

How to use comments in JSF 2.0

Postby haretu » Wed Nov 07, 2012 1:24 pm

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>

haretu
 
Posts: 132
Joined: Sat Jan 08, 2011 9:56 pm

Return to JAVA

Who is online

Users browsing this forum: No registered users and 1 guest

cron