Moin Moritz,
ich könnt ja in Deutsch antworten, aber dann sind die anderen vielleicht böse.

Hello Moritz,
funny to comunicate with a fellow German in English, but I think it´ s better 
to stick to common ground. There is a quite easy way to accomplish, what you 
want. The Grid component uses a component named GridRows to render the td-Tags. 
Grid and GridRows are located in the package 
org.apache.tapestry.corelib.components. As well as other components those two 
have a corresponding template files. You need to download the GridRows.tml. 
Create a folder org/apache/tapestry/corelib/components under your 
WEB-INF/classes and put the template file there. Then customize it according to 
your needs. The trick is that (at least with Tomcat) the file in the classes 
folder overrules the file in the tapestry-Jar. Maybe this is dirty and 
subclassing the components would be more elegant, but it is very easy and quick.

Following you will find an example of a "moritzised" GridRows.tml

<tr class="${rowClass}" xml:space="default" 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <t:loop source="propertyNames" value="propertyName" 
volatile="inherit:volatile">
        <td class="${cellClass}" id="Max und Moritz">
            <t:gridcell model="columnModel" object="row" 
overrides="componentResources.containerResources"/>
        </td>
    </t:loop>
</tr>

Viele Grüße, nillehammer

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

Reply via email to