System is duplicating select tag value on refresh

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

System is duplicating select tag value on refresh

waqar
This post was updated on .
        <select th:field='*{product.Prod_ID}' >
        <option th:each="products,iterStat : ${productList}"
        th:value="${iterStat.index}" th:text="${products.name}">product name</option>
        </select> 

if I refresh 3 times same product starts appearing in drop down 3 times.

Reply | Threaded
Open this post in threaded view
|

Re: System is duplicating select tag value on refresh

Metroids
It's probably your controller.  Nothing in that thymeleaf code can cause that to happen.