Skip to main content

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

Posted by mriem on December 9, 2013 at 7:52 PM PST

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'}"/>

And that is it!

Enjoy!

Related Topics >>