I have been searching all over the internet also in documentations about nested tags for parent/child relation but I got nothing so far. What I want to learn is, is there anyway for such a custom “parent” tag to know about its “children”
<mytag:parent source="${somelist}">
<mytag:child column="name" style="padding-left:10px">
</mytag>
<mytag:child column="surname" style="padding-left:10px">
</mytag>
</mytag>
In this example parent tag gets the collection and children prints their given columns by calling somelist.name and somelist.surname respectively. Do I have to parse the DOM to learn about children or can I reach the children somehow in “groovy” code?
<mytag:parent>should put own context/data as a request scope attribute (or page scope), process it by<mytag:child>, and remove it on closing tag. Like: