Databinding and Form fields captions.

Hi Everybody, please help me with this question :

I have a Table that is getting data from database and I have a form in myApplication so I can edit the data.
I can change names of table coulmns. But I also want to change form’s fields captions.
My form geting a datasourse like this :


myTable.setContainerDataSource(con.getContainer());   // Setting a conteiner  SQLCONTAINER 1.0
myTable.setVisibleColumns(con.NATURAL_COL_ORDER);  // seting visible columns
myTable.setColumnHeaders(con.COL_HEADERS_ENGLISH);   //setting columns headers
myTable.setSelectable(true);
myTable.setImmediate(true);
setMainWindow(mainWindow);
mainWindow.addComponent(myTable);

myTable.addListener(new ValueChangeListener() {
public void valueChange(ValueChangeEvent event) {
			
Form myForm = new Form();
[color=#92110F]
myForm.setItemDataSource(tbl.getItem(myTable.getValue()));
[/color]
				
mainWindow.addComponent(myForm);   
			}
		});

Hi,

Use a FormFieldFactory to specify the caption of the fields. See
5.19.2 Binding Form to Data
in the Book of Vaadin for an explanation of the FormFieldFactory.

HTH,
/Jonatan