Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-302

Colorbox support databinding without give save-when

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 5.0.8
    • Databind
    • 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>

            Unassigned Unassigned
            jimmyshiau jimmyshiau
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: