Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dynamic indexed access on mb:p tag #41

Closed
kazuki43zoo opened this issue Nov 4, 2019 · 0 comments · Fixed by #42
Closed

Support dynamic indexed access on mb:p tag #41

kazuki43zoo opened this issue Nov 4, 2019 · 0 comments · Fixed by #42
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kazuki43zoo
Copy link
Member

We support dynamic indexed access(e.g. ids[${idStat.index}]) to the collection object on mb:p tag as follow:

SELECT * FROM names
  WHERE 1 = 1
  /*[# th:if="${not #lists.isEmpty(ids)}"]*/
    AND id IN (
    /*[# th:each="id : ${ids}"]*/
      /*[# mb:p="ids[${idStat.index}]"]*/ 1 /*[/]*/
      /*[(${idStat.last} ? '' : ',')]*/
    /*[/]*/
    )
  /*[/]*/
  ORDER BY id
@kazuki43zoo kazuki43zoo added the enhancement New feature or request label Nov 4, 2019
@kazuki43zoo kazuki43zoo added this to the 1.0.2 milestone Nov 4, 2019
@kazuki43zoo kazuki43zoo self-assigned this Nov 4, 2019
kazuki43zoo added a commit to kazuki43zoo/thymeleaf-scripting that referenced this issue Nov 4, 2019
kazuki43zoo added a commit that referenced this issue Nov 4, 2019
Support dynamic indexed access on mb:p tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant