Author: jkuhnert
Date: Wed Nov 29 10:45:21 2006
New Revision: 480676

URL: http://svn.apache.org/viewvc?view=rev&rev=480676
Log:
Fixes for TAPESTRY-1114. Added better sample reference of using Table component 
invidividual components 
to create a more flexible render.

Modified:
    tapestry/tapestry4/trunk/pom.xml
    tapestry/tapestry4/trunk/src/site/xdoc/index.xml
    
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/multiplepropertyselection.xml
    
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/palette.xml
    
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/table.xml
    
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tablecolumns.xml
    
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tableview.xml
    
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/xtile.xml
    
tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/binding/ClientIdBinding.java

Modified: tapestry/tapestry4/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/pom.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- tapestry/tapestry4/trunk/pom.xml (original)
+++ tapestry/tapestry4/trunk/pom.xml Wed Nov 29 10:45:21 2006
@@ -345,13 +345,11 @@
                 <version>2.1-SNAPSHOT</version>
                 <inherited>true</inherited>
             </plugin>
-            <!--
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>cobertura-maven-plugin</artifactId>
-                <version>2.1-SNAPSHOT</version>
+                <version>2.0</version>
             </plugin>
-             -->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-project-info-reports-plugin</artifactId>
@@ -391,7 +389,7 @@
                 <configuration>
                     <linksource>true</linksource>
                     <aggregate>true</aggregate>
-                    
<excludePackageNames>org.apache.tapestry.timetracker.*:org.apache.tapestry.workbench.*:org.apache.tapestry.vlib.*:org.apache.tapestry.wap.*</excludePackageNames>
+                    
<excludePackageNames>org.apache.tapestry.timetracker:org.apache.tapestry.workbench:org.apache.tapestry.vlib:org.apache.tapestry.wap</excludePackageNames>
                     <tags>
                         <tag>
                             <name>todo</name>
@@ -422,15 +420,15 @@
     <distributionManagement>
         <site>
             <id>tapestry</id>
-            <url>scp://apache.org/www/tapestry.apache.org/tapestry4.1/</url>
+            <url>scpexe://apache.org/www/tapestry.apache.org/tapestry4.1/</url>
         </site>
         <repository>
-            <id>tapestry-repo</id>
-            
<url>scp://apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+            <id>tapestry</id>
+            
<url>scpexe://apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
         </repository>
         <snapshotRepository>
-            <id>tapestry-snapshot-repo</id>
-            
<url>scp://apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
+            <id>tapestry</id>
+            
<url>scpexe://apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
         </snapshotRepository>
     </distributionManagement>
 

Modified: tapestry/tapestry4/trunk/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/src/site/xdoc/index.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- tapestry/tapestry4/trunk/src/site/xdoc/index.xml (original)
+++ tapestry/tapestry4/trunk/src/site/xdoc/index.xml Wed Nov 29 10:45:21 2006
@@ -20,14 +20,14 @@
             
             <p><strong>New Features:</strong></p>
             <ul>
-                <li><b>JSON -</b>  Brand new <a 
href="tapestry-framework/apidocs/org/apache/tapestry/IJSONRender.html">API</a> 
+                <li><b>JSON -</b>  Brand new <a 
href="apidocs/org/apache/tapestry/IJSONRender.html">API</a> 
                                    enabling data communication via the 
                                    <a 
href="http://json.org/";>JSON</a>(JavaScript Object Notation) 
-                                   standard. New <a 
href="tapestry-framework/apidocs/org/apache/tapestry/dojo/IWidget.html">component
 classes</a> 
-                                   and <a 
href="tapestry-framework/apidocs/org/apache/tapestry/services/ResponseBuilder.html">rendering
 schemes</a> also accompany the API addition, allowing anyone to easily 
+                                   standard. New <a 
href="apidocs/org/apache/tapestry/dojo/IWidget.html">component classes</a> 
+                                   and <a 
href="apidocs/org/apache/tapestry/services/ResponseBuilder.html">rendering 
schemes</a> also accompany the API addition, allowing anyone to easily 
                                    add JSON communication to an existing 
component or new components. </li>
                 <li><b>XHR -</b>  The ever popular XML communication format 
has also been added into the 
-                                  <a 
href="tapestry-framework/apidocs/org/apache/tapestry/services/impl/DojoAjaxResponseBuilder.html">Tapestry
 core</a>, 
+                                  <a 
href="apidocs/org/apache/tapestry/services/impl/DojoAjaxResponseBuilder.html">Tapestry
 core</a>, 
                                   allowing most of the common <em>ajax</em> 
concepts to be easily developed in yours 
                                   and existing Tapestry components.</li>
                 <li><b><a href="http://dojotoolkit.org";>Dojo</a> bundled -</b> 
As all of the functionality 
@@ -36,9 +36,9 @@
                                    files. No profile building/installation 
necessary. Just drop the jars in and
                                    get at all of the client side goodies you 
like.</li>
                 <li><b>Widgets -</b> New <a 
href="http://dojotoolkit.org";>dojo</a> toolkit based 
-                                   <a 
href="tapestry-framework/apidocs/org/apache/tapestry/dojo/form/Autocompleter.html">widget</a>
 
-                                   <a 
href="tapestry-framework/apidocs/org/apache/tapestry/dojo/form/DropdownDatePicker.html">components</a>
 
-                                   and complimenting <a 
href="tapestry-framework/apidocs/org/apache/tapestry/dojo/form/IFormWidget.html">foundation</a>
 Component classes make it easy for anyone to create
+                                   <a 
href="apidocs/org/apache/tapestry/dojo/form/Autocompleter.html">widget</a> 
+                                   <a 
href="apidocs/org/apache/tapestry/dojo/form/DropdownDatePicker.html">components</a>
 
+                                   and complimenting <a 
href="apidocs/org/apache/tapestry/dojo/form/IFormWidget.html">foundation</a> 
Component classes make it easy for anyone to create
                                    dojo widgets and use them as Tapestry 
components. The initial 4.1 release won't be
                                    as focused on providing new components as 
it will solid infrastructure support, but
                                    more and more will be included as the 
release matures. Currently included are 
@@ -60,7 +60,7 @@
                                     annotation has been added. This will allow 
people to bind one of their page/component 
                                     class listeners to virtually any client 
side widget/html event concievable. The API also supports
                                     varying types of listening, such as being 
able to submit a form when a particular event happens, 
-                                    or simplying using the new <a 
href="tapestry-framework/apidocs/org/apache/tapestry/event/BrowserEvent.html">BrowserEvent</a>
 
+                                    or simplying using the new <a 
href="apidocs/org/apache/tapestry/event/BrowserEvent.html">BrowserEvent</a> 
                                     object to determine the client side state 
when the event happened. 
                                     <em>(Such as x/y coordinates of mouse 
clicks, event targets, etc..This is pretty
                                     much a literal one-to-one mapping to real 
browser generated Events.)</em></li>

Modified: 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/multiplepropertyselection.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/multiplepropertyselection.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/multiplepropertyselection.xml
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/multiplepropertyselection.xml
 Wed Nov 29 10:45:21 2006
@@ -27,7 +27,7 @@
                 Typically, the values for the object are defined using an
                 org.apache.commons.lang.enum.Enum. A MultiplePropertySelection 
is dependent on an
                 <a
-                    
href="../../tapestry-framework/apidocs/org/apache/tapestry/form/IPropertySelectionModel.html">
+                    
href="../../apidocs/org/apache/tapestry/form/IPropertySelectionModel.html">
                     IPropertySelectionModel
                 </a>
                 to provide the list of possible values.
@@ -90,7 +90,7 @@
                         <td>model</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/form/IPropertySelectionModel.html">
+                                
href="../../apidocs/org/apache/tapestry/form/IPropertySelectionModel.html">
                                 IPropertySelectionModel
                             </a>
                         </td>

Modified: 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/palette.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/palette.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/palette.xml
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/palette.xml
 Wed Nov 29 10:45:21 2006
@@ -73,7 +73,7 @@
                         <td>model</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/form/IPropertySelectionModel.html">
+                                
href="../../apidocs/org/apache/tapestry/form/IPropertySelectionModel.html">
                                 IPropertySelectionModel
                             </a>
                         </td>
@@ -128,7 +128,7 @@
                         <td>
                             Array or collection of
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/form/validator/Validator.html">
+                                
href="../../apidocs/org/apache/tapestry/form/validator/Validator.html">
                                 Validator
                             </a>
                         </td>
@@ -206,7 +206,7 @@
                             downDisabledImage
                         </td>
                         <td>
-                            <a 
href="../../tapestry-framework/apidocs/org/apache/tapestry/IAsset.html">
+                            <a 
href="../../apidocs/org/apache/tapestry/IAsset.html">
                                 IAsset
                             </a>
                         </td>

Modified: 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/table.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/table.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/table.xml
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/table.xml
 Wed Nov 29 10:45:21 2006
@@ -479,7 +479,7 @@
                         <td>columnSettingsContainer</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/IComponent.html">
+                                
href="../../apidocs/org/apache/tapestry/IComponent.html">
                                 <code>IComponent</code>
                             </a>
                         </td>
@@ -613,7 +613,7 @@
                         <td>arrowUpAsset</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/IAsset.html">
+                                
href="../../apidocs/org/apache/tapestry/IAsset.html">
                                 <code>IAsset</code>
                             </a>
                         </td>
@@ -626,7 +626,7 @@
                         <td>arrowDownAsset</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/IAsset.html">
