0

我在 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
4

2 回答 2

1

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

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

谢谢你!那是错。是否有可用的文档如何设置 trinidad jsf 应用程序?以及如何使用皮肤?

2007 年 7 月 15 日上午 17:19 施里布西蒙莱萨德:

嗯,

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

<application>

 <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
  </application>
于 2012-06-28T06:48:35.827 回答
0

如果您使用的是 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>
于 2014-06-11T14:44:27.623 回答