Tag: thymeleaf
Posts of Tag: thymeleaf
  1. Thymeleaf Path Variables with Spring Boot

    Introduction Thymeleaf is a templating (server-side rendering) engine used by many Java software engineers within Spring-based web applications. An important feature of any web application is the support for dy...Learn More
    JavaVariablesSpringSpring Bootthymeleaf
  2. Spring Boot Thymeleaf Form Data Validation with Bean Validator

    Spring Boot Thymeleaf Form Data Validation with Bean Validator Introduction Form Data Validation is a very common, and rudimentary step in building any web application with user input. We want to make sure that...Learn More
    JavaFormValidationSpringSpring Bootthymeleaf
  3. Map with custom formatter in thymeleaf view

    I am trying to convert a Map with a custom Formatter. I created an @LongCurrency Annotation, which converts long values like this: Long -> String 22 -> 00,22 3310 -> 33,10 String -> Long 3 -> 3 22,11 -> 2211 (C...Learn More
  4. How to create a dynamic menu with Spring

    I want to create a menu from the database. It will be part of a fragment.... how do I do that? I have @ModelAttribute("userMenu") and a method that returns a collection of Menu objects, but it seems to return...Learn More
  5. Static resources not loaded in thymeleaf template

    I'm newbie to spring thymeleaf and I have a web page which is broken into header, body and footer but when I try to include header then the css and js are not loaded into the webpage. My folder structure looks...Learn More
  6. list of entity values to get a particular value in thymeleaf

    I have a entity list value. but i want only three fields from that entity in the thymeleaf web ui. if i take the full object it returns the full entity value that i don't want to happen. My code: <li th:...Learn More
  7. how to send list from controller to thymeleaf

    I need to send the data which is present in a list from my spring controller to thymeleaf (html) how can I send the data? after receiving how can I iterate the data in thymeleaf ...Learn More
  8. Netbeans 8 won't reload static Thymeleaf files

    I am using Spring Boot and Thymeleaf via Maven. I can't seem to get Netbeans to automatically re-deploy any of my Thymeleaf template files when I make changes. In order to see the changes I need to do a full cl...Learn More
  9. Thymeleaf resource routes behind proxy

    I've got a spring application with thymeleaf templates deployed in a local tomcat7, and served to the outside world via an apache proxy. The base urls are: Tomcat: http://some.ip.address:8080/my-application Ap...Learn More
  10. Get URL parts in Thymeleaf

    I need to get some parts of the current URL. I've URI addresses like: / /about /users/john /users/doe I'm searching a way to get the string /users from Thymeleaf. This ${#httpServletRequest.requestURI} returns...Learn More
  11. Using 'select' tag with entities in Thymeleaf

    I am creating a form with the select tag that looks like this: <form th:object="${version}" method="post" class="form-horizontal"> ... <div class="control-group" th:classappend="${#...Learn More
  12. Boolean condition with Thymeleaf and Spring

    I'd like to add an error flag in my web page. How can I to check if a Spring Model attribute is true or false with Thymeleaf? ...Learn More