Questions tagged [spring-thymeleaf]
289 questions
0
votes
1 answer
How to make nav bar common for all pages in thymeleaf
I am using thymeleaf for my front end design ,I create a nav bar and
I want this nav bar work for all pages, my Requirement is make one nav
bar and use this nav bar in every page ,with out define another nav
bar in separate page .
I create a nav…

JUMBOTURN
- 69
- 1
- 2
- 11
0
votes
1 answer
Select / Deselect All Checkboxes using jQuery in Thymeleaf
I am trying to add the function of selecting and deselecting all fields. What I have now doesn't work for me and I don't know why? Does anyone know why?
.....
…

Dev007
- 366
- 1
- 12
0
votes
1 answer
How to get Date input value from thymeleaf to MySQL in Spring Boot Application Java?
I want to get input value from Spring Boot Application thymeleaf(HTML) to MySQL Database in format Date.
But I get this error message :
"Failed to convert value of type 'java.lang.String' to required type 'java.sql.Date'".
This is my Controller path…

Yusuf Özkan
- 11
- 3
0
votes
0 answers
Thymeleaf not being applied in Spring boot application in IntelliJ community edition(using gradle)
I have been using spring boot + thymeleaf in IntelliJ community edition for probably over half a year now. I started a new project this month and everything works except thymeleaf. It does not say I am having issues or errors in Intellij but when I…
0
votes
1 answer
Thymeleaf: interpolate variables without tag
Using thymeleaf in spring boot project. Got a template with long texts and was wondering if it is possible to interpolate variables without using a tag. For example, instead of:
Foo bar long text

naimdjon
- 3,162
- 1
- 20
- 41
0
votes
1 answer
Using Thymeleaf to iterate cards then send value of selected card to model
I'm using thymeleaf to spit out cards for all of the objects in a list but I want the user to be able to click a button on one of these cards and then let my backend know which card (baseElement.name) has been selected by sending back the name of…

Chris MacIsaac
- 17
- 5
0
votes
1 answer
images are not comming up on user product page
when i add image on admin page for a product . it is uploading successfully and uploaded image is reflected (saves) on correct folder
But when i run user portal and sees products . The product images are not showing up
@RequestMapping(value =…

Raios Sharon Ken
- 3
- 2
0
votes
1 answer
Eclipse won't save html file with dynamic charset
I'm using Thymeleaf template engine, and want to get the charset attribute value for the meta tag on the head block from my project properties, i.e :
But when I want to save my html…

Otmane
- 3
- 3
0
votes
2 answers
Dynamically replacing values in JSON response with Spring Boot and Thymeleaf
Using Spring Boot I'd like to implement a mock service for an external API. As this mock is only used for testing, I'd like to keep things as simple as possible. The external API returns a JSON similar to this one:
{
"customer": {
"email":…

Robert Strauch
- 12,055
- 24
- 120
- 192
-1
votes
0 answers
The th:if = ${object != null} is not rendering even though the condition is true
Thymeleaf th:if object!= conditon not redering html.
My HTML template
Login
-1
votes
0 answers
i am getting an error i think my intellij is messed up in configuration
error message
my database class
i expected to run my spring boot app but there is an error message Field jdbcTemplate in com.example.jashmansingha3.database.ContactDatabase required a bean of type…

jashman
- 1
- 1
-1
votes
1 answer
How do I fix a 404 error when displaying images with Spring Boot and Thymeleaf?
I have an object call product, inside of this i have an atribute call img, where i have the name of the img for example "gtav.jpg"
please click the links to see the images
Also there is my repository:…

Sasaki Haise
- 1
- 1
-1
votes
1 answer
CSRF token not provided with spring boot 2.7.1
I was using version 2.6.x of spring boot with success.
I've switched to 2.7.1. and adapted some of my security config to match the new format.
But now the CSRF token are no longer generated for me and injected in my login form, maybe the same with…

benzen
- 6,204
- 4
- 25
- 37
-1
votes
1 answer
Spring thymeleaf TemplateEngine Getting error Template engine has already been initialized when creating a pdf the second time
When i create a pdf from this html file everything works perfectly the first time and creates the pdf to my local machine. But when i create it again it returns this error "Template engine has already been initialized (probably because it has…

Khutso
- 3
- 2
-1
votes
1 answer
How to submit a hidden string in a form with Spring Boot and Thymeleaf?
I want to send a string from an HTML form to a Spring Boot controller but I would like this string not to be visible to the client. I would like to use the hidden field but something is not working and I don't understand where I'm wrong. In the code…

Federico Galimberti
- 185
- 1
- 3
- 11