不允许 XPages DojoCombobox 用户输入不在列表中的值

XPages DojoCombobox user is not allowed to enter a value which is not in the list

  1. 我用 dojo (djCombobox) 创建了一个 dojo 组合框,

  2. 我将值输入组合框,效果很好。我添加了截图应该是什么样子...

  3. 但用户也可以输入不在列表中的值。

它应该如上图所示,用户不能输入不在组合框列表中的值。我该怎么做。

您应该使用 <xe:djFilteringSelect id="djFilteringSelect1"></xe:djFilteringSelect> 而不是组合框。