Hi!
What does happen if the user enters a value into the autocomplete field that is not in the list of retrieved proposals? Does this differ between dynamic, resource and static mode? Can the behaviour be influenced or controlled by configuration options? The other way round: What does happen if a key which does not exist in the proposals key list is inserted programatically (so there is no valid value to display)? Is it deleted or does it remain in the XML? Thank you JT -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Hi JT,
Semantically, the autocomplete works like a (closed) selection control. So it does not allow you to select an item which isn't in the itemset. Momentarily, as you type in the field, you of course need to have some text in the field that corresponds to no item's label in the itemset; say the autocomplete allows you to enter a country name, and so far you typed "Switz", for Switzerland. But when you tab out of the field, if the value typed so far still isn't in in the itemset, the field is cleared, to make it clear that no value was selected. In resource or dynamic mode, you dynamically control the values in the itemset, so if you want to allow the text users typed so far whatever it is, you can just return an item with that text as label, and you'll get the result you expect. (Note that in this case you'll have to choose what the item's value is. It could be the same as the label, but in some case that might cause some confusion with another item's value, which may or may not be a problem in your case. If it is, adding a prefix is a possible solution.) Alex On Fri, Apr 20, 2012 at 5:08 AM, Stumpf, Jens Thorsten <[hidden email]> wrote: > Hi! > > What does happen if the user enters a value into the autocomplete field that is not in the list of retrieved proposals? > Does this differ between dynamic, resource and static mode? > Can the behaviour be influenced or controlled by configuration options? > > The other way round: > What does happen if a key which does not exist in the proposals key list is inserted programatically (so there is no valid value to display)? > Is it deleted or does it remain in the XML? > > Thank you > > JT > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |