Tutorial"

From Documentation
(MVC: Autowire UI objects to data members, an import line is missing)
(minor grammer issue)
Line 13: Line 13:
  
 
[[User:Dark1sun|Dark-Sun]] 16:23, 25 March 2011 (UTC)
 
[[User:Dark1sun|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:<br />
 +
:" irst, you could declare a initial class AnnotateDataBinderInit."
 +
:> "...declare an initial class AnnotateDataBinderInit."
 +
[[User:Dark1sun|Dark-Sun]] 08:54, 26 March 2011 (UTC)

Revision as of 08:54, 26 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)

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)