cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r580139 [7/28] - in /cocoon/site/site/2.2: ./ blocks/ blocks/ajax/ blocks/ajax/1.0/ blocks/ajax/1.0/apidocs/ blocks/ajax/1.0/css/ blocks/ajax/1.0/images/ blocks/ajax/1.0/images/logos/ blocks/css/ blocks/forms/ blocks/forms/1.0/ blocks/forms...
Date Thu, 27 Sep 2007 19:57:38 GMT
Added: cocoon/site/site/2.2/blocks/css/site.css
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/css/site.css?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/css/site.css (added)
+++ cocoon/site/site/2.2/blocks/css/site.css Thu Sep 27 12:56:05 2007
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.8em;
	color: #4c4c4c;
}
a:link, a:visited {
	color: #0086b3;
}
a:hover {
	text-decoration: none;
}
h1 {
+	margin: 25px 0 15px 0;
	padding: 0 0 5px 17px;
	background: url(../images/h1-image.gif) no-repeat left 4px;
	font-size: 130%;
	color: #0086b3;
	border-bottom: 1px solid #0086b3;
}
+h1.docTitle {
+	margin: 0 0 10px 0;
+	padding: 0 0 5px 0;
+	font-size: 150%;
+	background: none; 
+}
+
h2 {
	font-size: 120%;
}
+
+h3, h4, h5 {
+   font-size: 100%;
+   font-weight: bold;
+}
+
ul {
	margin: 5px 0 10px 0;
	padding: 0 0 0 20px;
	list-style: none;
}
li {
	padding-left: 15px;
	padding-bottom: 3px;
}
+ul li {
+	background: url(../images/list.gif) no-repeat left 3px;   
+}
+ol li {
+  padding-left: 5px;
+}
+tt {
+	font-size: 130%;
+}
+pre {
	border:1px solid #aaaaaa;
	background: #efefef;
	font-size: 110%;
	padding:10px;
}
table {
	margin: 0 0 10px 0;
	width: 99.5%;
	border: 1px solid #cce7f0;
}
table th, table td {
	padding: 4px;
}
thead {
	background: #0086b3;
	color: #fff;
}
tbody {
	background: #e5f3f7;
}
table .alt {
	background: #cce7f0;
}
/* Header part
+--------------------------------------*/
+#breadtrail {
	background: #2698be url(../images/breadtrail-bg.gif) repeat-x bottom left;
}
#breadtrail p {
	margin: 0;
	padding: 2px 0 5px 20px;
	color: #fff;
}
#breadtrail a {
	color: #fff;
	text-decoration: none;
}
#breadtrail a:hover {
	text-decoration: underline;
}
#top {
	background: url(../images/top-background.jpg) repeat-x;
}
#header {
	height: 129px;
	background: url(../images/logo-background.jpg) no-repeat;
}
.projectlogo {
	float: left;
}
.logoImage {
	margin: 30px 0 0 34px;
}
.grouplogo {
	margin: 10px 10px 0 0;
	float: right;
}
.grouptitle {
	margin: 0;
	padding-bottom: 5px;
	background: url(../images/group-title-line.gif) repeat-x bottom;
}
.grouptitle a:link, .grouptitle a:visited {
	color: #545454;
	text-decoration: none;
}
.searchbox {
	margin: 3px 0;
	padding: 0;
}
.searchbox input {
	padding: 3px;
	font-size: 11px;
	border: 1px solid #626262;
	color: #626262;
}
.searchbox .searchboxsubmit {
	background: #626262;
	border: none;
	color: #fff;
}

#projectBar
  {
	margin-bottom: 10px;
	height: 25px;
	border-top: 1px solid #f2f2f2;
	border-bottom: 1px solid #f2f2f2;
}
#projectBar .projectTitle {
	margin: 0;
	padding: 6px 0 0 5px;
	background: none;
	border: none;
	float: left;
	font-size: 100%;
	color: #0086b3;
}
.projectTitle a {
	text-decoration: none;
}
.projectTitle a:hover {
	text-decoration: underline;
}
#projectBar .projectList {
	margin: 5px 15px 0 0;
	padding: 0;
	list-style: none;
	float: right;
}
#projectBar .projectList li {
	padding: 0 8px;
	background: none;
	float: left;
	border-right: 1px solid #f2f2f2;
}
#projectBar .projectList a {
	color: #acacac;
	text-decoration: none;
}
#projectBar .projectList a:hover {
	text-decoration: underline;
}
.projectList img {
	padding-top: 2px;
}
.cocoonHome {
	margin: 0;
	padding: 4px 0 0 10px;
	float: left;
}
.projectBarClear {
	height: 1%;
	clear: both;
}
+/* Menu
+--------------------------------------*/
#menu {
	margin: 0;
	padding: 0;
	width: 170px;
	list-style: none;
	font-weight: bold;
	float: left;
}
#menu li {
	margin-left: 10px;
	padding: 3px 5px 3px 10px;
	background: url(../images/menu-title.gif) no-repeat left 8px;
	color: #7c7c7c;
}
#menu li ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: normal;
}
#menu li ul li {
	margin: 0;
	padding: 3px 0 0 10px;
	background: url(../images/menu-list.gif) no-repeat left 7px;
	border-bottom: 1px solid #ebebeb;
}
#menu li ul .menuCollapse {
	background: url(../images/menu-collapse.gif) no-repeat left 7px;
}
#menu li ul li a {
	color: #7c7c7c;
	text-decoration: none;
}
#menu li ul li a:hover {
	text-decoration: underline;
}
#menu .menuVersions {
	color: #2e93b5;
}
+/* Content
+--------------------------------------*/
#contentBody {
	margin: 0 20px 0 185px;
	padding: 0;
}
+#contentBody.withSidebar {
+   margin-right: 190px;
+}
+/* IncludedDocs should not add the default margin and padding
+*/
+.includedDoc #contentBody {
+   margin: 0;
+}
+.includedDoc h1.docTitle {
+ 	margin: 0;
	padding: 0 0 0 17px;
	background: url(../images/h1-image.gif) no-repeat bottom left;
	font-size: 130%;
	color: #0086b3;
	border-bottom: 1px solid #0086b3;  
+}
+/* hide the link to Daisy for included documents */
+.includedDoc .editUrl {
+   display: none;
+}
+
+/* Intro on home page
+--------------------------------------*/
+
#intro {
	width: 180px;
	float: right;
	background: #ebebeb;
}
#intro div {
	margin: 2px;
	border: 1px solid #fff;
}
#intro h2 {
	color: #0086b3;
}
#intro p, #intro h2 {
	margin: 8px;
}
+/* Green + blue getting boxes on 
+ * home page
+--------------------------------------*/
#getting {
	margin: 0;
	padding: 0;
	display: inline-block;
	width: 100%;
}
/* Hide from IE-mac \*/
* html #getting {
	height: 1%;
	width: auto;
}
#getting {
	display: table;
}
/* End hide from IE-mac */
#getting div {
	margin: 0 5px 5px 0;
	padding: 0;
	width: 150px;
	height: 16em;
	background: #9bcd52 url(../images/getting-bottom.gif) no-repeat bottom;
	border: none;
	float: left;
}
#getting div div {
	margin: 0;
