[jboss-user] [JBoss Seam] - PDF generation : horizontalAlignment does not work

matt_lc do-not-reply at jboss.com
Fri Feb 1 08:57:41 EST 2008


Hi,

I try to format a table in a PDF export. The problem is that the alignment parameters are not applied when the table become a bit complex...

here is a sample of code that doesn't work : 


  | <p:table columns="2" widths="1 1" widthPercentage="50" horizontalAlignment="right" spacingAfter="0">
  |       <p:cell> <p:font family="HELVETICA" size="10">#{msgExportPDF.totalHT}</p:font></p:cell>
  |       <p:cell> <p:font style="bold" family="HELVETICA" size="10"><p:text value="#{exportPDF.montantHT}"> <f:convertNumber type="currency" currencySymbol="#{msgExportPDF.euro}" maxFractionDigits="2" minFractionDigits="2"/></p:text></p:font></p:cell>
  |       <p:cell> <p:font family="HELVETICA" size="10">#{msgExportPDF.tva}#{factureHome.instance.tauxTva.tva} #{msgExportPDF.pourcent}</p:font></p:cell>
  | 	  <p:cell horizontalAlignment="right" verticalAlignment="center"> <p:font style="bold" family="HELVETICA" size="10"><p:text value="#{exportPDF.tva}"> <f:convertNumber type="currency" currencySymbol="#{msgExportPDF.euro}" maxFractionDigits="2" minFractionDigits="2"/> </p:text></p:font></p:cell>
  |       <p:cell grayFill="0.8f" alignment="right"> <p:font family="HELVETICA" size="10">#{msgExportPDF.totalTTC}</p:font></p:cell>
  |       <p:cell minimumHeight="20" grayFill="0.8f" horizontalAlignment="right"> <p:font style="bold" family="HELVETICA" size="10"><p:text value="#{exportPDF.totalTTC}"> <f:convertNumber type="currency" currencySymbol="#{msgExportPDF.euro}" maxFractionDigits="2" minFractionDigits="2"/> </p:text></p:font></p:cell>
  |    </p:table>
  | 

I've read that there still were some problems with seam PDF generation. Is it a bug (how many time it takes to solve it)? Is my table wrong ? Is there some parameters to set elsewhere ?

I've succeed to make it work with a very simple table (no other formatting parametters...)

Thanks !

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125524#4125524

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125524



More information about the jboss-user mailing list