01: /* Init.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: 2007/08/16 18:10:17 , Created by Dennis.Chen
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.jsf.zul;
20:
21: import org.zkoss.jsf.zul.impl.BaseInit;
22: import org.zkoss.zk.ui.util.Initiator;
23:
24: /**
25: * Init is a JSF component implementation for initial of page <br/>
26: *
27: * <p>Once this is specified, an instance inside this tag is created and {@link Initiator#doInit} is called
28: * before the page is evaluated. Then, {@link Initiator#doAfterCompose} is called
29: * after all components are created, and before any event is processed.
30: * In additions, {@link Initiator#doFinally} is called
31: * after the page has been evaluated. If an exception occurs, {@link Initiator#doCatch}
32: * is called.
33: *
34: * <p>A typical usage: starting a transaction in doInit, rolling back it
35: * in {@link Initiator#doCatch} and commit it in {@link Initiator#doFinally}
36: * (if {@link Initiator#doCatch} is not called).
37: *
38: * <p/>
39: * Usage:<br/>
40: * <pre>
41: * <z:init useClass="my.Init" arg0="hello"/>
42: * </pre>
43: *
44: * <p/>
45: * This component should be declared nested under {@link org.zkoss.jsf.zul.Page}.<br/>
46: *
47: * <p/>To know more ZK component features you can refer to <a href="http://www.zkoss.org/">http://www.zkoss.org/</a>
48: *
49: * @author Dennis.Chen
50: *
51: */
52: public class Init extends BaseInit {
53:
54: }
|