문제

I've made an XBL component for entering an address. In that XBL component, I used databound-select1 fields in a way similar to what is done in databound-select1-unittest.xhtml.

In the beginning, for simplicity, I used a static XML file accessible over http as a resource. But after I changed the resource URL to a service URL, the databound-select1 doesn't show items anymore. To locate the problem I made a form with two databound-select1 fields and both resources. But the result was the same.

I tested the service output and file output in the XForms Inspector by adding instances, which take their source from different resources, to the form, and the inspector shows both instances without problems.

(I use Form Builder. The service which returns items is behind HTTPS. Content-Type: text/plain; charset=utf-8.)

도움이 되었습니까?

해결책

The problem was caused by a wrong Content-Type.

When I started making a sample form on a separate orbeon I got a error message in the log:

Body received with non-XML media type for replace="instance": text/html

Changing the service response Content-Type to application/xml solved the problem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top