You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/02/09 15:03:30 UTC

svn commit: r620113 - in /myfaces/orchestra/trunk/examples/src/main/webapp: default.css header.jspf start.jsp

Author: skitching
Date: Sat Feb  9 06:03:30 2008
New Revision: 620113

URL: http://svn.apache.org/viewvc?rev=620113&view=rev
Log:
Clean up initial page, add link to new simple example.

Modified:
    myfaces/orchestra/trunk/examples/src/main/webapp/default.css
    myfaces/orchestra/trunk/examples/src/main/webapp/header.jspf
    myfaces/orchestra/trunk/examples/src/main/webapp/start.jsp

Modified: myfaces/orchestra/trunk/examples/src/main/webapp/default.css
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/examples/src/main/webapp/default.css?rev=620113&r1=620112&r2=620113&view=diff
==============================================================================
--- myfaces/orchestra/trunk/examples/src/main/webapp/default.css (original)
+++ myfaces/orchestra/trunk/examples/src/main/webapp/default.css Sat Feb  9 06:03:30 2008
@@ -124,4 +124,26 @@
 .formAction
 {
 	text-align: right;
-}
\ No newline at end of file
+}
+
+.section *
+{
+	margin-left: 20px;
+}
+
+.section h3
+{
+	font-weight: bold;
+	margin-left: 0px;
+}
+
+.example *
+{
+	margin-left: 20px;
+}
+
+.example A
+{
+	font-style: italic;
+	margin-left: 0px;
+}

Modified: myfaces/orchestra/trunk/examples/src/main/webapp/header.jspf
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/examples/src/main/webapp/header.jspf?rev=620113&r1=620112&r2=620113&view=diff
==============================================================================
--- myfaces/orchestra/trunk/examples/src/main/webapp/header.jspf (original)
+++ myfaces/orchestra/trunk/examples/src/main/webapp/header.jspf Sat Feb  9 06:03:30 2008
@@ -57,7 +57,7 @@
 <t:documentBody state="start"/>
 
 <t:htmlTag value="h1">Apache MyFaces Orchestra</t:htmlTag>
-<t:htmlTag value="h2">Bring Together: JSF, Spring, Persistence</t:htmlTag>
+<t:htmlTag value="h2">Bringing Together: JSF, Spring, Persistence</t:htmlTag>
 <h:form styleClass="navigation">
 	<t:htmlTag value="ul">
 		<t:htmlTag value="li">

Modified: myfaces/orchestra/trunk/examples/src/main/webapp/start.jsp
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/examples/src/main/webapp/start.jsp?rev=620113&r1=620112&r2=620113&view=diff
==============================================================================
--- myfaces/orchestra/trunk/examples/src/main/webapp/start.jsp (original)
+++ myfaces/orchestra/trunk/examples/src/main/webapp/start.jsp Sat Feb  9 06:03:30 2008
@@ -17,60 +17,102 @@
   under the License.
   --%>
 
-<%@ page pageEncoding="UTF-8" %>
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s" %>
+<%@ page pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
 
 <f:view>
-	<%@ include file="header.jspf" %>
+  <%@ include file="header.jspf"%>
 
-	<h:form>
+  <div class="section" id="about">
+    <h3>About This Web Application</h3>
+    <p>
+      This web application presents a number of examples that
+      demonstrate various pieces of functionality of the Orchestra library.
+    </p>
+    <p>
+      Note: The implementation of this example webapp is compatible with
+      JSF 1.1 and JSP in order to show that Orchestra is usable with that
+      combination. When using JSF1.1 with Facelets, or JSF1.2 with JSP then
+      a number of simplifications can be made, especially in the .jsp files.
+      In addition, the use of additional libraries has been kept to a
+      minimum to make the example code as simple as possible. Please do not
+      use these examples as "good practice" for anything other than the use
+      of Orchestra itself.
+    </p>
+  </div>
+
+  <div class="section" id="examples.simple">
+    <h3>Simple Examples</h3>
+    <div class="example">
+      <h:outputLink value="simple/parent.jsp">
+        <h:outputText value="Parent/Detail"/>
+      </h:outputLink>
+      <p>
+        This demonstrates the use of the "access" lifetime, where a bean
+        instance remains in memory as long as a view that accesses it is being
+         displayed, and is discarded when some other view is accessed.
+      </p>
+    </div>
+  </div>
+
+  <div class="section" id="examples.persistent">
+    <h3>Advanced Examples with Persistence</h3>
+
+    <div class="example">
+      <h:outputLink value="ballot/Hall.faces">
+        <h:outputText value="A Voting Machine"/>
+      </h:outputLink>
+      <p/>
+    </div>
+
+    <div class="example">
+      <h:outputLink value="mops/index.jsp">
+        <h:outputText value="PetStore"/>
+      </h:outputLink>
+      <p/>
+    </div>
+
+    <div class="example">
+      <h:outputLink value="configurator/index.jsp">
+        <h:outputText value="A PC Configurator"/>
+      </h:outputLink>
+      <p/>
+    </div>
+
+    <div class="example">    
+      <h:outputLink value="dynaForm/start.faces">
+        <h:outputText value="DynaForm examples"/>
+      </h:outputLink>
+      <p>
+        Demonstrates the use of the Orchestra DynaForm JSF component,
+        which automatically generates read-only or editable JSF components
+        for the attributes of a persistent class.
+      </p>
+    </div>
+    
+    <div class="example">
+      <h:outputLink value="multiBean/start.faces">
+        <h:outputText value="Multi-bean conversations"/>
+      </h:outputLink>
+      <p>
+        Demonstrates having multiple beans within the same conversation,
+        by specifying the conversationName attribute for each bean.
+      </p>
+    </div>
+
+    <div class="example">
+      <h:outputLink value="annotations/start.faces">
+        <h:outputText value="Some annotation tests"/>
+      </h:outputLink>
+      <p>
+        Demonstrates the use of Orchestra annotation classes.
+      </p>
+    </div>
+  
+  </div>
 
-		<t:htmlTag value="h3">
-			<h:outputText value="Examples"/>
-		</t:htmlTag>
-
-		<t:htmlTag value="ul">
-			<t:htmlTag value="li">
-				<h:outputLink value="ballot/Hall.faces">
-					<h:outputText value="A Voting Machine"/>
-				</h:outputLink>
-			</t:htmlTag>
-			<t:htmlTag value="li">
-				<h:outputLink value="mops/index.jsp">
-					<h:outputText value="PetStore"/>
-				</h:outputLink>
-			</t:htmlTag>
-		</t:htmlTag>
-
-		<t:htmlTag value="ul">
-			<t:htmlTag value="li">
-				<h:outputLink value="configurator/index.jsp">
-					<h:outputText value="A PC Konfigurator"/>
-				</h:outputLink>
-			</t:htmlTag>
-			<t:htmlTag value="li">
-				<h:outputLink value="dynaForm/start.faces">
-					<h:outputText value="DynaForm examples"/>
-				</h:outputLink>
-			</t:htmlTag>
-
-			<t:htmlTag value="li">
-				<h:outputLink value="multiBean/start.faces">
-					<h:outputText
-						value="Multiple Beans within the same conversation through special 'orchestra' configuration"/>
-				</h:outputLink>
-			</t:htmlTag>
-			<t:htmlTag value="li">
-				<h:outputLink value="annotations/start.faces">
-					<h:outputText value="Some annotation tests"/>
-				</h:outputLink>
-			</t:htmlTag>
-		</t:htmlTag>
-
-	</h:form>
-
-	<%@ include file="footer.jspf" %>
+  <%@ include file="footer.jspf"%>
 </f:view>