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

ListElResolver does not support standard EL syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.0.3
    • Databind
    • None

      If EL accesses list method e.g. getPageSize() in standard EL notation "vm.list.pageSize" (see below) an NumberFormatException is thrown

      {{ <listbox mold="paging" onCreate="self.setPaginal(paging)"
      model="@init(vm.list)" >
      <!-- not shown -->
      </listbox>
      <paging id="paging" pageSize="@init(vm.list.pageSize)" />}}

      {{java.lang.NumberFormatException: For input string: "pageSize"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:580)
      at java.lang.Integer.parseInt(Integer.java:615)
      at org.zkoss.zel.ListELResolver.coerce(ListELResolver.java:158)
      at org.zkoss.zel.ListELResolver.getValue(ListELResolver.java:71)}}

      If EL refers method directly, e.g. vm.list.getPageSize() it works fine.

            klyvechen klyvechen
            fse fse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified