如何在单击按钮时显示所有项目并在 jsf 中显示丰富的自动完成列表的第一项?

How to show all items on click of button and show first item of the list for rich autocomplete in jsf?

虽然我使用的是丰富的自动完成功能,但问题是仅在搜索时它会显示值列表,如果它是空值,它不会显示所有 values.I 以 ajax 作为模式。

从您的本地应用程序使用值 = 0 覆盖 richfaces 库的 getMinCharsOrDefault 方法,并在 facesconfig.xml 下面添加渲染器工具包。

 <component-family>javax.faces.Input</component-family>
 <renderer-type>org.richfaces.AutocompleteRenderer</renderer-type>
  <renderer-class> your overriden class name </renderer-class>