tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nima Boustanian <n...@tn20.com>
Subject Re: Sorting overriden contrib:Table columns
Date Tue, 04 Apr 2006 11:38:20 GMT
Nevermind, I figured it out.All you need is to give an ognl expression 
to the overriden column block.

So if your override is:
<tr jwcid="SubjectColumnValue@Block">     
    <span jwcid="@Insert" value="ognl:getSubjectColumn"/>
</tr> 

Your column still needs an ognl expression to make the sorting work 
(:title in this case)
columns="Subject:title"




Nima Boustanian wrote:

> Hey all
>
> When you do a column override, is there an easy way to make the 
> overriden columns sortable? (in the page template referably)
>
> The HTML so far on my overriden block is:
> <tr jwcid="PostedColumnValue@Block">      <span jwcid="@Insert" 
> value="ognl:getPostedColumn(components.table.tableRow.createdDate)"/>
> </tr>  
> I'm not using an ITableColumn, only a simple @Insert component in my 
> block. Is the implementation of a
> ITableColumn in the java class the only way to make overriden columns 
> sortable?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message