I'm not so good at tables, but as far as I know I don't know of a way to
pass an argument in the columns definition, so I think (again, this might be
possible) that the line instead should be;

 <binding name="columns" value="literal: date, status:status:convertStatus,
!details"/>

Note that since ognl is default (though not explicit) inside the string,
tapestry will actually look for the method getConvertStatus() in the class
that makes up the list.  Also I think that wht you want to accomplish by
passing that argument is for the method to know which object is being
metnioned. But since that very object knows itels, this is not neccesary.

I'm trying to understand what you want to do. If I understand correctly, you
would like to take a value in a field in a row in a table and replace it
with a link. Is that correct?

Try to have a simple source definition, just

 <binding name="columns" value="literal: date, status, !details"/>

And then I'm a little wary of the text you're trying to output with the span
key statement. SInce it isn't any jwcid, this is nothing that is part of
tapestry.  I would recommend you to instead just try to have ordinary text,
to see if it works, like;

<a href="#" jwcid="showDetails">test</a>

Then I would define a component that maybe wrote the status as a string. If
you add the following to the table definition in your page;

<binding name="row" value="row"/>

And then ad the following methods to you class (the one that has the same
name as the page);

public abstract Object getRow();
public abstract void setRow();

Then you could hwrite this in your html file;

<a href="#" jwcid="showDetails"><span jwcid="@Insert"  value="ognl:
row.status" /></a>

If the method on your list object that gets status is calles getStatus :)

I haven't tried this though, but I hope it works.

Cheers,
PS


On 3/10/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
>
> Hi Peter,
>
> thanks for your reply!
>
> | Hmm. What kind of error are you getting, or what shows on the page?
>
> Well, actually the page shows nothing for this column.
>
> | Also, you are aware that the convertStatus method must be on the row
> object,
> | i.e. the class that the source list is made up of?
>
> No, I wasn't aware of that - not surprising this doesn't work then... ;)
> But as the boolean status is converted to an image asset's path string
> I can't put the method in the list class mentioned: The assets are defined
> in the page class and I think the method has to be there in this case?!
>
> Sincerly,
>   Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to