-
New Feature
-
Resolution: Unresolved
-
Normal
-
None
-
5.0.8
-
None
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
<zk>
<zscript><![CDATA[
public class Person {
private String _name = "";
private String _color = "";
public Person(String name, String color)
{ setName(name); setColor(color); }public void setName(String _name)
{ this._name = _name; }public String getName()
{ return _name; }public void setColor(String _color)
{ this._color = _color; }public String getColor()
{ return _color; }}
Person p = new Person("Jimmy", "#000000");
]]></zscript>
<button label="show values" onClick='alert(p.getName() + "\t" + p.getColor())'/>
<textbox value="@
{p.name}"/>
<colorbox value="@
{p.color}"
onChange='System.out.println(self.value)'/>
</zk>