how to iterate through Collection of TreeSet in jsf usign h:dataTabel
843844Feb 5 2008 — edited Feb 5 2008Hi,
Earlier I was iterating through List using h:datatabel on my JSF screen.
Now as per the new design The list is changed to TreeSet to avoid the duplicate and to have sorting.
My question is how can I iterate through TreeSet using h:dataTable or any other JSF component.
The code snippet which I an currently using ofr List iterating.
<h:dataTable value="#{someBean.someList}" var="messsage" >
<h:column>
<h:outputText value="#{message.mainMessage}" />
</h:column>
</h:dataTable>
Thanks,
vebs