Tutorial"

From Documentation
(MVC: Autowire UI objects to data members, an import line is missing)
Line 8: Line 8:
 
:import org.zkoss.zul.Textbox;
 
:import org.zkoss.zul.Textbox;
 
[[User:Dark1sun|Dark-Sun]] 09:55, 25 March 2011 (UTC)
 
[[User:Dark1sun|Dark-Sun]] 09:55, 25 March 2011 (UTC)
 +
 +
in "MVC: Autowire UI objects to data members" section, "Event" class should be imported too:
 +
:import org.zkoss.zk.ui.event.Event;
 +
 +
[[User:Dark1sun|Dark-Sun]] 16:23, 25 March 2011 (UTC)

Revision as of 16:23, 25 March 2011

the java code in "MVC: Separate code from user interface" section lacks some classes to compile and work properly. the code should be something like this:

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.util.Composer;
import org.zkoss.zk.ui.event.EventListener; // instead of "import org.zkoss.zk.event.EventListener;"
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Label;
import org.zkoss.zul.Textbox;

Dark-Sun 09:55, 25 March 2011 (UTC)

in "MVC: Autowire UI objects to data members" section, "Event" class should be imported too:

import org.zkoss.zk.ui.event.Event;

Dark-Sun 16:23, 25 March 2011 (UTC)