Thanks for the info. I'm a little closer, but I'm still having problems.

The basic problems seem to be:

1. When I click a column header my URL ends up having a "#" tacked on to the end of it. If I manually go up and remove it, I see that the sorting did happen (at least the sorting code ran) for the default column. Not sure what this means.

2. Although I created a sortColumn String type, per the email below, and created getter/setters, the sortColumn setter is never called, the getter is called, however. The data table definition has sortColumn = "#{TD.sortColumn}" and the TD class has the sortColumn property with the getter/setter.

Also, if this helps, the sorting only arrow I ever get is over the first column. It never changes direction and it never moves to another column.

Here's my column definition example that doesn't set the property using the setter in the TD class:

 <h:column>
  f:facet name="header">
  <t:commandSortHeader columnName="personName" arrow="true" >                            
    <h:outputText value="#{msgs.PersonName}" />
      </t:commandSortHeader>                            
     </f:facet>                                 
    <h:outputText value="#{update.personName}" />
   </h:column>

I'd be almost done if I could just get clicking on the header to actually set the sortColumn property.

Thanks again for any suggestions.

    Mike

-------------------------------

[EMAIL PROTECTED] wrote:

Hi Mike,

Mike <[EMAIL PROTECTED]> wrote on 12/30/2005 09:29:47 AM:

> Hello,
>
> I think I have everything set up correctly now to sort my Data
> Table, but clicking on a header column still does not call the
> "sort()" method. In fact, nothing happens.
>                      

I had the exact same problem a while back and Simon pointed me in the right direction. Here's the relevant link:
http://www.mail-archive.com/[email protected]/msg10458.html
Hth,
Geeta

Reply via email to