Porting Dueuno Elements to Grails 7.0.0-M1. Strang...
# questions
g
Porting Dueuno Elements to Grails 7.0.0-M1. Strange behaviour, the first page loads OK, when I do a forced browser refresh the page is not completely loaded, only the
<head>
section is loaded (?!) The same code is working in Grails 6.2. I am not sure how to debug the thing, any hint is very welcome.
j
Are you using layout by convention? It was removed from grails 7 when we switched to sitemesh3
j
I think the sitemesh3 plugin has been migrated into the grails-gsp repo but there is an open issue in the old repo that is relevant (https://github.com/codeconsole/grails-plugin-sitemesh3/issues/3).
j
Yes, I haven't migrated any issues yet. There are a few in grails-core that are relevant against the M1 too
👍 1
g
@jdaugherty nope, we're using the following code to render any component:
Copy code
return [
        template: component.view,
        model: component.model,
]
That goes straight to the
render()
method
j
@giangio Do you have debug logging turned on to see if an exception is being suppressed? Also, Sitemesh works by setting up parameters in the request to determine which layout to load. You can look in grails-gsp at the sitemesh project for where to set debug breakpoints. Alternatively to debugging, I would start with a starter app and layer in functionality until you find whats causing it - if its not happening in the starter app maybe it can help you find whats causing it?
g
@jdaugherty thank you for the hints 👍
👍 1
@jdaugherty Just to let you know, I have no idea what I've done, but it's working now 🎉
👀 1