|
From: <jue...@we...> - 2004-06-09 21:16:20
|
Sure, simply register a custom editor for your property (respectively = the property type Long[]) that takes the CSV value as text and converts = it into a Long[] value. =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Rob Moore Gesendet: Mi 09.06.2004 22:46 An: spr...@li... Betreff: [Springframework-developer] Re: Fw: PropertyEditor question j=FCrgen h=F6ller[ werk3AT] <juergen.hoeller <at> werk3at.com> writes: > > FYI, I've just made my suggestion work through the introduction of a = new feature: String arrays can now be > converted to other arrays, just like Lists can. So registering an = editor for an individual InetAddress > would work now, even if populated with a String array: Each String = gets converted to an InetAddress, just > like each List element would get converted when populated with a List. > > This code will be included in the upcoming 1.0 RC1. I have the need to convert a CSV value from a form post to an array of = Longs, so I was curious if this enhancement had ever made it to the code base. = I've poked around in the JavaDocs, but haven't found anything answering to this = description. Regards, Rob ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |