Questions tagged as 'thymeleaf'

1
answer

How to load dynamically a modal with Spring MVC and ThymeLeaf

In the image I have two rows that each represent an object of type FisicHost in my program. Clicking on any of the two rows opens a modal with the credentials of the relevant FisicHost. The problem is that indistinctly FisicHos...
asked by 07.11.2018 / 15:27
1
answer

Thymeleaf. Render text with HTML tags in HTML

I'm using TINYMCE so that in a form with a textarea the user can give some styles to the text. In this way in my database this field is saved, for example, in the following way. <p><strong>Some description goes here...</strong...
asked by 12.05.2018 / 23:48
0
answers

Queries with MongoDB

Good afternoon, I have the following concern: I have defined a POJO as you see it below: @Id private String idInformacion; @Indexed(direction = IndexDirection.ASCENDING) private Pais pais; private Date fechaCreacion; private String nombre;...
asked by 27.12.2018 / 22:45
0
answers

Problem when updating data on screen using AJAX

I have this link, that what AJAX does is give a "like" to the response of a user. Where it says ${respuesta.likes} I show the likes of the answer. The request does it to me correctly, that is, I add the "I like" to the answer, but the pro...
asked by 08.12.2018 / 12:10
1
answer

Error 'org.thymeleaf.spring4.processor.attr.SpringOptionFieldAttrProcessor' when posting object from form with ThymeLeaf and Spring MVC

This is my class FisicHost.java : // Remove imports and getter / setters to make it shorter @Entity @Transactional public class FisicHost { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToO...
asked by 28.11.2018 / 17:00
0
answers

Create Table with two Lists in Thymeleaf

Hi, I'm new to Thymeleaf, I have two lists that I sent from my controller to a thymeleaf template, my question I can use those two lists and display them in a table. List 1 has: id, name, key list 2 has: id, id_list1 and key What I want to...
asked by 21.10.2018 / 00:02
0
answers

spring boot 2.0 thymeleaf 3 reload sidebar

I have an application created with spring boot, thymeleaf 3 and a vertical menu on the left. Each time I change from href to the menu, the page is completely recharged with what the logo and icons are reloaded with a little blink. Does anyone kn...
asked by 24.09.2018 / 08:45
0
answers

Internal error when using th: field and th: name thymeleaf and springmvc validation

I'm trying to validate fields to save them in the DB, I'm using @Valid and BindingResult plus Model, it already saves correctly in the DB just missing validate (which comes first), The problem is that the BindingResult does trap the errors, b...
asked by 07.09.2018 / 21:56
1
answer

Spring Boot with CKEditor and Ajax

My problem seems to be simple but I can not make it work as I would like. Since I want to register the value of a rich text. The form only has a rich text using CKEditor and a button to register. <!DOCTYPE html> <html lang="en" xm...
asked by 05.09.2018 / 10:45
1
answer

How can I translate the incoming data from a database with thymeleaf?

I have the following table, and I need the data in the contract_type field to be displayed as pasante or empleado which are saved as intern and employee respectively. thanks in advance. <th:block th:each="...
asked by 10.08.2018 / 17:18