You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2013/04/01 22:28:04 UTC

svn commit: r1463289 - /incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext

Author: gpetracek
Date: Mon Apr  1 20:28:03 2013
New Revision: 1463289

URL: http://svn.apache.org/r1463289
Log:
updated content

Modified:
    incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext

Modified: incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext
URL: http://svn.apache.org/viewvc/incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext?rev=1463289&r1=1463288&r2=1463289&view=diff
==============================================================================
--- incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext (original)
+++ incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext Mon Apr  1 20:28:03 2013
@@ -204,9 +204,9 @@ To customize it you can use `@Folder#nam
 
 #### @Folder#name
 
-The rules are pretty simple. You get what you write. There are only two additional features:
+The rules are pretty simple. You will get what you write. There are only two additional features:
 
- - You don't have to care about duplicated '/' (e.g. /folder1//folder2/step1.xhtml would get corrected auto. to /folder1/folder2/step1.xhtml
+ - You don't have to care about duplicated '/' (e.g. /folder1//folder2/step1.xhtml would get corrected auto. to /folder1/folder2/step1.xhtml)
  - With "." at the beginning (e.g. "./") you can keep the path before.
 
 The following example
@@ -239,26 +239,27 @@ leads to the following paths:
 The same naming rules apply to `@View#basePath`. However, it's only valid to be used at view-config nodes which represent pages (-> classes and not interfaces).
 On interfaces always use `@Folder` (`@View#basePath` will get ignored there).
 
-interface Pages
-{
-    interface Wizard1
+    :::java
+    interface Pages
     {
-        @View //optional
-        class Step1 implements ViewConfig { }
+        interface Wizard1
+        {
+            @View //optional
+            class Step1 implements ViewConfig { }
 
-        @View(basePath = "/")
-        class Step2 implements ViewConfig { }
+            @View(basePath = "/")
+            class Step2 implements ViewConfig { }
 
-        @View(basePath = "./") //or just "."
-        class Step3 implements ViewConfig { }
+            @View(basePath = "./") //or just "."
+            class Step3 implements ViewConfig { }
 
-        @View(basePath = "/w1/")
-        class Step4 implements ViewConfig { }
+            @View(basePath = "/w1/")
+            class Step4 implements ViewConfig { }
 
-        @View(basePath = "./w1/")
-        class Step5 implements ViewConfig { }
+            @View(basePath = "./w1/")
+            class Step5 implements ViewConfig { }
+        }
     }
-}
 
 leads to the following paths:
 
@@ -272,27 +273,28 @@ leads to the following paths:
 
 and depending on additional meta-data you would like to inherit (e.g. `@View(navigation = REDIRECT)`, you can also use:
 
-@View(navigation = REDIRECT)
-interface Pages extends ViewConfig 
-{
-    interface Wizard1 extends Pages
+    :::java
+    @View(navigation = REDIRECT)
+    interface Pages extends ViewConfig 
     {
-        @View
-        class Step1 implements Wizard1 { }
+        interface Wizard1 extends Pages
+        {
+            @View
+            class Step1 implements Wizard1 { }
 
-        @View(basePath = "/")
-        class Step2 implements Wizard1 { }
+            @View(basePath = "/")
+            class Step2 implements Wizard1 { }
 
-        @View(basePath = "./")
-        class Step3 implements Wizard1 { }
+            @View(basePath = "./")
+            class Step3 implements Wizard1 { }
 
-        @View(basePath = "/w1/")
-        class Step4 implements Wizard1 { }
+            @View(basePath = "/w1/")
+            class Step4 implements Wizard1 { }
 
-        @View(basePath = "./w1/")
-        class Step5 implements Wizard1 { }
+            @View(basePath = "./w1/")
+            class Step5 implements Wizard1 { }
+        }
     }
-}
 
 It leads to the same paths, but in addition `@View#navigation` gets inherited along the inheritance path.