Category "thymeleaf"

Send an image in the mail using thymeleaf

In my application I would want to send emails using javamail. I use Thymeleaf so that I can send some data. When sending the email, I want the background to be

Removing just one Row in table - SpringBoot & Java & Thymeleaf

New to Spring-boot and Java and Thymeleaf...Trying to make it so the trash button deletes only one row in this table. Right now it if any trash button is clicke

Nested loop in Thymeleaf

I'm a newbie to Thymeleaf. I have two objects- Classroom & Student: each Classroom contains a List<Student> and I can have a list of classrooms: List

Thyme leaf dropdown list without preselecting

I have several drop down lists in my Thymeleaf pages that look such as: <select name="institution.serviceDept" th:field="*{serviceDept}"> <opti

This application has no explicit mapping for /error bad request 400

I have a small spring boot project,, which works fine . But, I tried to add some kind of validation.. I worked on one html page but failed on the other with no

Showing a loader while waiting for server-side code with AJAX [duplicate]

My problem was described in Showing a loader while waiting for server-side code (without a blank page). To summarize briefly, I want to show t

Showing a loader while waiting for server-side code (without a blank page)

I've tried to make a loader for every page but failed. I want to show the loader before completing server-side jobs: [Loader] -> [Target page]. However, HTML

Is there a simple way of using the th:data* and th:each attributes together in Thymeleaf?

My intention is to obtain an object inside one of the rows of the table, so I could forward it to a form using a simple JavaScript function. I am not familiar w

Spring-mvc + Spring-Security + Thymeleaf - Error Resolving Template

I'm following a simple online tutorial for building a Spring + Spring Security + Thymeleaf + Maven project and I'm getting the following error: [ERROR] [tomcat

IntelliJ (2018.3) with Thymeleaf - NO auto completion on paths to static content?

Code completion for paths and filenames do NOT seem to work in IntelliJ with Thymeleaf: th:src="@{...}" attributes - e.g. files in the resources/static/ folder.

How do I see Thymeleaf template changes in Broadleaf without restarting my server?

I downloaded the community edition of Broadleaf and I'm trying to change some markup in the Thymeleaf templates. (For example: layout/homepage.html). However, w

Spring Boot 404 when trying to load a HTML file using Thymeleaf

Like the title says, I'm getting the Whitelabel 404 error page when trying to access localhost:8080. Main class: package com.michaelLong.studentaddressbook;

How can I apply style to a div based on condition in thymeleaf?

I have a <div> block which I need to set to display:none or display:block based on the condition. The html looks like this, <div style="display:none;"

Thymeleaf doesn't print list of objects (Spring JPA)

I have 5 different object of class Tour with some fields.I want that my main page shows this object with their fields. I wrote conrtoller: @Controller

Spring boot + thymeleaf in IntelliJ: cannot resolve vars

I'm writing a short web form application using spring boot and thymeleaf on IntelliJ, but it seems that in the html file, all fields in the model cannot be reso

add a serial number while performing iteration in thymeleaf

I have a senario in which i must perform iteration on a list and display result as a grid.Also include serial number in it. Now what I did for serial number is

Creating a new thymeleaf template in IntelliJ

I am using IntelliJ to make an app that uses thymeleaf but when I click to create a new file there is no option for thymeleaf. I know thymeleaf files are just h

Why I get 404 error in spring boot post request using Thymeleaf

I user spring boot to create an integral calculator. I got a strange 404 error while I try to handle post request. Here is my controller class that should handl

How to set a button onclick event and link to Thymeleaf controller?

I am trying to write some code where, once the user clicks a button, it will do some set of code in my Thymeleaf controller class. I tried looking on other vari