ui:remove

One 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.

General Usage

Source Code

  1. <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
  2.  
  3. <ui:remove>
  4. <!-- THIS PART WILL NOT SHOW IN THE MARKUP -->
  5. </ui:remove>
  6.  
  7. </ui:composition>
Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20