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 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14