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

form binding with concrete List implementations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Normal
    • None
    • 8.0.1.1
    • Databind 2
    • Security Level: Jimmy
    • ZK 8.0.2 S2, ZK 8.6.0 S1, ZK 8.6.0 S2

    Description

      when using form binding on a bean declaring a concrete List implementation as return type (e.g. LinkedList, ListModelList), a FormProxy cannot be created for this getter.

      exceptions like this are thrown:
      java.lang.ClassCastException: org.zkoss.bind.proxy.ListProxy cannot be cast to org.zkoss.zul.ListModelList

      To reproduce run the attached example.
      So far the bean may only declare the List interface as return type.

      Is there a way to enable such a case? Or if not - throw an exception giving an additional hint what needs to be changed?

      Attachments

        1. formlistmodellist.zul
          0.3 kB
          cor3000
        2. FormViewModel.java
          0.8 kB
          cor3000

        Issue Links

          Activity

            People

              DevChu DevChu
              cor3000 cor3000
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h