+                                
href="../../apidocs/org/apache/tapestry/IAsset.html">
                                 <code>IAsset</code>
                             </a>
                         </td>
@@ -707,8 +707,6 @@
             </subsection>
 
             <subsection name="Examples">
-
-
                 <p>
                     You can find examples in the Tutorial as part of the 
Workbench application under
                     the "Table" tab.
@@ -741,7 +739,57 @@
                 </p>
 
             </subsection>
-
+            
+            <subsection name="Complicated Render">
+               <p>
+                This example shows how you can use the individual components 
that the Table component wraps to
+                provide more control over how the table is rendered.
+               </p>
+               
+               <subsection name="HTML Template">
+<source><![CDATA[
+
+<table jwcid="[EMAIL PROTECTED]:TableView" 
+       source="ognl:scores"
+columns="name:sampleName,score1:Score 1:getScoreDisplay(0),score2:Score 
2:getScoreDisplay(1),score3:Score 3:getScoreDisplay(2)"
+       >
+    <tr>
+     <span jwcid="@contrib:TableColumns" />
+    </tr>
+   
+   <tr jwcid="[EMAIL PROTECTED]:TableRows" class="ognl:beans.evenOdd.next">
+     <td align="left">
+      <span jwcid="@Insert" 
value="ognl:components.tableRows.tableRow.sampleName" />
+     </td>
+     <td align="right">
+       <span jwcid="@Insert" 
value="ognl:components.tableRows.tableRow.getScoreDisplay(0)" />
+     </td>
+     <td align="right">
+       <span jwcid="@Insert" 
value="ognl:components.tableRows.tableRow.getScoreDisplay(1)" />
+     </td>
+     <td align="right">
+       <span jwcid="@Insert" 
value="ognl:components.tableRows.tableRow.getScoreDisplay(2)" />
+     </td>
+   </tr>
+        
+  <tr>
+    <td colspan="4" class="tablePages">
+      <span jwcid="[EMAIL PROTECTED]:TablePages"/>
+    </td>
+  </tr>
+</table>
+
+]]></source>
+               </subsection>
+               
+               <p>
+                As you can see from the example there really isn't very much 
you can't control on an individual basis.
+                Of particular note is the area doing table row rendering, the 
<code>components.tableRows.tableRow.getFoo</code>
+                reference shows how you can get access to each individual data 
item being iterated over.
+               </p>
+               
+            </subsection>
+            
         </section>
 
     </body>

Modified: 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tablecolumns.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tablecolumns.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tablecolumns.xml
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tablecolumns.xml
 Wed Nov 29 10:45:21 2006
@@ -113,7 +113,7 @@
                     <tr>
                         <td>arrowUpAsset</td>
                         <td>
-                            <a 
href="../../tapestry-framework/apidocs/org/apache/tapestry/IAsset.html">
+                            <a 
href="../../apidocs/org/apache/tapestry/IAsset.html">
                                 IAsset
                             </a>
                         </td>
@@ -126,7 +126,7 @@
                     <tr>
                         <td>arrowDownAsset</td>
                         <td>
-                            <a 
href="../../tapestry-framework/apidocs/org/apache/tapestry/IAsset.html">
+                            <a 
href="../../apidocs/org/apache/tapestry/IAsset.html">
                                 IAsset
                             </a>
                         </td>

Modified: 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tableview.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tableview.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tableview.xml
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/tableview.xml
 Wed Nov 29 10:45:21 2006
@@ -447,7 +447,7 @@
                         <td>columnSettingsContainer</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/IComponent.html">
+                                
href="../../apidocs/org/apache/tapestry/IComponent.html">
                                 <code>IComponent</code>
                             </a>
                         </td>

Modified: 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/xtile.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/xtile.xml?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/xtile.xml
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-contrib/src/site/xdoc/componentreference/xtile.xml
 Wed Nov 29 10:45:21 2006
@@ -55,7 +55,7 @@
                         <td>listener</td>
                         <td>
                             <a
-                                
href="../../tapestry-framework/apidocs/org/apache/tapestry/IActionListener.html">
+                                
href="../../apidocs/org/apache/tapestry/IActionListener.html">
                                 IActionListener
                             </a>
                         </td>

Modified: 
tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/binding/ClientIdBinding.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/binding/ClientIdBinding.java?view=diff&rev=480676&r1=480675&r2=480676
==============================================================================
--- 
tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/binding/ClientIdBinding.java
 (original)
+++ 
tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/binding/ClientIdBinding.java
 Wed Nov 29 10:45:21 2006
@@ -17,6 +17,7 @@
 import org.apache.hivemind.ApplicationRuntimeException;
 import org.apache.hivemind.Location;
 import org.apache.hivemind.util.Defense;
+import org.apache.tapestry.IBinding;
 import org.apache.tapestry.IComponent;
 import org.apache.tapestry.coerce.ValueConverter;
 


Reply via email to