2017-03-12 9 views
1

Excel 읽기 전용 테이블을 만들었지 만 Excel의 일부 열을 편집 할 수없는 솔루션을 찾을 수 없었습니다. 위의 코드는 버튼 i가 특정 열을 선택하는 데 사용되는 속성 청취자입니다excel의 일부 열이 읽기 전용 인 adf 테이블에서 Excel을 내보내는 방법이 있습니까?

<af:commandButton text="Download Excel" id="cb3"> 
         <af:setPropertyListener from="true" 
               to="#{pageFlowScope.hideTheseColumnsInExcel}" 
               type="action"/> 
         <af:exportCollectionActionListener type="excelHTML" 
                 exportedId="t1" 
                 filename="emtiaz.xls" 
                 title="Emtiaz"/> 
         <af:setPropertyListener from="false" 
               to="#{pageFlowScope.hideTheseColumnsInExcel}" 
               type="action"/> 
</af:commandButton> 

을 다음과 같이

내 코드입니다.

+0

ADF 내보내기에서이 작업을 수행 할 수 없다고 생각합니다. Apache POI를 사용해야하고 프로그래밍 방식으로 수행해야 할 수도 있습니다. – Joe

답변