0 Replies Latest reply on Jul 21, 2008 4:21 AM by sugi s

    Scrollable datatable

    sugi s Newbie

      I have an a4j:commandLink in my scrollable data table .

      on clicking the link(EDIT), i couldn't see the data .

      Data isn't rendering !

      Pl. help me in this regard!

      Here the Code :

      <rich:scrollableDataTable rowKeyVar="featureRowIndex" frozenColCount="1" height="190px"
      width="980px" id="featureListTable" rows="5" columnClasses="col"
      value="#{featureInfo.featureList}" var="featureVar" sortMode="single" ajaxSingle="true" limitToList="true" >

      <rich:column id="action" width="245px">
      <f:facet name="header"><h:outputText styleClass="headerText" value="ACTION" /></f:facet>

      <a4j:commandLink value="EDIT"

      oncomplete="document.getElementById('loading').innerHTML = '';
      var requestStatus = document.requestStatusForm.requestStatus.value;
      var responseMessage = document.requestStatusForm.responseMessage.value;
      if(requestStatus != null && requestStatus == 'FAILURE'){
      document.getElementById('feature-details-col').style.display='none';
      document.getElementById('errorMessage').innerHTML = responseMessage;
      document.getElementById('errorMessage').style.display = 'block';
      return false;
      }else{
      document.getElementById(form-id').style.display='block';
      }"


      reRender="requestStatus,responseMessage,featureNumberLabel,featureCode,featureId,featureDescription,featureDescriptionPrev,featureHistoryListTable"
      immediate="true" action="#{featureInfo.getFeatureDetails}" >
      <a4j:actionparam name="featureRowIndex" value="#{featureVar.featureCode}" assignTo="#{featureInfo.featureCode}"/>
      </a4j:commandLink>
      </rich:column>
      </rich:scrollableDataTable>





      Thanks & Rgds
      -Sugi