Ben thymeleaf için yeni ve bir dizi ve her döngü kullanarak basit bir tablo yapmaya çalışıyorum.Thymeleaf tablosunda bir tablo oluşturun
Benim kod şöyle görünür:
Temelde<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Smoke Tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<table border="1" style="width:300px">
<tr>
<td>Test Name</td>
</tr>
<tr th:each="smokeTest : ${smokeTests}">
<td>
th:text="${smokeTest.name}">A Smoke Test'
</td>
</tr>
</table>
</body>
</html>
benim sorunum ben <tr>
s içinde <td>
s olarak döngü koşamam olmasıdır. Bu kodun çalışabilmesi için herhangi bir yolu var mı? İlk akla gelen
Bu işe yaramıyor: metnin ilmiyle bir ilişkisi yoktur. – user3073234
Cevabımı yeni güncelledim. –