teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

修正

2021/06/26 06:55

投稿

mimi_129
mimi_129

スコア63

title CHANGED
@@ -1,1 +1,1 @@
1
- 宇生thymeleaf 三項演算子で値によってclassを付与したい
1
+ thymeleaf 三項演算子で値によってclassを付与したい
body CHANGED
File without changes

2

修正

2021/06/26 06:55

投稿

mimi_129
mimi_129

スコア63

title CHANGED
File without changes
body CHANGED
@@ -12,7 +12,22 @@
12
12
  ![イメージ説明](3edaa7b83765c55b4f91a3c5be278cd6.png)
13
13
 
14
14
  ### 該当のソースコード
15
+ ```ここに言語を入力
16
+ @RequestMapping(value = "/clientMaster/list")
17
+ public String list(Model model, @ModelAttribute("clientMasterListForm") ClientMasterListForm clientMasterListForm, @PageableDefault(page = 0, size = 5) Pageable pageable) {
15
18
 
19
+ session.setAttribute("clientMasterListForm", clientMasterListForm);
20
+
21
+ Page<ClientMaster> list = clientMasterService.findUsers(clientMasterListForm, pageable);
22
+
23
+ model.addAttribute("list", list.getContent());
24
+ model.addAttribute("clientMasterListForm",clientMasterListForm);
25
+ model.addAttribute("page",PagenationHelper.createPagenation(list));
26
+
27
+ return "/clientMaster/list";
28
+ }
29
+ ```
30
+
16
31
  ```ここに言語名を入力
17
32
  <!doctype html>
18
33
  <html xmlns:th="http://www.thymeleaf.org">

1

修正

2021/06/26 06:54

投稿

mimi_129
mimi_129

スコア63

title CHANGED
@@ -1,1 +1,1 @@
1
- thymeleaf 三項演算子で値によってclassを付与したい
1
+ 宇生thymeleaf 三項演算子で値によってclassを付与したい
body CHANGED
@@ -9,6 +9,8 @@
9
9
  分かる方おられましたら、
10
10
  ご回答よろしくお願いします。
11
11
 
12
+ ![イメージ説明](3edaa7b83765c55b4f91a3c5be278cd6.png)
13
+
12
14
  ### 該当のソースコード
13
15
 
14
16
  ```ここに言語名を入力