• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple expandable table with RichFaces

Jennifer Bells
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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?'[+]':'[-]'}"
<a4j:actionparam name="val" value="#{!wonderBean.show}"
assignTo="#{wonderBean.show}" />
<a4j:outputPanel ajaxRendered="true">
<rich:dataTable value="#{wonder.details}" var="detail"
rendered="#{wonderBean.show}" 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}" />
Filename: 1.bmp
File size: 270 Kbytes
[Download 1.bmp] Download Attachment
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic