public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {
@Override
protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
builder.addTagRuleBundle(new Sm2TagRuleBundle());
}
}
Via XML configuration in sitemesh3.xml:
<sitemesh>
<content-processor>
<tag-rule-bundle class="org.sitemesh.content.tagrules.html.Sm2TagRuleBundle" />
</content-processor>
<!-- Your mappings go here -->
<mapping ... />
</sitemesh>
Doing this allows you to use content tags like:
<content tag="heading"></content>
In the decorator/template page use a sitemesh:write
tag instead of sitemesh:getProperty
which doesn't exist anymore:
<sitemesh:write property="page.heading"/>
SEE orderCOnfim.jsp in 6.5.0-41-56