【问题标题】:Inconsistent Rendering issue with Trinidad JSF与特立尼达 JSF 不一致的渲染问题
【发布时间】:2012-06-29 15:28:00
【问题描述】:

我在 JSF 页面中出现不一致的呈现错误。我正在使用特立尼达框架。

以下是日志,请帮忙

[6/28/12 11:44:56:124 IST] 00000020 FileRepositor A   ADMR0010I: Document cells/DHZVYYR1Node01Cell/applications/project-ear.ear/deployments/project-ear/META-INF/ibm-application-runtime.props is modified.
[6/28/12 11:46:42:716 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-core.taglib.xml
[6/28/12 11:46:42:720 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-html.taglib.xml
[6/28/12 11:46:42:728 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-ui.taglib.xml
[6/28/12 11:46:42:735 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jstl-core.taglib.xml
[6/28/12 11:46:42:738 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jstl-fn.taglib.xml
[6/28/12 11:46:42:747 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/trinidad-impl-1.2.9.jar!/META-INF/tr.taglib.xml
[6/28/12 11:46:42:748 IST] 00000024 compiler      I   Added Library from: wsjar:file:/C:/Users/ashishagarwal/IBM/rationalsdp/workspace/project/WebContent/WEB-INF/lib/trinidad-impl-1.2.9.jar!/META-INF/trh.taglib.xml
[6/28/12 11:46:43:257 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreDocument[UIXFacesBeanImpl, id=j_id0] rendererType = org.apache.myfaces.trinidad.Document
[6/28/12 11:46:43:257 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreForm[UIXFacesBeanImpl, id=j_id2] rendererType = org.apache.myfaces.trinidad.Form
[6/28/12 11:46:43:258 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id4] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:258 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id5] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:258 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id6] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:258 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id7] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:258 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id9] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:259 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id10] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:259 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id11] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:259 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id13] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:259 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id14] rendererType = org.apache.myfaces.trinidad.Link
[6/28/12 11:46:43:259 IST] 00000024 UIXComponentB W org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl Could not find renderer for CoreCommandLink[UIXFacesBeanImpl, id=j_id15] rendererType = org.apache.myfaces.trinidad.Link

【问题讨论】:

    标签: rendering jsf-1.2 trinidad


    【解决方案1】:

    这里是参考链接,下面是相关解决方案
    http://mail-archives.apache.org/mod_mbox/myfaces-users/200707.mbox/%3C71235db40707151015r55fe85a0o354c7e6e446a2515@mail.gmail.com%3E

    2007 年 7 月 15 日,Burghard Britzke 写道:

    谢谢!那是错。是否有可用的文档如何设置 建立一个特立尼达jsf应用程序?以及如何使用皮肤?

    Am 15.07.2007 um 17:19 schrieb Simon Lessard:

    嗯,

    关于 trinidad-config.xml,我不会认为它是可选的,因为你会 很可能需要在实际应用程序中使用简单以外的皮肤。 关于您的错误,我认为您可能在您的 faces-config.xml:

    <application>
    
     <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
      </application>
    

    【讨论】:

      【解决方案2】:

      如果您使用的是 eclipse,您可以按照 Initial Setup Guide 一步一步操作。

      别忘了!必需的补充:

      需要对 Web 应用程序的描述符进行以下添加以配置 Trinidad 的资源 servlet(在运行时提供样式表、脚本和图像):

        <servlet>
          <servlet-name>resources</servlet-name>
          <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
        </servlet>
      
        <servlet-mapping>
          <servlet-name>resources</servlet-name>
          <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
      

      需要对 Web 应用程序的描述符进行以下添加以配置 Trinidad 的过滤器:

        <filter>
          <filter-name>trinidad</filter-name>
          <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
      
        <filter-mapping>
          <filter-name>trinidad</filter-name>
          <servlet-name>faces</servlet-name>
        </filter-mapping>
      

      注意: 上面显示的过滤器映射假定标准 JSF servlet 的 servlet-name 指定为“faces” - 这可能因用户设置而异,因此应指定适当的。

      需要在 JSF 应用配置资源中添加以下内容来配置 Trinidad 的核心 RenderKit:

      <application>
        <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
      </application>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-12-07
        • 2012-08-09
        • 1970-01-01
        • 2012-10-05
        • 2011-08-03
        • 1970-01-01
        • 2011-08-13
        • 2011-10-24
        相关资源
        最近更新 更多