+	height: auto;
	padding: 10px 0 0 10px;
	background: url(../images/getting-top.gif) no-repeat;
}
#getting h2 {
	margin: 0 10px;
	padding: 4px 0;
	font-size: 120%;
	color: #fff;
	border-bottom: 1px solid #fff;
}
#getting ul {
	margin: 0 10px 10px 10px;
	padding: 0;
	color: #fff;
	list-style: none;
}
#getting ul li {
	padding: 2px 0 2px 7px;
	background: url(../images/getting-list.gif) no-repeat left 6px;
}
#getting ul li a {
	color: #fff;
}
#getting ul li a:hover {
	text-decoration: none;
}
#getting #gettingDownload {
+	background: #2e93b5 url(../images/download-bottom.gif) no-repeat bottom left;
}
#gettingDownload .downloadVersion {
	margin: 0;
+	height: auto;
	padding: 83px 0 25px 0;
	background: url(../images/download-bg.jpg) no-repeat;
	font-size: 120%;
	font-weight: bold;
	text-align: center;
}
#getting .moreDownload {
	height: auto;
+	width: auto;
	margin: 0;
	padding: 0 10px;
	background: #2e93b5;
	color: #fff;
}
#getting .moreDownload a {
	color: #fff;
}
/* News section
+--------------------------------------*/
.news {
	margin: 10px 0 0 0;
	padding: 0;
}
.news dt {
	margin-bottom: 5px;
	font-weight: bold;
	font-size: 110%;
}
.news dd {
	margin: 0;
	padding: 0;
}
.news .newsMeta {
	margin: 5px 0 15px 0;
	padding-left: 8px;
	background: url(../images/news-meta.gif) no-repeat left 4px;
	font-size: 90%;
	color: #959595;
}
+
.errors, .fixme, .warning, .note {
    margin: 10px 0;
    padding: 0 0 0 45px;
    border: 1px solid #9bcd52;
}
.errors div, .fixme div, .warning div, .note div {
    margin: 5px;
    padding: 8px 0;
}
.errors {
    background: url(../images/errors.gif) no-repeat 10px 7px;
}
.fixme {
    background: url(../images/fixme.gif) no-repeat 10px 7px;
}
.warning {
    background: url(../images/warning.gif) no-repeat 10px 7px;
}
.note {
    background: url(../images/note.gif) no-repeat 10px 7px;
}
+/* Bottom link to Daisy page
+--------------------------------------*/
.editUrl {
+	margin-top: 1em;
	padding: 0 0 0 45px;
	background: url(../images/errors.gif) no-repeat 10px 7px;
	border: 1px solid #9bcd52;
}
.editUrl div {
	margin: 5px;
	padding: 8px 0;
}
+/* Footer
+--------------------------------------*/
#footer {
	border-top: 1px solid #f2f2f2;
	text-align: center;
	clear: both;
}
\ No newline at end of file

Added: cocoon/site/site/2.2/blocks/dependencies.html
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/dependencies.html?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/dependencies.html (added)
+++ cocoon/site/site/2.2/blocks/dependencies.html Thu Sep 27 12:56:05 2007
@@ -0,0 +1,123 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>            Cocoon Blocks
+      </title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  </head>
+  <body>
+    <div id="breadtrail">
+       <p><a href="http://www.apache.org">Apache</a> &raquo; <a href="../../">Cocoon</a> &raquo;</p>
+    </div>
+    <div id="top">
+      <div id="header">
+          <div class="projectlogo">
+             <a href="../../"><img class="logoImage"
+               src="images/cocoon_logo.jpg"
+                alt="Apache Cocoon" border="0" /></a>
+          </div>
+          <div class="grouplogo">
+             <p class="grouptitle"><a href="../../">The Apache Cocoon Project</a><img
+               src="images/apache-logo.jpg" alt="Cocoon Project Logo" /></p>
+                            <form class="searchbox" action="http://www.google.com/search" method="get">
+                 <input value="cocoon.apache.org" name="sitesearch" type="hidden" />
+                 <input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google" />&nbsp;
+                 <input class="searchboxsubmit" name="Search" value="Search" type="submit" />
+               </form>
+                      </div>
+         </div>
+         <div id="projectBar">
+           <p class="cocoonHome"><a href="../../"><img
+           src="images/pmc-home.gif"
+           alt="Back to Apache Cocoon homepage"
+           border="0" title="Back to Apache Cocoon homepage" /></a></p>
+           <h1 class="projectTitle"><a href="../../">              Cocoon Blocks
+            2.2
+  </a></h1>
+                         <ul class="projectList">
+                <li><strong><a href="../../2.2/">Cocoon 2.2</a></em></strong></li>
+                <li><a href="../../2.2/core-modules/">Core <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../2.2/blocks/">Blocks <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../2.2/maven-plugins/">Maven Plugins <span class="pl-version-small">2.2</span></a></li>
+                <li><strong><a href="../../subprojects/">Subprojects</a></strong></li>
+              </ul>
+                     </div>
+         <div class="projectBarClear"><!-- --></div>
+      </div>
+<!-- end of top -->
+
+    <div id="content">
+         <ul id="menu">
+        <li>
+              Available Blocks
+            <ul>
+                  
+    <li >
+              <a href="1204_1_1.html">List</a>
+        </li>
+              </ul>
+    </li>
+      </ul>
+<!--
+                                     <a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
+          </a>
+                   <div id="lastPublished">
+                    
+                   Last Published: 26/09/2007 07:10
+       </div>
+-->
+         <div class="section"><h2>Project Dependencies</h2><p>There are no dependencies for this project. It is a standalone application that does not depend on any other project.</p></div>
+    </div>
+    <!-- end of content -->
+    <div id="footer">
+      <p>&#169;  
+          1999-2007
+    
+          The Apache Software Foundation
+        <br/>
+    
+    Last Published: 26/09/2007 07:10
+</p>
+    </div>
+    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+    </script>
+    <script type="text/javascript">
+      _uacct = "UA-1740622-3";
+      urchinTracker();
+    </script>
+  </body>
+</html>

Added: cocoon/site/site/2.2/blocks/forms/1.0/.htaccess
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/forms/1.0/.htaccess?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/forms/1.0/.htaccess (added)
+++ cocoon/site/site/2.2/blocks/forms/1.0/.htaccess Thu Sep 27 12:56:05 2007
@@ -0,0 +1 @@
+DirectoryIndex 489_1_1.html
\ No newline at end of file

