MultiSelectConverter JpaContainer,for ListSelect/TwinCol/Table FieldGroup b

Here is the model entity:[code]

public class BusinessEvent{
private Set rentedLocations = new HashSet(0);
private Organization organization;

@ManyToMany(fetch = FetchType.EAGER)
public Set<Location> getRentedLocations() {
    return this.rentedLocations;
}

public void setRentedLocations(Set<Location> rentedLocations) {
    this.rentedLocations = rentedLocations;
}

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "organization_id")
public Organization getOrganization() {
    return this.organization;
}

public void setOrganization(Organization organization) {
    this.organization = organization;
}

[/code]
I Have to bind a multi selection capable component to a property of a bean that is a collection. Normally with a Bean Item Container i would do this without any problem, but in case of JPAContainer we must for that component a Converter.

For Combobox that is only single selection i could set a SingleSelectConverter(comboBoxComponent)

[size=4]
private ComboBox organization;
private BeanFieldGroup<BusinessEvent> fieldGroup;
private JPAContainer<Organization> organizations;




organizations = JPAContainerFactory.makeJndi(Organization.class);
organization.setConverter(new SingleSelectConverter<Organization>(organization));
organization.setContainerDataSource(organizations);
[/size]

For a multi select component like this table

[size=4]
    @PropertyId("rentedLocation")
    private Table locationTable;

 locations = JPAContainerFactory.makeJndi(Location.class);
        locationTable.setContainerDataSource(locations);
        locationTable.setMultiSelect(true);
[/size]

i cant do this for a type mismatch

[size=4]
        locationSelect.setConverter(new MultiSelectConverter<Location>(locationTable));
[/size]

i dont know if this works for me …

[size=4]
       
        locationTable.setConverter( Location.class);
[/size]

I’ve a tree and I added a ValueChangeListener.
When I enter the ValueChange code if I get the changed value from tree.getValue I allways get the root node if I use event.getProperty.getValue I get the correct selected value.
However I need to get the value also elsewhere and I got allways the wrokg value.
Where’s the problem ?