Return-Path: X-Original-To: apmail-clerezza-commits-archive@www.apache.org Delivered-To: apmail-clerezza-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CFBB3F5D9 for ; Wed, 3 Apr 2013 18:40:11 +0000 (UTC) Received: (qmail 75113 invoked by uid 500); 3 Apr 2013 18:40:11 -0000 Delivered-To: apmail-clerezza-commits-archive@clerezza.apache.org Received: (qmail 75081 invoked by uid 500); 3 Apr 2013 18:40:11 -0000 Mailing-List: contact commits-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list commits@clerezza.apache.org Received: (qmail 75071 invoked by uid 99); 3 Apr 2013 18:40:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 18:40:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 18:39:40 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5BB792388B46; Wed, 3 Apr 2013 18:38:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1464148 [9/34] - in /clerezza/site/production: ./ architecture/ architecture/images/ bundle-doc/ bundle-doc/org.apache.clerezza.bundledevtool/ bundle-doc/org.apache.clerezza.bundledevtool/intro-content-el/ bundle-doc/org.apache.clerezza.pl... Date: Wed, 03 Apr 2013 18:37:57 -0000 To: commits@clerezza.apache.org From: reto@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130403183853.5BB792388B46@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/1.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/1.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/1.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/1.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,188 @@ + + + + Example + + + +
+ +
+ +
+ + +
+

Example +

+
+ +
The following shows a simple ScalaServerPage:
+
+//a ScalaServePage to render a http://clerezza.org/2009/05/usermanager#UserPermissionPage +def um(s: Any) = new UriRef("http://clerezza.org/2009/05/usermanager#"+s) +def perm(s: Any) = new UriRef("http://clerezza.org/2008/10/permission#"+s) +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>Permissions for user {res/um("user")/FOAF.name}</title> + </head> + <body> + {for (permission <- res/um("permission")) yield + <div id="permission"> + {permission/perm("javaPermissionEntry")*} + </div> + } + </body> + +</html> +
+ +
+ +
The following iterates over an rdf:List represented by the root-resource +
+//a ScalaServePage to render a http://clerezza.org/2009/05/renderletmanager#RenderletManagerPage +def typerendering(s: Any) = new UriRef("http://clerezza.org/2009/04/typerendering#"+s) +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>Listing renderlets</title> + </head> + <body> + {for (renderlet <- res!!) yield + <div id="renderlet"> + type: {renderlet*} + </div> + } + </body> +</html> +
+
+ +
You can sort rdf:List using the sort-method: +
+//sorting the URIs of a http://clerezza.org/2009/05/renderletmanager#RenderletManagerPage +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>Listing renderlets</title> + </head> + <body> + {for (renderlet <- (res!!).sort((a,b) => ((a*) < (b*)))) yield + <div id="renderlet"> + type: {renderlet*} + </div> + } + </body> +</html> +
+
+ +
same for properties: +
+//a ScalaServePage to render a http://clerezza.org/2009/05/usermanager#UserPermissionPage +//sorting by java-permission-entry +def um(s: Any) = new UriRef("http://clerezza.org/2009/05/usermanager#"+s) +def perm(s: Any) = new UriRef("http://clerezza.org/2008/10/permission#"+s) +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>Permissions for user {res/um("user")/FOAF.name}</title> + </head> + <body> + {for (permission <- (res/um("permission")) + .sort((a,b) => (a/perm("javaPermissionEntry")*) < + (b/perm("javaPermissionEntry")*))) yield + <div id="permission"> + {permission/perm("javaPermissionEntry")*} + </div> + } + </body> + +</html> +
+
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + + + + A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream + + + + + 0 + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content-el/0.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + + + Untitled Content + + + + +
A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream +
+ + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + + + 1 + + + + + + + + + + + + 0 + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-content.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + + + Untitled Content + + + + +
A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream +
+ + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + How does it work + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + How does it work + + + + 0 + + + + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2-title.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + How does it work + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,108 @@ + + + + How does it work + + + +
+ +
+ +
+ + +
+

How does it work +

+
+ +
A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream +
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,27 @@ + + + + + 2 + + + + + + + + 1 + + + + 0 + + + + + + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/2.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,108 @@ + + + + How does it work + + + +
+ +
+ +
+ + +
+

How does it work +

+
+ +
A ScalaServerPages is transformed into a Scala Source file and compiled. The content of the ScalaServerPage becomes the content of a method returning AnyRef, the returned Object will be transformed to a String and the to a byte-array to be written to the response stream +
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,19 @@ + + + + + + Untitled Content + + +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+ + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,23 @@ + + + 0 + + + + + + + +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+ +
+
Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content-el/0.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,19 @@ + + + + + + Untitled Content + + +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+ + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,23 @@ + + + + + + Untitled Content + + + + +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+
+ + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + 0 + + + + + 1 + + + + + + + + + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-content.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,23 @@ + + + + + + Untitled Content + + + + +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+
+ + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Avialable values + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + + 0 + + + Avialable values + + + + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3-title.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Avialable values + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,115 @@ + + + + Avialable values + + + +
+ +
+ +
+ + +
+

Avialable values +

+
+ +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,27 @@ + + + 1 + + + + + + + + + + 3 + + + + + 0 + + + + + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/3.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,115 @@ + + + + Avialable values + + + +
+ +
+ +
+ + +
+

Avialable values +

+
+ +
    +
  • renderer: CallbackRenderer, used to delegate to another Renderlet usally not used directly but wia the render method
  • +
  • res: GraphNode, the main response resource, as a GraphNode it is dynamically converted to a RichGraphNode allowing the functions provided by org.apache.clerezza.utils.scala
  • +
  • val context:GraphNode, a GraphNode with contextual information not specifically related to the current request, such as description on the current user
  • +
  • val mode: String, the rendering mode
  • +
  • val uriInfo: UriInfo, the UriRinf of the request, allows access to the request URI and query parameters
  • +
  • val sharedRenderingValues: java.util.Map[String, Object], a map used to share values across the different renderlets and ScalaServerPages involved in the creation of a representation, typically used to prevent repeated computation of the same values. Typically this map is not accessed directly, instead values are retrived with $("key") and set with $("key") = newvalue
  • +
+
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,17 @@ + + + + + + Untitled Content + + + ScalaServerPages are used for rendering information, therefore services are typically accessed when producing the RDF and not from the ScalaServePage. Still you can access designated services from the ScalaServerPages, you get an instance with $[serviceInterface], eg.: +
+$[AdvertisingService].getBanner +
+ +You can only access services that are annotated with @org.apache.clerezza.platform.typerendering.WebRenderingService + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + ScalaServerPages are used for rendering information, therefore services are typically accessed when producing the RDF and not from the ScalaServePage. Still you can access designated services from the ScalaServerPages, you get an instance with $[serviceInterface], eg.: +
+$[AdvertisingService].getBanner +
+ +You can only access services that are annotated with @org.apache.clerezza.platform.typerendering.WebRenderingService
+ +
+ + + + + + + 0 + +
Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content-el/0.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,17 @@ + + + + + + Untitled Content + + + ScalaServerPages are used for rendering information, therefore services are typically accessed when producing the RDF and not from the ScalaServePage. Still you can access designated services from the ScalaServerPages, you get an instance with $[serviceInterface], eg.: +
+$[AdvertisingService].getBanner +
+ +You can only access services that are annotated with @org.apache.clerezza.platform.typerendering.WebRenderingService + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + + + + Untitled Content + + + + +
ScalaServerPages are used for rendering information, therefore services are typically accessed when producing the RDF and not from the ScalaServePage. Still you can access designated services from the ScalaServerPages, you get an instance with $[serviceInterface], eg.: +
+$[AdvertisingService].getBanner +
+ +You can only access services that are annotated with @org.apache.clerezza.platform.typerendering.WebRenderingService +
+ + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + + + + + + + + + + 1 + + + + + 0 + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-content.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + + + + Untitled Content + + + + +
ScalaServerPages are used for rendering information, therefore services are typically accessed when producing the RDF and not from the ScalaServePage. Still you can access designated services from the ScalaServerPages, you get an instance with $[serviceInterface], eg.: +
+$[AdvertisingService].getBanner +
+ +You can only access services that are annotated with @org.apache.clerezza.platform.typerendering.WebRenderingService +
+ + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Accessing OSGi services + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.rdf (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + + + + Accessing OSGi services + + + + + 0 + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.xhtml (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4-title.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Accessing OSGi services + + + Added: clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4.html URL: http://svn.apache.org/viewvc/clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4.html (added) +++ clerezza/site/production/bundle-doc/org.apache.clerezza.platform.typerendering.scalaserverpages/intro-content-el/4.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,113 @@ + + + + Accessing OSGi services + + + +
+ +
+ +
+ + +
+

Accessing OSGi services +

+
+ +
ScalaServerPages are used for rendering information, therefore services are typically accessed when producing the RDF and not from the ScalaServePage. Still you can access designated services from the ScalaServerPages, you get an instance with $[serviceInterface], eg.: +
+$[AdvertisingService].getBanner +
+ +You can only access services that are annotated with @org.apache.clerezza.platform.typerendering.WebRenderingService +
+ +
+ +
+ + + + + \ No newline at end of file