Skip to content

Tag: thymeleaf

How I can send POST request with data from table?

I want to send POST request with data which is stored in a HTML table. I’m using thymleaf. I tried to send GET request with data for build table, but I didn’t get the response data from the table while using the POST request. What is the problem? model AnkiCardDto DTO for response data from table …

How to pass object to modal dialog in Thymeleaf?

I have a thymeleaf page that shows database content (persons) in a table. The last column should be a button that deletes the row. But prior, show a modal dialog with the data being deleted. Question: how can I pass the the full row person object to a modal dialog? I started as follows, but I’m missing …

Pass Thymeleaf block content as variable to fragment

I’m trying to create a fragment that represents a card with custom content. I would like to do something like: And then use as This would make it a lot easier to work with bigger html that would be kinda ugly to write in an attribute. (Basically I’m looking for a similar functionality to Blade&#82…

Dynamic HTML in Thymeleaf

I am creating a Spring MVC + Thymeleaf project. I would like the user to have control over some parts of the page, meaning that user could change text and format is as well with colors, font sizes, etc., using HTML tags. However, I have not found any way how to insert dynamic HTML into thymleaf HTML template.…