Hi Egor,
and welcome to the mailing list.

For your first question, it's just an old-fashioned bug.  In fact, I
discovered it myself recently, and have raised a ticket [1] to tackle it,
hopefully in the 1.13.1 patch release I'm planning to put out shortly

For the second question, that's altogether a different proposition.
Currently the framework builds its metamodel from static classes, with the
(internal) ObjectSpecification describing their structure (properties,
collections, actions)... analogous to java.lang.Class.

At the moment (as you've no doubt discovered) the framework doesn't handle
Lists of Maps.  To be honest, I'm not sure what it would do, but it
definitely won't be what you want.  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.  I've raised [3] to capture
this analysis.

To answer your question, then, as things stand the best way to resolve the
issue is to create a JAXB view model [4] for the particular structure you
are returning, and return that.


[1] https://issues.apache.org/jira/browse/ISIS-1480
[3] https://issues.apache.org/jira/browse/ISIS-1487
[4] http://isis.apache.org/guides/ugbtb.html#_ugbtb_view-models_jaxb

On 14 September 2016 at 17:05, Егор Литвиненко <e.v.litvinenk...@gmail.com>

> Hello!
> I'm very like Apache Isis project, but have some questions, and hope for
> help.
> First question:
> Error when using LocalDateTime from Joda (LocalDateTime from java doesn't
> work too).
> Is it expeced behaviour? Can I use LocalDateTime?
> Error throws in listAll and when try to see special tab Audit from
> layout.xml. But doesn't throw, when display like property of class in
> collection in special tab.
> Stack - http://pastebin.com/wAsC5znN
> Second question:
> In my application I have requirements to show some dynamic data (in read
> only table), which structure doesn't provide in compile, so I can't create
> class with fields.
> This data doesn't have to be persistence and I suppose to use a
> List<Map<String, Object>> for that. I tried some implementations of JAXB
> with map, but without success (dynamic data doesn't show).
> What is the best way to resolve this issue with Apache Isis?
> In best regards, Egor Litvinenko.

Reply via email to