I’m new in spring boot. Creating my own website. There was a problem logging in to the app. I’ve tried different methods, I don’t understand what the problem is. When entering an http request, this request appears http://localhost:8088/login?error and displays the Invalid email and password message in the form. The request goes through the database and everything is fine.I need
Tag: thymeleaf
Disable multiple buttons even after refresh in javascript and thymeleaf
The problem I have multiple buttons that are connected to db to keep count of the clicks. They are in a column and each time you click on one, the value associated with that button increments by one. The database table looks like this: What I want is: when you click on any button it should disable all the buttons
Modal not opening when I click on button
I am trying to display data in the Modal when I click the button. This is the HTML code I wrote everything is looking fine but it won’t open the Modal when I click the button. If I put an alert inside the script it popup when I click the button but anything else like the modal is not working.
How to show loop results on html page in real time Java Spring
I would like to show loop results on html page in real time. I use Java , Spring, thymeleaf, javascript. The loop is below. Instead of system out print I would like it to be displayed on html page. Answer You can do this using Server Sent Events and htmx. First, create a @GetMapping method to expose the SSE channel:
How can I put the variable in the inline javascript [[]] api path
I have a question, I need make up the url in the javasctipt. But I don’t known how to put the variable in the th:inline=”javascript” . My code below: How can I make up the url using the variable in the [[]]. It’s will show error. How can I use the js variable put in the [[]]. Thank you very
How to use a select element to insert a Thymleaf fragment?
I want to use an HTML select element to change which thymeleaf fragment is displayed. the html code: The javascript code: when the selection is changed i want the div element with the id “algParams” to display a different thymeleaf fragment. When i run it, it shows this in the page elements when i inspect the page. which is the
JavaScript only changes text of first iteration with thymeleaf
I hope you are all well. I have a school assignment, and I want to dynamically be able to change the name of a ‘project’. This assignment is about projects. The way I’ve done it right now works with the first ‘project’ from a list of ‘projects’ iterated through with thymeleaf. I’m aware that what I’ve done right now is