Added: cocoon/site/site/2.2/blocks/forms/1.0/1027_1_1.html
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/forms/1.0/1027_1_1.html?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/forms/1.0/1027_1_1.html (added)
+++ cocoon/site/site/2.2/blocks/forms/1.0/1027_1_1.html Thu Sep 27 12:56:05 2007
@@ -0,0 +1,364 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>            Cocoon Forms
+      </title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+          <meta name="author" content="The Cocoon Community" />
+        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  </head>
+  <body>
+    <div id="breadtrail">
+       <p><a href="http://www.apache.org">Apache</a> &raquo; <a href="../../../../">Cocoon</a> &raquo;</p>
+    </div>
+    <div id="top">
+      <div id="header">
+          <div class="projectlogo">
+             <a href="../../../../"><img class="logoImage"
+               src="images/cocoon_logo.jpg"
+                alt="Apache Cocoon" border="0" /></a>
+          </div>
+          <div class="grouplogo">
+             <p class="grouptitle"><a href="../../../../">The Apache Cocoon Project</a><img
+               src="images/apache-logo.jpg" alt="Cocoon Project Logo" /></p>
+                            <form class="searchbox" action="http://www.google.com/search" method="get">
+                 <input value="cocoon.apache.org" name="sitesearch" type="hidden" />
+                 <input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google" />&nbsp;
+                 <input class="searchboxsubmit" name="Search" value="Search" type="submit" />
+               </form>
+                      </div>
+         </div>
+         <div id="projectBar">
+           <p class="cocoonHome"><a href="../../../../"><img
+           src="images/pmc-home.gif"
+           alt="Back to Apache Cocoon homepage"
+           border="0" title="Back to Apache Cocoon homepage" /></a></p>
+           <h1 class="projectTitle"><a href="../../../../">              Cocoon Forms
+            1.0
+  </a></h1>
+                         <ul class="projectList">
+                <li><strong><a href="../../../../2.2/">Cocoon 2.2</a></em></strong></li>
+                <li><a href="../../../../2.2/core-modules/">Core <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/blocks/">Blocks <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/maven-plugins/">Maven Plugins <span class="pl-version-small">2.2</span></a></li>
+                <li><strong><a href="../../../../subprojects/">Subprojects</a></strong></li>
+              </ul>
+                     </div>
+         <div class="projectBarClear"><!-- --></div>
+      </div>
+<!-- end of top -->
+
+    <div id="content">
+         <ul id="menu">
+        <li>
+              Forms
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="489_1_1.html">Basics</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="477_1_1.html">Widgets</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="484_1_1.html">Widget concepts</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+                  
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="755_1_1.html">Form publishing</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="488_1_1.html">Binding</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="498_1_1.html">API</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="685_1_1.html">Form libraries</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="750_1_1.html">Ajax</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Migration guide
+            <ul>
+                  
+    <li >
+              <a href="1351_1_1.html">Migration guide</a>
+        </li>
+              </ul>
+    </li>
+      <li>
+              Sitemap Components
+            <ul>
+                  
+  
+
+
+              
+      
+            
+            
+            
+      
+              
+            <li class='menuExpand'>
+              <a href="904_1_1.html">Action</a>
+                <ul>
+                  
+    <li >
+              <a href="904_1_1.html">HandleFormSubmitAction</a>
+        </li>
+                  
+    <li >
+              <strong>InitForm1Action</strong>
+        </li>
+                  
+    <li >
+              <a href="1035_1_1.html">MakeFormAction</a>
+        </li>
+              </ul>
+        </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="915_1_1.html">Generator</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="994_1_1.html">Transformer</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Project Documentation
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-info.html">Project Information</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-reports.html">Project Reports</a>
+              </li>
+              </ul>
+    </li>
+      </ul>
+<!--
+                                     <a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
+          </a>
+                   <div id="lastPublished">
+                    
+                   Last Published: 26/09/2007 05:18
+       </div>
+-->
+         <div id="contentBody"><div id="bodyText"><h1 class="docTitle">InitForm1Action</h1><h1>Summary</h1><p>No summary available. The summary needs to be defined using the
+            <tt>@cocoon.sitemap.component.documentation</tt> annotation in the Java source file for this component: </p><h1>Basic information</h1><table class="bodyTable"><tr class="a"><th>Component type</th><td>org.apache.cocoon.forms.samples.InitForm1Action</td></tr><tr class="b"><th>Cocoon block</th><td>Action</td></tr><tr class="a"><th>Java class</th><td>forms</td></tr><tr class="b"><th>Cachable</th><td></td></tr></table><h1>Documentation</h1><p>No documentation available yet.</p></div><div class="editUrl"><div><em>Errors and Improvements?</em> If you see any errors or potential improvements in this document please help
+        us: <a href="http://cocoon.zones.apache.org/daisy/cdocs/1027?branch=1&language=1">View, Edit or comment</a> on the latest development version (registration required).
+      </div></div></div>
+    </div>
+    <!-- end of content -->
+    <div id="footer">
+      <p>&#169;  
+          1999-2007
+    
+          The Apache Software Foundation
+        <br/>
+    
+    Last Published: 26/09/2007 05:18
+</p>
+    </div>
+    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+    </script>
+    <script type="text/javascript">
+      _uacct = "UA-1740622-3";
+      urchinTracker();
+    </script>
+  </body>
+</html>

Added: cocoon/site/site/2.2/blocks/forms/1.0/1035_1_1.html
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/forms/1.0/1035_1_1.html?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/forms/1.0/1035_1_1.html (added)
+++ cocoon/site/site/2.2/blocks/forms/1.0/1035_1_1.html Thu Sep 27 12:56:05 2007
@@ -0,0 +1,364 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>            Cocoon Forms
+      </title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+          <meta name="author" content="The Cocoon Community" />
+        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  </head>
+  <body>
+    <div id="breadtrail">
+       <p><a href="http://www.apache.org">Apache</a> &raquo; <a href="../../../../">Cocoon</a> &raquo;</p>
+    </div>
+    <div id="top">
+      <div id="header">
+          <div class="projectlogo">
+             <a href="../../../../"><img class="logoImage"
+               src="images/cocoon_logo.jpg"
+                alt="Apache Cocoon" border="0" /></a>
+          </div>
+          <div class="grouplogo">
+             <p class="grouptitle"><a href="../../../../">The Apache Cocoon Project</a><img
+               src="images/apache-logo.jpg" alt="Cocoon Project Logo" /></p>
+                            <form class="searchbox" action="http://www.google.com/search" method="get">
+                 <input value="cocoon.apache.org" name="sitesearch" type="hidden" />
+                 <input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google" />&nbsp;
+                 <input class="searchboxsubmit" name="Search" value="Search" type="submit" />
+               </form>
+                      </div>
+         </div>
+         <div id="projectBar">
+           <p class="cocoonHome"><a href="../../../../"><img
+           src="images/pmc-home.gif"
+           alt="Back to Apache Cocoon homepage"
+           border="0" title="Back to Apache Cocoon homepage" /></a></p>
+           <h1 class="projectTitle"><a href="../../../../">              Cocoon Forms
+            1.0
+  </a></h1>
+                         <ul class="projectList">
+                <li><strong><a href="../../../../2.2/">Cocoon 2.2</a></em></strong></li>
+                <li><a href="../../../../2.2/core-modules/">Core <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/blocks/">Blocks <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/maven-plugins/">Maven Plugins <span class="pl-version-small">2.2</span></a></li>
+                <li><strong><a href="../../../../subprojects/">Subprojects</a></strong></li>
+              </ul>
+                     </div>
+         <div class="projectBarClear"><!-- --></div>
+      </div>
+<!-- end of top -->
+
+    <div id="content">
+         <ul id="menu">
+        <li>
+              Forms
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="489_1_1.html">Basics</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="477_1_1.html">Widgets</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="484_1_1.html">Widget concepts</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+                  
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="755_1_1.html">Form publishing</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="488_1_1.html">Binding</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="498_1_1.html">API</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="685_1_1.html">Form libraries</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="750_1_1.html">Ajax</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Migration guide
+            <ul>
+                  
+    <li >
+              <a href="1351_1_1.html">Migration guide</a>
+        </li>
+              </ul>
+    </li>
+      <li>
+              Sitemap Components
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+            
+              
+            <li class='menuExpand'>
+              <a href="904_1_1.html">Action</a>
+                <ul>
+                  
+    <li >
+              <a href="904_1_1.html">HandleFormSubmitAction</a>
+        </li>
+                  
+    <li >
+              <a href="1027_1_1.html">InitForm1Action</a>
+        </li>
+                  
+    <li >
+              <strong>MakeFormAction</strong>
+        </li>
+              </ul>
+        </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="915_1_1.html">Generator</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="994_1_1.html">Transformer</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Project Documentation
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-info.html">Project Information</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-reports.html">Project Reports</a>
+              </li>
+              </ul>
+    </li>
+      </ul>
+<!--
+                                     <a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
+          </a>
+                   <div id="lastPublished">
+                    
+                   Last Published: 26/09/2007 05:18
+       </div>
+-->
+         <div id="contentBody"><div id="bodyText"><h1 class="docTitle">MakeFormAction</h1><h1>Summary</h1><p>No summary available. The summary needs to be defined using the
+            <tt>@cocoon.sitemap.component.documentation</tt> annotation in the Java source file for this component: </p><h1>Basic information</h1><table class="bodyTable"><tr class="a"><th>Component type</th><td>org.apache.cocoon.forms.acting.MakeFormAction</td></tr><tr class="b"><th>Cocoon block</th><td>Action</td></tr><tr class="a"><th>Java class</th><td>forms</td></tr><tr class="b"><th>Cachable</th><td></td></tr></table><h1>Documentation</h1><p>No documentation available yet.</p></div><div class="editUrl"><div><em>Errors and Improvements?</em> If you see any errors or potential improvements in this document please help
+        us: <a href="http://cocoon.zones.apache.org/daisy/cdocs/1035?branch=1&language=1">View, Edit or comment</a> on the latest development version (registration required).
+      </div></div></div>
+    </div>
+    <!-- end of content -->
+    <div id="footer">
+      <p>&#169;  
+          1999-2007
+    
+          The Apache Software Foundation
+        <br/>
+    
+    Last Published: 26/09/2007 05:18
+</p>
+    </div>
+    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+    </script>
+    <script type="text/javascript">
+      _uacct = "UA-1740622-3";
+      urchinTracker();
+    </script>
+  </body>
+</html>

