Hi all,
I am trying to use the autocomplete component in resource mode.
Here is the problem:
in the autocomplete I am calling
http://localhost:8984/commune/ft/fontenay%20le%20c.
the webservice response is (as read by firefox) :
<items><item id="85092">FONTENAY-LE-COMTE</item></items>
but the json sent back to the browser (i can watch it in the firefox network web developer tool) is :
<xxf:event-response xmlns:xxf="
http://orbeon.org/oxf/xml/xforms"><xxf:action><xxf:control-values><xxf:control id="fr-view-wizard≡section-1-control≡xf-435≡control-2-control≡search">fontenay le c</xxf:control><xxf:control id="fr-view-wizard≡section-1-control≡xf-435≡control-2-control≡select1"/><xxf:itemset id="fr-view-wizard≡section-1-control≡xf-435≡control-2-control≡select1">[{"label":"FONTENAY-LE-COMTE","value":"FONTENAY-LE-COMTE"},{"label":"85092","value":"85092"}]</xxf:itemset></xxf:control-values></xxf:action></xxf:event-response>
As you can see, labels and values are messed up.
There could be a problem in the xml to json transformation server side.
Looking forward to hearing from you,
regards,
Fabrice