Author: gvanmatre
Date: Sun Dec 31 12:59:41 2006
New Revision: 491484

URL: http://svn.apache.org/viewvc?view=rev&rev=491484
Log:
SHALE-380

Modified:
    shale/framework/trunk/shale-clay/src/site/xdoc/index.xml
    shale/framework/trunk/src/site/resources/docs/release-notes-1.0.4.html

Modified: shale/framework/trunk/shale-clay/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/site/xdoc/index.xml?view=diff&rev=491484&r1=491483&r2=491484
==============================================================================
--- shale/framework/trunk/shale-clay/src/site/xdoc/index.xml (original)
+++ shale/framework/trunk/shale-clay/src/site/xdoc/index.xml Sun Dec 31 
12:59:41 2006
@@ -124,7 +124,7 @@
 <pre>
 &lt;%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %&gt;
 &lt;%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %&gt;
-&lt;%@ taglib prefix="s" uri="http://struts.apache.org/shale/core"; %&gt;
+&lt;%@ taglib prefix="s" uri="http://shale.apache.org/clay"; %&gt;
 
 &lt;s:token id="token"/&gt;
 
@@ -273,7 +273,7 @@
                  page, we have a JSP page that uses that component to process 
the HTML. That component
                  is accessed through a custom tag, like this:</p>
 <pre>
-&lt;%@ taglib prefix="sh" uri="http://struts.apache.org/shale/clay-plugin"; 
%&gt;
+&lt;%@ taglib prefix="sh" uri="http://shale.apache.org/clay"; %&gt;
 ...
 &lt;sh:clay id="loginTemplate" jsfid="/pages/clay-login.html" 
     managedBeanName="loginPage"/&gt;
@@ -387,6 +387,30 @@
       &lt;/body&gt;
    &lt;/html&gt;
 </pre></blockquote></p>
+
+         <p>The Clay template parser has a few reserved identifiers that can 
be used to remove blocks of markup.  
+                   These identifiers are in the form of HTML self-contained 
comments.  Since the markers are comments, 
+                   they do not interfere with displaying the template in a 
browser.  The comment blocks behave similarly to 
+                   the "void" reserved jsfid identifier shown in the previous 
markup fragment.  Another similar comment identifier 
+                   is used by the template parser to specify the character set 
encoding of the template.  Like the start and end 
+                   remove markers, this comment tag is self-contained.  This 
marker must be located somewhere near the top 
+                   of the document.</p>
+
+<p><blockquote><pre>
+&lt;!-- ### clay:page charset="UTF-8" /### --&gt;
+&lt;!-- ### clay:remove ### --&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"/&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+&lt;!-- ### /clay:remove ### --&gt;
+    &lt;p&gt;BEGINNING OF HTML TEMPLATE&lt;br /&gt;
+&lt;!-- ### clay:remove ### --&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
+&lt;!-- ### /clay:remove ### --&gt;
+</pre></blockquote></p>
   
          <p>There are two types of HTML layouts, page fragment and full HTML 
layouts. The page fragments 
             can be pulled into a JSP page using the clay tag.  The jsfid is 
used to identify the HTML page 
@@ -419,6 +443,58 @@
       &lt;input type=text [EMAIL PROTECTED] id=city size=20&gt;
       &lt;input type=submit value=Save [EMAIL PROTECTED]&gt;
 </pre></blockquote></p>
+
+
+      <p>There is yet another option for creating templates using HTML markup. 
 The Clay parser supports XML namespaces.  
+                  This option allows you to borrow the JSP tag notations.  In 
addition to the standard tags, Clay takes it a little further 
+                  by adding the "extends" attribute which allows you to 
inherit characteristics of another component's definitions.   
+                  Clay also has limited mapping support for JSPX tags allowing 
for "lazy reuse" of existing JSPX templates.</p> 
+
+<p><blockquote><pre>
+&lt;!-- ### clay:page charset="UTF-8" /### --&gt;
+&lt;jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core";
+          xmlns:h="http://java.sun.com/jsf/html";
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"; 
+          xmlns:tr="http://myfaces.apache.org/trinidad"; 
+          xmlns:c="http://shale.apache.org/clay"&gt;
+
+   &lt;f:view&gt;
+    &lt;tr:form id="form"&gt; 
+      &lt;tr:panelPartialRoot id="ajax"&gt;
+                          
+            &lt;tr:treeTable id="treeTable" var="foo" value="[EMAIL 
PROTECTED]" summary="Catalog" &gt;
+                
+              &lt;f:facet name="nodeStamp"&gt;
+                &lt;tr:column&gt;
+                  &lt;f:facet name="header"&gt;
+                    &lt;tr:outputText value="name"/&gt;
+                  &lt;/f:facet&gt;
+                   &lt;tr:commandLink actionListener="[EMAIL PROTECTED]" 
+                          partialSubmit="true" text="#{foo.name}"/&gt;
+                &lt;/tr:column&gt;
+              &lt;/f:facet&gt;
+              
+              &lt;f:facet name="pathStamp"&gt;
+                   &lt;tr:commandLink actionListener="[EMAIL PROTECTED]" 
+                         partialSubmit="true" text="#{foo.name}"/&gt;
+              &lt;/f:facet&gt;
+
+              &lt;tr:column&gt;
+                &lt;f:facet name="header"&gt;
+                  &lt;h:outputText value="description"/&gt;
+                &lt;/f:facet&gt;
+                &lt;tr:outputText value="#{foo.description}"/&gt;
+              &lt;/tr:column&gt;
+
+            &lt;/tr:treeTable&gt;                      
+         &lt;/tr:panelPartialRoot&gt;
+      &lt;/tr:form&gt;
+    &lt;/f:view&gt;   
+&lt;/jsp:root&gt;
+</pre></blockquote></p>
+    
+
       </li>
       <li><p>The subtree can also be defined at runtime.  The runtime support 
