jsf Comments in JSF

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


JSF as a markup language, supports comments of some parts of code, but we have be carefully, because if we use a normal HTML comment code like this: <!-- I want to comment the next button --> <!-- <h:commandButton value="Push" onclick="alert('Hello');" /> --> It's possible that it doesn't has commented anything. This is because JSF process this code as default, even if is commented between tags <!-- and -->. There are two solutions to comment any JSF code


  • <ui:remove> JSF code that you want to comment </ui:remove>


You can find more information at Oracle documentation:

Got any jsf Question?