The way I do this is by overriding the column name;

Inside the table definition in the html file;

<div jwcid="[EMAIL PROTECTED]">
   ....
</div>

Where column is the name of your column/property. I fyou have a property
named name with getName()/steName, this would be just "name".

Then you can edit the looks and behaviour by defining a DirectLink to a
method in your page class, which maybe set some state object and redirects
to an edit page or so;

...   ->  <div jwcid="@DirectLink" listener="listener:myMethod"
parameters="ognl:currentRow"/>

Where your currenRow would be the variable you deifne in the table
definition to hold the value of the object every time you loop through.

Cheers,
PS

On 6/2/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:

I am looking for something like this too. How to make the rows in a
contrib:Table clickable links, so I can edit the properties of that row
and
eventually delete it.

If someone could post an example on how to do it, it would be great.

On 6/2/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote:
>
> <table jwcid="successTable" border="1" />
>
> <component id="successTable" type="contrib:Table">
>         <binding name="source" expression="listSuccesTable"/>
>         <binding name="columns" expression="'Tsi_traffic.id_traffic: ID
> :id_traffic
>
> ,Tsi_traffic.time: Time :time
>
> ,Tsi_traffic.jns_tsi: Jenis :jns_tsi'"/>
>
> </component>
>
>
> i want to make one of my columns (which is the value get from dtbase as
> primary key) as a link
> when i click it i get the value
>
> could anyone help me ?
>
> i have try TapestryTable.war
> but it didn't work....
>
>


--
Cumprimentos,
Rui Pacheco


Reply via email to