Tutorial
From Documentation
Revision as of 02:36, 28 March 2011 by Henrichen (talk | contribs) (→Fix the issue reported by Dark-Sun.)
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)
ok, this is really a minor grammer issue, but in case of applying above changes, it wouldn't be so hard to make this one too, it's at this line:
- " irst, you could declare a initial class AnnotateDataBinderInit."
- > "...declare an initial class AnnotateDataBinderInit."
Dark-Sun 08:54, 26 March 2011 (UTC)
Fixed. Thank you, Dark-Sun. Henri Chen 02:29, 28 March 2011 (UTC)