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] [Updated] (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 updated SLING-8438:
----------------------------------
      Priority: Minor  (was: Major)
    Issue Type: Improvement  (was: Bug)

> 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
>
> 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)