时间:2017-02-18 15:46:10

标签: jsf primefaces jsf-2

=“”

当我在xhtml页面中使用下一个代码

<p:repeat value="#{mybeanView.usernames}" var="username" >
        <br /><h:outputText value="#{username}" />
</p:repeat>

它会记录下一条消息(信息警告

任何人都可以解释原因吗?

如何删除(或解决)这些警告?

[警告]

**Unsupported component-family/renderer-type**: 
org.primefaces.component/org.primefaces.component.UIRepeatRenderer

[INFO]

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

1 个答案:

答案 0 :(得分:0)

我认为你应该使用<c:foreach>

JSTL <c:forEach>是一个视图构建时标记(<ui:repeat>是一个视图渲染时间标记)。

另见: ui:repeat JSF 2.0 cannot render iterate p:row primefaces