-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi community
I have the following structure in my project:
source code to call *.zul files in index.zul file is:
<include src="/webapp/chapter3/banner.zul"/>
what I have to do or change in my code for call .zul files from webapp folder?
thanks in advanced
The correct path is <include src="/chapter3/banner.zul"/>
webapp is the root folder.
If you are using zk 8 or above, I suggest using <apply templateURI="/chapter3/banner.zul"/>
Look the structure again and found some issues. just confused by the naming, webapp
Your project structure is incorrect. If webapp
is your application context root, then there should be a WEB-INF
under it. But I just see a WEB.INF
in webapp
's parent folder.
If WebContent
is the application context root, then the included zul URL is <include src="/webapp/chapter3/banner.zul"/>
ref: web module
Hello barcvilla,
You can also refer to this post to get more information on the topic:
http://stackoverflow.com/questions/14489016/how-to-properly-reference-local-resources-in-html
Best Regards,
Darksu
Asked: 2016-11-18 02:07:06 +0800
Seen: 59 times
Last updated: Dec 01 '16
but webapp was a folder that I have created, i mean was not included in the original project structure. The structure created is: webapp -->chapter3--> banner.zul, footer.zul, main.zul, sidebar.zul
barcvilla ( 2016-11-27 15:35:01 +0800 )editHi Hawk. I moved timeout.zul file to webapp/chapter3 and try to call it <include src="/webapp/chapter3/timeout.zul"/> and it works!!!. But doesn´t work with I try call banner.zul. I have a error proceessing request: org.zkoss.zk.ui.metainfo.PropertyNotFoundException: Method setRef not found for clas
barcvilla ( 2016-12-02 13:01:10 +0800 )edit