ui:removeOne of the common things during development is to comment code in the Facelets files. But, if using the XML comment characters
<-- -->these markup will be rendered in the generated markup as a commented code, leaking some information to public that may not be noticed by developers. For avoiding these issues, you can use ui:remove nesting all those markup you want to be ignored completely.
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> <ui:remove> <!-- THIS PART WILL NOT SHOW IN THE MARKUP --> </ui:remove> </ui:composition>
Liferay Faces Bridge Implementation 5.0.0 + Liferay Faces Portal 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20