-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everybody,
i have some problems with the portallayout. I my project i have 2 portallayout in a borderlayout : one on the west and the other on the east. The portallayout on the
east is created dynamically with Execution.createComponent(....). But when the panel generated dynamically appears on the east portallayout i cannot drag and drop my panels wich are on the west portallayout
you can see an example with the code below
<zk> <zscript> void insertPanel(){ Panel newPanel = (Panel) Executions.createComponents("/panel.zul", test1,null); Date today = new Date(); String temp = today.getHours()+":"+today.getMinutes()+":"+today.getSeconds(); newPanel.setTitle(temp); } </zscript> <borderlayout> <west width="25%"> <portallayout> <portalchildren style="padding: 5px" width="100%"> <panel height="150px" title="Panel1" border="normal" Framable="true" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px"> <panelchildren> </panelchildren> </panel> <panel height="150px" title="Panel2" border="normal" Framable="true" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px"> <panelchildren> </panelchildren> </panel> </portalchildren> </portallayout> </west> <center> <button label="btn2" onClick="insertPanel()"/> </center> <east width="25%"> <portallayout> <portalchildren style="padding: 5px" width="100%" id="test1"> </portalchildren> </portallayout> </east> </borderlayout> </zk>
<panel draggable="true" height="150px" title="Panel2" border="normal" Framable="true" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px"> <panelchildren> </panelchildren> </panel>
Is it a bug or a programmation error ?
thanks for every kind of help
Sorry, this is not supported, please post it to feature-request.
/robbie
Asked: 2009-07-15 13:26:40 +0800
Seen: 221 times
Last updated: Jul 30 '09