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

ListElResolver does not support standard EL syntax

    Details

    • Type: Bug
    • Status: Reviewing
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.5.2
    • Component/s: Databind
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        rudyhuang rudyhuang added a comment - - edited
        Show
        rudyhuang rudyhuang added a comment - - edited Similar issue: https://issues.apache.org/jira/browse/EL-3

          People

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

            Dates

            • Created:
              Updated:

              Time Tracking

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