Hi, I'm trying to use a xhtml to pdf renderer (https://xhtmlrenderer.dev.<goog_1283895835> java.net/) in order to print out a page to PDF.
The page contains a NonCachingImage, with a barcode, in such a way that the image gets the following HTML : <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" " > http://www.w3.org/TR/xhtml11/DTD/xhtml11-flat.dtd"> > <html xml:lang="ca" xmlns="http://www.w3.org/1999/xhtml"> > ... > <img class="floatR" > src="?wicket:interface=:34:barcode::IResourceListener::&wicket:antiCache=1274953227999"/> > ... > </html> > When parsing the html String into a org.w3c.dom.document, I get the following exception: org.xml.sax.SAXParseException: The reference to entity "wicket:antiCache" > must end with the ';' delimiter. > I know this is probably not a Wicket issue, and maybe has to do with the DTD used for validation, or something like that. I found somewhere this can get solved by changing the '&' character in the URL by '&'. That worked. Now I plan to override NonCachingImage's onComponentTag to append & instead of '&'. That solved, I can't get the image to get rendered in the pdf document, in the html's DOM I have the <img> Element with the 'src' atttribute with value ="http://myapp/?wicket:interface=:34: barcode::IResourceListener::&wicket:antiCache=1274953227999", but Image#onResourceRequested() (which is the callback for that URL) never gets called during the render phase of the PDF... I'd really appreciate any hints on this one, I've been looking into the resources reference but I don't know if I should use it, or which implementation to use... The image resource is formed from a byte array. Many thanks, Xavier López
