Category Archives: Thymeleaf

Thymeleaf templates

ThymeLeaf – Disable control dynamically

By | April 21, 2015

We face a common scenario to display a control active or disabled on UI depending on model (Spring MVC) attributes. There are few examples to perform this in ThymeLeaf . After some googling and going through ThymeLeaf documentation we found two different ways to perform this. Make two HTML controls The code snippet below displays… Read More »