JSF Tip #53 - Adding ui:debug for debugging when running in Development mode

To make it possible to debug the view tree the JSF runtime has a debug component (ui:debug) that you can use. What is the best way to do this?

Add the ui:debug component to the bottom of your page and activate it only in Development mode. This makes it available when the application needs to be debugged, but it does not put a burden on a Production application.

    <ui:debug rendered="#{facesContext.application.projectStage eq 'Development'}"/>

Posted December 6, 2013