Use case: We want to be able to load a select1 control with data from and xml
document stored in eXist after a previous select1 control selection is made. Error: 2008-03-20 13:11:27,263 ERROR XFormsServer - XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException: line 27 of oxf:/config/xforms-widgets.xsl (processing instance replacement): Body received with non-XML media type for replace="instance": text/html oxf:/config/xforms-widgets.xsl, line 27, column -1: Body received with non-XML media type for replace="instance": text/html I configured an xmldb processor to connect to the eXist database using connection information stored in datasource.xml (input). I properly inserted an xquery (input) Output is name="data" ref="data" (note I also tried replacing data with instance). In my xhtml file, a user selects a value in the first select1 control which activates a trigger - send submission. The submission element calls the xpl file in a second page element in page-flow.xml. In the model I have 2 instances. The one instance I want to load with data from the xquery. When I add a view="test.xsl" in the page element the selection send the submission, queries xml document in eXist and displays second page with the results. This is not the intended result, but I just wanted to test and make sure I had the connections and query correct. My error seems to be in the submission element. When I add attributes: replace="instance" instance="sections", I get the above error. Can someone please assist on how to send results back from a query into an instance within the model. Thank you. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Brian,
The error is clear: "Body received with non-XML media type for replace="instance": text/ html" This means that your request to eXist returns a document with the improper mediatype. In order to replace an instance with a result, an XML mediatype is required. This either means that eXists returns the wrong mediatype, or that somehow you get another HTML document back, for example an error page. You could use something like tcpmon to check exactly what's going on on the wire here. -Erik On Mar 20, 2008, at 10:27 AM, [hidden email] wrote: > Use case: We want to be able to load a select1 control with data > from and xml > document stored in eXist after a previous select1 control selection > is made. > > Error: 2008-03-20 13:11:27,263 ERROR XFormsServer - XForms - > submission - > xforms-submit-error throwable: > org.orbeon.oxf.xforms.XFormsModelSubmission > $XFormsSubmissionException: line 27 > of oxf:/config/xforms-widgets.xsl (processing instance replacement): > Body > received with non-XML media type for replace="instance": text/html > oxf:/config/xforms-widgets.xsl, line 27, column -1: Body received > with non-XML > media type for replace="instance": text/html > > I configured an xmldb processor to connect to the eXist database using > connection information stored in datasource.xml (input). > > I properly inserted an xquery (input) > > Output is name="data" ref="data" (note I also tried replacing data > with > instance). > > In my xhtml file, a user selects a value in the first select1 > control which > activates a trigger - send submission. The submission element calls > the xpl > file in a second page element in page-flow.xml. > > In the model I have 2 instances. The one instance I want to load > with data > from the xquery. > > When I add a view="test.xsl" in the page element the selection send > the > submission, queries xml document in eXist and displays second page > with the > results. This is not the intended result, but I just wanted to test > and make > sure I had the connections and query correct. > > My error seems to be in the submission element. When I add > attributes: > replace="instance" instance="sections", I get the above error. > > Can someone please assist on how to send results back from a query > into an > instance within the model. Thank you. > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |