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

    Scrollable data table

    sugi s Newbie

      I have an a4j:commandILnk in my scrollable data table .
      on clicking the link i couldn't see the data .

      Data isn't rendering properly.

      Can any one let me know whether this could be done?????

      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="FeatureId" width="245px">
      <f:facet name="header"><h:outputText styleClass="headerText" value="FEATURE ID" /></f:facet>
      <h:outputText value="#{featureVar.featureId}" />
      </rich:column>
      <rich:column id="featureCode" width="245px">
      <f:facet name="header"><h:outputText styleClass="headerText" value="FEATURE CODE" /></f:facet>
      <h:outputText value="#{featureVar.featureCode}" />
      </rich:column>
      <rich:column id="featureDescription" width="245px">
      <f:facet name="header"><h:outputText styleClass="headerText" value="FEATURE DESCRIPTION" /></f:facet>
      <h:outputText value="#{featureVar.featureDescription}" />
      </rich:column>
      <rich:column id="action" width="245px">
      <f:facet name="header"><h:outputText styleClass="headerText" value="ACTION" /></f:facet>
      <a4j:commandLink value="Edit"
      onclick="document.getElementById('errorMessage').style.display = 'none';
      document.getElementById('successMessage').style.display = 'none';
      document.getElementById('addNewFeature').style.display = 'none';
      if(document.userAuthForm.authrole.value == 'ADMINISTRATOR'){
      document.getElementById('addNewFeature').style.display = 'none';
      document.getElementById('loading').innerHTML = loadingMessage;
      }else{
      message = 'You are not authorised to edit the feature';
      document.getElementById('errorMessage').innerHTML = message;
      document.getElementById('errorMessage').style.display = 'block';
      return false;
      }"
      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('feature-details-col').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