Struts-Layout <layout:tabs> Problem; dynamically render tabs
hi,
i have been trying to combine the <layout:collection> and <layout:tabs> tags to dynamically render tabs. (if the collection contains 5 objects, i wanna have 5 tabs, and if the collection contains 2 objects, i wanna have 2 tabs...)
like this:
<layout:form action="/someAction.do" styleClass="FORM">
<layout:tabs styleClass="FORM" width="400">
<layout:collection property="aProperty" indexId="index" >
<layout:tab key='${index}' width="50">
<layout:collectionItem title="rooms.token">
<layout:text property="aProperty[${index}].BID" layout="false" size="5"/>
</layout:collectionItem>
</layout:tab>
</layout:collection>
</layout:tabs>
</layout:form>
It renders, but it is not displayed correctly. for example, if there are 2 objects in the collection, i get 3 tabs. and the rendered html-table contains mistakes and destroys my page.
has anyone an idea what i could do?
I appreciate any help, thank you, martin