Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 2.0.2.SP1
    • Fix Version/s: None
    • Component/s: PDF
    • Labels:
      None

      Description

      Following example of having and external anchor reference in page footer does not work (exception below)

      <p:footer borderWidthTop=".4" borderWidthBottom="0" alignment="left">
      Page [<p:pageNumber />]
      <p:paragraph>
      <p:anchor reference="http://www.jboss.org/index.html?module=bb&op=viewforum&f=231"> support forums</p:anchor>
      </p:paragraph>
      </p:footer>

      Exception:

      com.sun.facelets.FaceletException: Error Parsing /pdftest.xhtml: Error Traced[line: 26] The reference to entity "op" must end with the ';' delimiter.
      at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
      at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
      at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:218)
      at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:149)
      at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:100)
      at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

      After removing parameters:

      <p:footer borderWidthTop=".4" borderWidthBottom="0" alignment="left">
      Page [<p:pageNumber />]
      <p:paragraph>
      <p:anchor reference="http://www.jboss.org/index.html"> support forums</p:anchor>
      </p:paragraph>
      </p:footer>

      Exception thrown is:
      java.lang.RuntimeException: Not all annotations could be added to the document (the document doesn't have enough pages).
      at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
      at com.lowagie.text.Document.close(Unknown Source)
      at org.jboss.seam.pdf.ui.UIDocument.encodeEnd(UIDocument.java:269)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  tsurdilovic Tihomir Surdilovic
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: