Bean update: how can I bind nested properties ?

I have BeanItemContainer for User entity, which looks like this:

public class User {
    private Integer id;
    private Integer name;
    private Integer Role role;

it has also getters/setters. When I create Grid based on that I want to have 2 columns:

  • name

Name is binded automaticaly. ‘’ bind I can achive by using addNestedContainerProperty() method.

When I try to update it - String ‘name’ is automaticaly changed on my list of users’ beans. But ‘’ no.

How can I bind that nested property to my beans list?

What do you mean by update?

There’s the
basic nested property example here