clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1127707 - /incubator/clerezza/trunk/parent/web.resources.style/src/main/java/org/apache/clerezza/web/resources/style/Style.java
Date Wed, 25 May 2011 22:16:53 GMT
Author: reto
Date: Wed May 25 22:16:53 2011
New Revision: 1127707

URL: http://svn.apache.org/viewvc?rev=1127707&view=rev
Log:
CLEREZZA-553: registering HeadedPage ssp also to handle Collections

Modified:
    incubator/clerezza/trunk/parent/web.resources.style/src/main/java/org/apache/clerezza/web/resources/style/Style.java

Modified: incubator/clerezza/trunk/parent/web.resources.style/src/main/java/org/apache/clerezza/web/resources/style/Style.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/web.resources.style/src/main/java/org/apache/clerezza/web/resources/style/Style.java?rev=1127707&r1=1127706&r2=1127707&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/web.resources.style/src/main/java/org/apache/clerezza/web/resources/style/Style.java
(original)
+++ incubator/clerezza/trunk/parent/web.resources.style/src/main/java/org/apache/clerezza/web/resources/style/Style.java
Wed May 25 22:16:53 2011
@@ -25,6 +25,7 @@ import javax.ws.rs.core.MediaType;
 import org.apache.felix.scr.annotations.Component;
 import org.apache.felix.scr.annotations.Reference;
 import org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesService;
+import org.apache.clerezza.rdf.ontologies.HIERARCHY;
 import org.apache.clerezza.rdf.ontologies.PLATFORM;
 import org.apache.clerezza.rdf.ontologies.RDF;
 import org.apache.clerezza.rdf.ontologies.RDFS;
@@ -59,7 +60,9 @@ public class Style {
 		sspService.registerScalaServerPage(templateURL, PLATFORM.HeadedPage, "(?!.*naked).*",
 				MediaType.APPLICATION_XHTML_XML_TYPE);
 
-
+		templateURL = getClass().getResource("headed-page-template.ssp");
+		sspService.registerScalaServerPage(templateURL, HIERARCHY.Collection, "(?!.*naked).*",
+				MediaType.APPLICATION_XHTML_XML_TYPE);
 	}
 
 }



Mime
View raw message