1 Reply Latest reply on Oct 17, 2008 2:57 AM by Michael Abele

    Invisible headers in scrollableDataTable

    Vik Glo Newbie

      Hi All,

      I am playing around scrollableDataTable where I have a scrollableDataTable below which there is a delete button which will delete the selected record(s)(currently its just reading the corresponding id). My problem is when the delete button is clikced and backing bean responds back, all the headers of my scrollableDataTable are invisible which seems to be very strange because accorsing to https://jira.jboss.org/jira/browse/RF-989 this issue was fixed in 3.2.0 where as I am using 3.2.1 below is what I am writting in my backing bean

      private HtmlScrollableDataTable dataTable;
      public String deleteContact() {
      Iterator iterator = dataTable.getSelection().getKeys();
      while (iterator.hasNext()){
      Object key = iterator.next();
      dataTable.setRowKey(key);
      myVO = (MyVO) dataTable.getRowData();
      System.out.println("My Id "+myVO.getContactId());
      }
      return null; // Navigation case.
      }

      Below is how I am writting my scrollabledatatable

      <rich:scrollableDataTable binding="#{myController.dataTable}" rowKeyVar="rkv" height="100px"
      width="700px" id="contactList" rows="10" columnClasses="col"
      value="#{myController.contacts}" var="contacts">
      <rich:column id="contact">
      <f:facet name="header"><h:outputText styleClass="headerText" value="Contact" /></f:facet>
      <h:outputText value="#{contacts.contact}" />
      <h:inputHidden value="#{contacts.contactId}" />
      </rich:column>
      <rich:column id="id">
      <f:facet name="header">
      <h:outputText value="ID" />
      </f:facet>
      <h:commandLink value="Delete" action="#{companyController.deleteContact}" />
      </rich:column>
      </rich:scrollableDataTable>

      <h:commandButton value="Delete Selected" action="#{myController.deleteContact}" />

      Plese help!!

      Thank you