Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1487

[WON'T FIX] Extend the framework's metamodel to be able to render List<Map<String,Object>>

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.13.0
    • 2.0.0-M3
    • Core
    • None

    Description

      To support this dynamic requirement, the framework (as currently architected) would need to build an ObjectSpecification based on the Map instances being rendered, whose structure is inferred from the members of that Map.

      I could imagine it would be possible to do, but would require some work within the SpecificationLoader. For example, perhaps the special-case handling here [2] could be extended to return a MapSpecification that handles the dynamic stuff... the issue though is that it would need to be told about a particular Map to look into. It would be hacky, but maybe putting the Map in question onto a ThreadLocal would suffice.

      [2] https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/specloader/SpecificationLoader.java#L401

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: