sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1609645 - /sling/site/trunk/content/documentation/bundles/models.mdtext
Date Fri, 11 Jul 2014 07:59:03 GMT
Author: justin
Date: Fri Jul 11 07:59:03 2014
New Revision: 1609645

URL: http://svn.apache.org/r1609645
Log:
fixing formatting

Modified:
    sling/site/trunk/content/documentation/bundles/models.mdtext

Modified: sling/site/trunk/content/documentation/bundles/models.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/models.mdtext?rev=1609645&r1=1609644&r2=1609645&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/models.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/models.mdtext Fri Jul 11 07:59:03 2014
@@ -1,5 +1,7 @@
 Title: Sling Models
 
+[TOC]
+
 Many Sling projects want to be able to create model objects - POJOs which are automatically
mapped from Sling objects, typically resources, but also request objects. Sometimes these
POJOs need OSGi services as well.
 
 # Design Goals
@@ -54,7 +56,7 @@ Client code doesn't need to be aware tha
 	
 Or
 
-    ::jsp
+	::jsp
 	<sling:adaptTo adaptable="${resource}" adaptTo="org.apache.sling.models.it.models.MyModel"
var="model"/>
 
 Or
@@ -143,7 +145,7 @@ Lists and arrays are supported:
 	    private List<Servlet> servlets;
 	}
 
-List injection for child resources works by injecting grand child resources. For example,
the class
+List injection for child resources works by injecting grand child resources (since Sling
Models Impl 1.0.6). For example, the class
 
 	::java
 	@Model(adaptables=Resource.class)



Mime
View raw message