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
This isn't a "bug" with this tutorial per-se, but rather a gotcha that I was trying to solve which led me to this tutorial in an effort to figure out what I was doing wrong. If this should not be recorded here, please suggest another place to put it.
Problem: Certain Thymeleaf expressions seem to cause the page to only partially load. Solution: Add the following to the application configuration (ie: application.properties") spring.thymeleaf.servlet.produce-partial-output-while-processing=false
In my case, my template was taking advantage of the th:replace and th:insert attributes.
When I inspected the page in the browser, I had the HTML tags and the HEAD tags, but the headTagFragment would only be partially rendered, and the degree of rendering was random.
The error messaging indicated a problem with the th:action in my form tag. This sent me down a rabbit hole looking for why the /contact endpoint could not be found.
When I removed the th:action the page would load (but of course, it would not have anywhere to submit to).
If I commented out my navigation fragment, the page would load (but it would not look as designed).
Setting the produce-partial-output-while-processing to false, forced the page to be fully created before rendering in the browser. That seems to have been key.
The text was updated successfully, but these errors were encountered:
This isn't a "bug" with this tutorial per-se, but rather a gotcha that I was trying to solve which led me to this tutorial in an effort to figure out what I was doing wrong. If this should not be recorded here, please suggest another place to put it.
Problem: Certain Thymeleaf expressions seem to cause the page to only partially load.
Solution: Add the following to the application configuration (ie: application.properties")
spring.thymeleaf.servlet.produce-partial-output-while-processing=false
In my case, my template was taking advantage of the
th:replace
andth:insert
attributes.Experience:
HTML
tags and theHEAD
tags, but theheadTagFragment
would only be partially rendered, and the degree of rendering was random.th:action
in my form tag. This sent me down a rabbit hole looking for why the/contact
endpoint could not be found.th:action
the page would load (but of course, it would not have anywhere to submit to).navigation
fragment, the page would load (but it would not look as designed).Setting the
produce-partial-output-while-processing
tofalse
, forced the page to be fully created before rendering in the browser. That seems to have been key.The text was updated successfully, but these errors were encountered: