David Durham
unread,Dec 2, 2009, 5:05:03 PM12/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gxtf...@googlegroups.com
I've committed changes to svn that add support for field sets,
styleName and enabled attributes.
StyleName and enabled are pretty well self explanatory.
fieldSet needs a small amount of explanation. The way they work is
that by default fields are not part of a fieldSet so,
@Form(..)
MyForm {
@CharField(..)
String name
}
will not result in a fieldSet. The following form has 2 field sets:
@Form(..)
MyForm {
@CharField(.., fieldSet="Personal Info")
String name
@PhoneField(..)
String phone
@TextAreaField(..., fieldSet="Additional Info")
String comments
@TextAreaField(...)
String finalThoughts
}
name and phone would be in the first field set, Personal Info, and
comments and final thoughts would be in the 2nd field set, Additional
Info. So, once you declare a fieldSet, you don't need to say for each
subsequent field that it will be part of the last field set. It just
is, unless you declare a fieldSet with a different heading. Hope that
makes sense. There's an example added to the demo app.
-Dave