thymeleaf

    15熱度

    2回答

    我在我的百里香頁面上有一個選擇框。我已經爲它定義瞭如下一個屬性: th:attr="labelId='associateTSF' + ${mViewStat.index}" 有沒有辦法設置多個?像這樣: th:attr="labelId='associateTSF' + ${mViewStat.index}; missionGroup=${mView.missionGroup}" 我已經嘗

    4熱度

    1回答

    我正在嘗試使用Spring Boot和Thymeleaf構建獨立的Web應用程序。該應用程序從IntelliJ IDEA運行良好,但我無法自行運行該jar。顯然模板不包括在內。 我的項目結構如下: ├── src │   └── main │   ├── java │   │   └── my │   │   └── domain │   │   └── applicati

    4熱度

    4回答

    我是Thymeleaf的新手。我正在嘗試創建簡單的crud應用程序。我試圖刪除刪除按鈕上的客戶類的對象。我如何設置參數(例如 - id)到使用Thymeleaf調用deleteUser的方法。這是我的控制器。 package controllers; //imports @Controller public class WebController extends WebMvcConfi

    0熱度

    2回答

    我有一個表單,它有一個複選框。提交表單後,我想控制用戶是否選中該複選框。 這裏是我的代碼示例: <form action="DoLogin" method="post" id="loginForm"> <h3>Giriş</h3> <label><span>Kullanıcı:</span></label> <input type="text" placeholder="E-p

    3熱度

    2回答

    我使用春節安全與HTML頁面使用百里香。我必須用「秒:授權」問題屬性在這種情況下: <ul class="nav nav-tabs margin15-bottom"> <li th:each="criteriaGroup,iterGroups : ${aGroupList}" th:class="${iterGroups.index == 0}? 'act

    0熱度

    2回答

    我有一個非常簡單的問題,關於發送參數從Controller到View與thymeleaf。 我有HTML頁面行: <p th:text="${xyz}"></p> 當我存取權限http://localhost:8080/myproject-web/mypage頁面此paragraph是空的。 當我點擊提交按鈕,它關係到控制器: @RequestMapping(value = "/subscri

    1熱度

    3回答

    使用spring-boot和thymeleaf構建應用程序。在IntelliJ中一切正常,但是當我通過「gradle clean build」構建時,則會出現錯誤。 這是我的目錄結構: src - generated - main -- java -- resources --- assets ---- css/js ---- templates ----- *.html --

    4熱度

    1回答

    我有一個字符串列表 - 我正在感興趣的屬性名稱: 我想連接這些字符串的值,但不使用屬性名稱,而是使用屬性值。 我看到起點爲#strings.listJoin - 但是我怎麼能說匹配列表中的元素與它們在屬性文件中的值呢? 名單將是:[name, address],並在屬性文件我有: name=stg address=another something 我想獲得字符串: stg, another

    1熱度

    2回答

    我在標準HTML頁面(而不是JSP)上使用Spring在Java Web應用程序中使用Thymeleaf。我有幾個文本輸入的幾頁上的表格。我想在文本輸入中引用maxlength的一些變量。例如: 電流: <input id='name' type='text' maxlength='20' /> 目標: <input id='name' type='text' maxlength='${nam

    2熱度

    1回答

    我正在使用引導程序下拉菜單顯示一個大的列表。 我需要向下滾動列表,以便i元素顯示在頂部。 <div id="year-picker" class="dropdown dropdown-lg"> <a href="#" class="dropdown-toggle left" data-toggle="dropdown"><i></i>Year</a> <ul class="