Category "thymeleaf"

Spring boot addFlashAttribute not displaying message in HTML

I've been searching here and online how to use addFlashAttribute in the best way and it's not working for me no matter what I do. I have a Student model which I

Thymeleaf can't find templates

I have a Spring Boot Thymeleaf Java project that works perfectly in my local git. Thing is, I tried to clone this same project from my GitHub repository and now

Why CSS file not working in my application? [duplicate]

I'm trying to use .css files in my project but it doesn't work. The directory hierarchy is: /resources/static/css/style.css. In my html file I

iText 7 - How to send to an API and receive/render on the other end

I am trying to send a PDF that will be created in memory from one API to another API which will then render it in an HTML page. Info about my technologies: Spri

Thymeleaf + spring save new object instead of update

I am asking for a hint. I searched the internet for a long time for a solution to the problem, but I'm already desperate. I would like the update operation to u

How to solve thymeleaf template parsing error

I'm trying to present a html to screen but I'm getting template parser error from thymeleaf. Here is my code and error: index.html: <body> <h2>M

Spring Security Login Form always loads first

I am working on a web application and I want to implement spring security. I want anyone to be able to see the home page at least. I have attempted to map this

Can't get thymeleaf parameter in href from model attribute

I'm new to thymeleaf. I can't get systemId in th:href ,but I can do it in <p th:text... What's the problem? Pls, help My code Result

Why iterate data twice in java

In my program all work properly but problem is the total like get twice for one user i try to iterate properly but i am not succeed i can try to solve this prob

How to use google font in thymeleaf pdf template

I am using this to integrate google font Roboto in my thymeleaf pdf template. But no effect is coming in pdf <link th:href="@{http://fonts.googleapis.com/css

Why validation not work for encoded password

In my project i add some validation for Signup form fields. While click on submit button password validation not check orignal password like @AAAzzz123 but it c

GetMapping endpoint for a button which takes inputs from 2 text fields

I have a basic html page with 2 textboxes and a button. I need to make the button respond after the entries in the textbox The body of the html looks like this

Thymleaf ->Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor'

I am trying to fetch add-journeyFooOrder view and unable to do(getting view saying - Whitelabel Error Page) so please help me by letting me know what I am doing

Why does my th:each not work in my div? Thymleaf

I'm trying to th:text in my div but it doesnt seem to work I tried doing it with a table and i get the data i need but when i put it in a div it doesnt work

Export in excel in ag-grid in plain javascript with Thymeleaf

I am using ag-grid and Thymleaf scripts to display data in the frontend. I am able to display data. To export the data I was following the steps given in this d

integrate new Vue js 3 app to spring boot/thymeleaf application

I already have an application built with spring boot/thymeleaf as a template engine and everything is working fine, now I need to add new section to the applica

How do I fill in the input type= "time" field in Thymeleaf?

The Spring-Boot + Thymeleaf project does not fill in the input type= "time" field When opening the html form. That's how it works: <input type="time" class="

Check user role in Thymeleaf using Webflux security

I have a Spring Security 5 Reactive Applications using the "@EnableWebFluxSecurity" annotation.For my frontend I am using Thymeleaf.Now I have the problem that

Spring Boot Exception evaluating SpringEL expression

ERROR 4904 --- [nio-8080-exec-1] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-8080-exec-1] Exception processing template "index": An error happene

validate input in Thymeleaf

I have this input: Masa: <input type="number" class="form-control form-text" name="masa"/> <div class="text col-sm-12 error" th:if="${wzrost}"