views:

38

answers:

3

I'm using for my projects a rather complete UI auto-generation tool from database entities for windows forms and asp.net I wrote. Now I've built a working prototype UI auto-generation tool from domain objects. Right now it is in early stage of development and by reflection it generates user interface for creating and updating domain objects.

I searched a bit and I didn't find other opensource projects that have the same goal. Why? This type of tool is not useful? Is this idea fundamentally flawed?

Thanks.

Edit:

In my actual implementation you can drive the ui generation by putting predetermined attributes in the fields, properties and classes. You can decide the position, if a field is visible, if it is the primary key of that object, the default method to get a collection of that object type, the max size, and so on...

+1  A: 

(If I understand correctly) there are several such frameworks, also known as scaffolding.

One of them is ASP.NET dynamic data. Or Subsonic also offers scaffolding.

M4N
A: 

There is no reason at all not to re-invent the wheel.

Seriously.

This is one of the best ways to learn.

Take an honest run at it, take surface looks at other implementations.

Once you arrive at either a) a beta that does what you want or b) a deep dark corner where there be dragons - pull and read the source for an existing implementation.

Not only will you have a better perspective for appreciating the code, you will understand better why some things are done certain ways.

There is no reason at all not to re-invent the wheel.

Sky Sanders
on a side note: i just re-invented a wheel, partly a whim, partly a requirement: a simple json web service implementation. Took about 4 hours and when I went and reflected into the RestHandler and WebService handler I was pleased to see that my approach was similar, albeit rudimentary. Was 4 hours well spent, IMO.
Sky Sanders
A: 

For Java, there is the Naked Objects framework and related sister projects (all under Apache v2 license).

For .NET, there is the Naked Objects.NET framework. This isn't, admittedly, open source, but is very modest costs IMO.

Disclosure: I'm a committer on the Java version, but not involved commercially with the .NET version.

HTH Dan

Dan Haywood