Hello, all:
I've been researching DBForms for use in a project that I have going on, and after searching the archives and googling for a bit I have not had any luck finding much on a question I have.
In the application I am designing ( struts based ) , I need the ability to edit tables as a part of my application. ( So far so good ). I found the articles on how to integrate with struts, so I'm in good shape there.
However, in my case I need the ability to edit tables in a generic way, so that creating a new view is not required each time. Obviously, that means I have to live with a number of assumptions ( all fields editable via text , etc ), but my tables are very simple for the most part, and my needs amount to "administrative" kinds of stuff.
The idea I had was to use the existing db:form tag as is, but instead of requiring a tag for every field, to simply auto-create a text field for every field according to the table definition. Given the simplifying assumptions above, I _think_ this means you could have a single view that could edit any table if the form tag could accept RT expressions or EL to allow the table name to be dynamic.
Has anyone thought about doing this? I guess what I'm really looking for is the ability to have a link in my app that goes to a single action, and passes via request parms or attributes the table to edit, and then the rest is up to DBForms. This seemed simple enough that I figured someone may have already done it or tried it.
I poked around in the source, and it seems like the getTable() method on the form tag would allow a child tag to get a list of all table fields and auto-render a simple ( ugly ) grid of fields.... A more advanced application could use the properties of the field objects to render a control of the appropriate type.
Any comments are appreciated....
