属性列表未在o:converter(Netbeans 7.3)中定义

Eri*_* C. 5 configuration netbeans-7 omnifaces

我正试图org.omnifaces.converter.ListConverter在primefaces选项列表中使用new .我在maven的项目中添加了新的依赖项,并重建了项目以下载jar文件:

<dependency>
    <groupId>org.omnifaces</groupId>
    <artifactId>omnifaces</artifactId>
    <version>1.5</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

我正在我的facelets中导入命名空间,如下所示:

xmlns:o="http://omnifaces.org/ui"
Run Code Online (Sandbox Code Playgroud)

不过,当我尝试<o:converter>在我的选项列表中使用时如下:

<o:converter converterId="omnifaces.ListConverter" list="#{projectBean.clientSource}" />
Run Code Online (Sandbox Code Playgroud)

我从netbeans 7.3收到一条消息说:

The attribute list is not defined in the component converter
Run Code Online (Sandbox Code Playgroud)

它似乎没有导致任何构建失败...我错过了什么?我是不是应该使用omnifaces?

Dav*_* SK -1

第一次添加依赖项时,netbeans 不会更新其名称空间列表。

然后,

  1. 执行“清理和构建”
  2. 在某些情况下,重新启动 Netbeans

以及它的全部

我的omnifaces 1.7 和 Netbeans 7.3.1 也发生了同样的情况