- 浏览: 460404 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
a464697691:
楼主厉害,现在可以使用了
Proxool houseKeepingSleepTime bug修正 -
chenpi529:
楼主好牛逼
Proxool houseKeepingSleepTime bug修正 -
huangxinyu_it:
多谢楼主了
Proxool houseKeepingSleepTime bug修正 -
kokorodo:
谢谢了!
zk中文开发手册pdf版(基于3.5.1) -
superscorpio:
public void testImportInContex ...
MVEL2.0控制流
zk.xml zk配置 zk技术 ajax
<?xml version="1.0" encoding="UTF-8"?> <!-- zk.xml Purpose: Description: History: Sun Mar 26 16:29:07 2006, Created by tomyeh Copyright (C) 2006 Potix Corporation. All Rights Reserved. --> <zk> <!-- Turn on if you want to debug JavaScript. Once turned on, the uncompressed JavaScript files will be loaded. <client-config> <debug-js>true</debug-js> </client-config> --> <!-- The allowed child elements include evaluator-class. At most one xel-config element is allowed for each zk.xml. <xel-config> <evaluator-class>my.MyExpressionFactory</evaluator-class> </xel-config> --> <!-- Turn on if you want to generate UUID by prefixing ID with the value specified here. It is designed for testing purpose. Notice ${page will be replaced with page's UUID. If you don't want it, remove it. <desktop-config> <id-to-uuid-prefix>_zid_${page}_</id-to-uuid-prefix> </desktop-config> --> <!-- Turn on if you want to use the same UUID sequence for the desktops after reboot. It is mainly for testing purpose. <desktop-config> <repeat-uuid>true</repeat-uuid> </desktop-config> --> <!-- <log> <description>[Optional] Monitor i3-log.conf and register a handler for the specified log-base</description> <log-base>org.zkoss</log-base> </log> --> <!-- Turn on the following if want to use auto as the default. <library-property> <name>org.zkoss.zul.include.mode</name> <value>auto</value> </library-property> --> <!-- Turn on if you want to use language addons. <language-config> <addon-uri>/WEB-INF/lang-addon.xml</addon-uri> </language-config> --> <!-- Turn on if you want to ignore the consecutive click events, if it happens too close to the previous one, or the server is still serving the previous click. <client-config> <click-filter-delay>390</click-filter-delay> </client-config> --> <!-- Optional --> <!-- Map extensions to the xml language. By default, xml is mapped to xml --> <language-mapping> <language-name>xml</language-name> <extension>svg</extension> </language-mapping> <language-mapping> <language-name>xml</language-name> <extension>xml2html</extension> </language-mapping> <!-- Map extensions to the xul/html language By default, xul/html are mapped to zul and xul. <language-mapping> <language-name>xul/html</language-name> <extension>xxx</extension> </language-mapping> --> <session-config> <!-- Turn on the following if you want a different timeout Note: The unit is seconds (while that of web.xml is minute) <session-timeout>1800</session-timeout> --> <!-- Turn on the following if you want to reset the session-timeout counter when receiving onTimer, like any other request In other words, the session is never timeoout if the desktop has a timer. <timer-keep-alive>true</timer-keep-alive> --> </session-config> <!-- Turn on if you prefer to use the native (Servlet) thread to process the events, instead of forking the event processing thread <system-config> <disable-event-thread/> </system-config> --> <!-- Turn on the following if you want to use ZK with a clustering server <system-config> <disable-event-thread/> <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class> </system-config> --> <!-- Turn on the following if you want to cache all desktops in a global cache, rather than one for each session <system-config> <cache-provider-class>org.zkoss.zk.ui.sys.GlobalDesktopCacheProvider</cache-provider-class> </system-config> --> <!-- <system-config> <au-writer-class>my.AuWriter</au-writer-class> <cache-provider-class>my.CacheProvider </cache-provider-class> <disable-event-thread /> <engine-class>my.UiEngine</engine-class> <failover-manager-class>my.FailoverManager </failover-manager-class> <id-generator-class>my.IdGenerator</id-generator-class> <max-spare-threads>100</max-spare-threads> <max-suspended-threads>100</max-suspended-threads> <max-upload-size>5120</max-upload-size> <max-process-time>3000</max-process-time> <response-charset>UTF-8</response-charset> <session-cache-class>my.SessionCache </session-cache-class> <upload-charset>UTF-8</upload-charset> <upload-charset-finder-class>my.CharsetFinder </upload-charset-finder-class> <ui-factory-class>my.UiFactory</ui-factory-class> <url-encoder-class>my.URLEncoder</url-encoder-class> <web-app-class>my.WebApp</web-app-class> </system-config> --> <!-- Optional --> <!-- You can define any number of richlets as follows. Note: To use richlet, you have to map zkLoader to /xx/* in web.xml, where xx could be any name. And, the final URL will be /xx/url-pattern. This demo application maps all richlet to /zk (see web.xml), so the richlet path will be, say, /zk/test/some --> <!-- <richlet> <richlet-name>Test</richlet-name> <richlet-class>org.zkoss.zkdemo.test.TestRichlet</richlet-class> Any number of initial parameters. <init-param> <param-name>any</param-name> <param-value>any</param-value> </init-param> </richlet> <richlet-mapping> <richlet-name>Test</richlet-name> <url-pattern>/test/*</url-pattern> </richlet-mapping> --> <!-- Optional --> <!-- <device-config> <device-type>ajax</device-type> <timeout-uri>/timeout.zul</timeout-uri> An empty URL can cause the browser to reload the same URL </device-config> --> <!-- Uncomment if you want to embed JavaScript codes and any other tags to be generated inside HTML HEAD. <device-config> <device-type>ajax</device-type> <embed><![CDATA[ <script type="text/javascript"> </script> ]]></embed> </device-config> --> <!-- Optional --> <!-- the following listener is used to see # of sessions, desktops... --> <listener> <description>[Optional] Mointor the statistic</description> <listener-class>org.zkoss.zk.ui.util.Statistic</listener-class> </listener> <!-- Configure the error page <error-page> <device-type>['''ajax'''|mil]</device-type> <exception-type>''ClassName''</exception-type> <location>''the error page's URI''</location> </error-page> --> <!-- Configure ZUL to use smaller fonts for all locales, and smaller fonts for the rest Locales <desktop-config> <disable-theme-uri>~./zul/css/norm*.css.dsp*</disable-theme-uri> <theme-uri>~./zul/css/normsm*.css.dsp*</theme-uri> </desktop-config> --> <!-- Configure ZUL to use larger fonts for all locales, and smaller fonts for the rest Locales <desktop-config> <disable-theme-uri>~./zul/css/norm*.css.dsp*</disable-theme-uri> <theme-uri>~./zul/css/normlg*.css.dsp*</theme-uri> </desktop-config> --> <!-- Configure ZUL to use larger fonts for Chinese characters, and nomal fonts for the rest Locales <desktop-config> <disable-theme-uri>~./zul/css/norm*.css.dsp*</disable-theme-uri> <theme-uri>~./zul/css/norm**.css.dsp</theme-uri> </desktop-config> --> <!-- Configure additional theme URIs <desktop-config> <theme-uri>/a.css</theme-uri> <theme-uri>/b**.css</theme-uri> </desktop-config> --> <!-- <desktop-config> <theme-provider-class>org.zkoss.zkdemo.userguide.FontSizeThemeProvider</theme-provider-class> </desktop-config> --> <!-- Uncomment the following if you want to redirect to particular page when ZK Client receives an error code. <client-config> <error-reload> <error-code>301</error-code> <reload-uri>/login.zul</reload-uri> </error-reload> </client-config> --> <!-- Uncomment the following to customize the client-polling-based server push. Note: the unit of PollingServerPush.delay.min and max is second. Note: the values of PollingServerPush.start and stop are the JavaScript codes to execute at the client. Note: the value of PollingServerPush.delay.factor must be integer, <preference> <name>PollingServerPush.delay.min</name> <value>3000</value> </preference> <preference> <name>PollingServerPush.delay.max</name> <value>10000</value> </preference> <preference> <name>PollingServerPush.delay.factor</name> <value>5</value> </preference> <preference> <name>PollingServerPush.start</name> <value></value> </preference> <preference> <name>PollingServerPush.stop</name> <value></value> </preference> --> <!-- Configure the default font size in ZUL CSS file (norm*.css) Default: 12px. <library-property> <name>org.zkoss.zul.theme.fontSizeM</name> <value>12px</value> </library-property> --> <!-- Configure the font size for menus in ZUL CSS file (norm*.css) Default: 11px.--> <library-property> <name>org.zkoss.zul.theme.fontSizeMS</name> <value>12px</value> </library-property> <!-- Configure the font size for smaller fonts, such as toolbar, in ZUL CSS file (norm*.css) Default: 11px. --> <library-property> <name>org.zkoss.zul.theme.fontSizeS</name> <value>12px</value> </library-property> <!-- Configure the font size for extremely small fonts, in ZUL CSS file (norm*.css) Default: 10px. <library-property> <name>org.zkoss.zul.theme.fontSizeXS</name> <value>12px</value> </library-property> --> <!-- Configure the font family for titles in ZUL CSS file (norm*.css) Default: Verdana, Tahoma, Arial, Helvetica, sans-serif. <library-property> <name>org.zkoss.zul.theme.fontFamilyT</name> <value>Verdana, Tahoma, Arial, Helvetica, sans-serif</value> </library-property> --> <!-- Configure the font family for content in ZUL CSS file (norm*.css) Default: Verdana, Tahoma, Arial, serif. <library-property> <name>org.zkoss.zul.theme.fontFamilyC</name> <value>Verdana, Tahoma, Arial, Helvetica, sans-serif</value> </library-property> --> <!-- Configure ZUL not to override the standard HTML tags, such as body's margin and padding <library-property> <name>org.zkoss.zul.theme.browserDefault</name> <value>true</value> </library-property> --> <!-- Configure ZUL to apply the zk prefix in the CSS file (norm*.css). Use this only if you want to use different fonts for ZK components and the rest of your Web pages <library-property> <name>org.zkoss.zul.theme.enableZKPrefix</name> <value>true</value> </library-property> --> <!-- Uncommet to control the number of lines to log an error message. Default: 6. If nonpostive is specified, the full stack traces are logged. Notice that # of lines don't include packages starting with java, javax or sun. <library-property> <name>org.zkoss.util.logging.realCauseBriefly</name> <value>0</value> </library-property> --> <!-- Uncommet to control the number of lines to log a warning message. Default: 3. If nonpostive is specified, the full stack traces are logged. Notice that # of lines don't include packages starting with java, javax or sun. <library-property> <name>org.zkoss.util.logging.warningBriefly</name> <value>0</value> </library-property> --> <!-- Uncommet to control whether the label propeties files are located. Default: /WEB-INF/i3-label.properties <library-property> <name>org.zkoss.util.label.web.location</name> <value>/WEB-INF/i3-label.properties</value> </library-property> --> <!-- Uncommet to control the encoding of the labe properties files Default: UTF-8 <library-property> <name>org.zkoss.util.label.web.charset</name> <value>UTF-8</value> </library-property> --> <!-- Uncomment it if you prefer to keep the desktops when an user browses to another URL or reloads the page. <client-config> <keep-across-visits>true</keep-across-visits> </client-config> --> <!-- Configure the Hibernate SessionFactory Lifecycle. <listener> <description>Hibernate SessionFactory Lifecycle</description> <listener-class>org.zkoss.zkplus.hibernate.HibernateSessionFactoryListener</listener-class> </listener> --> <!-- Configure the Hibernate configuration file name if not "hibernate.cfg.xml" <preference> <name>HibernateUtil.config</name> <value></value> </preference> --> <!-- Configure the Hibernate "Open Session In View" Session Lifecycle <listener> <description>Hibernate "Open Session In View" Session Lifecycle</description> <listener-class>org.zkoss.zkplus.hibernate.OpenSessionInViewListener</listener-class> </listener> --> <!-- Hibernate thread session context handler <listener> <description>Hibernate thread session context handler</description> <listener-class> org.zkoss.zkplus.hibernate.HibernateSessionContextListener </listener-class> </listener> --> </zk>
发表评论
-
zkspring 3.0RC bug 修复
2010-11-19 15:46 1871zkspring 3.0RC bug 修复 ... -
【zk开发】使用Sessions.getCurrent().invalidate()时需要特别注意到问题
2010-11-15 16:25 2442Sessions.getCurrent().invali ... -
【zk开发】use和apply的区别
2010-11-15 14:03 4566use 使用一个组件类,该类必须是当前组件 ... -
【zk开发】java代码给组件添加客户端事件处理javascript
2010-11-10 10:49 1839/** *设置或删除widget的事件监听器,如 ... -
【zk开发】zk中的表单验证(优化版)
2010-11-10 10:41 2407/** * 验证表单 * <p> ... -
【zk开发】ZkUtils 1.2
2010-11-08 10:22 2796ZkUtils 是zk开发中的一些工具方法集合,将散落在 ... -
ZK 5.0.5 chm api文档
2010-11-03 10:11 5877ZK 5.0.5 chm api文档 文档在附件 ... -
ZK 5.0.5正式版发布
2010-11-02 18:24 1189ZK 5.0.5正式版发布 更新日志http: ... -
【zk开发】理解zk事件处理线程
2010-11-01 17:27 2293什么是事件处理线程(EventProcessingTh ... -
【zk开发】zkstudio安装及使用视屏
2010-10-29 16:58 2214安装视屏 http://docs.zkoss ... -
zk5.0.5可能最近两天发布
2010-10-29 13:13 1096zk5.0.5可能最近两天发布 zk5.0 ... -
【zk开发】zk注解的秘密
2010-10-28 14:26 4004The DataBinder that rea ... -
【zk开发】zk内存监控
2010-10-21 09:03 2816所用到的资源 ... -
【zk开发】如何在页面中获得composer对象
2010-10-15 15:31 2645样例: <window id=&qu ... -
【zk开发】jQuery+zk完美客户端
2010-09-14 11:11 2586(function(window) { var lin ... -
【zk开发】zk5.0.4 datebox inplace模式的bug
2010-09-08 16:24 1627zk5.0.4 datebox inplace模式 ... -
使用ZK CE版开发商业软件
2010-09-07 15:50 2482仔细读一下内容 LGPL(GNU Lesser Gene ... -
【zk开发】zk的国际化
2010-09-02 16:22 3824【zk开发】zk的国际化 一,准备资源文件 ... -
zk5.0.4 chm版API
2010-09-01 12:37 1273zk5.0.4 chm版API -
挥起马鞭,升到zk5.0.4
2010-08-31 23:22 1443由于zk5.0.4测试版已发布公开测试,正式版应该很快出 ...
相关推荐
<description>ZK loader for ZUML pages <servlet-name>zkLoader <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class> <!-- 必须指定更新引擎(DHtmlUpdateServlet)的URI,并且它必须...
`zk.xml` 是 ZK 配置的核心文件之一,用于配置客户端和服务器端的交互细节。 - **client-config Element**: 配置客户端的行为,例如调试模式、主题选择等。 - **debug-js Element**: 启用调试模式时,将加载未经...
在配置Zookeeper时,我们需要在服务提供者的配置文件(通常是`dubbo.properties`或XML配置)中指定Zookeeper的地址,如`zookeeper.address=127.0.0.1:2181`。 接下来,我们进入具体实现步骤: 1. **安装Zookeeper*...
1. **ZK组件基础**:ZK提供了丰富的组件库,包括按钮、表格、树视图等,这些组件可以直接在XML布局文件中声明。通过学习书中的代码,你可以了解如何配置和定制这些组件,以及如何处理组件事件。 2. **事件处理**:...
本文将基于给定的 `yarn-site.xml` 文件中的配置项,详细解析如何在Hadoop集群中配置 ResourceManager 的高可用性。 #### 二、重要配置解析 根据提供的 `yarn-site.xml` 文件内容,我们可以看到多个重要的配置项,...
MXML是一种标记语言,类似于XML,专用于定义ZK中的用户界面组件和布局。在MXML中,你可以直接声明组件、设置属性、绑定数据,甚至编写事件处理函数。这种编程风格简化了UI的构建过程,使得界面设计更接近于视觉布局...
配置是ZK应用的核心部分,这份文档详细介绍了ZK的各种配置选项,如ZK服务器参数、组件属性、主题定制等。通过深入理解配置,开发者能够优化应用性能,实现自定义功能。 3. **开发者的参考(ZK 6.0.1 Developer's ...
然后,在web.xml中添加ZK的Servlet配置,以便服务器能够识别ZK的应用。 **三、常用功能** 1. **页面文本框校验**:可以为文本框设置约束,例如`(^[0-9a-zA-z]{3,5})?/: 航班号格式错误 !" >`,在Java代码中同样...
在Web应用中,"WEB-INF"目录下通常会放置web.xml配置文件,这是应用的部署描述符,定义了应用的配置信息,比如Servlet和过滤器的映射。 这个DEMO的实现可能会包括以下几个关键部分: 1. **实体类**:定义待办事项...
通过这个基于Java的实例开发源码,你可以学习到如何配置ZK环境,理解ZK组件的工作原理,掌握ZK事件处理机制,以及如何使用ZK Studio进行项目开发。实践是检验真理的唯一标准,通过实际操作,你将更好地理解和运用ZK...
开发者可以通过简单的XML或Java代码来创建和配置组件,极大地简化了页面构建工作。 **3. ZK事件模型** ZK的事件模型是其一大特色。它支持服务器端事件处理,开发者可以直接在Java代码中处理用户触发的事件,无需...
每个子目录都有特定用途,比如WEB-INF/web.xml定义了必需的servlet和监听器,zk.xml是ZK的配置文件,而WEB-INF/classes和lib分别用于存放编译后的Java类和ZK所需的库文件。所需库文件包括BeanShell、Apache的EL解释...
`WEB-INF`目录下可能包含Servlet、过滤器和监听器的配置,以及ZK相关的配置文件,如zk.xml,它定义了ZK应用的配置信息。 从这些文件夹结构我们可以推断,这个ZKDemo项目可能包含了以下知识点: - **ZK框架介绍**:...
### zk框架开发中遇到的错误整理 #### 1. projectmag.entity.xml中的field字段缺少,没有与project.entity.xml中的字段一一对应。 **问题描述**:在`projectmag.entity.xml`文件中,某些字段未与`project.entity....
1. **环境配置**:首先,需要在项目中引入ZK的依赖库,这通常通过Maven或Gradle等构建工具来完成。 2. **创建ZUML页面**:编写ZUML文件,定义UI组件和它们的交互行为。例如,创建一个简单的按钮,可以写成: ```...
`zk.cfg.xml`用于设置Zookeeper配置,`zk-env.xml`用于环境变量设置,而`zk.log4j.xml`是日志配置,通常不需要修改。在`metainfo.xml`中,确保服务名称和服务组件的正确配置。 在`package`文件夹下,有多个Python...
现在我们来详细探讨如何配置ZooKeeper集群和ActiveMQ集群。 首先,我们要理解ZooKeeper集群的基本概念。ZooKeeper集群由多个节点(称为ZooKeeper服务器)组成,每个节点都存储和处理一部分数据。为了保证高可用性,...
下面是安装和配置 Hbase 集群模式的详细步骤和知识点: 系统环境 在安装 Hbase 之前,需要确保系统环境已经准备就绪。这里使用 Ubuntu 16.04 LTS 64bit 作为操作系统, JDK 版本为 1.8.0_161,Hbase 版本为 1.2.6...
2. **构建脚本**:如`build.xml`,用于使用Ant或Maven等工具编译和打包Zookeeper。 3. **配置文件**:如`conf/zoo.cfg`,是Zookeeper服务器的基本配置,包括数据目录、端口号等设置。 4. **二进制文件**:编译后的...