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

Support Map in FieldComparator

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 5.0.6
    • Databind
    • None

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

      Auto-sorting, e.g. in listheader using sort="auto(property)" only works on bean-like classes.
      If data comes from a generic data source, a Map<columnName, value> would be a typical representation.
      FieldComparator could easily deal also with this kind of type by calling get("property") if the underlying object is a Map.
      Change would be around org.zkoss.lang.reflect.Fields.get(Object obj, String name);

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

              Created:
              Updated: