[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4371) [Excel exporter] Excel exporter error on header and xsl-force-type
Yan Langlois (JIRA)
jira-events at lists.jboss.org
Mon Apr 19 09:39:49 EDT 2010
[ https://jira.jboss.org/jira/browse/JBSEAM-4371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12526461#action_12526461 ]
Yan Langlois commented on JBSEAM-4371:
--------------------------------------
I find a work around. The attribute "style" should not be used on the rich:column element but on on the outputText element which show the table content (not the one within the facet header) :
<rich:dataTable id="idTable" value="#{myBean}" var="item">
<rich:column>
<f:facet name="header">
<h:outputText styleClass="headerText" value="Day" />
</f:facet>
<h:outputText value="#{item.date}" style="xls-force-type:date;"/>
</rich:column>
</rich:dataTable>
> [Excel exporter] Excel exporter error on header and xsl-force-type
> ------------------------------------------------------------------
>
> Key: JBSEAM-4371
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4371
> Project: Seam
> Issue Type: Bug
> Components: Excel
> Affects Versions: 2.1.2.GA, 2.2.0.GA
> Reporter: Yan Langlois
> Assignee: Nicklas Karlsson
>
> When a dataTable use a column with header and xsl-force-type the haeder is cast to the forced type. It should not. For exemple :
> <rich:dataTable id="idTable" value="#{myBean}" var="item">
> <rich:column style="xls-force-type:date;">
> <f:facet name="header">
> <h:outputText styleClass="headerText" value="Day" />
> </f:facet>
> <h:outputText value="#{item.date}" />
> </rich:column>
> </rich:dataTable>
> The exporter try to cast the value "Day" into a java.util.Date. It should only cast #{item.date} into a java.util.Date.
--
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