Hoi,
I'd like to use the labelref-feature with the autocomplete component.
But for some reason this is not working as expected.
Using orbeon 2016.2 CE or orbeon 4.5.0 CE it's still the same behavior,
There is no label stored in the labelref-instance.
What's wrong with the following (simplified) example:
<xh:html
xmlns:xf="
http://www.w3.org/2002/xforms"
xmlns:xh="
http://www.w3.org/1999/xhtml"
xmlns:fr="
http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xh:title>Autocomplete - Example</xh:title>
<xf:model id="ac-model">
<xf:instance id="country">
<response>
<country/>
<countryName/>
</response>
</xf:instance>
<xf:instance id="all-countries">
<countries>
<country>
<name>Austria</name>
<us-code>au</us-code>
</country>
<country>
<name>Germany</name>
<us-code>gm</us-code>
</country>
<country>
<name>Switzerland</name>
<us-code>sz</us-code>
</country>
<country>
<name>European Union</name>
<us-code>ee</us-code>
</country>
</countries>
</xf:instance>
</xf:model>
</xh:head>
<xh:body>
<fr:autocomplete
ref="instance('country')/country"
labelref="instance('country')/countryName"
dynamic-itemset="false"
class="country-selection">
<xf:label>Search country</xf:label>
<xf:itemset ref="instance('all-countries')/country">
<xf:value ref="us-code"/>
<xf:label ref="name"/>
</xf:itemset>
</fr:autocomplete>
<xf:output ref="country">
<xf:label>Country: </xf:label>
</xf:output>
<xf:output ref="countryName">
<xf:label>Country Name: </xf:label>
</xf:output>
</xh:body>
</xh:html>
--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].