-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a problem with load a zul file from jar. First project "zk-utils" containing zul file in src/web/zul/pages/ui_text.zul. This project is used as jar in next project. In next project I have added jar file as dependency into pom.xml. I can use classes and methods from this jar, but zul file will not load (Error: Page not found: ~./ui_text.zul). I use to create file: Executions.createComponents("~./zul/pages/ui _text.zul" , null, null); Please help me solve this problem.
Hello Janchii,
You can find a good example on how to load a zul file from a jar in the following post:
http://forum.zkoss.org/question/23321/load-a-zul-from-inside-a-jar/
Basically, the searched zul-file must be inside a jar-file who is placed in the /WEB-INF/lib folder of your main web application.
And the java call can be done as:
Map<string, object=""> map = new HashMap<string, object="">(); map.put("item", new Customer()); Executions.createComponents("~./zul/pages/customer/customerCRUD.zul", null, map);
Best Regards,
Darksu
Asked: 2014-08-14 20:49:23 +0800
Seen: 24 times
Last updated: Aug 15 '14
zk.wpd JS error, with window inside window
Unexpected Token Main Page [closed]
ArrayIndexOuOfBoundsException showing Messagebox
error PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session
no grammar constraints (dtd or xml schema) detected for the document
ListModelList.clear() - Error in ZK Framework?