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