現在、データベースから一般的な xpage コードを抽出し、Eclipse 拡張プラグインにパッケージ化しています。RichText タグの拡張機能を除いて、すべて正常に機能しています。
タグはデザイナー パレットに表示され、ページに挿入できますが、標準属性 (id、rendered など) が認識されず、「不明なプロパティ」エラーが発生します。これは、NSF をビルドできないことを意味します。
この同じコードはデータベース自体で機能しましたが、プラグインで使用すると機能しません。
これが私のデータベースでは機能するのに、私のプラグインでは機能しない理由を知っている人はいますか?
xsp-config は次のとおりです (openntf XPages Rich Text Editor Evolutionプロジェクトのものとほぼ同じです。namespace -uri、default-prefix、および component-class のみが変更されています)。
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://aivisto.com/xsp/control
</namespace-uri>
<default-prefix>ap</default-prefix>
</faces-config-extension>
<component>
<description>A control that displays a field for entering multiple
lines of rich text.
</description>
<display-name>Rich Text</display-name>
<component-type>com.ibm.xsp.InputRichText</component-type>
<component-class>com.adpunctum.aivistox.extlib.ckeditor.component.InputRichText</component-class>
<group-type-ref>com.ibm.xsp.group.core</group-type-ref>
<group-type-ref>com.ibm.xsp.group.core.prop.styleClass</group-type-ref>
<group-type-ref>com.ibm.xsp.group.core.prop.title</group-type-ref>
<group-type-ref>com.ibm.xsp.group.events.prop.onclick</group-type-ref>
<group-type-ref>com.ibm.xsp.group.events.onkey</group-type-ref>
<group-type-ref>com.ibm.xsp.group.focus</group-type-ref>
<group-type-ref>com.ibm.xsp.group.i18n</group-type-ref>
<group-type-ref>com.ibm.xsp.group.input.prop.disabled</group-type-ref>
<group-type-ref>com.ibm.xsp.group.input.prop.onchange</group-type-ref>
<group-type-ref>com.ibm.xsp.group.input.prop.readonly</group-type-ref>
<group-type-ref>com.ibm.xsp.group.outerStyleClass</group-type-ref>
<group-type-ref>com.ibm.xsp.group.filter</group-type-ref>
<group-type-ref>com.ibm.xsp.group.dojoUsage.deprecated</group-type-ref>
<group-type-ref>com.ibm.xsp.group.aria.role</group-type-ref>
<property>
<description></description>
<display-name>CSS Style</display-name>
<property-name>style</property-name>
<property-class>java.lang.String</property-class>
<property-extension>
<pass-through>true</pass-through>
<designer-extension>
<category>styling</category>
<editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor>
<styles-excluded>background, font</styles-excluded>
</designer-extension>
</property-extension>
</property>
<component-extension>
<javadoc-description>
<p>Rich Text Control</p>
Control that provides Rich Text Editor functionality through CKEditor
</javadoc-description>
<base-component-type>com.ibm.xsp.UIInputRichText</base-component-type>
<renderer-type>com.ibm.xsp.InputRichText</renderer-type>
<tag-name>inputRichText</tag-name>
<designer-extension>
<category>Aivisto Extension</category>
</designer-extension>
</component-extension>
</component>
</faces-config>