How can I get pretty-formatted HTML output from Myfaces?
The JTidy project provides a Servlet Filter that reformats response messages before they are sent out. The Mozilla Firefox web browser has an optional extension ” View Formatted Source” which allows developers to see source correctly formatted without any changes at the server end. In some versions of MyFaces there is a context param “org.apache.myfaces.PRETTY_HTML” that can be specified in the web.xml to enable pretty output. However this option was never well supported as it requires support from every renderer in order to work. This feature may be removed from future versions of MyFaces.