compositeData的所有方法和属性是什么

时间:2013-10-09 23:38:16

标签: properties xpages

穿过一个奇怪的东西,把我扔了一圈。似乎“values”和“get”是compositeData的属性和方法,想知道是否有“set”?

我在自定义控件中添加了三个属性定义:'header'& 'menuEntries'(w \ allow mulitple checked)& '值'(w \ allow mulitple checked)

我在包含自定义控件的XPage的“属性定义”标签中为'header'和'menuEntries'和'values'添加了多个条目:

header = "aaa"   
menuEntries = "Main", "File", "Help"     
values = "z", "s"

在自定义控件中,我通过使用“compositeData.header”将标题放在计算文本中来引用自定义控件中的属性定义,并且在重复控件的Interation Data Binding中将值引用为compositeData.values。

当显示XPage时,标题的计算文本的位置显示“这是标题”就好了;然而,重复控制显示其数据显示的东西不是三个“主要”& “档案”& “帮助”,而只是两个自定义属性的名称,即标题和值。

为了获得实际数据项IN compositeData.values,
我必须使用compositeData.get(“values”)。这是自定义控件的属性定义和主体。将CC添加到XPage并提供自定义属性somem值,看看你是否看到我做了什么,,,,

enter image description here

自定义控件定义

enter image description here

XPages自定义属性

<xp:panel style="border-color:blue solid thin;">
<xp:text id="cf3" value="#{javascript:compositeData.header}"></xp:text>
     <br /><br />
<xp:repeat id="repeat1" rows="30" var="item" indexVar="itemIndex"
  value="#{javascript:compositeData.menuEntries}">
    <xp:text id="cf2" value="#{javascript:item}"></xp:text>&#160;
</xp:repeat>
     <br />
<xp:repeat id="repeat2" rows="30" var="item" indexVar="itemIndex"
   value="#{javascript:compositeData.values}">
     <xp:text id="computedField5" value="#{javascript:item}"></xp:text>&#160;
</xp:repeat>
   <br />
<xp:text id="cf4" value="#{javascript:compositeData.values}"></xp:text>
<xp:text id="cf5"><br /><br />
     <xp:this.value><![CDATA[#{javascript:compositeData.get("values")}]]></xp:this.value>

    的结果

enter image description here

1 个答案:

答案 0 :(得分:3)

compositeData com.ibm.xsp.binding.PropertyMap 的一个实例。

您可以在此处找到完整的文档:http://public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/DesignerAPIs/com/ibm/xsp/binding/PropertyMap.html