0 Replies Latest reply on Dec 28, 2010 11:00 AM by vata2999

    seam excel exports all columns

    vata2999

      Hi,


      problem : users want to select and deselect some columns of dataTable then export result to Excel


      solution : i use rich:extendedDataTable that has ability select and deselecting columns of dataTable but unfortunatly after i export it to excel all of columns export, i search in seam code and found this




      UIData dataTable = (UIData) FacesContext.getCurrentInstance().getViewRoot().findComponent(dataTableId);
      List<javax.faces.component.UIColumn> columns = ExcelComponent.getChildrenOfType(dataTable.getChildren(), javax.faces.component.UIColumn.class);
      


      dataTable.getChildren returns all columns of extendedtable
      seam excel exporter returns all columns


      is there any way, i can export only selected columns in rich:extendedDataTable to excel?