This project is read-only.

Html helper for friendly object type name?

May 23, 2013 at 1:54 PM
The generic views use Html.Object to render the icon an title in object view.
We have found that users still get confused as to what they are looking at, so we want to add the type name of the entity at the top of the view.
I found Html.TypeName, but that renders the non-friendly type name. I.e. without spaces.
I have tried a whole bunch of other methods and consulted the manual, but cannot find something that does that.

e.g. if my entity type is ReplacementRequest, I want to render "Replacement Request".
May 23, 2013 at 2:21 PM
The following method:
NakedObjects.Util.NameUtils#NaturalName
in the NakedObjects.Helpers assembly can be used to convert the type name into a friendly name.
May 23, 2013 at 5:32 PM
Thank you.