You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/05/30 21:13:05 UTC
[sling-site] branch asf-site updated: Updating the JSP Taglib
documentation to reflect the latest functions / tags
This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 4c04dbe Updating the JSP Taglib documentation to reflect the latest functions / tags
4c04dbe is described below
commit 4c04dbed51b0dc289447156d512a9eaf06cc4d76
Author: Dan Klco <dk...@apache.org>
AuthorDate: Wed May 30 17:13:04 2018 -0400
Updating the JSP Taglib documentation to reflect the latest functions / tags
---
badges/contrib.svg | 1 +
badges/deprecated.svg | 1 +
documentation/bundles/scripting/scripting-jsp.html | 96 ++++++++++++++++++++--
downloads.html | 17 +---
repolist.html | 6 +-
5 files changed, 95 insertions(+), 26 deletions(-)
diff --git a/badges/contrib.svg b/badges/contrib.svg
new file mode 100644
index 0000000..1281b99
--- /dev/null
+++ b/badges/contrib.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="94" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="94" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h45v20H0z"/><path fill="#97CA00" d="M45 0h49v20H45z"/><path fill="url(#b)" d="M0 0h94v20H0z"/></g><g fill="#fff" t [...]
\ No newline at end of file
diff --git a/badges/deprecated.svg b/badges/deprecated.svg
new file mode 100644
index 0000000..627f1ea
--- /dev/null
+++ b/badges/deprecated.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="116" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="116" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h45v20H0z"/><path fill="#9f9f9f" d="M45 0h71v20H45z"/><path fill="url(#b)" d="M0 0h116v20H0z"/></g><g fill="#fff [...]
\ No newline at end of file
diff --git a/documentation/bundles/scripting/scripting-jsp.html b/documentation/bundles/scripting/scripting-jsp.html
index 784fde8..e00ea51 100644
--- a/documentation/bundles/scripting/scripting-jsp.html
+++ b/documentation/bundles/scripting/scripting-jsp.html
@@ -188,6 +188,39 @@
<li>${found.path}</li>
</c:forEach>
</code></pre>
+<h3><a href="#getabsoluteparent" name="getabsoluteparent">getAbsoluteParent</a></h3>
+<p>Method for retrieving an absolute parent resource.</p>
+<ul>
+ <li>Returns: <code>org.apache.sling.api.resource.Resource</code> - The parent resource at the specified level</li>
+ <li>Accepts:
+ <ul>
+ <li><code>org.apache.sling.api.resource.Resource</code> - The current resource</li>
+ <li><code>java.lang.String</code> - The absolute level for the parent resource to retrieve</li>
+ </ul>
+ </li>
+ <li>Since: Bundle 2.3.0</li>
+</ul>
+<p><em>Example Usage</em></p>
+<pre><code><c:set var="content" value="${sling:getAbsoluteParent(resource,'2')}" />
+</code></pre>
+<h3><a href="#getparents" name="getparents">getParents</a></h3>
+<p>Function for retrieving all of the parent resources of a specified resource, returning them in hierarchy order.</p>
+<ul>
+ <li>Returns: <code>java.lang.Iterator</code> - an iterator of the parent resources in order</li>
+ <li>Accepts:
+ <ul>
+ <li><code>org.apache.sling.api.resource.Resource</code> - The current resource for which to retrieve the parents</li>
+ <li><code>java.lang.String</code> - The depth at which to start, for example given a path of: /content/page1/page2/page3 and a start depth of 3, the parents page2/page3 would be returned</li>
+ </ul>
+ </li>
+ <li>Since: Bundle 2.3.0</li>
+</ul>
+<p><em>Example Usage</em></p>
+<pre><code><c:set var="parents" value="${sling:getParents(resource,'2')}" />
+<c:forEach var="parent" items="${parents}">
+ <div>${parent.path}</div>
+</c:forEach>
+</code></pre>
<h3><a href="#getrelativeresource" name="getrelativeresource">getRelativeResource</a></h3>
<p>Gets the resource at the relative path to the provided resource.</p>
<ul>
@@ -394,19 +427,64 @@
<p><em>Example Usage</em></p>
<pre><code><sling:forward path="/content/aresource" resourceType="myapp/components/display" />
</code></pre>
-<h3><a href="#getproperty" name="getproperty">getProperty</a></h3>
-<p>Retrieves the value from the ValueMap, allowing for a default value or coercing the return value.</p>
+<h3><a href="#getcaconfigresource" name="getcaconfigresource">getCAConfigResource</a></h3>
+<p>Retrieves Context-Aware Configuration resource for a specified resource, bucket and name.</p>
<ul>
<li>Attributes
<ul>
- <li>properties - The ValueMap from which to retrieve the value.</li>
- <li>key - The key to retrieve the value from from the ValueMap.</li>
- <li>defaultValue - The default value to return if no value exists for the key. If specified, this takes precedence over returnClass.</li>
- <li>returnClass - The class into which to coerce the returned value.</li>
- <li>var - The name of the variable to which to save the value.</li>
+ <li>resource - The resource for which to retrieve CA Config</li>
+ <li>bucket - The bucket name to retrieve for the config</li>
+ <li>name - The config name to retrieve</li>
+ <li>var - The name of the variable to which to save the CA config resource.</li>
</ul>
</li>
- <li>Since: 1.3</li>
+ <li>Since: Bundle 2.3.0</li>
+</ul>
+<p><em>Example Usage</em></p>
+<pre><code><sling:getCAConfigResource resource="${resource}" bucket="site" name="templates" var="config" />
+</code></pre>
+<h3><a href="#getcaconfigresources" name="getcaconfigresources">getCAConfigResources</a></h3>
+<p>Retrieves Context-Aware Configuration resources for a specified resource, bucket and name.</p>
+<ul>
+ <li>Attributes
+ <ul>
+ <li>resource - The resource for which to retrieve CA Configs</li>
+ <li>bucket - The bucket name to retrieve for the configs</li>
+ <li>name - The config name to retrieve</li>
+ <li>var - The name of the variable to which to save the CA config resources.</li>
+ </ul>
+ </li>
+ <li>Since: Bundle 2.3.0</li>
+</ul>
+<p><em>Example Usage</em></p>
+<pre><code><sling:getCAConfigResources resource="${resource}" bucket="site" name="templates" var="config" />
+</code></pre>
+<h3><a href="#getparent" name="getparent">getParent</a></h3>
+<p>Retrieves the parent of the resource or the absolute parent at the level if specified.</p>
+<ul>
+ <li>Attributes
+ <ul>
+ <li>resource - The resource for which to retrieve the parent resource.</li>
+ <li>level - The level of the parent resource to retrieve</li>
+ <li>var - The name of the variable to which to save the parent resource.</li>
+ </ul>
+ </li>
+ <li>Since: Bundle 2.3.0</li>
+</ul>
+<p><em>Example Usage</em></p>
+<pre><code><sling:getParent resource="${resource}" level="2" var="parent" />
+</code></pre>
+<h3><a href="#getparents" name="getparents">getParents</a></h3>
+<p>Retrieves all of the parent resources of a specified resource, returning them in hierarchy order.</p>
+<ul>
+ <li>Attributes
+ <ul>
+ <li>resource - The resource for which to retrieve the parent resources.</li>
+ <li>startDepth - The depth at which to start, for example given a path of: /content/page1/page2/page3 and a start depth of 3, the parents page2/page3 would be returned</li>
+ <li>var - The name of the variable to which to save the parent resources.</li>
+ </ul>
+ </li>
+ <li>Since: Bundle 2.3.0</li>
</ul>
<p><em>Example Usage</em></p>
<pre><code><sling:getProperties properties="${properties}" key="jcr:title" defaultValue="${resource.name}" var="title" />
@@ -463,7 +541,7 @@
</code></pre></section></div></div>
<div class="footer">
<div class="revisionInfo">
- Last modified by <span class="author">Dan Klco</span> on <span class="comment">Wed Feb 7 21:15:03 2018 -0500</span>
+ Last modified by <span class="author">Dan Klco</span> on <span class="comment">Wed May 30 17:10:22 2018 -0400</span>
</div> <p>
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
</p><p>
diff --git a/downloads.html b/downloads.html
index f176ce4..1fb0df1 100644
--- a/downloads.html
+++ b/downloads.html
@@ -526,8 +526,6 @@
</td><td><a href="[preferred]sling/org.apache.sling.testing.rules-1.0.8-source-release.zip">Source ZIP</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.testing.rules-1.0.8-source-release.zip.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.testing.rules-1.0.8-source-release.zip.sha1">sha1</a>)
</td></tr><tr><td>Apache Sling Server Setup Tools</td><td>1.0.1</td><td><a href="[preferred]sling/org.apache.sling.testing.serversetup-1.0.1.jar">Bundle</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.testing.serversetup-1.0.1.jar.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.testing.serversetup-1.0.1.jar.sha1">sha1</a>)
</td><td><a href="[preferred]sling/org.apache.sling.testing.serversetup-1.0.1-source-release.zip">Source ZIP</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.testing.serversetup-1.0.1-source-release.zip.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.testing.serversetup-1.0.1-source-release.zip.sha1">sha1</a>)
- </td></tr><tr><td>Testing Tools</td><td>1.0.16</td><td><a href="[preferred]sling/org.apache.sling.testing.tools-1.0.16.jar">Bundle</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.testing.tools-1.0.16.jar.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.testing.tools-1.0.16.jar.sha1">sha1</a>)
- </td><td><a href="[preferred]sling/org.apache.sling.testing.tools-1.0.16-source-release.zip">Source ZIP</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.testing.tools-1.0.16-source-release.zip.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.testing.tools-1.0.16-source-release.zip.sha1">sha1</a>)
</td></tr><tr><td>URL Rewriter</td><td>0.0.2</td><td><a href="[preferred]sling/org.apache.sling.urlrewriter-0.0.2.jar">Bundle</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.urlrewriter-0.0.2.jar.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.urlrewriter-0.0.2.jar.sha1">sha1</a>)
</td><td><a href="[preferred]sling/org.apache.sling.urlrewriter-0.0.2-source-release.zip">Source ZIP</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.urlrewriter-0.0.2-source-release.zip.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.urlrewriter-0.0.2-source-release.zip.sha1">sha1</a>)
</td></tr><tr><td>Web Console Branding</td><td>1.0.2</td><td><a href="[preferred]sling/org.apache.sling.extensions.webconsolebranding-1.0.2.jar">Bundle</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.extensions.webconsolebranding-1.0.2.jar.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.extensions.webconsolebranding-1.0.2.jar.sha1">sha1</a>)
@@ -562,17 +560,4 @@
</td><td><a href="[preferred]sling/org.apache.sling.extensions.gwt.servlet-3.0.0-source-release.zip">Source ZIP</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.extensions.gwt.servlet-3.0.0-source-release.zip.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.extensions.gwt.servlet-3.0.0-source-release.zip.sha1">sha1</a>)
</td></tr><tr><td>Launchpad Content</td><td>Replaced with Starter Content</td><td>2.0.12</td><td><a href="[preferred]sling/org.apache.sling.launchpad.content-2.0.12.jar">Bundle</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.launchpad.content-2.0.12.jar.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.launchpad.content-2.0.12.jar.sha1">sha1</a>)
</td><td><a href="[preferred]sling/org.apache.sling.launchpad.content-2.0.12-source-release.zip">Source ZIP</a> (<a href="https://www.apache.org/dist/sling/org.apache.sling.launchpad.content-2.0.12-source-release.zip.asc">asc</a>, <a href="https://www.apache.org/dist/sling/org.apache.sling.launchpad.content-2.0.12-source-release.zip.sha1">sha1</a>)
- </td></tr></tbody></table></section></div></div>
- <div class="footer">
-<div class="revisionInfo">
- Last modified by <span class="author">Bertrand Delacretaz</span> on <span class="comment">Wed Apr 11 09:42:02 2018 +0200</span>
- </div> <p>
- Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
- </p><p>
- Copyright © 2007-2018 The Apache Software Foundation.
- </p>
- </div>
-
- </div>
- </body>
-</html>
\ No newline at end of file
+ </td></tr><tr><td>Testing Tools</td><td>org.apache.sling.testing.tools</td>
\ No newline at end of file
diff --git a/repolist.html b/repolist.html
index 9b6f6ae..0fd74d4 100644
--- a/repolist.html
+++ b/repolist.html
@@ -271,7 +271,9 @@
<li><a href="https://github.com/apache/sling-org-apache-sling-scripting-xproc.git">org-apache-sling-scripting-xproc</a></li>
</ul>
<h2>Group: servlets</h2>
- <ul><li><a href="https://github.com/apache/sling-org-apache-sling-servlets-get.git">org-apache-sling-servlets-get</a></li>
+ <ul><li><a href="https://github.com/apache/sling-org-apache-sling-servlets-annotations.git">org-apache-sling-servlets-annotations</a></li>
+ <li><a href="https://github.com/apache/sling-org-apache-sling-servlets-annotations-it.git">org-apache-sling-servlets-annotations-it</a></li>
+ <li><a href="https://github.com/apache/sling-org-apache-sling-servlets-get.git">org-apache-sling-servlets-get</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-servlets-post.git">org-apache-sling-servlets-post</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-servlets-resolver.git">org-apache-sling-servlets-resolver</a></li>
</ul>
@@ -533,6 +535,8 @@
<li><a href="https://github.com/apache/sling-org-apache-sling-serviceuser-webconsole.git">org-apache-sling-serviceuser-webconsole</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-serviceusermapper.git">org-apache-sling-serviceusermapper</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-servlet-helpers.git">org-apache-sling-servlet-helpers</a></li>
+ <li><a href="https://github.com/apache/sling-org-apache-sling-servlets-annotations.git">org-apache-sling-servlets-annotations</a></li>
+ <li><a href="https://github.com/apache/sling-org-apache-sling-servlets-annotations-it.git">org-apache-sling-servlets-annotations-it</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-servlets-get.git">org-apache-sling-servlets-get</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-servlets-post.git">org-apache-sling-servlets-post</a></li>
<li><a href="https://github.com/apache/sling-org-apache-sling-servlets-resolver.git">org-apache-sling-servlets-resolver</a></li>
--
To stop receiving notification emails like this one, please contact
dklco@apache.org.