[ 
http://issues.apache.org/jira/browse/TAPESTRY-958?page=comments#action_12427826 
] 
            
Andreas Andreou commented on TAPESTRY-958:
------------------------------------------

On the other hand, it might actually be useful for the contrib library to 
provide these two components...
Then one could do:
<table jwcid="contrib:Table" ...>
<span jwcid="[EMAIL PROTECTED]">
Add html for the header... <a jwcid="@contrib:ColumnSortLink"><img 
jwcid="@contrib:ColumnSortImage"/></a>
</span>
</table>

So, i'm leaving this open - I think it's a nice idea & we can go ahead with 
this.

> Table column headers with a custom render block cannot be sorted
> ----------------------------------------------------------------
>
>                 Key: TAPESTRY-958
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-958
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Contrib
>    Affects Versions: 4.0.2
>            Reporter: Mathijs den Burger
>            Priority: Minor
>
> With contrib:Table, a custom Block can be used to render a table column 
> header (in my case, I'd like to render an Image in the header instead of the 
> column name). However, the link in the header to sort the column is not 
> rendered anymore when a custom block is used for the column header. This 
> makes the column effectively unsortable, which I would not expect to be 
> desired behavior...
> I guess this can simply be fixed in SimpleTableColumnComponent by rendering 
> the supplied custom Block inside a copy of the "linkColumn" component, so 
> clicking somewhere on content in the custom supplied block (in my case: an 
> image) also sorts the column.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to