4 Replies Latest reply on Jan 22, 2008 3:06 PM by norman.richards

    Creating Seam iText PDF: Linebreak in p:table cell

    brachie

      Hi,

      in our project we are creating curriculum vitaes using Seam iText. For that we use the tables <p:table> in the template.

      This is the problem:

      <p:table>
      ...
      <p:cell><p:text value="#{st.startdate}"><f:convertDateTime pattern="MM/yyyy" /></p:text> - <p:text value="#{st.enddate}"><f:convertDateTime pattern="MM/yyyy" /></p:text></p:cell>
      ...
      


      Which gives the following output:

      10/2002
      -
      12/2004

      what we want is:

      10/2002-12/2004

      The problem is that the <p:text> inside of a table-cell results in a linebreak. But I have to use <p:text> because of the converter.

      Is there any workaround, alternative or attribute which could help us? I already tried <p:cell noWrap="true"> but that did not help, still linebreaks :-(

      Any help would be appreciated!

      Thanks,

      Alexander