Skip to main content

Questions tagged [thymeleaf]

Thymeleaf is an XML/XHTML/HTML5 template engine (extensible to other formats) that can work both in web and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of web applications, it can process any XML file even in offline environments. It provides an optional module for integration with Spring MVC, so that you can use it as a complete substitute of JSP in your applications made with this technology, even with HTML5.

-2 votes
1 answer
46 views

There was an unexpected error (type=Internal Server Error, status=500). An error happened during template parsing [closed]

I was basically making a E-commerce project using spring boot, thymleaf, html, css. And I am getting and server error while parsing the thymeleaf template which is There was an unexpected error (type=...
Akshat Singh's user avatar
0 votes
0 answers
28 views

How to get radio th:field value in back-end (binding Thymeleaf)

<input type="radio" th:field="*{questoes[__${iter.index}__].respostaCorreta}" th:value="${alternativa.texto}"> I'm working on a project using Thymeleaf and ...
Arthur's user avatar
  • 1
0 votes
1 answer
20 views

Is there a way to inject CSS properties inline with Thymeleaf?

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
39 views

Static resources are not loaded with Spring Security [duplicate]

I have a custom authentication mechanism for my app. I have token authentication for /api/** endpoints and login form for /manager/** and /viewer/**. I have @RestController for api and @Contoller web ...
makeussrgreatagain's user avatar
0 votes
1 answer
40 views

How to display a Java variable onto ThymeLeaf HTML using the span tag?

I'm currently writing a project that incorporates the use of ThymeLeaf HTML for the frontend and Java for the backend. I'm trying to display a variable from one of my Java controller classes onto my ...
Battlecode222's user avatar
0 votes
0 answers
33 views

JS script work in one of Thymeleaf template but doesn't in other

I'm developing a Spring Boot aplication with Thymeleaf, and in a Controller I have two GetMappings with differents url's routes returning the same template. @Controller @RequestMapping("/detalhes&...
Mateus de Assis's user avatar
0 votes
0 answers
14 views

Spring WebFlux and Thymeleaf do not seen to be properly working together

I have a REST API developed in Java using Spring WebFlux, and I want to add a simple web interface (login and registration form), so that when you log in you get a Java Web Token, which allows you to ...
manucano8's user avatar
0 votes
1 answer
61 views

how to make Spring security allow access to enter home page without login?

I set up spring mvs project and added spring security, i want everyone see home page without login. here is my security configuration: package uz.smartup.academy.bloggingplatform.config; import org....
abdullakh mirfayziev's user avatar
0 votes
1 answer
27 views

JavaScript is not working when Thymeleaf th:field attribute is added

I am trying to add dollar signs to multiple fields using an event listener. However, attribute th:field will replace attributes value and name in the input tag. I know the function is working because ...
Ali's user avatar
  • 23
0 votes
2 answers
40 views

spring @joinColumn object not passing in html to controller

I,m noob in coding. I coding based spring pet clinic. now not passing object <div th:replace="~{::caller-select('사이트', 'hstry_site', ${historySites})}"></div> <div th:replace=&...
noob_kr_computer's user avatar
0 votes
0 answers
34 views

controller class annotated with @RequestMapping doesn't allow you to have a method annotated with @PostMapping inside it

I have a controller class StudentController annotated with @RequestMapping("/students") @RequestMapping("/students") @Controller public class StudentController {} inside this ...
Amy's user avatar
  • 3
1 vote
1 answer
55 views

Thymeleaf about th:block statement

I'm trying to use th:block to make table more specific to analyze my data.. i was trying <table> <thead> <tr> <th>something</tr> <th>...
StevePark's user avatar
  • 135
-1 votes
0 answers
46 views

Getting Error "This application has no explicit mapping for /error, so you are seeing this as a fallback. (type=Internal Server Error, status=500). "

Getting this error : Exception processing template "index": Exception evaluating SpringEL expression: "bookingForm.name" (template: "index" - line 139, col 29) org....
TuShar ThAkre's user avatar
2 votes
1 answer
50 views

Cannot convert value of type String to required type PersonDTO for property 'person'

I have a class named Tabel that has an person. The classes Tabel and Person have a one-to-many relationship. @Entity @Data @Builder @AllArgsConstructor @NoArgsConstructor @Table(name = "tabel&...
Сяргей Пяшэвіч's user avatar
0 votes
0 answers
32 views

Thymeleaf not finding my html file despite being where it should be

I'm using Spring Boot w/ Gradle for a simple login page. But it can't find my login.html in resources>templates folder. I have looked at other similar questions but their solutions haven't worked ...
Laura Ferry's user avatar

15 30 50 per page
1
2 3 4 5
621