Hi Doug,

Unfortunately I could only get the grid partially working, couldn't override the header cells either, all the others pieces seemed to override ok. Was probably something trivial in the end that I was missing, but we ended up looking at the source and using bits and pieces to create our own grid component instead... a good grid example is needed on the wiki I think as this topic keeps coming up in this list.

Peter

DougS wrote:
Has anyone been able to override the Grid header?  I have been unable to do
this using <t:parameter name="myPropertyHeader">.

Adam Ayres wrote:
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]





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

Reply via email to