Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Sling Models Impl 1.3.4
Description
The new exporter feature for Sling Models always return null if the adaptables is set to SlingHttpServletReqeust for the relevant Sling Model.
Example:
@Model(adaptables = SlingHttpServletRequest.class, adapters = TestModel.class, resourceType = "core/wcm/components/test") @Exporter(name = "jackson", extensions = "json") public class TestModel { @ValueMapValue private String test; public String getTest() { return test; } }
Issue will be fixed with:
https://github.com/apache/sling/pull/187
Attachments
Issue Links
- links to