Questions tagged as 'thymeleaf'

1
answer

How to list users and their "Roles"

Hello! I need to list users' access level on my Users Lookup page. But I can not access Role data through User. The User entity has the Role attribute that is mapped with the ManyToMany annotation, like this: @ManyToMany(cascade = CascadeType....
asked by 12.09.2017 / 20:02
1
answer

Spring-Boot + Thymeleaf, load data in Bootstrap modal window

Good afternoon! I'm using spring-boot and thymeleaf to develop a java application, I'd like to know how I can load logs into the modal bootstrap window by clicking the link in the table that lists the logs. Example: In the user query screen,...
asked by 10.04.2017 / 22:19
1
answer

load value in empty front form without starting with 0 [java] Thymeleaf + spring

My entity is integer and loads the front with value 0, I think it is a simple thing but I do not understand much.     
asked by 15.03.2017 / 13:01
0
answers

Thymeleaf Dynamic flaps

I have a list of stores when the address is the same I would like one side of the other as it is and if the address is different it is listed one underneath the other. How could he do that? followthecodebelow<form><ulclass="nav nav-...
asked by 17.12.2018 / 20:39
1
answer

Persistence with Spring and Thymeleaf in multiple tables in the same form

I have another vision How can I pass two objects in the ModelAndView so that when calling a save request, I can do this distribution of objects for each Entyti. I have Entyti Client and Contact, in page I need to save the past values, bein...
asked by 03.12.2018 / 19:31
1
answer

2 form on the same page with Spring mvc, Thymeleaf, does anyone know how?

This registration form for Physician, so I created this modal for the user to register specialties. @GetMapping("/cadastro") public ModelAndView preSalvar(@ModelAttribute("medico") Medico medico,@ModelAttribute Especialidade especialidade){...
asked by 03.12.2018 / 01:37
0
answers

Error handling with Spring MVC and ThymeLeaf

I'm doing an error trapping with @ExceptionHandler but I'm not able to make this information available in the View. Example I'm doing a group register. If the group already exists it throws an error. This error is handled and returns a Mode...
asked by 09.11.2018 / 11:37
0
answers

Add items Order to SpringMVC and Thymeleaf

I'm doing an application, I've made a form to add the object Pedido to the database, but in that object it has a list of other objects ( itensPedidos ). How should I write the SpringMVC controller, to add the items dynamically? W...
asked by 19.10.2018 / 01:40
0
answers

How to correctly configure Thymeleaf Dialect?

To learn a little more about Spring Boot I created a small project. Data persistence works, but I'm having problems with Dialect of Thymeleaf . I know how to configure Maven , but I can not make it work in Gradle...
asked by 10.10.2018 / 04:39
1
answer

What does the addViewControllers method of the Spring boot WebMvcConfigurer class do?

I'm using thymeleaf on the front end of the application and I have the following configuration class, with the addViewControllers method in question: @Configuration public class WebConfig implements WebMvcConfigurer { ... @Override...
asked by 07.09.2018 / 01:31