1 Reply Latest reply on Feb 12, 2008 2:30 PM by norman.richards

    PDF template, space not showing

    terryb

      Certain places in template ignore spaces, I haven't been able to find a workaround for this.

      Expecting "Data as at: 01-01-2007" but get "Data as at:01-01-2007", when using p:text

      Same problem with p:pageNumber; expecting "Page - 4" but get "Page -4"

      <p:cell horizontalAlignment="right" verticalAlignment="middle"><p:paragraph><p:font size="10">Data as at: <p:text value="#{applicationStatByCourse.applicationClosingDate}"><s:convertDateTime pattern="dd-MM-yyyy"/></p:text></p:font></p:paragraph></p:cell>
      
      ...
      
      <p:footer borderWidthTop="1" borderColorTop="black" borderWidthBottom="0" alignment="center">Tertiary Institutions Service Centre (inc) - [page - <p:pageNumber/>]</p:footer>
      
      




        • 1. Re: PDF template, space not showing

          This is a problem with Facelets. I'm not really sure why Facelets has completely messed up whitespace processing. I'm not sure if there is a Facelets solution, but you can always add in something like: #{' '} when you need a space.