You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2019/11/29 15:35:00 UTC

[jira] [Created] (SLING-8867) Enhance the pageContext with the values provided by the SlingBindings

Radu Cotescu created SLING-8867:
-----------------------------------

             Summary: Enhance the pageContext with the values provided by the SlingBindings
                 Key: SLING-8867
                 URL: https://issues.apache.org/jira/browse/SLING-8867
             Project: Sling
          Issue Type: Improvement
          Components: Scripting
            Reporter: Radu Cotescu
            Assignee: Radu Cotescu
             Fix For: Scripting JSP 2.4.0


SLING-8738 brought support for using lazily evaluated bindings. The JSP script engine, however, although sets the {{SlingBindings}} as a request attribute, does not do anything else to facilitate the access to the bindings' values. Instead, this is delegated partially to the {{<sling:defineObjects/>}} tag. However, this tag has the potential of expanding all values which are provided lazily, irrespective of what values the JSP script being evaluated needs.

While modifying the {{<sling:defineObjects/>}} tag is out of the question, for backwards-compatibility reasons, the JSP engine could make the values provided by the {{SlingBindings}} available in the {{pageContext}}, if the context hasn't already defined identical attributes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)