Re: ERPDFWrapper ?
Re: ERPDFWrapper ?
- Subject: Re: ERPDFWrapper ?
- From: Paul Hoadley <email@hidden>
- Date: Tue, 23 Dec 2014 09:15:49 +1030
Hi James,On 18 Dec 2014, at 8:33 am, James Cicenia < email@hidden> wrote: But then when I run the page:
ListPageInterface newListPage = (ListPageInterface) D2W.factory().pageForConfigurationNamed("ListCustomPDF"+entityName, session());
It blows up;
com.webobjects.foundation.NSForwardException [org.xml.sax.SAXParseException] The markup in the document following the root element must be well-formed.:org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
Whatever you feed to ERPDFWrapper needs to be strictly valid XHTML. It's also oddly sensitive about leading and trailing whitespace—so make sure there is none.
Is there a way to debug this?
You need to eyeball the content that's being wrapped by ERPDFWrapper—maybe take the ERPDFWrapper component out and see what the content is without it. If you're just trying to wrap whatever D2W is producing, I'd be extremely surprised if that was valid XHTML. Is that what you're doing there?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden