0 Replies Latest reply on Sep 30, 2008 2:22 PM by Praful Sinha

    required rich:datascroller in case of rich:scrollabledatatab

    Praful Sinha Newbie

      Hi,

      I am using datascroller with scrollabledatatable but its not working

      <rich:scrollableDataTable sortMode="single" frozenColCount="0" height="250px" width="100%"
      headerClass="pts_columnclass"
      rowClasses="pts_index_datagrid_table_row_alt1,pts_index_datagrid_table_row_alt2"
      id="acclist" value="#{cmsappaccount.list}" var="list" rows="8" >

      <rich:column id="accountSelect" title="Select" styleClass="pts_image_link" sortable="false" width="25px">
      <f:facet name="header">
      <t:selectBooleanCheckbox value=" " onclick="selectAll(document.cmsappaccount);"/>
      </f:facet>
      <t:selectBooleanCheckbox value="#{list.accountSelect}"/>
      </rich:column>

      <rich:column id="accountId" title="#{appptsprops.userindex_userId_label}"sortable="false" width="30px">
      <f:facet name="header">
      <h:outputText id="accEditImageOut1" value="Edit" />
      </f:facet>
      <t:commandLink styleClass="pts_CommandLink_form" id="accEditImageLink" action="#{cmsappaccount.populate}" title="#{appptsprops.userindex_edit_label}">
      <t:graphicImage id="imageAccEditRemove" styleClass="pts_image_link" align="center" url="/resources/images/edit.gif"/>
      <f:param name="userId" value="#{list.accountId}"/>
      </t:commandLink>
      </rich:column>

      <rich:column id="accountName" title="Account" sortBy="#{list.accountName}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="accountNameOut2" value="Account" />
      </f:facet>
      <t:outputText id="accountNameOutIndex1" value="#{list.accountName}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="contactName" title="Contact" sortBy="#{list.contactName}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="contactNameOut7" value="Contact" />
      </f:facet>
      <t:outputText id="contactNameIndexOut" value="#{list.contactName}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="cityName" title="City" sortBy="#{list.cityName}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="cityNameIndexOut" value="City" />
      </f:facet>
      <t:outputText id="cityNameIndex" value="#{list.cityName}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="stateName" title="State" sortBy="#{list.stateName}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="stateNameIndexOut" value="State" />
      </f:facet>
      <t:outputText id="stateNameIndex" value="#{list.stateName}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="countryName" title="Country" sortBy="#{list.countryName}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="countryNameOut5" value="Country" />
      </f:facet>
      <t:outputText id="countryNameIndex" value="#{list.countryName}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="mobileNumber" title="Mobile" sortBy="#{list.mobileNumber}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="mbileNumberOut556" value="Mobile" />
      </f:facet>
      <t:outputText id="mobileNumberIndex" value="#{list.mobileNumber}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="phoneNo" title="Phone" sortBy="#{list.phoneNo}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="phoneNumberOut556" value="Phone" />
      </f:facet>
      <t:outputText id="phoneNumberIndex" value="#{list.phoneNo}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      <rich:column id="emailAddr" title="Email" sortBy="#{list.emailAddr}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="acceMailIdOut556" value="Email" />
      </f:facet>
      <t:commandLink styleClass="pts_CommandLink_form" id="accemailPopup" onclick="javascript:mailopen('#{list.emailAddr}'); return;"immediate="true">
      <t:outputText id="accemailAddressOut" value="#{list.emailAddr}" styleClass="pts_form_panel_field_outputtext" />
      </t:commandLink>
      </rich:column>

      <rich:column id="ptsDataStatus" title="Status" sortBy="#{list.ptsDataStatus}" sortOrder="ASCENDING">
      <f:facet name="header">
      <h:outputText id="accountStatusOut" value="Status"/>
      </f:facet>
      <t:outputText id="accountStatusOut2" value="#{list.ptsDataStatus}" styleClass="pts_form_panel_field_outputtext" />
      </rich:column>

      </rich:scrollableDataTable>
      <rich:datascroller id="dataScoller" for="acclist" page="#{cmsappaccount.rowIndex}" pagesVar="#{cmsappaccount.rowIndex}" pageIndexVar="pageIndex" reRender="acclist" actionListener="#{cmsappaccount.scrollerAction}" styleClass="pts_datatable_scoller_inactivebutton" tableStyleClass="pts_datatable_scoller_table" selectedStyleClass="pts_datatable_scoller_activebutton" boundaryControls="hide" limitToList="true" maxPages="10" />

      Please let me know what i have to set in Managebean if requires.

      Thanks in advance.
      Praful.sinha