Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to iterate through Collection of TreeSet in jsf usign h:dataTabel

843844Feb 5 2008 — edited Feb 5 2008
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2008
Added on Feb 5 2008
1 comment
129 views