You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2019/05/27 12:57:00 UTC

[jira] [Resolved] (SLING-8438) Sling Models BeanPropertyViaProvider should support nesting

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

Julian Sedding resolved SLING-8438.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: Sling Models Impl 1.4.12

Fixed in [commit 359d7bf|https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-models-impl.git;a=commitdiff;h=359d7bf].

> Sling Models BeanPropertyViaProvider should support nesting
> -----------------------------------------------------------
>
>                 Key: SLING-8438
>                 URL: https://issues.apache.org/jira/browse/SLING-8438
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.4.10
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Minor
>             Fix For: Sling Models Impl 1.4.12
>
>
> The {{BeanPropertyViaProvider}} currently does not provide access to "nested" methods. E.g. the following does not work:
> {code:java}
> @Model(adaptables = SlingHttpServletRequest.class)
> public class SuffixBasedModel {
>     public SuffixBasedModel(@Via("requestPathInfo.suffixResource") Resource suffixResource) {
>         // do something with suffixResource
>     }
> }
> {code}
> With this ticket, support for nested access should be provided.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)