Tutorial"

From Documentation
(MVC: Separate code from UI, java code should be updated/fixed.)
 
Line 1: Line 1:
 
the java code in "MVC: Separate code from user interface" section lacks some classes to compile and work properly.
 
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:
+
the code should be something like this:<br />
import org.zkoss.zk.ui.Component;
+
:import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.util.Composer;
+
: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.EventListener; // instead of "import org.zkoss.zk.event.EventListener;"
import org.zkoss.zk.ui.event.Event;
+
:import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Label;
+
:import org.zkoss.zul.Label;
import org.zkoss.zul.Textbox;
+
:import org.zkoss.zul.Textbox;
 +
[[User:Dark1sun|Dark-Sun]] 09:55, 25 March 2011 (UTC)

Revision as of 09:55, 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)