2 回答 2

2

万一其他人有这个问题 - 我弄乱了使用我为 XML 输出创建的相同函数渲染生成的页面的标题。

包括这个杀死它: handler.response.headers["Content-Type"] = "text/xml"

于 2010-03-03T05:19:02.873 回答
0

如果您使用 JSF2 和 XHTML facelets,您需要使用:

<f:view contentType="text/html">
   <!-- page with charts here -->
</f:view>
于 2011-06-04T17:41:26.043 回答