thymeleaf

    0热度

    1回答

    我在Thymeleaf的文档中发现可以使用内嵌文本变量,位于http://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#inlining。 当我试图表现出我的变量的值,这样的代码 <div>[[${myVar}]]</div> 它显示我<div>[[${myVar}]]</div>所呈现的页面上,但如果我用 <div th:ut

    0热度

    1回答

    我工作的一个小项目,努力学习thymeleaf值从一个表中的列。 我有3个表时刻表其中包含一个ID,分配ID作为外键和其他的东西,其中包含作业和ID和项目ID为外键和项目包含与ID和项目名称。 我需要在一个HTML显示时间表,很容易的,但是我想显示的项目名称,而不是分配ID列。 我已经有一个选择,其中调用所需的列我的服务类,但我怎么能告诉thymeleaf阅读而不是时间表寻找它该列。 这里是我的代

    1热度

    2回答

    我有我的HTML页面中输入按钮。我想将按钮链接到另一个带有百里香叶的html页面。这是我的代码。 <form id = "hotDealForm" th:action = "@{/hot-deal-step-1}"> <div class="col-xs-12 col-sm-6 col-md-6"> This Hot deal <br/> <input type="butt

    0热度

    1回答

    我有一些html文本。在里面我想打印从数据库中取得的几个值。这是我创建的html表单。 <form id="deal-form" th:object="${deal}" method="post"> <div class="border-t p-y-10"> <i class="fa fa-calendar" aria-hidden="true"></i> Duratio

    0热度

    1回答

    我正在学习spring和thymeleaf并正在开展计时项目。 为此,我需要验证员工在一天内计时的小时数。 我用tutorial in the spring documentation这可是我不断收到以下错误 Neither BindingResult nor plain target object for bean name 'timetable' available as request at

    0热度

    1回答

    好SRC路线,那也没什么更多的,都试过了,一派仍然unsolving这个棘手的问题, 我会很高兴,如果你能帮助我! 在这里你可以看到它的外观; 这是css代码; <link rel="stylesheet" src="/static/assets/css/style.css" th:href="@{/assets/css/style.css}" media="screen" type="text

    0热度

    1回答

    我试图使用与阿贾克斯Thymeleaf片段在我的项目,我有我的控制器上此方法: public def displayInfo(Model model) { log.info("Guests method!") model.addAttribute("content", "testing ajax"); "fragments/content::form-basic";

    0热度

    3回答

    我碰到一段代码在springboot(1.3.2) - thymeleaf(2.1.4) - thymeleaf布局方言(1.3.1)项目我正在工作的地方内容html文件包含: <html xmlns:th="http://www.thymeleaf.org" layout:decorator="layout/sitelayout"> ... <div th:fragment="conten

    0热度

    1回答

    我的页面如下: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.springframework.org/security/tags" xmlns:layout="htt

    2热度

    1回答

    我有这显示在UI有一个复选框上GET请求记录列表绑定在POST对象列表。 @GetMapping("/list") public String list(Model model) { model.addAttribute("records", createRecords()); return "list"; } 这是我RecordPOJO: clas