Caching the layout in a form

Hi

I have a table containing a list of “Customer”-objects. When the user selects a row in the table, he should be able to modify that Customer-object. I’ve used the Form component to render the form used to modify the Customer-object.

Every time the user selects a new row in the table, the form’s setItemDataSource()-method is called with a BeanItem created from the Customer-object. What seems to happen, is that instead of replacing the values in the textfields, selects etc in the form, the entire form layout is re-rendered (or am I wrong?). In my case this is unnecessary, as all objects will have exactly the same form layout. My question is, is it possible to somehow force Form to use the same layout and just replace the values of the field components?

Note that I’m using a FieldFactory to customize the form.