【问题标题】:Using a custom renderer in XPiNC fails在 XPiNC 中使用自定义渲染器失败
【发布时间】:2015-04-23 13:26:01
【问题描述】:

我按照 Sven 的提示,如何将空的 html5 属性实现到 xpages:XPages: Empty HTML5 Attibutes & PassThroughTags 我在浏览器客户端工作得很好。

但是当我以 XPiNC 的身份打开代码时,我总是在 trace-log-0 中收到此错误消息:

java.lang.ClassNotFoundException: Cannot find class ch.hasselba.xpages.PassThroughTagRendererEx in NSF

我尝试了不同的包名称、构建路径。但是即使我可以在 WebContent/WEB-Inf/classes 下的预期位置找到编译的类,我也会收到此错误。

当我剥离所有功能时,找不到该类:

package ch.hasselba.xpages;

import com.ibm.xsp.renderkit.html_basic.PassThroughTagRenderer;

public class PassThroughTagRendererEx extends PassThroughTagRenderer {
    // I don't do anything!
}

faces-config.xml 如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
  <render-kit>
    <renderer>
      <component-family>javax.faces.Output</component-family>
      <renderer-type>com.ibm.xsp.PassThroughTagRenderer</renderer-type>
      <renderer-class>ch.hasselba.xpages.PassThroughTagRendererEx</renderer-class>
    </renderer>
  </render-kit>
  <!--AUTOGEN-START-BUILDER: Automatically generated by IBM Domino Designer.     Do not modify.-->
  <!--AUTOGEN-END-BUILDER: End of automatically generated section-->
</faces-config>

是否有可能在 XPiNC 应用程序中实现自定义渲染器?

【问题讨论】:

  • 可以在 XPiNC 应用程序中使用自定义渲染器。您的应用程序可能有其他问题。是本地数据库还是服务器上?

标签: xpages xpinc


【解决方案1】:

在完全重新安装 IBM Domino Designer 9.0.1FP3 后,没有任何额外的扩展库或其他插件,自定义渲染器在客户端中确实可以工作。

【讨论】:

    猜你喜欢
    • 2013-11-21
    • 2019-05-06
    • 2018-07-26
    • 2017-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-31
    • 2017-11-24
    相关资源
    最近更新 更多