1

I have an Apache ISIS @Action that creates and returns a list of in-memory objects. When those objects are displayed by Apache ISIS as a collection in the browser - the JodaTime DateTime and String fields become all null.

There is also another field on the object, which is a persistent entity - it does not get reset to null and is displayed on the object.

Is it possible to display values of non-persistent fields of an object?

EDIT: Apparently the String field is displayed. The DateTime are not though. Can this be an issue with DateTime specifically?

Varis
  • 13
  • 1
  • 4

1 Answers1

0

The solution here is to use JAXB view models, as per concepts and the programming model.

One thing that isn't documented yet is that, for Joda date/time fields, you'll need to annotated the fields (or properties) with a JAXB XmlAdapter; see this blog post for guidance.

HTH, Dan

Dan Haywood
  • 2,215
  • 2
  • 17
  • 23