Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Aug 15, 2023
1 parent 95361ef commit c8f51a4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package org.grails.plugins.web.taglib

import com.opensymphony.module.sitemesh.*
import com.opensymphony.module.sitemesh.parser.AbstractHTMLPage
import grails.artefact.TagLibrary
import grails.core.GrailsApplication
import grails.core.support.GrailsApplicationAware
Expand Down Expand Up @@ -121,7 +120,7 @@ class RenderTagLib implements RequestConstants, TagLibrary, GrailsApplicationAwa
content = bodyClosure()
}
if (content instanceof StreamCharBuffer) {
gspSiteMeshPage.setPageBuffer(content)
gspSiteMeshPage.setPageBuffer((StreamCharBuffer) content)
gspSiteMeshPage.setUsed(isSitemeshPreprocessMode())
}
else if (content != null) {
Expand Down Expand Up @@ -284,7 +283,7 @@ class RenderTagLib implements RequestConstants, TagLibrary, GrailsApplicationAwa
def propertyValue = null
if (htmlPage instanceof GSPSitemeshPage) {
// check if there is an component content buffer
propertyValue = htmlPage.getContentBuffer(propertyName)
propertyValue = ((GSPSitemeshPage) htmlPage).getContentBuffer(propertyName)
}

if (!propertyValue) {
Expand Down

0 comments on commit c8f51a4

Please sign in to comment.