[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4510) PDF generation fails when added as attachment to mail if <p:document... isn't on first row

Marcus Smedman (JIRA) jira-events at lists.jboss.org
Fri Dec 18 07:50:30 EST 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Smedman updated JBSEAM-4510:
-----------------------------------

    Attachment: patch_seam.2.2_UIAttachment_åäö_fix.txt


> PDF generation fails when added as attachment to mail if <p:document... isn't on first row
> ------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4510
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4510
>             Project: Seam
>          Issue Type: Bug
>          Components: Mail
>    Affects Versions: 2.2.0.GA
>            Reporter: Marcus Smedman
>            Assignee: Pete Muir
>         Attachments: patch_seam.2.2_UIAttachment_åäö_fix.txt
>
>
> When using swedish characters (ISO-8859-1) 'åäö' in a pdf template I have to include <?xml version="1.0" encoding="iso-8859-1"?> to the template to make it work.
> org.jboss.seam.mail.ui.UIAttachment will only render a pdf/excel file correct if the first line/child in the (pdf/excel) xhtml template contains a pdf/excel tag. If I add a
> <?xml version="1.0" encoding="iso-8859-1"?> 
> line at the top of my pdf template it will fail when added as an attachment, but it will be renderder correct to a pdf when not used as an attachment. 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <p:document xmlns:ui="http://java.sun.com/jsf/facelets"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:p="http://jboss.com/products/seam/pdf" type="PDF" pageSize="A4"
> 	title="test">
> 	<p:paragraph>Test! åäö</p:paragraph>
> </p:document>
> Attaching patch to fix this problem.

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