p:anchor in footer
------------------
Key: JBSEAM-4108
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4108
Project: Seam
Issue Type: Feature Request
Components: PDF
Affects Versions: 2.0.2.SP1
Reporter: Tihomir Surdilovic
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=viewforu...
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira