[ 
https://issues.apache.org/jira/browse/ISIS-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Haywood updated ISIS-1487:
------------------------------
    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



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




> Extend the framework's metamodel to be able to render List<Map<String,Object>>
> ------------------------------------------------------------------------------
>
>                 Key: ISIS-1487
>                 URL: https://issues.apache.org/jira/browse/ISIS-1487
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.13.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>            Priority: Minor
>             Fix For: 1.16.0
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to