jgauffin / griffin.mvccontrib

A contribution project for ASP.NET MVC3
http://blog.gauffin.org/tag/griffin-mvccontrib/
GNU Lesser General Public License v3.0
83 stars 40 forks source link

Problem with select html helper #34

Closed peter-bozovic closed 11 years ago

peter-bozovic commented 11 years ago

My specific case brought me to use the select html helper for enum

Problem is that I'm getting the "Object reference not set to an instance of an object." error

After alot of digging, here is what I have found :

Since I'm not fully understanding what is going on behind the scenes in all that, I stopped there :)

I was first using the nuget version of the library and got these errors And after that I donwloaded the sources in order to investigate where the error is comming from

I'm not sure if I'm going the right way ? Maybe I'm missing something more general (like the registratio of the DefaultTagBuilderFactory) ? Any pointer would be helpful !

Thanks

jgauffin commented 11 years ago

You are probably the first user using those. I created them as a proof of concept to show that you can allow the helpers to be extendable but still use extension methods.

I'll create some unit tests for them to make sure that they works ;)

peter-bozovic commented 11 years ago

Thanks :)

Well, actually my primary use of your library is for localization with sql database ! I have found some other helpers that provides the selector for enum, but they didn't appear as localizable strings So my hope was also that by using your helpers, this problem can be solved and I could translate my enum values like other object properties ...

paolosanchi commented 11 years ago

i used it and fixed some bug, maybe i've touched some of your points, please, take a look at this: https://github.com/jgauffin/griffin.mvccontrib/pull/41

jgauffin commented 11 years ago

gr8. thanks