You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Yatin Shah <no...@kripa.com> on 2004/02/04 16:47:24 UTC
[cform] What is the java class type for a multivaluefield selection
list?
I'm running woody+flow using cvs version from Jan 30, 04 11:38 EST.
I define my widget as:
<wd:multivaluefield id="rules">
<wd:label>Select all applicable Features and/or Rules:</wd:label>
<wd:hint>List of conditions, features and notes</wd:hint>
<wd:datatype base="string">
</wd:datatype>
<wd:selection-list src="cocoon:/dynamic-selection/RuleActivity"
dynamic="true"/>
</wd:multivaluefield>
and bind to javascript object like var rules = ["1", "2"];
This results in following error:
Error: java.lang.RuntimeException: Cannot set value of field "rules"
with an object of type org.mozilla.javascript.NativeArray
I tried java.util.ArrayList(), java.util.Vector() and java.lang.String()
but all had similar errors.
What is the correct way of setting a list? What is the expected datatype?
Thank you.
--
Yatin Shah, President mailto:ygs@kripa.com
Kripa Inc. http://www.kripa.com
Dayton, New Jersey USA phone: 732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications