I read about the new ModelBinder in the release notes and saw an implementation lurking in the futures called ComplexModelBinder. I've been able to successfully get it to work with my model object which is an Address. I have a collection in this Address
of PhoneNumbers. I would like to create a one-to-many form, with one address and many phone numbers. What is the path expression I would need to use to get to the collection?
I've tried Address.PhoneNumbers[0].Number, and no luck.
If the ComplexModelBinder does not yet support this type of navigation, when will it? This type of functionality is sorely lacking in standard ASP.NET and Spring.NET, and I'd like to see first class support for it in ASP.NET MVC.
jwheeler79
Member
2 Points
5 Posts
ComplexModelBinder
Aug 29, 2008 06:04 PM|LINK
I read about the new ModelBinder in the release notes and saw an implementation lurking in the futures called ComplexModelBinder. I've been able to successfully get it to work with my model object which is an Address. I have a collection in this Address of PhoneNumbers. I would like to create a one-to-many form, with one address and many phone numbers. What is the path expression I would need to use to get to the collection?
I've tried Address.PhoneNumbers[0].Number, and no luck.
If the ComplexModelBinder does not yet support this type of navigation, when will it? This type of functionality is sorely lacking in standard ASP.NET and Spring.NET, and I'd like to see first class support for it in ASP.NET MVC.