Author: andyhot
Date: Thu Apr 27 06:01:06 2006
New Revision: 397533

URL: http://svn.apache.org/viewcvs?rev=397533&view=rev
Log:
Inherited-binding documentation

Modified:
    
tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/parse/Tapestry_4_0.dtd
    
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/spec.xml
    
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/upgrade.xml
    tapestry/tapestry4/branches/4.0/status.xml

Modified: 
tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/parse/Tapestry_4_0.dtd
URL: 
http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/parse/Tapestry_4_0.dtd?rev=397533&r1=397532&r2=397533&view=diff
==============================================================================
--- 
tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/parse/Tapestry_4_0.dtd
 (original)
+++ 
tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/parse/Tapestry_4_0.dtd
 Thu Apr 27 06:01:06 2006
@@ -27,7 +27,7 @@
 - <service> has been removed; it was used to define engine services, which
   is now accomplished using the HiveMind tapestry.services.ApplicationServices
   configuration point.
-- <static-binding>, <inherited-binding> and <message-binding> elements have 
been removed.
+- <static-binding> and <message-binding> elements have been removed.
   There is now just <binding>, whose value attribute contains a prefix to 
interpret how
   the remainder of the value is interpreted (no prefix meaning a literal, or 
static, value).
 - <property> renamed to <meta> and <property-specification> renamed to 
<property>

Modified: 
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/spec.xml
URL: 
http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/spec.xml?rev=397533&r1=397532&r2=397533&view=diff
==============================================================================
--- 
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/spec.xml
 (original)
+++ 
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/spec.xml
 Thu Apr 27 06:01:06 2006
@@ -121,8 +121,6 @@
   </li>
   <li>The &lt;static-binding&gt; and &lt;message-binding&gt; elements have 
been removed, replaced with
     the &spec.binding; element and the ognl: and message: prefixes, 
respectively.</li>
-  <li>The &lt;inherited-binding&gt; element has been removed; parameters of 
parent components may be
-    accessed as properties.</li>
   <li>The &lt;property&gt; element (in 3.0) has been renamed to 
&spec.meta;.</li>
   <li>The &lt;property-specification&gt; element (in 3.0) has been renamed to 
&spec.property;. The type
     attribute has been dropped. The persistent attribute has been renamed to 
persist, and is a string
@@ -935,6 +933,51 @@
 
 
 </section> <!-- spec.extension -->
+
+<section id="spec.inherited-binding">
+  <title>&lt;inherited-binding&gt; element</title>
+  
+  <p>
+    Appears in: &spec.component-specification;.
+  </p>
+  
+  <p>
+       Binds a parameter of an embedded component to a parameter of its 
container.
+       In an instantiated component, bindings can be accessed with the OGNL 
expression bindings.name. 
+  </p>
+  
+  <table>
+<tr>
+  <th>Name</th>
+  <th>Type</th>
+  <th>Required ?</th>
+  <th>Default Value</th>
+  <th>Description</th>
+</tr>
+
+<tr>
+  <td>name</td>
+  <td>string</td>
+  <td>yes</td>
+  <td/>
+  <td>
+    The name of the parameter to bind.
+  </td>
+</tr>
+
+<tr>
+  <td>parameter-name</td>
+  <td>string</td>
+  <td>yes</td>
+  <td></td>
+  <td>
+       The name of a parameter of the containing component.
+  </td>
+</tr>
+
+  </table>
+  
+</section>  <!-- spec.inherited-binding -->
 
 <section id="spec.inject">
   <title>&lt;inject&gt; element</title>

Modified: 
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/upgrade.xml
URL: 
http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/upgrade.xml?rev=397533&r1=397532&r2=397533&view=diff
==============================================================================
--- 
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/upgrade.xml
 (original)
+++ 
tapestry/tapestry4/branches/4.0/src/documentation/content/xdocs/UsersGuide/upgrade.xml
 Thu Apr 27 06:01:06 2006
@@ -282,43 +282,6 @@
 ]]></source>
   
   
-  
-  
-</section>
-
-<section>
-  <title>Inherited binding</title>
-  
-<p>
-Tapestry 3.0 included an &lt;inherited-binding&gt; element, this was a way to 
directly pass the &IBinding; object for a component parameter
-to a parameter of a nested component. This is no longer supported in Tapestry 
4.0; instead, the property for the component parameter should be 
-bound to the nested component parameter:
-</p>
-
-<source><![CDATA[
-
-  <!-- 3.0 -->
-  
-  <parameter name="itemCount" type="int"/>
-
-  <component id="nested" type="Nested">
-    <inherited-binding name="count" parameter-name="itemCount"/>
-  </component>
-  
-  <!-- 4.0 -->
-  
-  <parameter name="itemCount"/>
-  
-  <component id="nested" type="Nested">
-    <binding name="count" value="itemCount"/>
-  </component>
-
-]]></source>
-
-<warning>
-  inherited-binding may make a comeback in Tapestry 4.0!
-</warning>
-  
 </section>
   
 </section> <!-- upgrade.parameters -->

Modified: tapestry/tapestry4/branches/4.0/status.xml
URL: 
http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/status.xml?rev=397533&r1=397532&r2=397533&view=diff
==============================================================================
--- tapestry/tapestry4/branches/4.0/status.xml (original)
+++ tapestry/tapestry4/branches/4.0/status.xml Thu Apr 27 06:01:06 2006
@@ -71,7 +71,10 @@
                </action>
                <action type="fix" dev="AA" fixes-bug="TAPESTRY-841">
                        Removed unreferenced component from TreeNodeView 
specification.
-               </action>                                       
+               </action>   
+               <action type="add" dev="AA" fixes-bug="TAPESTRY-681">
+                       Added Inherited-binding documentation.
+               </action>                                                       
        </release>
        <release version="4.0.2" date="Apr 13 2006" >
                <action type="update" dev="AA">



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to