Skip to content

Instantly share code, notes, and snippets.

@dstarh
Created September 21, 2012 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstarh/3759568 to your computer and use it in GitHub Desktop.
Save dstarh/3759568 to your computer and use it in GitHub Desktop.
<div th:each={role : ${roles}>
<select>
<option th:each="user : ${users}" th:attr="selected=${formBean.membershipList.?[user.id == user.id AND userAssetRole.id == role.id]} ? 'selected'" th:text="${user.firstName} + ' ' + ${user.lastName}">John Smith</option>
</select>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment