Hello All,
So I have been using the Http service and Action in the form builder to
populate a series of check boxes. I have this working in a test form and all
works. Now my issue is when I try do the same thing within an XBL component.
Here is what I currently have in my XBL
<xf:model id="local-model" xxf:expose-xpath-types="true"
xxf:analysis.calculate="true">
<xf:instance>
<reject-referral>
<specialty></specialty>
<subSpecialty/>
<reasonForRejection itemset-empty="false"></reasonForRejection>
</reject-referral>
</xf:instance>
<xf:bind id="instance-bind" ref="instance()" name="instance">
<xf:bind id="specialty-bind" ref="specialty" name="specialty" />
<xf:bind id="sub-specialty-bind" ref="subSpecialty"/>
<xf:bind id="rejection-reason-bind" ref="reasonForRejection" />
</xf:bind>
<xf:instance id="specialty-service-instance" class="fr-service"
xxf:exclude-result-prefixes="#all">
<body xmlns:xxbl="
http://orbeon.org/oxf/xml/xbl"
xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi">
<s:Envelope
xmlns:s="
http://schemas.xmlsoap.org/soap/envelope/">
<column>specialty</column>
</s:Envelope></body>
</xf:instance>
<xf:submission id="specialty-service-submission" class="fr-service"
resource="
http://localhost:8080/referrals-controller/configurations/serviceclinicmappings/searched"
method="post"
serialization="application/xml"
mediatype="application/xml">
<xf:action event="xforms-submit"
ev:observer="specialty-service-submission">
<xf:var name="request-instance-name"
value="'specialty-service-instance'"/>
<xf:message value="$request-instance-name"/>
</xf:action>
</xf:submission>
<xf:action id="specialty-action-binding">
<xf:action event="xforms-value-changed xforms-ready"
ev:observer="local-model"
if="true()">
<xf:send submission="specialty-service-submission"/>
</xf:action>
<xf:action event="xforms-submit"
ev:observer="specialty-service-submission">
<xf:var name="request-instance-name"
value="'specialty-service-instance'"/>
<xf:message value="$request-instance-name"/>
</xf:action>
<xf:action event="xforms-submit-done"
ev:observer="specialty-service-submission">
<xf:action class="fr-itemset-action">
<xf:var name="control-name" value="'specialty'"/>
<xf:var name="response-items" value="./_/."/>
<xf:var name="item-label" value="."/>
<xf:var name="item-value" value="."/>
</xf:action>
</xf:action>
</xf:action>
</xf:model>
The error I get in my logs are.. (Sorry about formatting)
12:17:00,073 DEBUG [org.orbeon.oxf.xforms.processor.XFormsServer] (default
task-33) start submission {id:
"mainSection-section≡grid-1-grid≡referral-details-control≡xf-1540≡xf-2396≡specialty-service-submission"}
12:17:00,073 DEBUG [org.orbeon.oxf.xforms.processor.XFormsServer] (default
task-33) found invalid node {element name:
"<reasonForRejection itemset-empty="false"/>"}
12:17:00,073 DEBUG [org.orbeon.oxf.xforms.processor.XFormsServer] (default
task-33) instance document or subset thereof cannot be
submitted {document: "<reject-referral xmlns:xbl="
http://www.w3.org/ns/xbl"
xmlns:workflow="
http://www.infomedix.com.au/workflow"
xmlns:xxf="
http://orbeon.org/oxf/xml/xforms"
xmlns:xxi="
http://orbeon.org/oxf/xml/xinclude"
xmlns:saxon="
http://saxon.sf.net/"
xmlns:fr="
http://orbeon.org/oxf/xml/form-runner"
xmlns:xf="
http://www.w3.org/2002/xforms"
xmlns:xh="
http://www.w3.org/1999/xhtml"
xmlns:ev="
http://www.w3.org/2001/xml-events"
xmlns:xi="
http://www.w3.org/2001/XInclude"
xmlns:xxbl="
http://orbeon.org/oxf/xml/xbl"
xmlns:exf="
http://www.exforms.org/exf/1-0"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:fb="
http://orbeon.org/oxf/xml/form-builder">
<specialty>Maternity</specialty>
<subSpecialty>Neo-natal</subSpecialty>
<reasonForRejection itemset-empty="false"/>
</reject-referral>"}
It looks like the transformation from having the class "fr-service" is not
being applied, and the submission is using the local instance in the
submission.
Is there any way around this?
Thanks,
Joel.
--
Sent from:
http://discuss.orbeon.com/