在XPiNC中使用自定义渲染器失败

时间:2015-04-23 13:26:01

标签: xpages xpinc

我遵循了Sven的提示,如何将空的html5 attritutes实现为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应用程序中实现自定义渲染器?

1 个答案:

答案 0 :(得分:1)

完全重新安装IBM Domino Designer 9.0.1FP3后,任何其他扩展库或其他插件自定义渲染器都可以在客户端中运行。

相关问题