Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSF and the fly likes Simple expandable table with RichFaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Simple expandable table with RichFaces " Watch "Simple expandable table with RichFaces " New topic

Simple expandable table with RichFaces

Jennifer Bells

Joined: Jul 24, 2010
Posts: 2
<rich:dataTable value="#{wonderBean.wonders}" var="wonder">
<rich:column colspan="3">
<f:facet name="header">Wonder</f:facet>
<h:outputText value="#{}" />
<a4j:commandLink id="link" value="#{!'[+]':'[-]'}"
<a4j:actionparam name="val" value="#{!}"
assignTo="#{}" />
<a4j:outputPanel ajaxRendered="true">
<rich:dataTable value="#{wonder.details}" var="detail"
rendered="#{}" style="border: 0px">
<f:facet name="header">Location</f:facet>
<h:outputText value="#{detail.location}" />
<f:facet name="header">Image</f:facet>
<h:graphicImage value="#{detail.imageUrl}" />

[Download 1.bmp] Download

It is sorta covered in the JavaRanch Style Guide.
subject: Simple expandable table with RichFaces