Which means, in other words, implementing the whole sort method myself, how lovely. Instead of the table simplifying my life I ended up overriding almost every component inside.
Thanks a lot for all the help, I think I'm going to work without contrib's table. Yael. Ron Piterman wrote: > I am not a table user (never used this component, so I was also never > really followed postings about it), so maybe robert can help better on > that... > > Anyway, the SimpleTableColumn implements the interface > IAdvancedTableColumn, with methods > > ITableRendererSource getColumnRendererSource(); > void setColumnRendererSource(ITableRendererSource columnRendererSource); > > that means: the column header will be rendered by the component > delivered from this object. > > The ITableRendererSource component itself looks like that: > > public IRender getRenderer( > IRequestCycle objCycle, > ITableModelSource objSource, > ITableColumn objColumn, > Object objRow); > > When you create the SimpleTableColumn, you should use another component > source than the default one. > > IComponent extends IRender so you should just give a Block component > back which renders the table's current column header - so, it includes a > DirectLink with statefull=true and listener on the sort method. > > Now I also know why I never used the table component... > Its more JSF style than Tapestry style, thow, very very suffisticated, I > guess too suffisticated for me... > > Cheers, > Ron > -------------------- m2f -------------------- Sent from www.TapestryForums.com Read this topic online here: <<topic_link>> http://www.tapestryforums.com/viewtopic.php?p=13438#13438 -------------------- m2f --------------------