This content has been marked as final.
Show 2 replies
-
1. Re: rich:subTable dataScroller
sanjeevkoppal Jul 9, 2008 2:59 PM (in response to sanjeevkoppal)I achieved by using scrollableTable within subtable, it would have been great to have dataScroller for SubTable as well ....
<rich:subTable id="jobList_${job.nodeNid}" onRowMouseOver="this.style.backgroundColor='#F8F8F8'" styleClass="sResultsver" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" value="#{jobPaginator.subTableList}" var="job2" rendered="${jobPaginator.expandVersion && job.nodeNid==jobPaginator.expandedNodeNid}" > <rich:column colspan="4" > <rich:scrollableDataTable height="100px" width="900px" id="jobScrollVerList" rows="10" value="#{jobPaginator.versions}" var="job1" > <rich:column style="width:100px"> <h:commandLink value="#{job1.nodeVersion}" action="#{viewJobBean.viewJobDetail}"> <f:param name="jobIdVersion" value="#{job1.nodeVersion}" /> </h:commandLink> </rich:column> <rich:column style="width:120px"> <h:outputText value="#{job1.nodeVersionCreatedDttm}"/> </rich:column> <rich:column style="width:120px"> <h:outputText value="#{job1.nodeVersionLastmodifiedDttm}"/> </rich:column> <rich:column style="width:120px"> <img src="${facesContext.externalContext.requestContextPath}/images/icon_doc_silver.gif" /> #{job1.nodeVersionState} </rich:column> </rich:scrollableDataTable> </rich:column> </rich:subTable>
-
2. Re: rich:subTable dataScroller
psesi Apr 24, 2013 11:06 AM (in response to sanjeevkoppal)I know this is an old post, but I found it useful - it worked for me as well. I did want to add a note to point out a subtlety to others. In the example above, the rich:subTable specifies a 'value' attribute of
"#{jobPaginator.subTableList}"
. Note that this value must return a List of one entry, of anything really, it's never really referenced in the page (I used a String object). If you don't have a value specified, or return a value of null, etc. - the subTable will not render at all. Having a single List entry will cause subTable to render a single row - the row you put the scrollable dataTable into.