• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show inner datatables?

 
Neil Blue
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a simple case where I would like to show a table with some columns containing collections of results. So I have tried using a nested datatables:

<h:dataTable value="#{entryHandler.entries}" var="entry">

<h:column>
<hutputText value="#{entry}" />
</h:column>


<h:column>
<h:dataTable id="inner1" value="#{entry.categories}" var="cat">
<h:column>
<hutputText value="#{cat.class}" />
<hutputText value="#{cat}" />
</h:column>
</h:dataTable>
</h:column>

</h:dataTable>

Where each entry instance has a set of categories.

But when I run this I get the inner cells as collection instances:

a class org.hibernate.collection.PersistentSet[New]
applications class org.hibernate.collection.PersistentSet[New]
applied class org.hibernate.collection.PersistentSet[New]
are class org.hibernate.collection.PersistentSet[New]
available class org.hibernate.collection.PersistentSet[New]

In this case each set only has one entry.

? Is there any way to get the inner table to render as a list?

Thanks
Neil

Using JSF (myfaces) 1.2

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic