[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4189) Seam excel exporter doesn't show the footer defined in a dataTable and only works for single UIOutput per cell.

Roger Hsu (JIRA) jira-events at lists.jboss.org
Thu May 28 15:45:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-4189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12469547#action_12469547 ] 

Roger Hsu commented on JBSEAM-4189:
-----------------------------------

In my test, excel exporting only export header of each column to spreadsheet. The footer of a column, header and footer of the datatable are not exported

Thanks

> Seam excel exporter doesn't show the footer defined in a dataTable and only works for single UIOutput per cell.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4189
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4189
>             Project: Seam
>          Issue Type: Feature Request
>    Affects Versions: 2.1.1.GA
>            Reporter: Gary Hu
>             Fix For: 2.2.0.CR1
>
>
> We have found two issues in the current Seam 2.1.1.GA Excel exporter support.
> 1) It only works for a single UIOutput per cell. That means for each cell you can only define one UIOutput per column in the dataTable.
> 2) The footer doesn't show in the excel spreadsheet.
> The following code could be used to reproduce the issue:
> xhtml:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:s="http://jboss.com/products/seam/taglib"
> xmlns:a4j="http://richfaces.org/a4j"
> xmlns:rich="http://richfaces.org/rich">
> <ui:composition template="layout/template.xhtml">
> <ui:define name="body">
> <h:form id="myForm">
> <rich:dataTable id="dlist"
> value="#{stringList}"
> var="myString">
> <rich:column>
> <f:facet name="header">
> <h:outputText value="String value"/>
> </f:facet>
> <h:outputText value="#{myString}"/>
> </rich:column>
> <rich:column>
> <f:facet name="header">
> <h:outputText value="String value2"/>
> </f:facet>
> <h:outputText value="#{myString}_1"/>
> <h:outputText value="#{myString}_2"/>
> <f:facet name="footer">
> <h:outputText value="my footer3" style="font-weight: bold" >
> </h:outputText>
> </f:facet>
> </rich:column>
> </rich:dataTable>
> <h:commandLink value="Export" action="#{excelExporter.export('myForm:dlist')}"/>
> </h:form>
> </ui:define>
> </ui:composition>
> </html>
> java code:
> import java.util.ArrayList;
> import java.util.List;
> import org.jboss.seam.ScopeType;
> import org.jboss.seam.annotations.Factory;
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.annotations.Scope;
> @Name("sample")
> @Scope(ScopeType.SESSION)
> public class Sample {
> @Factory("stringList")
> public List<String> getStrList(){
> List<String> strList = new ArrayList<String>();
> for(int i=0;i<20;i++) {
> strList.add("StringItem"+i);
> }
> return strList;
> }
> } 

-- 
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 seam-issues mailing list