1 Reply Latest reply on May 27, 2009 6:12 AM by nbelaevski

    Data Scroller used with data table problem

      Hi,

      Data scroller is not working at the top of data table appearing only at the bottom. This is my code.

      Please look into the Lines that are blue where i have used data scroller, could you please help me resolve this issue by making the data scroller appear both at top and bottom of <a:richDataTableWithCursor>
      Thanks in advance! :)

      <a:richDataTableWithCursor id="lineItemList" value="#{sellSideNegForSLPageBean.model}" var="lineitem"
       rowKeyVar="rkv" rows="#{sellSideNegForSLPageBean.user.numberofrows}" binding="#{sellSideNegForSLPageBean.table}"
       rendered="#{sellSideNegForSLPageBean.showTable}"
       onRowMouseUp="selectContextMenu('#{lineitem.item.objectId}','#{lineitem.dynamicStatus}',event)">
       <f:facet name="header">
       <rich:columnGroup id="lineColumnGroup">
       <a:richColumn id="lineColumn" colspan="#{sellSideNegForSLPageBean.noOfCols}">
       <a:jsfPanelGridNoStyle id="linepanelGrid">
       [color=444444]<a:richDatascroller for="lineItemList" rendered="#{sellSideNegForSLPageBean.showDataScroller}"
       binding="#{sellSideNegForSLPageBean.dataScroller}"
       maxpages="#{sellSideNegForSLPageBean.maxPagesForDataScroller}" faststep="1"
       ajaxSingle="false" reRender="sc2" id="sc1"/>
       <a:jsfPanelGroup>
       <a:jsfOutputTextTableHeader id="previewTableHeader" value="#{sellSideNegForSLPageBean.retrivedItemList}"/>
       <a:richSpacer />
       <a:richSpacer />
       <a:ajaxCommandIcon id="lineConfig" image="#{image['Select']}" title="#{text['ListConfiguration']}"
       onclick="Richfaces.componentControl.performOperation(event,'#salesForm1\\:ConfigMenu','show',{},false);return false">
       </a:ajaxCommandIcon>
       </a:jsfPanelGroup>
       </a:jsfPanelGridNoStyle>
       </a:richColumn>
       </rich:columnGroup>
       </f:facet>
      
       <!--Index column-->
       <a:richColumn id="Index" sortBy="#{lineitem.position}">
       <f:facet name="header">
       <a:jsfOutputLabelWrap id="sl" value="" />
       </f:facet>
       <a:jsfOutputTextInTable id="slv1" style="color: #FF0000;#{lineitem.rowStyle}" value="#{lineitem.position}" rendered="#{lineitem.showSampleItem != null and lineitem.showSampleItem}"/>
       <a:jsfOutputTextInTable id="slv2" style="#{lineitem.rowStyle}" value="#{lineitem.position}" rendered="#{lineitem.showSampleItem == null and !lineitem.showSampleItem}"/>
       </a:richColumn>
      
       <!--Owner column-->
       <a:richColumn id="Owner" sortBy="#{lineitem.item.attributeValue['owner']}">
       <f:facet name="header">
       <a:jsfOutputLabelWrap id="ownerLbl" value="#{text['owner_S']}" />
       </f:facet>
       <a:ajaxOutputPanel id="VatNotDeductibleToolTip" rendered="#{!(lineitem.item.vatDeductible)}">
       <a:jsfGraphicImage id="VatNotDeductibleImage" value="#{image['QuestionMark']}" rendered="#{!(lineitem.item.vatDeductible)}"/>
       <a:richToolTip delay="500" followMouse="true" id="VATTooltip" direction="top-right" style="width:180px">
       <a:jsfPanelGridToolTip id="VatPanelGrid">
       <a:jsfOutputTextHelp value="#{text['VATNotDeductible']}"/>
       </a:jsfPanelGridToolTip>
       </a:richToolTip>
       <a:richSpacer/>
       </a:ajaxOutputPanel>
       <a:jsfOutputTextInTable id="ownerVal"
       value="#{lineitem.item.attributeValue['owner']}" style="#{lineitem.rowStyle}">
       <f:param name="attribute" value="owner" />
       <f:converter converterId="CodeTranslationConverter" />
       </a:jsfOutputTextInTable>
      
       </a:richColumn>
      
       :
       :
       :
       :
       :
      
       <!-- Dynamic columns-->
       <rich:columns value="#{sellSideNegForSLPageBean.dynamicColumns}" var="columns"
       index="ind" sortBy="#{lineitem.item.dynamics[ind]}" begin="0" sortable="true" >
       <f:facet name="header">
       <a:jsfOutputLabelWrap value="#{columns}" />
       </f:facet>
       <a:jsfOutputTextInTable value="#{lineitem.item.dynamics[ind]}" style="#{lineitem.rowStyle}">
       <f:param name="converterContext" value="list" />
       <f:param name="attribute" value="#{sellSideNegForSLPageBean.attributeMap[ind]}" />
       <f:converter converterId="#{sellSideNegForSLPageBean.converterMap[ind]}" />
       </a:jsfOutputTextInTable>
      
       </rich:columns>
      
      
      
      
      
       </a:richDataTableWithCursor>
      
      
       [color=444444]<a:richDatascroller for="lineItemList" rendered="#{sellSideNegForSLPageBean.showDataScroller}"
       binding="#{sellSideNegForSLPageBean.dataScroller}"
       maxpages="#{sellSideNegForSLPageBean.maxPagesForDataScroller}" faststep="1"
       ajaxSingle="false" id="sc2" reRender="sc1">
       </a:richDatascroller>