« Return to Thread: bug: combo box values

Re: bug: combo box values

by Erik Bruchez :: Rate this Message:

Reply to Author | View in Thread

Jean-Luc,

That's actually a feature, sort of. An open selection allows you only  
to enter custom *values*, not custom labels.  We only support open  
selection in autocomplete mode. In order for autocompletion to occur  
properly, it is desirable that the use sees how the values he enters  
match the existing values in the itemset.

So we have chosen to display the values only and to ignore the labels.  
We could have gone in the other direction and shown the labels, but  
then you as a developer must ensure that the labels match the values.

Alternatively, a possibility would be to actually display the label as  
well in the list.

We are not too happy about the current state of autocomplete anyway.  
We would like to upgrade to the YUI widget at some point.

-Erik

On Apr 25, 2008, at 11:06 AM, Jean Luc wrote:

> The *displayed* auto-complete values in a combo box are populated  
> with the 'value' attribute from the underlying nodeset. They should  
> be from the 'label' attribute. The control is used as below and what  
> I see in the box is all the values for the code attribute, instead  
> of the name subelement
>
>
> <xforms:select1 ref="..." appearance="xxforms:autocomplete"  
> selection="open" incremental="true">
>     <xforms:label>Parent widget:</xforms:label>
>     <xforms:itemset nodeset="instance('form-data')/widgetList/widget">
>         <xforms:label ref="name"/>
>         <xforms:value ref="@code"/>
>     </xforms:itemset>
> </xforms:select1>
> Orbeon Forms Release 3.6.0.200803121728
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

 « Return to Thread: bug: combo box values

LightInTheBox - Buy quality products at wholesale price