I too wish to override the header cells of my grid but I am not able to
get this to work. The cell override works correctly, but I am not able
to get the header override to work. I am on 5.0.7, here is a simplified
version of the code I am using:
<t:grid ...>
<t:parameter name="myPropertyCell">
<t:myPropertyCellRenderer />
</t:parameter>
<t:parameter name="myPropertyHeader">
<t:myPropertyHeaderRenderer />
</t:parameter>
</t:grid>
Thanks,
Adam
-----Original Message-----
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 5:25 PM
To: Tapestry users
Subject: Re: Override Header Names for Grid Component
Grid can be customized much like a cell; you provide a <t:parameter>
with the name "propertyheader" (that is, the property name with suffix
"header") and you can put whatever you want into the header at that
point. Tapestry will render the <TH> element, your parameter renders
everything inside.
On Jan 9, 2008 12:00 AM, Peter Stavrinides <[EMAIL PROTECTED]>
wrote:
I didn't seem to get any response, let me try rephrase this question,
how do you customize the grid component, particularly the header... I
want to add an icon or two, I noticed in the docs there is a
GridColumns
component as well, an example would really help me out.
Thanks,
Peter
Peter Stavrinides wrote:
Hi
I have a simple grid component and I wish to override the grids
header
names with different names or even an image in some cases (or a
combination of text and an image)
Is this possible using a <parameter> option? something like this
example that I am using for rendering a cell
<t:parameter name="IsDueDiligenceValueCell">
<t:if test="fd.IsDueDiligenceValue">
/castle/images/rookicon.gif Due Diligence
</t:if> </t:parameter>
Thanks,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]