質問編集履歴
3
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
thymeleaf 三項演算子で値によってclassを付与したい
|
test
CHANGED
File without changes
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,36 @@
|
|
26
26
|
|
27
27
|
### 該当のソースコード
|
28
28
|
|
29
|
+
```ここに言語を入力
|
30
|
+
|
31
|
+
@RequestMapping(value = "/clientMaster/list")
|
32
|
+
|
33
|
+
public String list(Model model, @ModelAttribute("clientMasterListForm") ClientMasterListForm clientMasterListForm, @PageableDefault(page = 0, size = 5) Pageable pageable) {
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
session.setAttribute("clientMasterListForm", clientMasterListForm);
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
Page<ClientMaster> list = clientMasterService.findUsers(clientMasterListForm, pageable);
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
model.addAttribute("list", list.getContent());
|
46
|
+
|
47
|
+
model.addAttribute("clientMasterListForm",clientMasterListForm);
|
48
|
+
|
49
|
+
model.addAttribute("page",PagenationHelper.createPagenation(list));
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
return "/clientMaster/list";
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
```
|
58
|
+
|
29
59
|
|
30
60
|
|
31
61
|
```ここに言語名を入力
|
1
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
thymeleaf 三項演算子で値によってclassを付与したい
|
1
|
+
宇生thymeleaf 三項演算子で値によってclassを付与したい
|
test
CHANGED
@@ -20,6 +20,10 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
![イメージ説明](3edaa7b83765c55b4f91a3c5be278cd6.png)
|
24
|
+
|
25
|
+
|
26
|
+
|
23
27
|
### 該当のソースコード
|
24
28
|
|
25
29
|
|