0

overlapped window

asked 2008-11-24 15:43:49 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai,

i have a page that use menu component. each menuitem clicked i would like show window that have overlapped mode.
i would to separate menu.zul and overlapped.zul

my problem is when i click menuitem i am always get an error nullexception. if i put code from overlapped.zul inside menu.zul that error not showing. but if i put in menu.zul, my menu.zul file will bigger because i must put every window
inside that file.

Is there any solution ? i would like not to use include tag

TIA,

Andy Susanto

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-11-25 02:48:05 +0800

PeterKuo gravatar image PeterKuo
481 2

You may try to use Executions.createComponents, and doModal.
Example code is as below:

	public void onFormulaPopup() {
		Window win = (Window) Executions.createComponents(
				"/menus/formula/formulaCategory.zul", null, null);
		try {
			win.doModal();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

link publish delete flag offensive edit

answered 2008-11-25 08:20:55 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai Peter,

ok your sample very clear i can do it now



Thanks,

Andy Susanto

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: 2008-11-24 15:43:49 +0800

Seen: 151 times

Last updated: Nov 25 '08

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