2 Replies Latest reply on Apr 24, 2013 11:06 AM by psesi

    rich:subTable dataScroller

    Sanjeev Koppal Newbie

      How to add dataScroller to rich:subTable
      Make subTable scrollable?(Like ScrollableTable)

        • 1. Re: rich:subTable dataScroller
          Sanjeev Koppal Newbie

          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"
           rendered="${jobPaginator.expandVersion && job.nodeNid==jobPaginator.expandedNodeNid}" >
           <rich:column colspan="4" >
           <rich:scrollableDataTable height="100px"
           width="900px" id="jobScrollVerList" rows="10"
           var="job1" >
           <rich:column style="width:100px">
           <h:commandLink value="#{job1.nodeVersion}" action="#{viewJobBean.viewJobDetail}">
           <f:param name="jobIdVersion" value="#{job1.nodeVersion}" />
           <rich:column style="width:120px">
           <h:outputText value="#{job1.nodeVersionCreatedDttm}"/>
           <rich:column style="width:120px">
           <h:outputText value="#{job1.nodeVersionLastmodifiedDttm}"/>
           <rich:column style="width:120px">
           <img src="${facesContext.externalContext.requestContextPath}/images/icon_doc_silver.gif" />

          • 2. Re: rich:subTable dataScroller
            psesi Newbie

            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.