Added: cocoon/site/site/2.2/blocks/forms/1.0/1147_1_1.html
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/forms/1.0/1147_1_1.html?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/forms/1.0/1147_1_1.html (added)
+++ cocoon/site/site/2.2/blocks/forms/1.0/1147_1_1.html Thu Sep 27 12:56:05 2007
@@ -0,0 +1,462 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>            Cocoon Forms
+      </title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+          <meta name="author" content="The Cocoon Community" />
+        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  </head>
+  <body>
+    <div id="breadtrail">
+       <p><a href="http://www.apache.org">Apache</a> &raquo; <a href="../../../../">Cocoon</a> &raquo;</p>
+    </div>
+    <div id="top">
+      <div id="header">
+          <div class="projectlogo">
+             <a href="../../../../"><img class="logoImage"
+               src="images/cocoon_logo.jpg"
+                alt="Apache Cocoon" border="0" /></a>
+          </div>
+          <div class="grouplogo">
+             <p class="grouptitle"><a href="../../../../">The Apache Cocoon Project</a><img
+               src="images/apache-logo.jpg" alt="Cocoon Project Logo" /></p>
+                            <form class="searchbox" action="http://www.google.com/search" method="get">
+                 <input value="cocoon.apache.org" name="sitesearch" type="hidden" />
+                 <input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google" />&nbsp;
+                 <input class="searchboxsubmit" name="Search" value="Search" type="submit" />
+               </form>
+                      </div>
+         </div>
+         <div id="projectBar">
+           <p class="cocoonHome"><a href="../../../../"><img
+           src="images/pmc-home.gif"
+           alt="Back to Apache Cocoon homepage"
+           border="0" title="Back to Apache Cocoon homepage" /></a></p>
+           <h1 class="projectTitle"><a href="../../../../">              Cocoon Forms
+            1.0
+  </a></h1>
+                         <ul class="projectList">
+                <li><strong><a href="../../../../2.2/">Cocoon 2.2</a></em></strong></li>
+                <li><a href="../../../../2.2/core-modules/">Core <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/blocks/">Blocks <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/maven-plugins/">Maven Plugins <span class="pl-version-small">2.2</span></a></li>
+                <li><strong><a href="../../../../subprojects/">Subprojects</a></strong></li>
+              </ul>
+                     </div>
+         <div class="projectBarClear"><!-- --></div>
+      </div>
+<!-- end of top -->
+
+    <div id="content">
+         <ul id="menu">
+        <li>
+              Forms
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="489_1_1.html">Basics</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="477_1_1.html">Widgets</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="484_1_1.html">Widget concepts</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+                  
+      
+            
+      
+            
+            
+              
+            <li class='menuExpand'>
+              <a href="755_1_1.html">Form publishing</a>
+                <ul>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="755_1_1.html">Templating</a>
+              </li>
+                  
+    <li >
+              <a href="476_1_1.html">Generator</a>
+        </li>
+                  
+    <li >
+              <a href="485_1_1.html">XSLT</a>
+        </li>
+                  
+    <li >
+              <strong>CSS</strong>
+        </li>
+              </ul>
+        </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="488_1_1.html">Binding</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="498_1_1.html">API</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="685_1_1.html">Form libraries</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="750_1_1.html">Ajax</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Migration guide
+            <ul>
+                  
+    <li >
+              <a href="1351_1_1.html">Migration guide</a>
+        </li>
+              </ul>
+    </li>
+      <li>
+              Sitemap Components
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="904_1_1.html">Action</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="915_1_1.html">Generator</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="994_1_1.html">Transformer</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Project Documentation
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-info.html">Project Information</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-reports.html">Project Reports</a>
+              </li>
+              </ul>
+    </li>
+      </ul>
+<!--
+                                     <a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
+          </a>
+                   <div id="lastPublished">
+                    
+                   Last Published: 26/09/2007 05:18
+       </div>
+-->
+         <div id="contentBody"><div id="bodyText"><h1 class="docTitle">CSS</h1><p>The library XSLTs provide CSS classes in the generated HTML. It's
+responsibility of the page layout XSL to link to a CSS.</p><h1 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Common fields styling</h1><p>The general rule for common fields (styled by forms-field-styling.xsl) is to
+apply the following classes :</p><ul>
+<li>&quot;forms&quot; : is always placed, to avoid name clashes with already present
+site-specific classes.</li>
+<li>&lt;widget name&gt; : can be &quot;field&quot;, &quot;action&quot;, &quot;output&quot;, &quot;booleanfield&quot;,
+&quot;multivaluefield&quot;, &quot;upload&quot;, &quot;repeater&quot;, &quot;imagemap&quot;, &quot;aggregatefield&quot;, &quot;form&quot;,
+&quot;messages&quot;.</li>
+<li>&lt;state&gt; : the state of the widget, can be empty, &quot;active&quot;, &quot;disbled&quot;,
+&quot;output&quot;.</li>
+<li>&quot;required&quot; : if the widget is required.</li>
+<li>&quot;with-errors&quot; : if there are some fi:validation-messages associated with the
+widget.</li>
+<li>&lt;class&gt; : an optional, user defined, fi:styling/@class that can be
+specified on a field to fine tune widget styling.</li>
+</ul>This technique makes it easy to write very specific CSS rules, as much as
+very general ones. For example :<pre>input.required {
+  color: blue;
+}
+</pre>Will make all required inputs have a blue text color, while<pre>input.upload.required {
+  color: red;
+}</pre>will make only the required upload widgets have a red text color.The HTML elements to which this classes will be applied varies depending on
+the widget type and special fi:styling attributes (like list-type for selection
+lists, fi:styling/@type etc..).There are also other classes, placed to correctly style other elements, these
+are :<ul>
+<li>&quot;captcha&quot; : applied to the img element of a captcha field.</li>
+<li>&quot;required-mark&quot; : applied to the span containing the &quot;*&quot; near the required
+fields.</li>
+<li>&quot;validation-message&quot; : applied to the anchor element containing the &quot;!&quot; near
+the fields with errors.</li>
+<li>&quot;vertical-list&quot; and &quot;horizontal-list&quot; : applied to the tables used to layout
+these kind of lists.</li>
+<li>&quot;upload-change-button&quot; : applied to the button that appears next to the
+upload widget when a file has been uploaded.</li>
+</ul>For the validation-errors element (which outputs a list of all validation
+errors found in the form) there are other special classes :<ul>
+<li>&quot;validation-errors&quot; : applied to the div that contains the errors recap
+block.</li>
+<li>&quot;validation-errors-header&quot; and &quot;validation-errors-footer&quot; : applied to the
+paragraphs that contains the header and footer of the errors recap.</li>
+<li>&quot;validation-errors-content&quot; : applied to the &quot;li&quot; element of the errors
+list.</li>
+</ul><h1 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Page styling</h1>Another set of classes is used for page styling (forms-page-styling.xsl). The
+general rule for fi:group is to apply the following classes :<ul>
+<li>&quot;forms&quot; : as always placed to mark a cocoon forms CSS class.</li>
+<li>&quot;group&quot; : identify a group class</li>
+<li>&lt;layout&gt; or &lt;type&gt; : the fi:styling/@layout or fi:styling/@type
+of the fi:group</li>
+<li>&lt;class&gt; : an optional, user defined, fi:styling/@class that can be
+specified on a group to fine tune styling.</li>
+</ul>As for the widgets, these classes are applied to different HTML elements
+depèending on the group type and layout.For those layouts which uses tables, special classes are used to mark
+specific cells :<ul>
+<li>&quot;label&quot; : applied to the &quot;td&quot; containing the label</li>
+<li>&quot;content&quot; : applied to the &quot;td&quot; containing the form input</li>
+<li>&quot;action&quot; : applied to the &quot;td&quot; containing an action widget, for those
+layouts that creates special cells for this widgets.</li>
+<li>&quot;booleanfield&quot; : applied to the &quot;td&quot; containing a booleanfield widget, for
+those layouts that creates special cells for this widgets.</li>
+<li>&quot;other&quot; : applied to the &quot;td&quot; containing other content, like another nested
+fi:group or non cocoon forms elements.</li>
+</ul>Consider this CSS snippet :<pre>table.group.columns {
+  border: 1px solid blue;
+}
+</pre><pre>table.group.columns td {
+  background: yellow;
+}
+</pre><pre>table.group.columns td.label {
+  background: blue;
+  color: white;
+  width: 20%;
+}
+</pre>This will style every fi:group with layout &quot;columns&quot; placing a blue border on
+the table, then using a yello background for every cell in the table, while a
+blue blackground, a while text color and a width of 20% will be used for cells
+containing labels.A special case of layout is handled directly in the basic xsl
+(forms-field-styling.xsl), which format with a &quot;columns&quot; similar layout a
+&quot;fi:form&quot;. In this case the same classes (label, content etc..) applies.Some special classes are used for the tab layout. These are :<ul>
+<li>&quot;tabArea&quot; : applied to the div containing the tabs.</li>
+<li>&quot;tabContent&quot; : applied to the div containing the tabs contents.</li>
+<li>&quot;tab&quot; : applied to every span representing a single tab</li>
+<li>&quot;active&quot; : marks the currently active tab.</li>
+<li>&quot;validation-message&quot; : applied to the span placed in a tab when there are
+validation-messages in any control inside that tab.</li>
+</ul><h1 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Compatibility with old classes</h1>The cocoon forms XSLs prior to this patch used a few CSS classes for tabs,
+required marks, validation messages and another few elements. These classes have
+been mantained to grant backward compatibilty, but should not be used anymore.
+</div><div class="editUrl"><div><em>Errors and Improvements?</em> If you see any errors or potential improvements in this document please help
+        us: <a href="http://cocoon.zones.apache.org/daisy/cdocs/1147?branch=1&language=1">View, Edit or comment</a> on the latest development version (registration required).
+      </div></div></div>
+    </div>
+    <!-- end of content -->
+    <div id="footer">
+      <p>&#169;  
+          1999-2007
+    
+          The Apache Software Foundation
+        <br/>
+    
+    Last Published: 26/09/2007 05:18
+</p>
+    </div>
+    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+    </script>
+    <script type="text/javascript">
+      _uacct = "UA-1740622-3";
+      urchinTracker();
+    </script>
+  </body>
+</html>

