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

ListBox SelectListitemConverter and null values

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.0.0
    • Components
    • None

      https://sourceforge.net/tracker/?func=detail&aid=2992276&group_id=152762&atid=785194

      Hi,
      I think SelectListitemConverter should handle null values, too, forum http://www.zkoss.org/forum/listComment/12132

      Probably related to the feature request 2974368, https://sourceforge.net/tracker/?func=detail&aid=2974368&group_id=152762&atid=785194

      Example:
      <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
      <window id="win">
      <zscript><![CDATA[
      List list1 = new ArrayList();
      list1.add("A");
      list1.add("B");
      list1.add("C");
      list1.add(null);
      ]]></zscript>
      List1
      <listbox id="listbox1" mold="select" rows="1" model="@

      {list1}

      " selectedItem="@

      {selected1}

      ">
      <listitem self="@

      {each=listEach}

      " label="@

      {listEach}

      " />
      </listbox>

      ]]></zscript>
      </window>

      Should select the fourth item.

            Unassigned Unassigned
            asukachen asukachen
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: