-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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(); } }
hai Peter,
ok your sample very clear i can do it now
Thanks,
Andy Susanto
Asked: 2008-11-24 15:43:49 +0800
Seen: 151 times
Last updated: Nov 25 '08