Questions tagged as 'thymeleaf'

1
answer

How to summarize a long text using Thymeleaf?

I have an object with two attributes, one is the id and the other is an attribute of the strring type called text of the type "TEXT" (postgres bank) that is used to store the text of a client post. When the application loads these I would lik...
asked by 28.03.2017 / 13:28
1
answer

Problems with url using thymeleaf

I have a page that shows all the posts of a blog. This page has a post object that in turn has the attribute that is a list of categories. This list of categories is shown on the page in the form links to each post inserted in the page for th...
asked by 22.03.2017 / 01:04
1
answer

Receiving a LocalDateTime from an html form

Problem: I'm trying to get a LocalDateTime of this input within a @Controller using a <form> that uses Thymeleaf. <input class="form-control" id="dueDate" type="datetime-local" th:field="*{dueDate}"/> But it alw...
asked by 25.05.2018 / 02:56
2
answers

thymeleaf - 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 class="label" th:classappend="${usuar...
asked by 18.07.2018 / 19:17
1
answer

How 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 met, I wanted to create a link that would lead to a new form, in which the user could register a Director. I've been able...
asked by 06.04.2018 / 21:05
1
answer

Spring Boot filled list has no values returned on the screen

The following method in my Controller is responsible for returning all values from a table in the database. @RequestMapping("pesquisaTaxa") public String pesquisaTaxa(@RequestParam Map<String, String> requestParams, HttpSession session,...
asked by 28.02.2018 / 18:19
1
answer

Retrieve a property from a .properties file directly with thymeleaf

In a .properties file I have a property with the system version. Is there any way for Thymeleaf to retrieve this property directly? I want to use in the footer that is a fragment used on all pages.     
asked by 14.02.2018 / 20:59
1
answer

How do the Spring MVC ResponseEntity return on a new page?

I have a method of a report controller (posted below), to which I get a PDF. The problem is that it returns the pdf on the same application tab and this is killing it. How can I do to return in a new tab? Post method that is submitted in h...
asked by 05.02.2018 / 00:18
1
answer

Spring boot + jpa + LocalDate

I'm not able to configure the convert classes in the spring boot to convert the date coming from the view into String to the controler that expects a LocalDate java8, could anyone give me a hint?     
asked by 25.11.2017 / 19:04
1
answer

Validate minimum amount of characters in textarea?

Well, I need to validate a textarea field in an application using thymeleaf, to limit the maximum amount I've already achieved, but I do not know how to validate the minimum amount.     
asked by 06.10.2017 / 23:35