Thanks for the idea! Though I solved my problem in other way. Since my array holds file extensions, I now store file extensions with a dot in the beginning :) No nulls and empty strings anymore!
On 24 окт, 03:24, Mauricio Scheffer <[email protected]> wrote: > You could do that by replacing the default conversion subsystem. > Inherit DefaultConversionManager and override InitDefaultConverters(). Then > register this new conversion subsystem. Here's an example of replacing a > kernel > subsystem:http://www.codinginstinct.com/2008/04/extending-castle-windsor-for-dy... > > -- > Mauricio > > > > On Sat, Oct 23, 2010 at 4:52 PM, Vadimmer <[email protected]> wrote: > > Is there a way to somehow replace PrimitiveConverter with my own > > version? > > > On 23 окт, 16:29, Krzysztof Koźmic <[email protected]> wrote: > > > from what I remember Windsor treats this as null, and nulls are ignored. > > > > On 23/10/2010 8:19 PM, Vadimmer wrote: > > > > > I understand the code solution. The case is: I wanted to allow my > > > > users (they are actually power users, not ) editing the windsor > > > > config. And get cheap xml configuration. > > > > > That's sad there's no way :( > > > > > On 23 окт, 16:00, Krzysztof Koźmic<[email protected]> wrote: > > > >> do that in code, not in XML > > > > >> On 23/10/2010 7:59 PM, Vadimmer wrote: > > > > >>> Hi, > > > >>> I use this way: > > >http://mikehadlow.blogspot.com/2010/02/10-advanced-windsor-tricks-9.html > > > >>> to configure my components. I have a component that depends on an > > > >>> array of strings. One string in that array must be empty (that's > > > >>> substantial to the component. the array represents a collection of > > > >>> file extensions. file extension can surely be emtpy). > > > >>> Is there a way to set a parameter value to empty string instead of > > > >>> null. > > > >>> P.S. > > > >>> I use: > > > >>> <component id="tests_zipper"> > > > >>> <parameters> > > > >>> <inputExts> > > > >>> <array> > > > >>> <item>test</item> > > > >>> <item></item> > > > >>> </array> > > > >>> </inputExts> > > > >>> </parameters> > > > >>> </component> > > > >>> and it doesn't work... > > > >>> Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Castle Project Users" group. > > To post to this group, send email to [email protected] > > . > > To unsubscribe from this group, send email to > > [email protected]<castle-project-users%2bun[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/castle-project-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
