You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is just a question or an issue, but I'm trying to prevent ajax content from being decorated. I was hoping to only decorate when the Accept header is in a specific list of values (such as "text/html"). It looks like Page Parsers and Mappers would work for SiteMesh2, but I don't find those in SiteMesh3, and the roadmap seems to show those as in-the-works.
Can anyone tell me if there is an alternative, or a way to get the equivalent of Page Parser and Mappers?
Thanks for your help.
The text was updated successfully, but these errors were encountered:
It is based on the Content-Type of response instead of the "Accept" request header. I think it is reasonable. So I think it's not a problem.
Related code is in HttpServletResponseBuffer.java
I was able to fix this by using an exclude path. The format is different between SiteMesh2 and SiteMesh3, here is what I used.
<sitemesh>
<mappingpath="/*"decorator="/WEB-INF/decorators/default.jsp"/>
<!-- Paths to be excluded from decorating -->
<mappingpath="*/path/to/exclude*"exclue="true"/>
</sitemesh>
Not sure if this is just a question or an issue, but I'm trying to prevent ajax content from being decorated. I was hoping to only decorate when the Accept header is in a specific list of values (such as "text/html"). It looks like Page Parsers and Mappers would work for SiteMesh2, but I don't find those in SiteMesh3, and the roadmap seems to show those as in-the-works.
Can anyone tell me if there is an alternative, or a way to get the equivalent of Page Parser and Mappers?
Thanks for your help.
The text was updated successfully, but these errors were encountered: