|
From: Rob M. <Rob...@pe...> - 2004-06-09 22:05:50
|
jürgen höller [werk3AT] wrote: > 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. > > Juergen > > I must have misunderstood -- I had the impression this the framework already provided a property editor to perform this conversion from a CSV to a specified object type. So how does one indicate the editor should apply to an array rather than a single object? IOW, in initBinder for my controller I have the following: binder.registerCustomEditor(Boolean.class, new CustomBooleanEditor(true)); How would I specify that I want my custom editor to be used for an array of Booleans rather than just a single Boolean? Thanks, Rob |