こんなことができるのかわからないのですが。
たとえば以下のようなループがあったとして、
lang
1<div th:each="news : getAllNews()"> 2<span th:text="${news.title}"/> 3<span th:utext="${news.detail}"/> 4</div> 5<div th:each="news2 : getAllNews()"> 6<span th:text="${news2.title}"/> 7<span th:utext="${news2.detail}"/> 8</div>
このループの中身を以下のようにする方法がわかりません。
(というよりできない?)
lang
1<div org:newslist="news"> 2<span org:news="title"/> 3<span org:news="detail"/> 4</div> 5<div org:newslist="news2"> 6<span org:news2="title"/> 7<span org:news2="detail"/> 8</div>
org:listはできるのですが、org:news2のように、変数の名前でプロセッサにアクセスさせる方法は無いのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。