I have a Check box group, whose values are computed by using the selected values of another Check box group. So when I do
var check6:com.ibm.xsp.component.xp.XspSelectManyCheckbox = getComponent("check6");
ArrSelected = check6.getSelectedValues();
to get the selected values, the following exception occurs:
Error calling method 'getSelectedValues()' on java class 'com.ibm.xsp.component.xp.XspSelectManyCheckbox'
java.util.ArrayList incompatible with [Ljava.lang.Object;
Check6 gets its values from a session scope variable that is computed on beforePageLoad event and I have also set the default value.
Note that this does not happen onload of the page, but when the first partial refresh happens. Does anyone know what this exception indicates?
Thanks a lot!
ArrSelected
in the check box group which is computed? If yes then how? You can compute the check box group simply using Add Formula Items, so your code would be something like<xp:checkBoxGroup id="checkBoxGroup2"......><xp:selectItems><xp:this.value><![CDATA[#{javascript:getComponent("checkBoxGroup1").getSelectedValues();}]]></xp:this.value></xp:selectItems></xp:checkBoxGroup>
(assuming original check box group name ischeckBoxGroup1
) and it would work. – Naveen