[英]checkBoxGroup: typeof return [Ljava.lang.String
I have the following XPage, one checkboxgroup and one computedfield 我有以下XPage,一个复选框组和一个计算字段
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:panel id="ref">
<xp:checkBoxGroup id="checkBoxGroup1">
<xp:selectItems>
<xp:this.value><![CDATA[#{javascript:var val = ["Test1", "Test2"];
return val}]]></xp:this.value>
</xp:selectItems>
<xp:eventHandler event="onchange" submit="true"
refreshMode="partial" refreshId="ref">
</xp:eventHandler>
</xp:checkBoxGroup>
<xp:text escape="true" id="computedField3">
<xp:this.value><![CDATA[#{javascript:typeof getComponent("checkBoxGroup1").getValue()}]]></xp:this.value>
</xp:text>
<xp:br></xp:br>
</xp:panel>
</xp:view>
When I click the checkboxes I was expeciting the computedField to return a type of array, instead it returns [Ljava.lang.String 当我单击复选框时,我正想让computeField返回一种数组类型,而是返回[Ljava.lang.String
how can I change my code so that if I select one or more checkboxes the computedField returns a type of "array" or "vector" 我该如何更改代码,以便如果选择一个或多个复选框,则计算字段将返回“数组”或“向量”的类型
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.