Most voted "thymeleaf" questions
Thymeleaf is a templates system for Java that runs on the server side as well as client side and in independent environments.
Learn more…89 questions
Sort by count of
-
0
votes1
answer65
viewsCreation of Formulars
My problem is this: I have a class for example client she via own name, surname and Cpf and a list of objects of the address class. The address class will only have the field patio and city. My…
-
0
votes2
answers594
viewsThymeleaf - Spring boot - Empty validation
I have this code that already works: <span class="label" th:classappend="${usuario.ativo ? 'label-success' : 'label-danger'}"> </span></td> but now I want the following: <span…
-
0
votes1
answer108
viewsThymeleaf hide button
I have a single modal which I call in two pages. I want the button ALTERAR CLIENTE appears in the modal of page "A" and on page "B" this button disappears. Like I said it’s the same modal for two…
-
0
votes1
answer244
viewsPersistence with Spring and Thymeleaf in multiple tables in the same form
I have another vision How can I pass two objects in Modelandview, so that when calling a request to save I can do this object distribution for each Entyti. I have Entyti Client and Contact, in the…
-
0
votes1
answer507
viewsJava spring + Thymeleaf showing "Whitelabel Error Page"
I am following a tutorial, however when starting my application it does not open the index page but an error page: Someone could help me? Application start class: package com.userFront; import…
-
0
votes1
answer691
viewsThymeleaf does not display date in HTML5 component
Hello! I’m starting to study Hymeleaf with Spring MVC and I came across a problem that I can’t solve. I have a date field with the component type="date" HTML5 in a form, which works 100% when…
-
0
votes2
answers398
viewsImages sent as an attachment in e-mail with Thymeleaf
Hello, I’m sending a dynamic email template using Thymeleaf. The email is displayed correctly with the images, however, the images are also being attached in the body of the email, which should not…
-
0
votes1
answer1656
viewsimg no trim using Thymeleaf, spring boot (with Maven)
The image I want to add is in the following directory: /src/main/resources/static/images/logo.png And the HTML tag looks like this: <img width="220px" height="70px"…
-
0
votes1
answer96
viewsEureka + Zuul + micro services + Thymeleaf - Problem loading webjars
I am creating a system based on micro service architecture with the following flow. Eureka door(8888) Zuul door(8080) stu_usuario (8081) /Usuario/** stu_vehicle (8082) /Vehicle/** From what I…
-
0
votes2
answers1179
viewsHow to make the Spring MVC Responseentity return in a new page?
I have a method of a report controller (posted below), to which I return a PDF. The problem is that it returns the pdf in the same application tab and this is killing it. How can I return in a new…
-
0
votes1
answer55
viewsauto-populated form with the remaining data from one of the selected fields
I wanted to have a dynamic form where the only thing asked is the selection of a user u from a list of users passed to the model from a controller, the email and status fields should be…
-
0
votes1
answer205
viewsSpring Boot filled list has no values returned on the screen
The following method in my Controller is responsible for returning all values from a database table. @RequestMapping("pesquisaTaxa") public String pesquisaTaxa(@RequestParam Map<String,…
-
0
votes1
answer192
viewsCreation and editing in the Spring Framework
I recently started to learn Spring, along with the Thymeleaf template engine for data display. However, I have been facing some problems that I cannot solve: When editing the Star Wars Movie entity,…
-
0
votes1
answer495
viewsHow to generate a dynamic link within a condition in Thymeleaf?
I would like to know how I can generate a link within a condition in Thymeleaf. In my situation, if the condition is not satisfied, I wanted to create a link that would direct to a new form, in…
-
0
votes1
answer181
viewsHow to use a var counter in Thymeleaf?
Can I create a counter variable in Thymeleaf? I need an incremental variable to pass as a tag ID in HTML. I have the following loops, where each loop will be iterated x different times, so I can’t…
-
0
votes1
answer108
viewsReceive a Localdatetime from an html form
Problem : I am trying to receive a Localdatetime of this input within a @Controller using a <form> using the Thymeleaf. <input class="form-control" id="dueDate" type="datetime-local"…
-
0
votes1
answer69
viewsHow to make a "part"/line of the <tbody> be static in a responsive table?
Hello. I am using tablesort to sort my table every click I one of your headers. The problem is that the line "Total" <tr class="bg-info"> <th colspan="1">TOTAL:</th> ...…
-
0
votes1
answer232
viewsWhat does the addViewControllers method of the Webmvcconfigurer Spring boot class do?
I am using Thymeleaf on the front end of the application and have the following configuration class, with the addViewControllers method in question : @Configuration public class WebConfig implements…
-
0
votes1
answer323
views2 form on the same page with Spring mvc, Thymeleaf, anyone know how?
This Physician registration screen, then I created this modal for the user to register specialties. @GetMapping("/cadastro") public ModelAndView preSalvar(@ModelAttribute("medico") Medico…
-
0
votes2
answers520
viewsSelect List Item by "ID" using Thymeleaf and direct to another detail page
I’m trying to build an application using Springboot, Hibernate and Thymeleaf. I would like to take the "id" of the selected service in the list using Thymeleaf, search this service in the database…
-
0
votes0
answers45
viewsHow to return a message "'No document type registered" when nothing returns from the database
I would like to know how I put in Thymeleaf for when I find nothing in the bank I return a personalized message on the web page "No document registered". Document Type Types of Documents Add <div…
-
0
votes1
answer91
viewsHow to start two equal services in Tomcat, but with different Final Ames
Basically I have a service running on Tomcat, I would like to upload a copy of it with another final name in Tomcat. The problem is that there is some limiter that is not the end that prevents me…
-
0
votes3
answers229
viewsUpload with Thymeleaf
Good afternoon, you guys, I am with a difficulty, I am developing a simple system, it reads a csv file and imports to a database, I risked using Thymeleaf, I found some tutorials but I could not…
-
0
votes0
answers133
viewsHow to use th:each to combine rows with columns?
I need to upload a list of recipes to my website so that it gets 3 recipes per line (Row). I am using th:each to display the recipes. Follows the code: <div th:each="receita : ${receitas}">…
thymeleafasked 5 years, 2 months ago guilhermedjc 169 -
0
votes0
answers66
viewsRequired Parameter is not present in Spring MVC design with spring boot using Thymeleaf
I am generating a form in the html code of my project and using Thymeleaf to create it. Some form fields are input type because the user needs to enter it, others are select type because there is…
-
0
votes0
answers45
viewsHow to upload Manytoone entity relationship and save to database?
How do I upload (Multipartfile) with Manytoone relationship, in my case I want to upload image in a Call(Entity). Follow the code below: @Entity @DynamicUpdate public class FileInfo { @Id…
-
0
votes1
answer65
views@Restcontroller returns to same page but with different URL
I’m using @Restcontroller to manage different Forms/actions on the same page (with Thymeleaf), and it’s working properly, but when calling method (triggered via button on page) when returning to the…
-
0
votes0
answers226
viewsSpring - class path Resource cannot be opened because it does not exist
I’m trying to upload a simple HTML page on Tomcat with spring and Thymeleaf, but when access gives the error: An error happened During template Parsing (template: "class path Resource ..…
-
0
votes1
answer368
viewsSpring Boot + JPA + Websecurity - How to save User + Profile?
Hello, it’s been a few days that I’m breaking my head to be able to register a user and its role. The information should be recorded in different entities and I can’t make that relationship. I can…
-
0
votes2
answers263
viewsFailed to convert value from property of type 'java.lang.String'
I am trying to submit a form that in one of the classes there is a relationship, I would like to know how to do this, because every time I try to submit I get the error of "Failed to Convert…
-
-1
votes1
answer351
viewsDelete database record with ajax+spring boot+Thymeleaf
Good afternoon! I am trying to delete an item in my view, which is in a bootstrap table. I am using Thymeleaf + bootstrapna frontend. The idea is to take the id and move to a modal window of the…
-
-1
votes1
answer256
viewsTake data from a dynamic table to write to the database
Good night, you guys. I’m having a hard time how to get the data from a dynamic table and record this information in the database. The idea is this, it’s a system for controlling drivers' working…
-
-1
votes1
answer851
viewsError adding students to a class 'The Given id must not be null! '
When I click on Include student appears this error but I do not understand why, someone to give me a light, thank you. Console error java.lang.Illegalargumentexception: The Given id must not be…
-
-1
votes1
answer196
viewsProblem displaying dynamic image with Thymeleaf
I have an application, where the user can store the profile photo. Save the image in C:/imgPerfil/ concatenating the user id with the original image name. Example: "2test.jpeg". I need to show this…
-
-1
votes1
answer315
viewsProblem to edit an object in spring boot + Thymeleaf?
This is my controller: @GetMapping("/editpost/{id}") public ModelAndView editPost(@RequestParam(name="id")long id) { Post postFound = nb.findById(id).get(); ModelAndView mv = new…
-
-1
votes1
answer20
viewsThymeleaf template does not load Laytou:Fragment
I am trying to insert a form fragment via Thymeleaf template engine in springboot. However, it is loading the template and other inserted parts except the form (bootstrap elements). OBS: Load the…
-
-1
votes1
answer291
viewsSpring Boot - Error when redirecting to listing page after registration deletion
I’m starting with Spring Boot, my difficulty is in defining redirects (paths). The current error occurs in redirecting after deleting a record. On the page that lists all the properties I have the…
-
-1
votes1
answer41
viewsHTML in Spring Boot does not find files
I’m trying to load an audio file into an html, like this When I open html in the browser it loads normally However when I do the same I start the spring application, html does not load the file and…
-
-1
votes0
answers21
viewsI am conducting a CRUD project, with JAVA, Spring boot, Thymeleaf and JPA technologies. What happens
I am conducting a CRUD project, with JAVA, Spring boot, Thymeleaf and JPA technologies. What happens here is that I am trying to get information from the bank to perform an update/edition on people…