Hello Rainer, oh, of course you're right.
Thanks for the fast response! 2008/6/5 Rainer Pruy <[EMAIL PROTECTED]>: > Sorry, > but a map is *not* a collection. > (it is not drived from Collection base class) > > You might try using the set of keys (.keySet()) or the collection of values > (.values()) from the map > according to your needs. > > Rainer > > Hans-Christian Meier schrieb: >> Hello, >> >> I work with Cocoon 2.1.10 and JXPath selection lists. According to the >> API a MultiValueField accepts Java collections so I assume it also >> works with a Map. >> >> In case of an ArrayList I can write widget.setSelectionList(array, >> ".", "."). When I try this with a Map I get an exception: >> java.lang.ClassCastException: >> java.util.TreeMapjava.util.TreeMapresource://org/apache/cocoon/forms/generation/jx-macros.xml >> - 6:1827 >> Caused by: org.mozilla.javascript.WrappedException: Wrapped >> org.apache.cocoon.generation.JXTemplateGenerator$JXTException: >> java.util.TreeMap >> >> Any ideas? >> >> Thanks in advance! >> Hans >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
