0

about portal layout

asked 2009-05-20 21:43:12 +0800

hyperion gravatar image hyperion
18

hi again,
there are some questions in my mind but i will ask one by one :)
on my screen there is some portal layout children. i want to let them be storeable(i mean if user clicks close for 1. child, and change place of 2. and 3. childs, this settings will be stored and in next coming, user will see how he leaved)

is there a way to do this?

thanks.
yılmaz

delete flag offensive retag edit

7 Replies

Sort by » oldest newest

answered 2009-05-21 01:50:23 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

There is no easy way to do this, please post to feature request.
or check this code.

<zk>
<button label="PC1" onClick='pc1.visible = !pc1.visible;pc2.width=pc1.visible?"30%":"60%"' />
<portallayout>
	<portalchildren style="padding: 5px" width="30%" id="pc1">
		<panel height="150px" title="Google Tools" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
			<panelchildren>
				<iframe width="100%" height="100%" src="http://3.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/toolspromo.xml&nocache=0&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=3&ifpctok=5090480830848781425&parent=http://www.google.com&extern_js=/extern_js/f/CgJlbhICdXMrMAs4ACwrMBA4ACwrMBI4ACwrMBM4ACw/zYieI_ujwr4.js"/>
			</panelchildren>
		</panel>
		<panel height="300px" title="LabPixies Clock" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
			<panelchildren>
				<iframe width="100%" height="100%" src="http://34.gmodules.com/ig/ifr?url=http://www.labpixies.com/campaigns/clock/mini_clock.xml&nocache=0&up_skin_id=&upt_skin_id=hidden&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=34&ifpctok=-3234052241260630457&parent=http://www.google.com&extern_js=/extern_js/f/CgJlbhICdXMrMBI4ACwrMBM4ACw/v3vgcgA0x8g.js"/>
			</panelchildren>
		</panel>
	</portalchildren>
	
	<portalchildren style="padding: 5px" width="30%"  id="pc2">
		<panel height="300px" title="ToDo" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
			<panelchildren>
				<iframe width="100%" height="100%" src="http://cj399o2i-a.gmodules.com/ig/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&nocache=0&up_saved_tasks=&upt_saved_tasks=hidden&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=31&ifpctok=-1474109439244469874&parent=http://www.google.com&extern_js=/extern_js/f/CgJlbhICdXMrMBI4ACwrMBM4ACw/v3vgcgA0x8g.js"/>
			</panelchildren>
		</panel>
		<panel height="100px" title="Wikipedia" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
			<panelchildren>
				<iframe width="100%" height="100%" src="http://29.gmodules.com/ig/ifr?url=http://wpsearchbar.wikia.com/common/wpsearchbar.xml&nocache=0&up_mylang=&upt_mylang=enum&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=29&ifpctok=4012247812086609177&parent=http://www.google.com&extern_js=/extern_js/f/CgJlbhICdXMrMBI4ACwrMBM4ACw/v3vgcgA0x8g.js"/>
			</panelchildren>
		</panel>
	</portalchildren>
	
	<portalchildren style="padding: 5px" width="40%"  id="pc3">
		<panel height="400px" title="Trio" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
			<panelchildren>
				<iframe width="100%" height="100%" src="http://35.gmodules.com/ig/ifr?url=http://www.labpixies.com/campaigns/trio/trio.xml&nocache=0&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=35&ifpctok=7430207052966295609&parent=http://www.google.com&extern_js=/extern_js/f/CgJlbhICdXMrMBI4ACwrMBM4ACw/v3vgcgA0x8g.js"/>
			</panelchildren>
		</panel>
	</portalchildren>
</portallayout>
</zk>

link publish delete flag offensive edit

answered 2009-05-21 06:29:53 +0800

hyperion gravatar image hyperion
18

thank you, i will try it.

link publish delete flag offensive edit

answered 2009-05-26 07:07:34 +0800

ajeet gravatar image ajeet
48

Hi,

I have developed a custom component.
I guess it fits your requirement. The component brings iGoogle features for zk.

You can find the details here.

http://aurora.regenstrief.org/karn/wiki/Garuda

Now the demo application is not working. We are doing more enhancement over that.You can go through the demo project.

If you need any help let me know.

Regards,
Ajeet Singh

link publish delete flag offensive edit

answered 2009-05-26 07:10:33 +0800

ajeet gravatar image ajeet
48

http://aurora.regenstrief.org/karn/wiki/Garuda

link publish delete flag offensive edit

answered 2009-07-31 13:58:33 +0800

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

Hi everybody,
i would to test your garuda portallayout but in doesn't work on jboss or tomcat (with all version).
you could see the main error in the section below

javax.servlet.ServletException: L'exécution de la servlet a lancé une exception

cause mère

java.lang.NoSuchMethodError: net.sf.karn.util.ComponentTool.getArjunView(Lorg/zkoss/zk/ui/Component;)Lnet/sf/karn/commons/view/ArjunView;
	net.sf.karn.extendedComponent.Garuda.portallayout.GarudaPortallayout.getTreeSetMap(GarudaPortallayout.java:50)
	net.sf.karn.extendedComponent.Garuda.portallayout.GarudaPortallayout.getPanelStateSet(GarudaPortallayout.java:39)
	net.sf.karn.extendedComponent.Garuda.portallayout.GarudaPortallayout.afterCompose(GarudaPortallayout.java:120)
	org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:637)
	org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:587)
	org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:531)
	org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:498)
	org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:378)
	org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:299)
	org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:230)
	org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:166)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

can you help me ajeet to test your product ?

thanks for all

link publish delete flag offensive edit

answered 2009-11-03 21:56:06 +0800

cmd gravatar image cmd
69 1

how to add some button(image) on the panel title

link publish delete flag offensive edit

answered 2009-11-04 01:23:02 +0800

iantsai gravatar image iantsai
2755 1

I think this is another question, right?

Why not promote it as a new Thread?

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-05-20 21:43:12 +0800

Seen: 578 times

Last updated: Nov 04 '09

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