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
-
5
votes1
answer950
viewsHow to put a <div> inside an iframe?
So, I’m trying to get only one part of my HTML page updated, every "X" time. I was trying to accomplish this through AJAX, but it was giving many problems. So I decided to change the plan. This is…
-
3
votes1
answer224
viewsProblem to write foreign key to table
I am developing a web java project - using Spring , Thymeleaf , Html, Mysql . In this project I have two classes that are related by foreign key. (Technical and Position). In my view…
-
2
votes1
answer1612
viewsThymeleaf does not find Sources
I’m creating a project with Springboot and Thymeleaf. I set up the whole project, I find the template and the pages, so my template can’t find the files css and js; Html <link rel="stylesheet"…
-
2
votes1
answer252
viewsGeneric dialog on Hymeleaf
Good evening friends, Has anyone ever tried or done a generic dialogue on Hymeleaf? What I want is: Instead of writing code to confirm the deletion of a data on the screen that is something simple,…
-
2
votes0
answers306
views -
2
votes1
answer543
viewsProblems with image localization in the Spring Framework
I’m using Spring and Thymeleaf: I have an image in the directory: Resources/image/Telescope.png When I open the page posts.html (home),located at the address below, the image is displayed.…
-
2
votes1
answer158
viewscreating a javascript tooltip for an html with Thymeleaf
I have the following div which shows the date of a message within a table: <div class="data" th:text="${aviso.data}"></div> I need to put a tooltip that shows the date as well when I…
-
2
votes1
answer316
viewsChange label color Bootstrap
How do I change the label color of my button depending on the value it has? On my form, in the field status, I need that when the value is in "open", green, when "finished" is in blue, and when…
-
2
votes1
answer33
viewsAccessing resources with spring
Hello. I am having some problems recovering an image in a folder of my project. Here is a basic explanation of what I am trying to do: In my application a form is submitted and next to it an image…
-
1
votes1
answer1243
viewsError resolving template when running Spring application
I’m having trouble running this Spring application, I followed the steps of a booklet, but came up these errors below. How do I solve this problem? Mistakes: Error resolving template…
-
1
votes2
answers635
viewsThymeleaf Spring JSF
I’m trying to do the internationalization of templat using Thymeleaf 3.0 Spring 4.2.3 JSF 2.2 Which is sent along with an email. #{i18N.descriptionPortal} When you print in the email html it looks…
-
1
votes1
answer1746
viewsSend a list of objects to Spring using Thymeleaf
I have the following problem, I have an Entity called Teacher and another called Class, Teacher is with @Onetomany relationship for Class and when I try to save the classes marked in my checkbox in…
-
1
votes1
answer107
viewsHow to summarize a long text using Thymeleaf?
I have an object with two attributes, one is id and the other is strring type attribute called text type "TEXT" (postgres database) which is used to store the text of a customer post. When the app…
-
1
votes0
answers240
viewsUsing Spring MVC to upload a Google Hard Drive
I have a jsp page with the following code that uses google Charts and shows the Graphics on the jsp page. When I use a Servlet as a controller it works perfectly. <%@page contentType="text/html"…
-
1
votes1
answer920
viewsThymeleaf templates error in Heroku
I implemented my application on Heroku, just for testing... Locally everything works well, but in Heroku after I log in with the credentials I am directed to the page sac/index, what is right, but…
-
1
votes2
answers1607
viewsUsing Thymeleaf in Java Script code
Good evening friends, I had a javascript code extract using JSP tags that generated a pizza chart and works correctly. Now I need to migrate to Thymeleaf and I have no idea how to write the code.…
-
1
votes1
answer528
viewsThymeleaf fragments are not inserted
Hello. I am trying to make a simple import of a code snippet via th:insert from Hymeleaf, but something is not going well. From what I read in the documentation, I don’t think there’s anything wrong…
-
1
votes1
answer93
viewsSecurity rules not recognised by Thymeleaf
Hello. Despite defining the rules for spring security and calling in html in an apparently correct way, permissions are not recognized when running the browser. A user without permission…
-
1
votes0
answers81
viewsEmpty return webapp when searching for ID in the Mongo DB database (spring MVC+Thymeleaf)
Controller class where the ID search method is found: package br.com.apisw.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import…
-
1
votes0
answers17
viewsHow to prevent different users from seeing the same information?
I made a form in which the user informs a client code and makes a search in a database, which returns the information of this client in the same html page of the form. However, if another user…
-
1
votes0
answers756
viewsDifficulty to list data in a Spring Boot table
I am working with a simple Spring Boot project using Thymeleaf, it is a product registration, as I have several types of products to register I found it interesting to create an entity called…
-
1
votes1
answer297
viewsHow to list users and their "Roles"
Hello! I need to list the level of user access on my User Query page. But I can’t access Role data through User. The User entity has the Role attribute that is mapped with the Manytomany annotation,…
-
1
votes0
answers20
viewsNull object in View
The request: @Entity @Table(name="wp_posts") public class Pedido implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id;…
-
1
votes1
answer157
viewsCapturing "radio" input data and transforming into JSON
(This project is being developed with Spring Boot + Thymeleaf) I have an html page that will work as a questionnaire containing about 100 questions (the code below is just an example). Each question…
-
1
votes0
answers64
viewsHow do I perform/work the call through the AJAX url?
To put it in context: There is a remote directory, clearing-dit\logs, which has a number of logs (portal.log, test.log, ...). This directory, is mapped to an HTML page, where all of its .log's are…
-
1
votes1
answer1224
viewsIs it possible to place the contents of a "Thymeleaf object" inside a "variable", in HTML?
To put it in context: I have a "log" object, which was declared on an HTML page through Thymeleaf: <html xmlns:th="http://www.thymeleaf.org" th:include="layout :: page"> ... <form…
-
1
votes1
answer859
viewsThymeleaf passing 2 parameters to URL
Good evening, everyone, I have the following problem: I am trying to pass 2 parameters in the URL using Thymeleaf, but I am not able to recover the value of the variable "name" to pass in the second…
-
1
votes1
answer677
viewsHTML - THYMELEAF - pass parameter
I created a parameter in Procedurecallerrepository and Procedurecallerrepositoryimpl So far everything ok my error is in html and I don’t know where I’m going wrong (I’m sorry if it’s something…
-
1
votes1
answer127
viewsError: Thymeleaf is disabling the responsiveness of my Bootstrap form. How to resolve?
I’m creating a small web application to learn more about Spring Boot. I’m using the Thymeleaf as engine HTML and the Bootstrap as framework front-end. The problem is that I don’t know why, and I…
-
1
votes0
answers118
viewsGet BLOB image from the database using Spring MVC + Thymeleaf
I have problems trying to present an image on the frontend using Spring MVC and Hibernate to return the image stored in BLOB in the database. Entity: @Lob @Column(length = 100000) private byte[]…
-
1
votes1
answer408
viewsError passing a Thymeleaf object to the Spring Boot controller (post)
I have this controller: @PostMapping("/salvar") public String salvar(@Valid OrdemServico ordemServico, BindingResult result, RedirectAttributes attr) { if (result.hasErrors()){ return…
-
1
votes1
answer312
viewsTake the value of a dynamic span element
I need to get an id value of a dynamic span and I’m not getting it. What I’m doing wrong? Error: There was an Unexpected error (type=Bad Request, status=400). Required Long Parameter 'id' is not…
-
1
votes1
answer522
viewsHow do I search for logged-in user information other than by the controller?
I’m using spring security to log in to my site. It’s working, I can register new users, log in and drop off. I have a navbar that, when the user is not logged in, appears the option "Log in or…
-
1
votes1
answer129
viewsImages and css do not load on the page when executed by the jar
Hello, I see you’ve had similar questions to my own but you haven’t answered my question. I’m developing an API that goes into a database, takes the data and returns a pdf report using Thymeleaf and…
-
0
votes1
answer178
viewsload value in empty front form without starting with 0 [java] Thymeleaf + spring
my Entity is as integer and load n front with value 0, I think it is a simple thing but I do not understand much.…
-
0
votes2
answers848
viewsSpring-Boot + Thymeleaf, load data into Bootstrap modal window
Good afternoon! I am using spring-boot and Thymeleaf to develop a java application, I would like to know how to load records to the modal window of bootstrap by clicking on the link of the table…
-
0
votes1
answer1029
viewsThymeleaf - Submit from inside information <table>
It is possible to give information ubmit from within a using Thymeleaf? Example: <form method="post" th:action="@{/receive}" th:object="${objeto}" > <input type="text"…
-
0
votes1
answer919
viewsProblems with url using Thymeleaf
I have a page that shows all blog posts. This page has a posting 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…
-
0
votes0
answers175
viewsSaving dynamic data in the same Java identity
I’m using Spring MVC, Thymeleaf and for me with all routes built he did automatic but not this working, Entity, Repository, controller and etc. I have a relation of N=N of course to Turn, of that…
-
0
votes1
answer2159
viewsAdd items dynamically to a list using Thymeleaf
In my application, I have a form to add an object to the database. In this object I have a list of other objects. For example, it is as if the object I am registering is a Sale and the list is…
-
0
votes0
answers558
viewsProblem generating modal window layout with form using Thymeleaf
Good afternoon. I’m managing to generate the modal windows of the bootstrap and load the data into the form, but the layout of the form is getting all messy. I’ll leave you two pictures to show you…
java twitter-bootstrap front-end spring-boot thymeleafasked 7 years, 5 months ago Cisino Junior 145 -
0
votes0
answers229
viewsAutomatically update an object on other pages without reloading
Good afternoon! I would like to know how I can update an object in my view without having to reload the page. For example, on the main page of the system, I have 3 panels that shows the amount of…
-
0
votes0
answers223
viewsForm inside modal window does not align + Thymeleaf + Spring Boot
Good afternoon! I’m having trouble rendering a modal window using Thymeleaf. The purpose of Modal is simply to show a form with the details of the Service, without having to redirect the user to…
-
0
votes0
answers537
viewsAuto search (Auto complete search)
Good afternoon! I am trying to implement an auto complete search on my system. But so far I have not achieved a satisfactory result. What I want is when the user searches shows the result, as google…
-
0
votes0
answers52
viewsError in project configuration
What I’m missing, I couldn’t find the mistake. Dispatcher-Servlet.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
0
votes0
answers667
viewsProblems to pass two parameters in the url using Thymeleaf
I have next step on my controller: @RequestMapping(value = "/", method = RequestMethod.GET) public ModelAndView home(ModelMap model) { Page<Postagem> page = postagemService.findByPagination(0,…
-
0
votes1
answer722
viewsValidate minimum number of characters in textarea?
Good people, I need to validate a textarea field in an application using Thymeleaf, to limit the maximum amount I have already managed, but I don’t know how to validate the minimum amount.
-
0
votes1
answer229
viewsThymeleaf: how to insert one include inside another include?
I’m including a footer as follows in my home: <div th:replace="footer :: footer"></div> And inside the footer I need to include some overlays: <div…
-
0
votes1
answer501
viewsSpring boot + jpa + Localdate
I am unable to configure the classes convert in spring boot to convert the date that comes from the view into String to the controler that expects a Localdate java8, Someone could give me a hint ?…
-
0
votes1
answer94
viewsRecover a property of a file . properties directly with Thymeleaf
In a file . properties I have a property with the system version. Is there any way Thymeleaf can recover this property directly? I want to use in the footer that is a fragment used in all pages.…