0

problem with portallayout and Execution.createComponent

asked 2009-07-15 13:26:40 +0800

guisimon gravatar image guisimon
217 7
http://www.artsys.fr

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>

and the zul file for the panel dynamically created
<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

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-07-30 07:07:27 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

Sorry, this is not supported, please post it to feature-request.

/robbie

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-07-15 13:26:40 +0800

Seen: 221 times

Last updated: Jul 30 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More