Heading between FormFields

Hello there,

i have a Form which is created by a Formfieldfactory. Just like the fields from my bean object i want to manipulate with the Form.

I want to group certain inputfields together. and give them an extra headding for explaination.

something like this:

Company Attributes

Name:
Foundingyear:

Contact Person

Firstname:
Email.

Hope that makes it clear what i mean. If anybody has a idea … i would appreciate.

thanks

steffan


Use a panel?

You need to customize the layout of the form - see Form.setLayout() and search the forum for some examples on how to do this.

You can override Form.attachField() to place the fields the way you want, or override it with an empty method and then do the whole layout by hand calling getField() to get the created fields, or use CustomLayout if you want to do the layout in HTML.