Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
72 views

I am using Java Spring boot and Thymeleaf. When trying to login with bad credentials, the page freezes for a few minutes, and it says the page isn't working. When I activate debug in application....
Tecco Temtsa's user avatar
3 votes
1 answer
57 views

What's wrong with coding this: <a th:href="'/view/'+${id}">Link Text</a> instead of this: <a th:href="@{/view/{id}(id=${id})}">Link Text</a> Or if the ...
Pestro's user avatar
  • 105
0 votes
1 answer
75 views

I'm trying to centralize my Spring Model attribute names in a ModelConstants class for better refactoring safety, but I'm encountering persistent issues when trying to use these constants with th:...
zetbo's user avatar
  • 78
0 votes
1 answer
40 views

I have an app already written and similarly to this post: How to Load templates from external folder using Thymeleaf I have the need to overwrite templates, in my case I don't care about redeploying ...
Gunfus's user avatar
  • 3
0 votes
0 answers
45 views

I have this template: <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" th:lang="${#locale != null ? #locale.language : 'en'}" lang="en"> <head> ...
Nunyet Calçada's user avatar
0 votes
0 answers
72 views

I have a file named footerScripts.html: <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" lang="en"> <body> <div th:fragment="common-scripts"&...
Nunyet Calçada's user avatar
1 vote
0 answers
56 views

I have this template: <head> <meta charset="utf-8"/> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <meta ...
Nunyet Calçada's user avatar
1 vote
1 answer
218 views

I am trying to get htmx-spring-boot and htmx-spring-boot-thymeleaf 4.0.1 to work with my spring-boot 3.3.3 app. I have filter and search inputs that I send via htmx to define a list of items. Since ...
Steve Maring's user avatar
0 votes
0 answers
13 views

I keep getting lost on thymeleaf syntax so I'm pretty sure that the problem I'm facing is easily solved by a more focused mind than mine :) anyway I would like to ask what you think could be the best ...
Luchetti's user avatar
0 votes
0 answers
13 views

I try to use custom dialect in thymeleaf, in order to dynamically add extra informations display in included fragments when context conditions are met. I would like to insert a div with a th:replace ...
sssimon's user avatar
  • 103
0 votes
0 answers
27 views

I have a spring boot application that produces pdf from html template generated by SpringTemplateEngine and thymeleaf. The pdf is produced using com.openhtmltopdf.pdfboxout.PdfRendererBuilder My issue ...
sticky_elbows's user avatar
1 vote
0 answers
34 views

In a Spring application I am using Thymleaf as a template. Errors are not displayed on the page <form method="post" th:action="@{/add-client}" th:object="${clientRequestDto}...
MPF PMF's user avatar
  • 11
1 vote
1 answer
61 views

i tried to delete the last item from the cart. For all the previous item, the @GetMapping("remove-song-from-cart") work and return me to the cart page again but when hit the delete button of ...
Tuong Nguyen's user avatar
1 vote
0 answers
36 views

I am trying to use the sec: tag to display fields from UserInfo in Spring Boot (3.3.5). I've included the dependency for thymeleaf-extras-springsecurity6 and the xmlns:sec. This works: <div ...
Jeff E Mandel's user avatar
1 vote
1 answer
103 views

This is my spring-boot(3.3.5)/thymeleaf application pom.xml deps: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</...
TiCL's user avatar
  • 155
0 votes
1 answer
201 views

I am following a tutorial and everything seems to work for the author but not for me. The purpose of the use case is to add a new category (id, name, image and a boolean value). Category entity: @...
Gothiquo's user avatar
  • 868
1 vote
1 answer
39 views

I have this form: <body> <h1>Fill out the form</h1> <form action="@{/submit}" method="post" th:object="${person}"> <span th:if="${#...
Nunyet Calçada's user avatar
0 votes
0 answers
87 views

In my thymeleaf template there is a form in which there is a radio button. Looks like thymeleaf automatically gives a name to input name attribute. This is the code: <div> <table th:each=&...
user avatar
0 votes
1 answer
139 views

I need to do the following <tr th:fragment="rowFragment(rowObject)"> <td th:each="cellObject : ${rowObject.getCellObjects()}" th:replace="~{::cellFragment(...
Tom M's user avatar
  • 35
2 votes
0 answers
216 views

I'm trying use Thymleaf template to display html page that looks like this: <html> <body> <my-webcomponent data='{"foo":"bar"}' ></my-webcomponent> &...
somebody's user avatar
-1 votes
1 answer
61 views

Im structuring an email in the backend with Spring and Thymeleaf, and i have come across the following problem: I need to inject a color hex code as a CSS property while using inline CSS. <span ...
Ramiro Moya Isnaldi's user avatar
0 votes
1 answer
474 views

I'm migrating vom Spring5 to SpringBoot3. Unfortunately (beside tons of other problems with e.g. spring security 6), spring boot does not log the problems and stacktraces, but keeps quiet. e.g.: To ...
Rick H's user avatar
  • 47
1 vote
0 answers
34 views

I like the principle of DRY (Don't repeat yourself) in coding. And while I continue to learn thymeleaf, I am running into this error I am unable to resolve. So the general idea is as follows, I want ...
Tom M's user avatar
  • 35
0 votes
0 answers
57 views

UserController.java: @Controller public class UserController { @Autowired private CensusRepository UR; @GetMapping("/") public String home(Model model){ ...
sttipid's user avatar
0 votes
1 answer
150 views

I have e.g. a custom JSP tag library files (tagx files) and want to know what would the equivalent for Thymeleaf? I'm using Thymeleaf with Spring. My label.tagx: <jsp:root xmlns:c="jakarta....
user871611's user avatar
  • 3,472

1
2 3 4 5
7