Use zscript to initialize
In Page Initial Phase, ZK processes the processing instructions, called
zscript to init the page,simply specify a file containing the scripting codes with the zscript attribute, as follows. Then, the file will be interpreted at the Page Initial phase.
Notice that the page is not yet attached to the desktop when the Page Initial phase executes.
Use java to init the page, simply specify a class with class attribute, an instance of the specified class is constructed, and then its
doInit method is called.