【发布时间】:2017-07-08 02:52:22
【问题描述】:
当我在 xhtml 页面中使用下一个代码时
<p:repeat value="#{mybeanView.usernames}" var="username" >
<br /><h:outputText value="#{username}" />
</p:repeat>
它会记录下一条消息(INFO 和 WARNING)
谁能解释一下原因?
我怎样才能删除(或解决)这些警告?
[警告]
**Unsupported component-family/renderer-type**:
org.primefaces.component/org.primefaces.component.UIRepeatRenderer
[信息]
SRVE0292I: Servlet Message - [ElizaTourism]:
.**No Renderer found for component** {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /admin/tourism/pushNotification.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_9][Class: org.primefaces.component.tabview.TabView,Id: mainTabView][Class: org.primefaces.component.tabview.Tab,Id: scheduledNotifications][Class: javax.faces.component.html.HtmlForm,Id: scheduledNotificationsForm][Class: org.primefaces.component.datatable.DataTable,Id: scheduledNotificationsTable][Class: org.primefaces.component.column.Column,Id: j_id_4a][Class: org.primefaces.component.repeat.UIRepeat,Id: j_id_4c]} (component-family=org.primefaces.component, renderer-type=org.primefaces.component.UIRepeatRenderer) created from: xxx.xhtml at line 246 and column 79
[警告]
**No Renderer found for component** {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: xxx.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_9][Class: org.primefaces.component.tabview.TabView,Id: mainTabView][Class: org.primefaces.component.tabview.Tab,Id: scheduledNotifications][Class: javax.faces.component.html.HtmlForm,Id: scheduledNotificationsForm][Class: org.primefaces.component.datatable.DataTable,Id: scheduledNotificationsTable][Class: org.primefaces.component.column.Column,Id: j_id_4a][Class: org.primefaces.component.repeat.UIRepeat,Id: j_id_4c]} (component-family=org.primefaces.component, renderer-type=org.primefaces.component.UIRepeatRenderer) created from: xxx.xhtml at line 246 and column 79
【问题讨论】:
-
您的项目中确定没有 2 个 PF 版本?
标签: jsf primefaces jsf-2