Questions tagged [Thymeleaf] (1)

2
answers

How to show notification with animation without reloading stranicy after submitting the form in Spring Boot?

Prilocaine on Spring Boot + Thymeleaf There is a form. After clicking the button the data is saved in database field , redirect to the same page and a notification appears on the same page that the save completed successfully. Everything works fine, notification appears, but I don't like reboots page and this notice app...
Eugene_V asked April 19th 20 at 12:33
1
answer

Why do images appear only after you restart Intelij Idea?

Using Spring and Thymeleaf Development environment - intelij Idea Problem: when I add any image in the project folder and launch the app, the image is not displayed. The image appears only after I make presupus Intelij Idea. I'm sick of capity times to restart the IDE after adding a new image) How to fix it? The image i...
daron.Bailey asked April 19th 20 at 12:04
1
answer

How to make username for admin in the Spring Security?

The application for Spring Security + Thymeleaf + Postgresql To administer the application just me, then there will be only one role 'ADMIN' If the user wants for example to go to the admin url "localhost:8080/admin/sketches" you need to show a form with a login, in all other URLs, the login form should not appear. Seve...
margot_Beatty63 asked April 18th 20 at 13:37
1
answer

How to fix the error in the browser console "Access to XMLHttpRequest?

Spolsky Spring Boot and Thymeleaf. On one page I display a video from YouTube. Everything works fine, but when I went to developer tools in the browser console(brave), we saw these errors. In different browsers the same shows . Whether it is necessary to pay attention to these errors? These errors seems to make no differe...
athena.Roh asked April 18th 20 at 12:49
1
answer

How to automatically display all the blocks in thymeleaf?

Write a project based on Spring Boot, Thymeleaf template engine. Database - Postgresql On one page I need to show a lot of different videos. In the database will store the title of the video and a link to it. How to display all the videos simultaneously to me each time not to create a new html block for a video with his ...
Camila_Weber asked April 18th 20 at 12:37
1
answer

Why can't I see the image from static resources?

Application based on Spring Boot + Thymeleaf+Spring Security why it is not showing image in html. In the developer tools of the browser, the picture highlighted in red, and the type of this file is shown generally as json, although this is a common picture png Image tried, does not help How can I fix it? HTML: <div ...
marcelle.Hackett69 asked April 16th 20 at 10:03
2
answers

How to substitute a class in Thymeleaf?

Application based on Spring Boot. The Thymeleaf Template Engine The controller has a url so that the page appears in html There on the menu page with links.On each page the menu is the same, except that changing the color of an active link. Not to create each time menu on the page, I did fragment, and already use it on each...
Carmelo.Rau asked April 9th 20 at 10:34
0
answer

Why not connect local files in the html project for Spring?

There are two projects: one class, the other is converted mostly changes to the database. In the first draft of css files, and other connected great, the second they don't connect + writes to the console o.s.web.servlet.PageNotFound: No mapping for GET /css/style.css Although you can say that the projects are identical At l...
Euna.Goldner asked April 8th 20 at 18:32
0
answer

How to put check box in the attribute value?

Prokidyvaya to the front mapou: keys codes, permissions, values are true or false, depending on whether a user has a permission. Want at the front stood the check boxes of the permissions that user has. <div th:each="role : ${rolesMapping}"> the <div> <input type="checkbox" class="form-check-input" th:field...
rupert.Anderson83 asked April 8th 20 at 09:23
1
answer

How to return the result of the POST request to the same HTML page?

There is an html page where you need to fill out a form and clicking a button executes a post request, and I'd like to return the result on the same html page using ajax. 1) I would like to return a page fragment as a result block id = resultsBlock. 2) I would like to have another field in the block id = resultsBlock. and r...
Jed asked April 7th 20 at 16:19