I'm just wondering/deeply thinking about whether any framework/architecture/library exist that would help in automatically generating simple HTML controls along with its label.
For example, I'm just simply envisioning as described below. If I define controls and its characteristics somewhere (may be in Database, in XML form, etc.), then the framework should able to generate the controls. In this case, am not much worried about the validation of each fields.
LABEL | CONTROL
Name | Textbox
Age | Textbox
Sex | Radio button
State | Drop-down
Description | Textarea
In case of drop-down list, is it possible to map/relate to a list/lookup, so that drop-down list values are populated automatically?
Any links/resources/blogs/suggestions are also appreciated.
开发者_StackOverflowNOTE: Our tools of trade are: Java, JDK1.6, JSP, Apache Tomcat v6.0.10, PostgreSQL v8.2.3
UPDATE: Please feel free to retag my question, if it needs to represent the actual question topic.
you can use XSLT transformation to achieve this.. here is a link which can help you on XSLT
for input fields you can use something like ..
<input id="Name" type="text" value="{value}"/>
XSLT can be used as a template against which a html can be generated.
精彩评论