Hello,
Got small problems with @UIScope… got error: Can’t move a node from one state tree to another.
When i use
@Route(value = "administrator", layout = ParentView.class, absolute = true)
public class AdministratorView extends VerticalLayout {}
public class ParentView extends VerticalLayout implements RouterLayout {
@Autowired
private Menu menu;
@PostConstruct
public void init(){
add( menu);
}
}
@SpringComponent
@UIScope
public class Menu extends VerticalLayout {
@Autowired
private User user;
}
@Entity
@SpringComponent
@UIScope
public class User {}
Someone know what i making wrong here? When i inject Menu from AdministratorView class everything work fine…