質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -150,6 +150,46 @@
|
|
150
150
|
|
151
151
|
|
152
152
|
|
153
|
+
### 試してみたこと
|
154
|
+
|
155
|
+
newしないパターンも試しましたが同じエラーでした。
|
156
|
+
|
157
|
+
```Java
|
158
|
+
|
159
|
+
@GetMapping
|
160
|
+
|
161
|
+
public String setting(Model model) {
|
162
|
+
|
163
|
+
List<WorksEntity> lstWorksEntity = worksService.worksFindAll();
|
164
|
+
|
165
|
+
model.addAttribute("lstWorksEntity", lstWorksEntity);
|
166
|
+
|
167
|
+
return "setting";
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
@PutMapping
|
174
|
+
|
175
|
+
public String displayWorks(List<WorksEntity> lstWorksEntity, SettingEntity settingEntity, Model model)
|
176
|
+
|
177
|
+
throws IOException {
|
178
|
+
|
179
|
+
List<String> checks = settingEntity.getChecks();
|
180
|
+
|
181
|
+
model.addAttribute("checks", checks);
|
182
|
+
|
183
|
+
worksService.worksUpdate(lstWorksEntity, checks);
|
184
|
+
|
185
|
+
return "redirect:/MyPortfolio/setting_page";
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
```
|
190
|
+
|
191
|
+
|
192
|
+
|
153
193
|
### 補足情報(FW/ツールのバージョンなど)
|
154
194
|
|
155
195
|
|
1
誤記
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
th:value="${lstWorks.id}" th:checked="${settingEntity.checks.contains(lstWorks.id)}" />
|
82
82
|
|
83
|
-
|
83
|
+
<label th:for="${lstWorks.id}" class="checkbox"></label>
|
84
84
|
|
85
85
|
</div>
|
86
86
|
|