This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 01a999542 Clarify supported adaptables for ExportServlet
01a999542 is described below

commit 01a99954240d09785c59fed74d95a21c1d3c4485
Author: Konrad Windszus <[email protected]>
AuthorDate: Tue Dec 13 15:51:54 2022 +0100

    Clarify supported adaptables for ExportServlet
---
 src/main/jbake/content/documentation/bundles/models.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/jbake/content/documentation/bundles/models.md 
b/src/main/jbake/content/documentation/bundles/models.md
index dc0200d07..f2904c457 100644
--- a/src/main/jbake/content/documentation/bundles/models.md
+++ b/src/main/jbake/content/documentation/bundles/models.md
@@ -620,7 +620,7 @@ In addition, model objects can have servlets automatically 
registered for their
 
 results in the registration of a servlet with the resource type and extension 
specified and a selector of 'model' (overridable 
 through the `@Exporter` annotation's `selector` attribute). When this servlet 
is invoked, the `Resource` will be adapted to the 
-model, exported as a `java.lang.String` (via the named Exporter) and then 
returned to the client.
+model, exported as a `java.lang.String` (via the named Exporter) and then 
returned to the client. The `ExportServlet` only supports models for adaptable 
`org.apache.sling.api.resource.Resource` or 
`org.apache.sling.api.SlingHttpServletRequest`. If a model is adaptable from 
both the `Resource` is used.
 
 
 # Registration of Sling Models classes via bnd plugin

Reply via email to