Changeset 913
- Timestamp:
- 2008-12-02 15:58:53 (4 years ago)
- Location:
- trunk/samples/kauri-representationbuilder-sample
- Files:
-
- 7 added
- 1 deleted
- 4 edited
- 1 moved
-
kauri.xml (modified) (1 diff)
-
src/main/kauri/pages (added)
-
src/main/kauri/pages/about..xml (added)
-
src/main/kauri/pages/index.html.xml (added)
-
src/main/kauri/representations.groovy (modified) (2 diffs)
-
src/main/kauri/router.groovy (modified) (1 diff)
-
src/main/kauri/spring/services.xml (moved) (moved from trunk/samples/kauri-representationbuilder-sample/src/main/kauri/spring/representationbuilder-sample-beans.xml) (1 diff)
-
src/main/kauri/templates/errorpage.xml (added)
-
src/main/kauri/templates/helloworld.xml (modified) (1 diff)
-
src/main/kauri/templates/index.xml (deleted)
-
src/main/kauri/templates/layout (added)
-
src/main/kauri/templates/layout/layout.xml (added)
-
src/main/kauri/templates/layout/menu.xml (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/samples/kauri-representationbuilder-sample/kauri.xml
r469 r913 19 19 <modules> 20 20 21 <artifact id="templateModule" groupId="org.kauriproject" artifactId="kauri-template-service-impl"> 21 <artifact id="templateModule" groupId="org.kauriproject" artifactId="kauri-template-service-impl"/> 22 23 <artifact id="routingModule" groupId="org.kauriproject" artifactId="kauri-routing-impl"/> 24 25 <artifact id="representationModule" groupId="org.kauriproject" artifactId="kauri-representationbuilder-impl"/> 26 27 <artifact id="blueprintcss" groupId="org.kauriproject" artifactId="kauri-blueprintcss"> 28 <mount name="main" path="/kauri/blueprintcss"/> 22 29 </artifact> 23 30 24 <artifact id=" routingModule" groupId="org.kauriproject" artifactId="kauri-routing-impl">25 </artifact>31 <artifact id="samples.common" groupId="org.kauriproject" artifactId="kauri-samples-common"> 32 <inject-restservice name="blueprintcss" ref="blueprintcss:main"/> 26 33 27 <artifact id="representationModule" groupId="org.kauriproject" artifactId="kauri-representationbuilder-impl">34 <mount name="main" path="/samples/common"/> 28 35 </artifact> 29 36 30 37 <artifact id="representationSample" groupId="org.kauriproject" artifactId="kauri-representationbuilder-sample"> 31 <mount name="router" path=""/> 38 <inject-restservice name="samples-common" ref="samples.common:main"/> 39 40 <mount name="main" path=""/> 32 41 </artifact> 33 42 -
trunk/samples/kauri-representationbuilder-sample/src/main/kauri/representations.groovy
r748 r913 48 48 49 49 exception (classes: ["org.kauriproject.representation.build.sample.SampleNotFoundException"]) { 50 template(src: " clap://thread/org/kauriproject/representation/defaulterrorpage.xml", statusCode: 404)50 template(src: "module:/templates/errorpage.xml", statusCode: 404) 51 51 } 52 52 … … 56 56 */ 57 57 exception { 58 template(src: " clap://thread/org/kauriproject/representation/defaulterrorpage.xml", statusCode: 500)58 template(src: "module:/templates/errorpage.xml", statusCode: 500) 59 59 } 60 60 } -
trunk/samples/kauri-representationbuilder-sample/src/main/kauri/router.groovy
r748 r913 1 1 builder.router { 2 template(uri: "/", match: "equals", template: "module:/templates/index.xml", mediaType: "text/html") 2 3 directory(uri: "/static", root: "module:/static") 3 4 4 5 resource(uri: "/exception", match: "equals", ofClass: "org.kauriproject.representation.build.sample.ExceptionResource") 5 6 6 directory(uri: "/resources", root: "module:/resources/") 7 8 jaxRs(uri: "") { 7 jaxRs(uri: "", passThrough: true) { 9 8 jaxRsResource(scanPackages: "*") 10 9 jaxRsProvider(scanPackages: "*") 11 10 jaxRsGroovyScripts(path: "groovy-jax-rs") 12 11 } 12 13 pages(uri: "", root: "pages") 14 13 15 } -
trunk/samples/kauri-representationbuilder-sample/src/main/kauri/spring/services.xml
r911 r913 16 16 17 17 <kauri:import-service id="templateService" service="org.kauriproject.template.service.TemplateService" /> 18 <kauri:import-service id="representationBuilder" service="org.kauriproject.representation.build.RepresentationBuilder"/> 19 <kauri:import-service id="routingService" service="org.kauriproject.routing.RoutingService"/> 18 20 19 <kauri:import-service id="representationBuilder" service="org.kauriproject.representation.build.RepresentationBuilder"/> 21 <kauri:import-restservice name="samples-common"/> 22 23 <kauri:export-restservice ref="main"/> 24 20 25 <bean factory-bean="representationBuilder" factory-method="install"> 21 26 <constructor-arg ref="module"/> 22 27 </bean> 23 28 24 <kauri:import-service id="routingService" service="org.kauriproject.routing.RoutingService"/>25 29 26 <kauri:export-restservice ref="router"/> 27 28 <bean id="router" factory-bean="routingService" factory-method="createRouter"> 30 <bean id="main" factory-bean="routingService" factory-method="createRouter"> 29 31 <constructor-arg ref="restletContext"/> 30 32 <constructor-arg ref="module"/> -
trunk/samples/kauri-representationbuilder-sample/src/main/kauri/templates/helloworld.xml
r452 r913 1 1 <?xml version="1.0"?> 2 <html> 3 <head> 4 <title>Sample</title> 5 </head> 6 <body> 2 <html t:inherit="module:/templates/layout/layout.xml" 3 xmlns:t="http://kauriproject.org/template"> 4 5 <t:block name="main"> 7 6 I got this message for you: ${message} 8 </body> 7 </t:block> 8 9 9 </html>
Note: See TracChangeset
for help on using the changeset viewer.