【问题标题】:How to show all items on click of button and show first item of the list for rich autocomplete in jsf?如何在单击按钮时显示所有项目并在 jsf 中显示丰富的自动完成列表的第一项?
【发布时间】:2016-12-19 12:58:00
【问题描述】:

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

【问题讨论】:

  • 您能简单介绍一下您的问题吗,因为我无法联系您

标签: jsf richfaces


【解决方案1】:

使用 value = 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>

【讨论】:

    猜你喜欢
    • 2012-12-13
    • 2012-04-25
    • 1970-01-01
    • 1970-01-01
    • 2018-01-19
    • 2020-07-26
    • 2012-06-12
    • 2012-03-05
    • 2015-10-25
    相关资源
    最近更新 更多