david.durham.jr
21 Jul 2009, 12:54 PM
Hi all,
I wrote a little library for form generation. The way it works is you annotate a JavaBean like so:
class MyBean {
@CharField(index = 1, maxLength=50, allowBlank=false)
private String name;
@PhoneField(index = 2)
private String phone;
@TextAreaField(index = 3)
private String comment;
...
}
And from here a GXT Form is generated rather easily.
If interested, please take a look at the source and demo: http://gxtforms.googlecode.com/
-Dave
I wrote a little library for form generation. The way it works is you annotate a JavaBean like so:
class MyBean {
@CharField(index = 1, maxLength=50, allowBlank=false)
private String name;
@PhoneField(index = 2)
private String phone;
@TextAreaField(index = 3)
private String comment;
...
}
And from here a GXT Form is generated rather easily.
If interested, please take a look at the source and demo: http://gxtforms.googlecode.com/
-Dave