Description
For creating in-page scripts, MyFaces implementation use RsponceWriter.write() method with "<!-- " and "-->" strings. It not important in HTML_BASIC , but may produce troubles for creating XHTML output in future ( in most cases, all correct writed components can produce valid XHTML. ). For such reasons, more correct will be use ResponseWriter.writeComment method for scripts & styles. In implementation, single place for in-page script prodution - renderClearHiddenCommandFormParamsFunction in HtmlRendererUtils.
attached patch replace write to writeComment for this function.
Also, in Tomahawk components have many places for commented scripts & styles.