That is expected behavior. Because the java reference content_wnd
is not the child of <div id="content">
but the objecct content_wnd
it refered to before you called Executions.createComponents
.
To append the window as a child of the content
do the following.
*.zul
<n:div id = "content"/>
create Window
in java with content div as parent
content_wnd = (Window)Executions.createComponents(
"/login_wnd.zul", content, null);
where content
is a referenc to the div.
For example add the field
@Wire
Div content;