jsf-2 - 警告 : Unsupported component-family/renderer-type: org.omnifaces.component.script/javax.faces.Button

标签 jsf-2 myfaces renderer omnifaces

我定义了以下形式:

<ui:define name="body">
    <h:form
        id="posForm"
        styleClass="well span12">
....
        <o:commandScript
            id="createTransactionCommandScript"
            rendered="#{multiTenantBean.currentAccount.stripePublishableKey != null}"
            name="createTransaction"
            actionListener="#{posMB.createTransaction}"
            execute="@form"
            render="@form" />
    </h:form>
</ui:define>

当我加载页面时,我会反复向 Stdout 发送此错误:

Apr 11, 2013 6:31:53 PM org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
WARNING: Unsupported component-family/renderer-type: org.omnifaces.component.script/javax.faces.Button
Apr 11, 2013 6:31:53 PM javax.faces.component.UIComponentBase getRenderer
WARNING: No Renderer found for component {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pos.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_m][Class: javax.faces.component.html.HtmlForm,Id: posForm][Class: org.omnifaces.component.script.CommandScript,Id: createTransactionCommandScript]} (component-family=org.omnifaces.component.script, renderer-type=javax.faces.Button)
Apr 11, 2013 6:31:53 PM org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
WARNING: Unsupported component-family/renderer-type: org.omnifaces.component.script/javax.faces.Button
Apr 11, 2013 6:31:53 PM javax.faces.component.UIComponentBase getRenderer
WARNING: No Renderer found for component {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pos.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_m][Class: javax.faces.component.html.HtmlForm,Id: posForm][Class: org.omnifaces.component.script.CommandScript,Id: createTransactionCommandScript]} (component-family=org.omnifaces.component.script, renderer-type=javax.faces.Button)
Apr 11, 2013 6:31:53 PM org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
WARNING: Unsupported component-family/renderer-type: org.omnifaces.component.script/javax.faces.Button
Apr 11, 2013 6:31:53 PM javax.faces.component.UIComponentBase getRenderer
WARNING: No Renderer found for component {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pos.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_m][Class: javax.faces.component.html.HtmlForm,Id: posForm][Class: org.omnifaces.component.script.CommandScript,Id: createTransactionCommandScript]} (component-family=org.omnifaces.component.script, renderer-type=javax.faces.Button)
Apr 11, 2013 6:31:53 PM org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
WARNING: Unsupported component-family/renderer-type: org.omnifaces.component.script/javax.faces.Button
Apr 11, 2013 6:31:53 PM javax.faces.component.UIComponentBase getRenderer
WARNING: No Renderer found for component {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pos.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_m][Class: javax.faces.component.html.HtmlForm,Id: posForm][Class: org.omnifaces.component.script.CommandScript,Id: createTransactionCommandScript]} (component-family=org.omnifaces.component.script, renderer-type=javax.faces.Button)

我在这里做错了什么?

最佳答案

你没有做错什么。 CommandScriptUICommand 继承了 javax.faces.Button 的渲染器类型它继承自的类,而它应该 actuallyCommandScript 自行渲染时已设置为 null。 MyFaces 只是警告关联的渲染器实现无法解析。此问题已在 OmniFaces 1.5 中修复。

关于jsf-2 - 警告 : Unsupported component-family/renderer-type: org.omnifaces.component.script/javax.faces.Button,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15960700/

相关文章:

jsf-2 - 将 Apache Myfaces 与 Prime faces 结合使用

golang renderer.HTML 没有从模板内部选择 javascript 文件

JSF index.xhtml 和重定向到面 Action

java - 选项而不是 JTable

自定义列的 Magento 网格过滤器索引

validation - 绕过 UIInput 组件的 JSF 验证

jsf-2 - 如何从<ui :repeat>中的jsf页面获取支持Bean的参数

jakarta-ee - Primefaces 组件在 websphere 8.5 中不起作用

html - 无法删除 Primefaces SelectOneMenu 上的底部 "margin"

tomcat - NoClassDefFoundError (Digester) 与 Tomcat 和 MyFaces