allows the view to be defined by data 
              from the model tier.  The Clay component provides a postback 
validation method event, shapeValidator, 
@@ -453,7 +529,7 @@
 <p><blockquote><pre>
 &lt;!DOCTYPE view PUBLIC
       "-//Apache Software Foundation//DTD Shale Clay View Configuration 
1.0//EN"
-      "http://struts.apache.org/dtds/shale-clay-config-1_0.dtd"&gt;
+      "http://shale.apache.org/dtds/clay-config_1_0.dtd"&gt;
 
 &lt;view&gt;
     &lt;component jsfid="/rolodex/rolodex.xml" extends="clay"&gt;
@@ -482,7 +558,7 @@
    definitions have similarities to the JSP tags, but are designed to be more 
generic. The same node 
    structure is used to define a variety of resources.
 </p>
-<p>A <code>component</code> is a "top-level" element.  In the <a 
href="http://struts.apache.org/dtds/shale-clay-config/1_0/"; 
target="_blank">DTD</a>, 
+<p>A <code>component</code> is a "top-level" element.  In the <a 
href="http://shale.apache.org/dtds/clay-config_1_0.dtd"; 
target="_blank">DTD</a>, 
    a <code>component</code> can represent a JSF component, converter, 
validator, action listener or value change listener.  Only "top-level" elements 
    can be the root of a clay subtree.  The <code>componentType</code> 
attribute defines the association to the face's resource.  The 
<code>jsfid</code> 
    attribute is a logical unique identifier.
@@ -607,7 +683,7 @@
    component properties and how components are assembled within a page.  There 
is currently a couple sources 
    to define symbols, XML and HTML.  In the future this could be expanded to 
other sources.   
 </p>
-<p>In the clay XML document type definition (<a 
href="http://struts.apache.org/dtds/shale-clay-config/1_0/"; 
target="_blank">DTD</a>), 
+<p>In the clay XML document type definition (<a 
href="http://shale.apache.org/dtds/clay-config_1_0.dtd"; 
target="_blank">DTD</a>), 
    <code>symbols</code> are defined similar to <code>component</code> 
<code>attributes</code>.   Symbols are 
    defined within a <code>symbols</code> node versus an 
<code>attributes</code> node.  Both <code>symbols</code> 
    and <code>attributes</code> use the same <code>set</code> element 
definition but the symbols ignore the 

Modified: shale/framework/trunk/src/site/resources/docs/release-notes-1.0.4.html
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/src/site/resources/docs/release-notes-1.0.4.html?view=diff&rev=491484&r1=491483&r2=491484
==============================================================================
--- shale/framework/trunk/src/site/resources/docs/release-notes-1.0.4.html 
(original)
+++ shale/framework/trunk/src/site/resources/docs/release-notes-1.0.4.html Sun 
Dec 31 12:59:41 2006
@@ -234,16 +234,15 @@
     to build unit tests, using the Test Framework, that cater to JSF 1.2
     APIs.</p>
 
-    <p><strong>Clay Improvements</strong> -  As part of the framework 
refactoring, 
-    we reduced inner shale-clay dependencies to just the shale-core module 
thereby 
-    providing servlet 2.3 compatibility.
-    <br/><br/>
-    There were several enhancements made to the Clay non-validating markup 
parser.
-    Clay markup template namespace support was extended to allow a prefix that 
-    differs from the component's definition.  In addition, we added a Clay 
template 
-    directive and a global setting to specify the template encoding.  We also 
added 
-    limited support for handing reuse of JSPX tags.
-    <br/><br/>
+    <p><strong>Clay Improvements</strong> - As part of the framework 
refactoring, we reduced 
+        inner shale-clay dependencies to just the shale-core module thereby 
providing servlet 2.3 compatibility.  
+        There were several enhancements made to the Clay non-validating markup 
parser. Clay markup template 
+        namespace support was extended to allow a prefix that differs from the 
component's "jsfid" definition. In addition,
+        we added a Clay template directive and a global setting to specify the 
template encoding. We also added limited 
+        support for handling reuse of JSPX tags and the "f:view" tag which 
allows assigning properties of the view root.  
+        An effort was made to align Clay full view templates more closely with 
JSP by changing the inheritance of the Clay 
+        component so it no longer is a naming container.<br/>
+    <br/> 
     Furthermore, we added JSF 1.2 basic support for Clay managed views.  The 
basic 
     support covers some new ground into supporting new features such as the 
binding 
     attribute for converters, validators and listeners.  This support doesn't 
have 


Reply via email to