aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Simple expandable table with RichFaces " Watch "Simple expandable table with RichFaces " New topic
Author

Simple expandable table with RichFaces

Jennifer Bells
Greenhorn

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


[Download 1.bmp] Download

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple expandable table with RichFaces
 
Similar Threads
Header, Footer with dynamic data
Rich:Datatable rerendering problem
Data from search not being dynamically added to rich:dataTable
Expandable/Collapsible Subtable with h: or t: Datatable
h:selectManyCheckbox reRender rich:dataTable