Added: cocoon/site/site/2.2/blocks/forms/1.0/1161_1_1.html
URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/forms/1.0/1161_1_1.html?rev=580139&view=auto
==============================================================================
--- cocoon/site/site/2.2/blocks/forms/1.0/1161_1_1.html (added)
+++ cocoon/site/site/2.2/blocks/forms/1.0/1161_1_1.html Thu Sep 27 12:56:05 2007
@@ -0,0 +1,597 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>            Cocoon Forms
+      </title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+          <meta name="author" content="The Cocoon Community" />
+        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  </head>
+  <body>
+    <div id="breadtrail">
+       <p><a href="http://www.apache.org">Apache</a> &raquo; <a href="../../../../">Cocoon</a> &raquo;</p>
+    </div>
+    <div id="top">
+      <div id="header">
+          <div class="projectlogo">
+             <a href="../../../../"><img class="logoImage"
+               src="images/cocoon_logo.jpg"
+                alt="Apache Cocoon" border="0" /></a>
+          </div>
+          <div class="grouplogo">
+             <p class="grouptitle"><a href="../../../../">The Apache Cocoon Project</a><img
+               src="images/apache-logo.jpg" alt="Cocoon Project Logo" /></p>
+                            <form class="searchbox" action="http://www.google.com/search" method="get">
+                 <input value="cocoon.apache.org" name="sitesearch" type="hidden" />
+                 <input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google" />&nbsp;
+                 <input class="searchboxsubmit" name="Search" value="Search" type="submit" />
+               </form>
+                      </div>
+         </div>
+         <div id="projectBar">
+           <p class="cocoonHome"><a href="../../../../"><img
+           src="images/pmc-home.gif"
+           alt="Back to Apache Cocoon homepage"
+           border="0" title="Back to Apache Cocoon homepage" /></a></p>
+           <h1 class="projectTitle"><a href="../../../../">              Cocoon Forms
+            1.0
+  </a></h1>
+                         <ul class="projectList">
+                <li><strong><a href="../../../../2.2/">Cocoon 2.2</a></em></strong></li>
+                <li><a href="../../../../2.2/core-modules/">Core <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/blocks/">Blocks <span class="pl-version-small">2.2</span></a></li>
+                <li><a href="../../../../2.2/maven-plugins/">Maven Plugins <span class="pl-version-small">2.2</span></a></li>
+                <li><strong><a href="../../../../subprojects/">Subprojects</a></strong></li>
+              </ul>
+                     </div>
+         <div class="projectBarClear"><!-- --></div>
+      </div>
+<!-- end of top -->
+
+    <div id="content">
+         <ul id="menu">
+        <li>
+              Forms
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="489_1_1.html">Basics</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+            
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+            <li class='menuExpand'>
+              <a href="477_1_1.html">Widgets</a>
+                <ul>
+                  
+    <li >
+              <a href="477_1_1.html">Action widget</a>
+        </li>
+                  
+    <li >
+              <a href="486_1_1.html">Aggregatefield widget</a>
+        </li>
+                  
+    <li >
+              <a href="482_1_1.html">Booleanfield widget</a>
+        </li>
+                  
+    <li >
+              <strong>Calculated fields</strong>
+        </li>
+                  
+    <li >
+              <a href="1294_1_1.html">Captcha Widget</a>
+        </li>
+                  
+    <li >
+              <a href="742_1_1.html">Class/New (not really widgets)</a>
+        </li>
+                  
+    <li >
+              <a href="481_1_1.html">Field widget</a>
+        </li>
+                  
+    <li >
+              <a href="754_1_1.html">Form</a>
+        </li>
+                  
+    <li >
+              <a href="740_1_1.html">Group/Struct widget</a>
+        </li>
+                  
+    <li >
+              <a href="738_1_1.html">ImageMap widget</a>
+        </li>
+                  
+    <li >
+              <a href="497_1_1.html">Messages widget</a>
+        </li>
+                  
+    <li >
+              <a href="490_1_1.html">MultiValueField widget</a>
+        </li>
+                  
+    <li >
+              <a href="492_1_1.html">Output widget</a>
+        </li>
+                  
+    <li >
+              <a href="494_1_1.html">RepeaterAction widget</a>
+        </li>
+                  
+    <li >
+              <a href="496_1_1.html">Repeater widget</a>
+        </li>
+                  
+    <li >
+              <a href="495_1_1.html">RowAction widget</a>
+        </li>
+                  
+    <li >
+              <a href="493_1_1.html">Submit widget</a>
+        </li>
+                  
+    <li >
+              <a href="739_1_1.html">Tree widget</a>
+        </li>
+                  
+    <li >
+              <a href="741_1_1.html">Union widget</a>
+        </li>
+                  
+    <li >
+              <a href="483_1_1.html">Upload widget</a>
+        </li>
+              </ul>
+        </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="484_1_1.html">Widget concepts</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+                  
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="755_1_1.html">Form publishing</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="488_1_1.html">Binding</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="498_1_1.html">API</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="685_1_1.html">Form libraries</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="750_1_1.html">Ajax</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Migration guide
+            <ul>
+                  
+    <li >
+              <a href="1351_1_1.html">Migration guide</a>
+        </li>
+              </ul>
+    </li>
+      <li>
+              Sitemap Components
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="904_1_1.html">Action</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="915_1_1.html">Generator</a>
+              </li>
+                  
+  
+
+
+              
+      
+              
+        <li class='menuCollapse'>
+              <a href="994_1_1.html">Transformer</a>
+              </li>
+              </ul>
+    </li>
+      <li>
+              Project Documentation
+            <ul>
+                  
+  
+
+
+              
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-info.html">Project Information</a>
+              </li>
+                  
+  
+
+
+              
+      
+            
+      
+              
+        <li class='menuCollapse'>
+              <a href="project-reports.html">Project Reports</a>
+              </li>
+              </ul>
+    </li>
+      </ul>
+<!--
+                                     <a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
+          </a>
+                   <div id="lastPublished">
+                    
+                   Last Published: 26/09/2007 05:18
+       </div>
+-->
+         <div id="contentBody"><div id="bodyText"><h1 class="docTitle">Calculated fields</h1><h1 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Concept</h1><p>A calculated field is a widget that calculated it's own value using an
+algorithm and values of other widgets. For example, if you are creating a form
+for a shopping cart, you'll probably have a repeater with items your customer is
+buying, each one with it's price, it's quantity, a subtotal and a grand total at
+the end of it. That total and subtotal fields are a typical use case of
+calculated fields.</p><h1 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Definition</h1><p>Configuration example :</p><pre>&lt;fd:calculatedfield id=&quot;...&quot; required=&quot;true|false&quot;&gt;
+  &lt;fd:label&gt;...&lt;/fd:label&gt;
+  &lt;fd:datatype base=&quot;...&quot;&gt;
+    &lt;fd:convertor type=&quot;...&quot;/&gt;
+  &lt;/fd:datatype&gt;
+  &lt;fd:value [type=&quot;...&quot; eval=&quot;...&quot; triggers=&quot;...&quot;]/&gt;
+&lt;/fd:calculatedfield&gt;</pre><p>It also supports all the other configuration options of a common field, like
+listeners, attributes etc.. Nothing special is needed in form template, binding
+or XSLTs, just use a calculated field as you would use a common field.</p><p>As you can see, the special part is the <tt>fd:value</tt> element, it has the
+following standard attributes :</p><ul>
+<li><tt>type</tt> indicates the type of algorith to use, currently
+<tt>simple</tt>, <tt>repeated</tt>, <tt>javascript</tt> and <tt>java</tt> are
+provided. If not specified, the simple expression algorithm will be used.</li>
+<li><tt>eval</tt> contains the expression to use.</li>
+<li><tt>triggers</tt> contains a comma separated list of widgets that will
+trigger a recalculation when their value changes.</li>
+</ul>No attribute is mandatory, while others may be required, depending on the
+algorithm that is used.The <tt>triggers</tt> attribute is not mandatory because many algorithms are
+able to understand which widget should trigger a recalculation parsing their
+expression, but actually the user can always specify this list manually to
+override the algorithm assumption.The calculations are done at server side. Whenever a trigger field gets its
+value changed by user interaction, the form is submitted, recalculated server
+side, and redisplayed to the user. Thus the usage of AJAX is highly recommended
+in a form that uses many calculated fields.<h1 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Algorithms</h1><p>Four algorithms are provided in cocoon : simple expression (default),
+repeated expression, javascript and java.</p><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Simple expression</h2><p>The simple expression algorithm is the default one, and is based on XReporter
+expressions.</p><p>Only the <tt>eval</tt> attribute is required, because this is the default
+algorithm (so no <tt>type</tt> needed) and it can guess its triggers parsing the
+expression.</p><p>So you can simply write :</p><pre>&lt;fd:calculatedfield id=&quot;subTotal&quot; state=&quot;output&quot;&gt;
+  &lt;fd:label&gt;Subtotal&lt;/fd:label&gt;
+  &lt;fd:datatype base=&quot;double&quot;&gt;
+    &lt;fd:convertor type=&quot;formatting&quot; variant=&quot;currency&quot;/&gt;
+  &lt;/fd:datatype&gt;
+  &lt;fd:value eval=&quot;items * price&quot;/&gt;
+&lt;/fd:calculatedfield&gt;</pre><p>And you'll obtain that this field will be calculated when the <tt>items</tt>
+or <tt>price</tt> fields change, multiplicating <tt>items</tt> with
+<tt>price</tt>.</p><p>As in <tt>asserts</tt> and other validations that uses XReporter expressions,
+widget names are evaluated relative to the container, so <tt>items</tt> and
+<tt>price</tt> are siblings of <tt>subTotal</tt> in the form definition tree,
+for example contained in the same repeater.</p><p>You can access widgets in other part of the form as well, using a path-link
+syntax and placing it in brackets, for example :</p><pre>&lt;fd:value eval=&quot;(subTotal / 100) * {/appliedVat}&quot;/&gt;</pre><p>Could be the value of a calculated field for VAT, that uses the VAT value
+(which could change for foreign countries) taken from a field outside the
+repeater.</p><p>You can also use all the XReporter functions, for example :</p><pre>&lt;fd:calculatedfield id=&quot;dayOfweek&quot; state=&quot;output&quot;&gt;
+  &lt;fd:value eval=&quot;DayOfWeek(birthDay)&quot;/&gt;
+  &lt;fd:selection-list&gt;
+    &lt;fd:item value=&quot;0&quot;&gt;&lt;fd:label&gt;Sunday&lt;/fd:label&gt;&lt;/fd:item&gt;
+    ....
+  &lt;/fd:selection-list&gt;
+&lt;/fd:calculatedfield&gt;
+</pre><p>Will use the <tt>DayOfWeek</tt> function to display the day of week of the
+date contained in the <tt>birthDay</tt> field.</p><p>There is one special function called <tt>Sum</tt> that operates on a list of
+widgets instead that just one like other functions. This function uses a
+&quot;special&quot; syntax for determining which widgets to use :</p><pre>&lt;fd:calculatedfield id=&quot;itemsTotal&quot; state=&quot;output&quot;&gt;
+  &lt;fd:label&gt;Items in your cart&lt;/fd:label&gt;
+  &lt;fd:datatype base=&quot;integer&quot;/&gt;
+  &lt;fd:value eval=&quot;Sum({cart/./items})&quot;/&gt;
+&lt;/fd:calculatedfield&gt;
+
+&lt;fd:calculatedfield id=&quot;grandTotal&quot; state=&quot;output&quot;&gt;
+  &lt;fd:label&gt;Total cost&lt;/fd:label&gt;
+  &lt;fd:datatype base=&quot;double&quot;&gt;
+    &lt;fd:convertor type=&quot;formatting&quot; variant=&quot;currency&quot;/&gt;
+  &lt;/fd:datatype&gt;
+  &lt;fd:value eval=&quot;Sum({cart/./subTotal})&quot;/&gt;
+&lt;/fd:calculatedfield&gt;</pre><p>&quot;cart&quot; is the name of a repeater, and &quot;/./&quot; means &quot;every row&quot;. So
+<tt>Sum({cart/./items})</tt> simply means &quot;Sum the value of the <tt>items</tt>
+widget in every row of the <tt>cart</tt> repeater&quot;. As you can see, the
+<tt>grandTotal</tt> field is a sum of calculated fields.</p><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Repeated expression</h2><p>The repeated expression is similar to a simple expression, but is repeated
+for each indicated widget. The syntax is as follows :</p><pre>&lt;fd:value type=&quot;repeated&quot; repeat-on=&quot;...&quot; eval=&quot;...&quot; [initial-value=&quot;...&quot;]/&gt;</pre><ul>
+<li><strong>type</strong> is used to indicate which algorithm we are using, in
+this case &quot;<tt>repeated</tt>&quot;</li>
+<li><strong>repeat-on</strong> contains a list of widgets (comma separated,
+and/or with the /./ notation) we are going to iterate on</li>
+<li><strong>eval</strong> contains the expression to repeat</li>
+<li><strong>initial-value</strong> optionally contains and expression that will
+be used as an initial value for the computation.</li>
+</ul>In java this would sound something similar to :<pre>Iterator iter = widgetsList.iterator();
+int formulaResult = initialValue;
+while (iter.hasNext()) {
+  formulaCurrent = ((Widget)iter.next()).getValue();
+  formulaResult = &lt;your formula here&gt;;
+}
+this.setValue(formulaResult);
+</pre>Or more formally :<ul>
+<li>The <tt>initial-value</tt> is computed, <em>relative to the calculated
+widget itself</em>, and stored in a variable called <tt>formulaResult</tt></li>
+<li>For each widget specified in the <tt>repeat-on</tt> list :</li>
+<ul>
+<li>The value of the widget is assigned to a variable called
+<tt>formulaCurrent</tt>.</li>
+<li>The expression is evaluated <em>relative to the current widget</em></li>
+<li>The result of the expression is assigned to the <tt>formulaResult</tt>
+variable</li>
+</ul>
+
+<li><tt>formulaResult</tt> (so, the result of last evaluation of the expression)
+is used for the calculated field value.</li>
+</ul>For example, to calculate the <tt>grandTotal</tt> we could have used :<pre>&lt;fd:value type=&quot;repeated&quot; eval=&quot;formulaResult + formulaCurrent&quot; repeat-on=&quot;cart/./subTotal&quot;/&gt;
+</pre>Obviously, we have the <tt>Sum</tt> function which is by far simpler, but the
+repeated expression could be used for example :To count all items with a price higher than 100:<pre>&lt;fd:value type=&quot;repeated&quot; repeat-on=&quot;/cart/./price&quot; eval=&quot;formulaResult + If(formulaCurrent &gt; 100, 1, 0)&quot;/&gt; </pre>(read : the result is the previous result plus one if current price value is
+over 100, 0 if it's less than 100)To obtain a sum of all movements in a report, wether they are positive or
+negative amount movements:<pre>&lt;fd:value type=&quot;repeated&quot; repeat-on=&quot;report/./amount&quot; eval=&quot;formulaResult + Abs(formulaCurrent)&quot;/&gt;</pre>To obtain a multiplicatory :<pre>&lt;fd:value type=&quot;repeated&quot; repeat-on=&quot;data/./operand&quot; eval=&quot;formulaResult * formulaCurrent&quot; initial-value=&quot;1&quot;/&gt;</pre><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Javascript</h2>There are obviously situations where the simple or repeated expressions are
+not enought, so you can use javascript to quickly write your own calculated
+field algorithm :<pre>&lt;fd:value type=&quot;javascript&quot; triggers=&quot;...&quot;&gt;
+  ... you javascript code here ...
+&lt;/fd:value&gt;
+</pre>In this case, no <tt>eval</tt> attribute is used, since javascript code is
+written directly inside the fd:value element.<p>As opposite to simple and repeated expressions, you have to specify the
+<tt>triggers</tt>. Triggers are widgets that, when modified, trigger a
+recalculation of this calculated field.</p><p>The <tt>triggers</tt> attribute is a comma separated list of widgets,
+eventually their full path and/or with the /./ notation.</p><p>In the javascript snippet :</p><ul>
+<li>you can access the Form object with the <tt>form</tt> variable.</li>
+<li>you can access the parent widget with the <tt>parent</tt> variable (this is
+useful in repeaters, cause the parent will be the current row).</li>
+<li>you <em>must return the value</em> for the calculated field, not assign it
+yourself.</li>
+</ul>So, for example, to implement a discount policy for our cart we could write :
+<pre>&lt;fd:calculatedfield id=&quot;discount&quot; state=&quot;output&quot;&gt;
+  &lt;fd:label&gt;Total cost&lt;/fd:label&gt;
+  &lt;fd:datatype base=&quot;double&quot;&gt;
+    &lt;fd:convertor type=&quot;formatting&quot; variant=&quot;currency&quot;/&gt;
+  &lt;/fd:datatype&gt;
+  &lt;fd:value type=&quot;javascript&quot; triggers=&quot;cart/./items,cart/./price,discountCode&quot;&gt;
+     var code = form.lookupWidget('discountCode').getValue();
+     var verifier = new Packages.com.mycompany.discounts.Verifier();
+     if (!verifier.isValidDiscountCode(code)) {
+       return 0;
+     } else {
+       var discountAmount = 0;
+       ...
+       return discountAmount;
+     }
+  &lt;/fd:value&gt;
+&lt;/fd:calculatedfield&gt;
+</pre><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">Java</h2>An algorithm can also be implemented as a java class. In this case the class
+must either implement the <tt>CalculatedFieldAlgorithm</tt> interface, or
+subclass the <tt>AbstractBaseAlgorithm</tt> class. The definition syntax is :
+<pre>&lt;fd:value class=&quot;...&quot; [triggers=&quot;...&quot;]/&gt;</pre>A sample algorithm for the same discount policy could be the following :<pre>public class DiscountAlgorithm extends AbstractBaseAlgorithm {
+
+    // This method is called to check if this algorithm is suitable
+    // for the field it has been assigned to. 
+    public boolean isSuitableFor(Datatype dataType) {
+        return dataType.getTypeClass().isAssignableFrom(Double.class);
+    }
+
+    // This method is actually called to perform the calculation,
+    // it must return the value for the widget.
+    public Object calculate(Form form, Widget parent, Datatype datatype) {
+        String discountCode = form.lookupWidget(&quot;discountCode&quot;).getValue();
+        Verifier verifier = new Verifier();
+        if (!verifier.isValidDiscountCode(code)) {
+            return new Double(0);
+        } else {
+            double discountAmount = 0;
+            ...
+            return new Double(discountAmount);
+        }
+    }
+}
+</pre><p>Extending the <tt>AbstractBaseAlgorithm</tt> class is the preferred way of
+implementing a custom algorithm, because it would benefit from some standard
+features (triggers list for example) and from a better insulation from future
+calculated fields improvements.</p></div><div class="editUrl"><div><em>Errors and Improvements?</em> If you see any errors or potential improvements in this document please help
+        us: <a href="http://cocoon.zones.apache.org/daisy/cdocs/1161?branch=1&language=1">View, Edit or comment</a> on the latest development version (registration required).
+      </div></div></div>
+    </div>
+    <!-- end of content -->
+    <div id="footer">
+      <p>&#169;  
+          1999-2007
+    
+          The Apache Software Foundation
+        <br/>
+    
+    Last Published: 26/09/2007 05:18
+</p>
+    </div>
+    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+    </script>
+    <script type="text/javascript">
+      _uacct = "UA-1740622-3";
+      urchinTracker();
+    </script>
+  </body>
+</html>



Mime
View raw message