Tree ItemProperty doesn't set value

Hi,

in Vaadin 7 beta2 (and beta 1) setting ItemProperty values doesn’t work. Property value shows always the toString from the Item-Object. Example:

HierarchicalContainer container = new HierarchicalContainer();
container.addContainerProperty("name", String.class, "");
Item parentItem = container.addItem(parentObject);
parentItem.getItemProperty("name").setValue(parentObject.getName());
Item item = container.addItem(childObject);
item.getItemProperty("name").setValue(childObject.getName());
container.setParent(childObject, parentObject);	
... new Tree("", container);

When changing Tree-Component to Table, it works! Ist it a bug, or do I handle it not correctly?

Greetings
Maik

Do you call tree.setItemCaptionPropertyId(“name”);? The components and containers, in this case tree and HierarchicalContainer hasn’t been much modified in Vaadin 7. That will be done more in minor versions (like 7.1).

Could work. Setting tree.setItemCaptionMode(ItemCaptionMode.ITEM) makes it work, too.
Thanks.