I have created a Roo Sitemesh addon that works out of the box with the existing generated pages.
The only problem I am having is that because the pages are jspx and rendered directly, Tomcat renders the pages as text/xml.
I need the following jsp:directive:
<jsp:directive.page contentType="text/html;charset=UTF-8" />
in all jspx pages.
I would suggest placing this above the
<jsp:output omit-xml-declaration="yes" />
tag that is already in every jspx page.
Adding the directive to all jspx pages will have no impact on the existing Tiles application.
This problem does not happen with Tiles because this directive is already in the default.jspx layout which is compositely rendered.
Sitemesh uses the decorator pattern and because the pages have already been rendered with the content type set, I can not change the content type in the decorator.