I have a very simple view-model in a dll that I want to keep separated from the main web mvc project.
I am decorating the model with metadata attributes that will help the ui display the correct presentation (DisplayName, UIHint, DataType, ReadOnly etc) and I would like to reuse this information with different presentation layers later (like Silverlight)
Most of the attributes are coming from the namespace System.ComponentModel.DataAnnotations but I was surprised to discover that HiddenInput is an exception to that and I need to add a reference to System.Web.Mvc in my view-model dll.
Is there a particular reason not to have included that with the other attributes?
I tried to override the default behavior putting an HiddenInput.ascx in the editortemplates folder but I still get the label for the field when I call an html.EditorfForModel() in my view.