[OpenAjaxIDE] Multiselect properties - must have datatype of array
jferrai at us.ibm.com
Wed Aug 6 10:13:33 PDT 2008
Aaron Reed of IBM is implementing the <property><options multiple="true">
feature in the open source reference implementation and the question can up
about how to represent the multiple choices when the property value is
persisted into the property storage area. Here is an example:
____<option value="cat"><label locid="animal_cat">House
____<option value="dog"><label locid="animal_dog">Man's best
Let's suppose the user picked "Tiger" and "House cat".
case, the array would be ["tiger","cat"].
Does this make sense to people?
If so, then should we change the spec to say that if a <property> uses
<options> with multiple="true", then the <property> element must have
A follow on question is whether we should require an array of Strings, or
is it OK to have an array of anything, such as Number? Is the array could
contain things other than String, then implementations would need to a
string-to-whatever conversion at some point (e.g., string-to-number). I
would thing that array-of-Strings is the way to go.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IDE