Formatted HTML with Project Stage

UI Components for JSF
Post Reply
User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

08 Jul 2011, 17:35

It would be really nice if PrimeFaces component renderers output formatted HTML (indention and line breaks) when the project stage was not Production.

Currently the ouput of PrimeFaces renderers are pretty ugly. Some components indent HTML, others don't. Looking at the source of a webpage generated by PrimeFaces is pretty much a hot mess.

When the project stage is Production then it makes sense to exclude all unnecessary whitespace and make the file as small as possible for performance reasons. When developing and debugging it is helpful if the generated HTML source code is easy to read.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests