警告:不支持的component-family / renderer-type:org.omnifaces.component.script / javax.faces.Button

时间:2013-04-11 23:35:59

标签: 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)

我在这里做错了什么?

1 个答案:

答案 0 :(得分:3)

你没有做错任何事。 CommandScript已从其扩展的UICommand类继承了javax.faces.Button的呈现器类型,而actually已将null设置为CommandScript作为{{1}} {1}}自己呈现。 MyFaces只是警告相关的渲染器实现无法解决。这已在OmniFaces 1.5中修复。