7 Replies Latest reply on Oct 26, 2007 3:21 AM by Andreas Franke

    rich:scrollableDataTable rerender, headers dissapears

    Daniel Kane Novice

      Hello

      <rich:scrollableDataTable id="userTbl" value="#{userAdmin.userList}"
      height="400px" width="700px" rows="40" var="userRecord" sortMode="single">
      
      <a:support event="onRowClick" reRender="userDetail">
       <a:actionparam name="uId" value="#{userRecord.userId}" assignTo="#{userAdmin.currentRowUserId}"/>
      </a:support>
      
      <rich:column>
       <f:facet name="header">Name</f:facet>
       <h:outputText value="#{userRecord.name}"/>
      </rich:column>
      <rich:column>
       <f:facet name="header">Login</f:facet>
       <h:outputText value="#{userRecord.login}"/>
      </rich:column>
      ......
      </rich:scrollableDataTable>
      
      
      
      ......
      
      
      
      <rich:panel id="userDetail">
      
      <!--...... edit fields for the current row of the table above ......-->
      
      <a:commandButton value="Save changes" actionListener="#{userAdmin.saveUser}" reRender="userTbl,userDetail"/>
      </rich:panel>
      


      First time table is being displayed correctly, with headers . But after "Save changes" click, it is being rerendered without headers. In addition, current row highlighting ceases to work , and horizontal scrollbar appears although all columns fits well to the width.