hi i'm trying to display a tree structure in JSF
for intendation i want to insert
<span class="intendWidth" />
this is my jsf-code
<ui:repeat value="#{myHandler.entityTree}" var="entityDepthHolder">
<p:commandLink action="#{myHandler.toggle(entityDepthHolder.entity)}">
<div>
<c:forEach begin="0" end="#{entityDepthHolder.depth}">
<span class="intendWidth" />
</c:forEach>
#{entityDepthHolder.depth} #{entityDepthHolder.entity.title}
</div>
</p:commandLink>
</ui:repeat>
but for some reason the c:forEach always run once, although only one entityDepthHolder.depth is 1, all others are 0
any ideas how to insert a tag n-times without c:forEach?