You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jonathan O'Connor <Jo...@xcom.de> on 2005/05/30 13:38:55 UTC

How to override rendering of table components? [auf Viren geprueft]

Folks,
I want to change the html generated in table column headers to something 
like:
<thead><tr>
<th><a href="blah">col1</a><img src="uparrow.gif"/></th>
<th><a href="blah">col1</a><img src="uparrow.gif"/></th>
<th><a href="blah">col1</a><img src="uparrow.gif"/></th>
</tr></thead>

What is the standard way of overriding the rendering of table components?
What do I have to do? Can I simply replace the 
SimpleTableColumnComponent.html? If so, where do I put it? Or can I do 
something clever like defining my own foreach loop on columns?
<table jwcid="tableView@contrib:TableView"
        source="ognl:emailsModel"
        columns="ReceiptTime, From, To, Type, DocumentsImported, Subject, 
Status">
        <thead><tr jwcid="@Foreach" 
source="components.tableView.tableColumnModel.columns" value="tableColumn" 
>
                <th><span jwcid="@Insert" 
value="ognl:tableColumn.columnName"/>
                </th>
        </tr></thead>
        <tr jwcid="tableRows@contrib:TableRows" row="ognl:item" element=
"tr">
                <td jwcid="tableValues@contrib:TableValues" />
        </tr>
        <tr>
                <td jwcid="tablePages@contrib:TablePages" pagesDisplayed=
"ognl:8" />
        </tr>
</table>
Ciao,
Jonathan O'Connor
XCOM Dublin



IBM Workplace 2.5 Launch Events:
XCOM AG und IBM laden zum weltweiten Launch von IBM Workplace Collaboration Services 2.5 nach Duesseldorf, Frankfurt und Berlin: http://lotus.xcom.de/events

XCOM Express Programm:
Der schnelle Einstieg in neueste Technologien zum kleinen Preis - Portale, e-Mail Security und Mobility: http://lotus.xcom.de/express


*** XCOM AG Legal Disclaimer ***

Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein fur den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen.

This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org