-
FEATURED COMPONENTS
First time here? Check out the FAQ!
in a zk-page, i use a custom panel (extending Panel)
<panel use="com.mything.MyPanel">
next to that I have a class MyWindow extending Window, having an onCreate() override.
public void onCreate(){
this.setTitle("test");
}
in MyPanel's onCreate(), I would like to add an instance of MyWindow to the panelchildren:
Panelchildren panelchildren=new Panelchildren();
MyWindow win=new MyWindow();
panelchildren.appendChild(win);
this.appendChild(panelchildren);
...
But it seems not to work: I would have to call the onCreate method myself to get the desired behaviour.
It works perfect if I set the title after instantiating, or calling the onCreate method.
Any ideas why / how to fix this ?
Regards,
Bart
This is working for me in the ZK editor
<panel title="testPanel">
<panelchildren>
<window>
<button label="Button"></button>
</window>
</panelchildren>
</panel>
But it seems not to work:
Yes, you must set a titel that you can see an empty panel.
Stephan
Asked: 2009-07-14 16:15:23 +0800
Seen: 172 times
Last updated: Jul 14 '09