Development-time Best Practices

From Documentation
Revision as of 06:51, 14 November 2018 by Hawk (talk | contribs) (Created page with "{{ZKDevelopersReferencePageHeader}} There are several settings below we recommend you to specify during development time that can improve your developer experience. They can ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


DocumentationZK Developer's ReferenceDevelopment-time Best Practices
Development-time Best Practices




There are several settings below we recommend you to specify during development time that can improve your developer experience. They can show you more debugging information and reload a zul page to get the latest change without restarting a server.


Separate zk.xml for Developement

    <library-property>
        <name>org.zkoss.zk.config.path</name>
        <value>/WEB-INF/zk-dev.xml</value>
    </library-property>


zk-dev.xml

	<system-config>
		<disable-zscript>false</disable-zscript>
	</system-config>
	<!-- show debug information -->
	<client-config>
		<debug-js>true</debug-js>
	</client-config>
	<library-property>
		<name>org.zkoss.zk.ui.versionInfo.enabled</name>
		<value>true</value>
	</library-property>
	<!-- disable various caches -->
	<library-property>
		<name>org.zkoss.zk.ZUML.cache </name>
		<value>false</value>
	</library-property>
	<library-property>
		<name>org.zkoss.zk.WPD.cache</name>
		<value>false</value>
	</library-property>
	<library-property>
		<name>org.zkoss.zk.WCS.cache</name>
		<value>false</value>
	</library-property>
	<library-property>
		<name>org.zkoss.web.classWebResource.cache</name>
		<value>false</value>
	</library-property>
	<library-property>
		<name>org.zkoss.util.label.cache</name>
		<value>false</value>
	</library-property>



Subsections:



Last Update : 2018/11/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.