2 Replies Latest reply on Feb 25, 2010 5:50 AM by Daniel Kim

    PDF p:cell alignment issue

    Daniel Kim Newbie
      Hi,

      I have jboss seam project that creates PDF report and horizontalAlignmen attribute for p:cell tag doesn't work.

      ex)

      <p:cell horizontalAlignment="right".../>

      and I found this topic.

      http://seamframework.org/Community/PDFPcellAlignmentBrokenIn210GA#comment118040

      Is there any solutions for this?

      thanks,
      Daniel

      p.s.
      I am using jboss-4.2.3GA

        • 1. Re: PDF p:cell alignment issue
          Javier Carazo Newbie

          Hi,


          as you can see here at least you should update to Seam 2.1.2.GA.


          Other thing you must have it clear is that the content(blocks) inside cells must be properly formatted. (Paragraph, font, text....)


          <p:table columns="2" borderWidth="1" widthPercentage="100" spacingAfter="4">
              <p:cell borderWidth="1" horizontalAlignment="right">
                  <p:font size="12" color="#1A61A9">AAAAAAAA</p:font>
              </p:cell>
              <p:cell borderWidth="1" horizontalAlignment="right">
                  <p:paragraph>
                  <p:font size="12" color="#1A61A9">
                      <p:text value="BBBBBB"></p:text>
                  </p:font>
                  </p:paragraph>
              </p:cell>
          </p:table>



          In above example first cell doesn't work but second does.

          • 2. Re: PDF p:cell alignment issue
            Daniel Kim Newbie
            Ah...I need to put it inside of <p:paragragh> tag and it works. Indeed, I am already using Jboss Seam 2.1.2.

            thanks!