如何在点击按钮上显示所有项目并在jsf中显示列表的第一项以获取丰富的自动完成功能?

时间:2016-12-19 12:58:00

标签: jsf richfaces

虽然我正在使用丰富的自动填充,但问题是在搜索时只显示值列表,如果它是空值,它没有显示所有值。我将ajax作为模式。

1 个答案:

答案 0 :(得分:0)

override this method of getMinCharsOrDefault of richfaces library from your local app with value = 0 and in facesconfig.xml add below renderer kit.

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