[richfaces-issues] [JBoss JIRA] Created: (RF-6281) "header" and "footer" facets data cannot be exported to excel for rich dataTable, scrollableDataTable and extendedDataTable components.

Mikhail Vitenkov (JIRA) jira-events at lists.jboss.org
Mon Feb 23 04:21:45 EST 2009


"header" and "footer" facets data cannot be exported to excel for rich dataTable, scrollableDataTable and extendedDataTable components.
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: RF-6281
                 URL: https://jira.jboss.org/jira/browse/RF-6281
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: IE6, IE7, FF 3.0.6, Safari 3.1, Opera 9.62, Chrome 1.0.154.43(3.3.0.GA, seam 2.0.2.GA)
            Reporter: Mikhail Vitenkov
            Assignee: Nick Belaevski


#1. Put jboss-seam-excel.jar and jxl.jar in your project lib folder.
#2. Configure web.xml following way:
<servlet>
      <servlet-name>Document Store Servlet Excel</servlet-name>
      <servlet-class>org.jboss.seam.excel.DocumentStoreServlet</servlet-class>
   </servlet>
   
   <servlet-mapping>
      <servlet-name>Document Store Servlet Excel</servlet-name>
      <url-pattern>*.xls</url-pattern>
   </servlet-mapping>
   
   <context-param>
        <param-name>webAppRootKey</param-name>
<param-value>seam-excel</param-value>
   </context-param>
#3. Configure components.xml. Add following string:
In taglib: xmlns:excel="http://jboss.com/products/seam/excel"
<excel:document-store use-extensions="true"/>
#4. Add following code on the page:
<h:form id="theForm">
<rich:dataTable value="#{excel.dataModel}" var="dat"
id="theDataTable">
<f:facet name="header"><h:outputText value="header"/></f:facet>
<f:facet name="footer"><h:outputText value="footer"/></f:facet>
<rich:column>
<h:outputText value="#{dat}" />
</rich:column>
</rich:dataTable>
<h:commandLink value="Export"
action="#{org.jboss.seam.excel.excelExporter.export('theForm:theDataTable')}" />
</h:form> 
#5. Navigate to the page, click "Export" and verify facets data presence in excel.

Actual behavior: facets don't display in excel. The same situation occur with rich scrollableDataTable and extendedDataTable. 
But, when facets is placed inside <rich:column tag - data export works well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list