can you show us an image of the project structure where we can see the zul folders?
terrytornado ( 2014-12-06 21:20:53 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Help me, please!!!
I have an application that when I deploy in 'jetty server' running, but when I deploy on tomcat not find me the paths of .zul pages.
Example.
When I deploy to tomcat, the url that appears is: http://localhost:808/dimensiona/index.zul When I select an option from the sidebar in working jetty and tomcat not find the path. Page sidebar:
<nav label="${labels.labels.maintenance}" iconsclass="z-icon-angle-double-right" sclass="grey"> <navitem label="${labels.activities.activities}" iconsclass="z-icon-list" href="/activities/page.zul"/> <navitem label="${labels.configParms.configParms}" iconsclass="z-icon-list" href="/configparms/page.zul"/> <navitem label="${labels.resources.resources}" iconsclass="z-icon-list" href="/resources/page.zul"/> </nav>If I change href from 'href="/resources/page.zul"' to 'href="resources/page.zul"' when I select one navitem works fine on tomcat, but when I select another navitem not work because the wrong path appears.
Example:
Tomcat:
if I select navitem resources, it works: http://localhost:8080/dimensiona/resources/page.zul
if then select navitem configparms, it not works: http://localhost:8080/dimensiona/resources/configparms/page.zul.
I hope I explained well, sorry for the English, thanks
Tomcat uses the war file name as default docBasePath. Seems Jetty not.
Have a try to test both cases in this way:
href="~./activities/page.zul"/>
best Stephan
can you show us an image of the project structure where we can see the zul folders?
terrytornado ( 2014-12-06 21:20:53 +0800 )editAsked: 2014-12-04 15:18:22 +0800
Seen: 28 times
Last updated: Dec 05 '14
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?
Getting wierd NullPointerException when using Shiro
Script error when doing stuff in background thread