[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4253) xls-format-mask doesnt support dates with spaces

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Thu Jun 18 01:34:56 EDT 2009


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

Nicklas Karlsson commented on JBSEAM-4253:
------------------------------------------

If you are interested in the issue, you could debug what fails in the parsing since PropertyBuilders.FormatMask extends MergingStringPropertyBuilder which takes the parts (which in this case should be "M", "dd," and "YYYY" and implodes them with a space back to "M dd, YYYY". 

So if there are more complex usecases, sure, there could be a more complex property builder using regexps etc but just for avoiding the "spaces in value"-case, MergingStringPropertyBuilder should technically work...

> xls-format-mask doesnt support dates with spaces
> ------------------------------------------------
>
>                 Key: JBSEAM-4253
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4253
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.2.GA
>            Reporter: Eric Jung
>
> If I write:
>   <e:cell column="0" row="0" value="#{commitService.date}" style="xls-format-mask: M dd, YYYY"/>
> only "M" is used as the format mask.
> This reminds me of JBSEAM-3839.

-- 
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