To do this, you need to construct the BeanModel yourself, by injecting
the BeanModelSource service.

You can then add a new column, say "trashcan".

 model.add("trashcan", null).order(1000).label("Delete ?");

You can then provide a parameter:

<t:comp type="Grid" ...>
 <t:parameter name="trashcanCell">
    ...
 </t:parameter>
</t:comp>

Alas, I forgot to add that version of model.add() where you can pass
in the PropertyConduit.

So you'll have to wait for me to make a couple of changes ...

On 2/15/07, Ted Steen <[EMAIL PROTECTED]> wrote:
Hi!

I'm trying out the new Grid component and I am having some troubles
with the flexibility of the row's apperence.
My model is very different from the view (eg. there should be a little
trashcan accociated with some of the rows in order to be able to
delete that row etc.)
Are there any plans on letting us customise our own rows? maybe a
parameter "row" that takes a block or similar?...

/Ted

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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to