You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Feike Visser <fv...@adobe.com.INVALID> on 2017/06/27 12:32:16 UTC

[SLING-6504] HTL able to adapt from multiple objects

hi team,

I have made an extension of the data-sly-use api to also adapt from other objects than Request/Resource.

Example:

<sly data-sly-use.session="${'javax.jcr.Session' @ adaptable = resource.resourceResolver}" />

As you can see the change has no impact on the syntax or language.

Would be great to receive feedback or to hear how to proceed.

https://issues.apache.org/jira/browse/SLING-6504

--
Feike

Re: [SLING-6504] HTL able to adapt from multiple objects

Posted by Justin Edelson <ju...@justinedelson.com>.
Hi,
I remain concerned that we are now essentially making "adaptable" as a
reserved attribute. If I'm the only one with this concern, then I'm not
going to stand in the way of this change, but I'd love to see some
affirmative statement from someone else saying "yeah, that's not a big
deal." :)

Regards,
Justin

On Tue, Jun 27, 2017 at 8:32 AM Feike Visser <fv...@adobe.com.invalid>
wrote:

> hi team,
>
> I have made an extension of the data-sly-use api to also adapt from other
> objects than Request/Resource.
>
> Example:
>
> <sly data-sly-use.session="${'javax.jcr.Session' @ adaptable =
> resource.resourceResolver}" />
>
> As you can see the change has no impact on the syntax or language.
>
> Would be great to receive feedback or to hear how to proceed.
>
> https://issues.apache.org/jira/browse/SLING-6504
>
> --
> Feike
>

Re: [SLING-6504] HTL able to adapt from multiple objects

Posted by Feike Visser <fv...@adobe.com.INVALID>.
hi all,

I added tests to the codebase for this improvement.

Any feedback would be welcome!

best,
Feike

From: Feike Visser <fv...@adobe.com>
Date: Tuesday, June 27, 2017 at 2:32 PM
To: "sling-dev@apache.org" <sl...@apache.org>
Subject: [SLING-6504] HTL able to adapt from multiple objects

hi team,

I have made an extension of the data-sly-use api to also adapt from other objects than Request/Resource.

Example:

<sly data-sly-use.session="${'javax.jcr.Session' @ adaptable = resource.resourceResolver}" />

As you can see the change has no impact on the syntax or language.

Would be great to receive feedback or to hear how to proceed.

https://issues.apache.org/jira/browse/SLING-6504

--
Feike