You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Textor <jc...@gmx.de> on 2004/06/20 21:25:06 UTC
[CForms] How to set multivalue widget's values ?
Hi all,
I'm going nuts trying to set values in a CForm multivalue widget.
I obtained the Form model with:
var model = form.getModel();
Then I tried to set the values like this:
model.rubriken = Array(size);
for( i = 0 ; i < size; i++)
model.rubriken[i] = new java.lang.Integer(val[i]);
When size=0, everything is fine. Otherwise, I get
Cannot set value of field "rubriken" with an object of type
org.mozilla.javascript.UniqueTag
When I omit the array declaration, I get null pointer exceptions.
Has anybody done this and can explain me how ?
TIA, Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org