ListSelect insode a Form via a Factory

Hi,

i want to use a ListSelect Component inside a form. So i create my own FieldFactrory where i create a ListSelect component for a specific propertyId. Everything works fine, but it is not possible to set a default selection of the list. I used the code from the demo area (http://demo.vaadin.com/sampler/#Components/Selects/ListSelectSingle) but no option was selected by default. The same code works outside of the form (“berlin” is the default selection).

any suggestions? The form is used inside a modal window…

thx, klemensl

The “default” value depends on the item the Form is bound to. The value for the select is set automatically by the form using its item (data source) after the select has been created using the FieldFactory.

thx a lot, work perfect.