New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
layout:decorator can be work when the value is "layout",but not work with "folder/layout" #112
Comments
Hi @layabout, the exception you've come across is similar to one found by others in the big 'upgrading to support Thymeleaf 3' issue over here (#68) in that the layout dialect is trying to execute The devs there have found that surrounding it with Some background: the value that goes into So for now you can use the temporary fix, but just know that in future that it might stop working if I implement backwards compatibility for fragment expressions, or explicitly require the new Thymeleaf 3 fragment expressions, or both. |
Wow Thanks, That's Very Helpful! |
I am trying to migrate old projocet from thymeleaf2.1 to thymeleaf3, I have templateAlias, which was registered to SpringTemplateEngine, like: I have my html, lets extra/common/dashboard.html, where the layout:decorator is placed, like:
before migration, everything works fine, but now and I am getting error like this:
|
I've ended-up introducing a little backwards compatibility code, just like Thymeleaf has done, for anything that accepts a fragment expression (eg: any one of the |
I use the latest thymeleaf-layout-dialect version for thymeleaf3.0 compiled. When i put the base layout file in base root , It will be work well. Then i create a folder, move it in, create a new file base on the layout template,change layout:decorator="layout" to layout:decorator="folder/layout", so i found it not work any more... the excepiton is :
Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "folder/layout" (template: "folder/layout" - line 2, col 64)
it looks like missing the html suffix. so would you help me please? thanks a lot!
The text was updated successfully, but these errors were encountered: