tapestry-user@jakarta.apache.org
[Top] [All Lists]

contribTable and ognl expression

Subject: contribTable and ognl expression
From: Andreas Bulling
Date: Fri, 10 Mar 2006 12:16:51 +0100
Hi everybody,

I started to use contrib:Table instead of the For component yesterday
but now I have a problem and I'm not quite sure how to fix it.
Is it possible to define an ognl method call in the page specification
like this (convertStatus() but this doesn't work):

<component id="recordList" type="contrib:Table">
    <binding name="source" value="recordList"/>
    <binding name="columns" value="literal: date, 
status:status:convertStatus(status), !details"/>
    <binding name="initialSortColumn" value="literal: date"/>
    <binding name="pageSize" value="10"/>
    <binding name="rowsClass" value="beans.evenOdd.next"/>
    <binding name="columnsClass" value="literal:table_head"/>
</component>

In my template I only have

<span jwcid="recordList">
        <span jwcid="detailsColumnValue@Block">
        <a href="#" jwcid="showDetails"><span 
key="show-details">show-details</span></a>
        </span>
</span>

Perhaps, do I have to define the rows/columns explicitly in the template or
create a custom TableModel?

Thanks in advance!
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>