【问题标题】:Primefaces <p:repeat : Unsupported component-family/renderer-type - No Renderer found for componentPrimefaces <p:repeat:不支持的组件系列/渲染器类型 - 未找到组件的渲染器
【发布时间】:2017-07-08 02:52:22
【问题描述】:

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

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

它会记录下一条消息(INFOWARNING

谁能解释一下原因?

我怎样才能删除(或解决)这些警告?

[警告]

**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


【解决方案1】:

我认为你应该使用&lt;c:foreach&gt;

JSTL &lt;c:forEach&gt; 是视图构建时间标记(&lt;ui:repeat&gt; 是视图渲染时间标记)。

另请参阅: ui:repeat JSF 2.0 cannot render iterate p:row primefaces

【讨论】:

    猜你喜欢
    • 2013-04-04
    • 2020-03-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-19
    • 1970-01-01
    • 1970-01-01
    • 2016-02-20
    • 1970-01-01
    相关资源
    最近更新 更多