Thanks for your quick response. Please, Also suggest for access children of parent view from child view and vice versa from server side java code and client side script.
Use Element API for this.
Each component has an element which may be asked via getElement(). The resulting Element instance has methods to get parents and children. On the client side there is DOM API and nothing else we may not suggest for you.
Element API works on the server side ONLY and it works ONLY for those elements that has been created on the server side.
If you use templates then it doesn’t return you children which are defined on the client side.
It will give you only the children which you have created and added on the server side (and may be there are none of them). That’s why it doesn’t work.
There is no way to get pure client side elements on the server side. If you have this need it means that you are using templates in a bad way: you don’t need the client side template since you are losing all the benefits of it. You may create and construct DOM element (even template) from the server side completely.
In this case the client side and the server side is 1:1.
Another way is to use @Id which will give you a way to access SOME dedicated children in your template.