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.

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, but 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.

Unlike JSP, Thymeleaf is a natural template engine meaning that the file could be directly opened in browsers without having to run the application.

The main goal of Thymeleaf is to provide an elegant and well-formed way of creating templates, allowing to use them also as static prototypes.

Its architecture allows a fast processing of templates, relying on intelligent caching of parsed files in order to use the least possible amount of I/O operations during execution.

Thymeleaf is a Java library.

Additional Thymeleaf Resources:

Resources for Spring Integration:

9206 questions
2
votes
1 answer

Display object and list of object

I use spring boot with thymeleaf 3 I try to display a bean In my controller I have public String getNewCarsTemplate(Model model) { model.addAttribute("cars", new Cars()); } In cars I have @OneToOne private Cities cities; // field id and…
robert trudel
  • 5,283
  • 17
  • 72
  • 124
2
votes
1 answer

how to use thymeleaf replace text in html

how to use thymeleaf replace text in html i have tried then get result Menu
BeerBubble
  • 43
  • 1
  • 6
2
votes
1 answer

Transfer data in Thymeleaf

I have two input value like this ------------ okay so how can i put the value of item.id field into…
2
votes
1 answer

What is the best way to update user data spring boot?

I am not able to succeed in doing correct way to update a user data like his firstname or lastname Controller: @Controller public class UpdateUserData { @Autowired private UserService userService; @RequestMapping(value =…
msf6012
  • 119
  • 2
  • 13
2
votes
1 answer

Thymeleaf 3 #request object is null in inline Javascript

I have below code in a web page in Spring Boot 2 web app:
blah