0

i want to src into submenu.means when i click order it will show submenu ,den i want get the some zu

asked 2011-05-03 06:17:42 +0800

ajitha gravatar image ajitha
15

<zk>
<portallayout id="myptl" maximizedMode="whole" onPortalMove="saveStatus()" onCreate="initStatus()">
<portalchildren style="padding: 5px" width="25%">
<panel id="pnlSubMenu" height="250px" title="SUB MENU" border="normal" style="margin-bottom:10px" width="250px" >
<panelchildren id = "pnlcSubmenu" >
<vlayout>
<image src="Invoice.zul" />

<hlayout spacing="10px">
<image src="Customer Info.zul" />
<image src="Project.zul" />
</hlayout>

</vlayout>
</panelchildren>
</panel>
<panel id="pnlMainMenu" height="300px" title="MAIN MENU" border="normal" style="margin-bottom:10px" width="250px">
<panelchildren>
<label value=" Order" width="100px" onClick="loadPage()" />
<separator spacing="20px"/>
<hbox><label value=" Locations" /></hbox>
<separator spacing="20px"/>
<hbox><label value=" Finance" /></hbox>
<separator spacing="20px"/>
<hbox><label value="ContractorDetails" /></hbox>
</panelchildren>
</panel>
</portalchildren>
<portalchildren style="padding: 5px" width="20%">
<panel id="" height="560px" title="SEARCH" border="normal" style="margin-bottom:10px" width="200px" collapsible="true" closable="true" maximizable="true">
<panelchildren>
</panelchildren>
</panel>
</portalchildren>
<portalchildren style="padding: 5px" width="30%" >
<panel id="" height="560px" title="DETAIL" border="normal" style="margin-bottom:10px" width="300px" collapsible="true" closable="true" maximizable="true">
<panelchildren>
</panelchildren>
</panel>
</portalchildren>
<portalchildren style="padding: 5px" width="25%">
<panel id="" height="250px" title="REPORTS" border="normal" style="margin-bottom:10px" width="250px" collapsible="true" closable="true" maximizable="true">
<panelchildren>
</panelchildren>
</panel>
<panel id="" height="300px" title="HELP" border="normal" style="margin-bottom:10px" width="250px" collapsible="true" closable="true" maximizable="true">
<panelchildren>
</panelchildren>
</panel>
</portalchildren>
</portallayout>
<!-- Save Portlet Position (Session Scope)-->


<zscript><![CDATA[
void initStatus() {
List panelchildren = myptl.getChildren();
for (int i = 0 ; i < panelchildren.size() ; i++) {
List panelIds = session.getAttribute("PortalChildren" + i);
if (panelIds != null) {
for (String panelId:panelIds) {
Panel newPanel = myptl.getFellow(panelId);
if (panelchildren.size() > 0)
panelchildren.get(i).insertBefore(newPanel,panelchildren.get(0));
else
newPanel.setParent(panelchildren.get(i));

}
}
}
}
void saveStatus() {
int i = 0;
for (Portalchildren ptlc:myptl.getChildren()) {
List portletIds = new ArrayList();
for (Panel portlet : ptlc.getChildren())
portletIds.add(portlet.getId());
session.setAttribute("PortalChildren" + i++, portletIds);
}
}
]]></zscript>



</zk>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-05-03 06:56:08 +0800

muskan gravatar image muskan
15

what you want here..

just explain in brief.

link publish delete flag offensive edit

answered 2011-05-03 07:56:42 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

ajitha,
The forum title line is meant to hold the subject of your question, not the question itself.
1) Fill in the title with the subject of your question
2) Provide an explanation of what your problem is
3) Ask questions you need to ask
4) As seen right below this editor box when you're entering your post: "Please provide reproducible code and ZK version if possible, use [ code ][ /code ] to wrap your code."

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: 2011-05-03 06:17:42 +0800

Seen: 203 times

Last updated: May 03 '11

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