You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "paul.tran" <Pa...@emergis.com> on 2006/11/30 16:36:36 UTC

Re: Problem with
Hi, 

I have the same problem here. Can you give me more details on the java code
you made to do the sort?

Thanks!


GRamani wrote:
> 
> Simon Kitching <sk...@obsidium.com> wrote on 10/18/2005 05:25:13 PM:
> 
>> 
>> The "sortColumn" attribute should point to a backing bean property that 
>> is of type String. That property gets set (ie its setter gets called) 
>> with the columnName value of whatever column the user chose to sort on.
>> 
>> The "sortAscending" attribute should point to a backing bean property 
>> that is of type boolean. That property gets set to true/false when the 
>> user clicks repeatedly on the same column header (ie sorts 
>> asc/desc/asc/desc).
>> 
>> Your worklist.assignments method (ie the one referred to by the table's 
>> "value" attribute) is then required to look at the backing bean's 
>> properties that are the target of sortColumn and sortAscending and 
>> return its list in the order specified by those (String, boolean) 
>> properties.
>> 
>> I hope that's the info you were looking for.
> 
> Thanks very much, Simon! This is exactly the information I was looking for 
> - my sorting works now..:)
> 
>> 
>> Regards,
>> 
>> Simon
>> 
> 
> Geeta
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-%3Ct%3AcommandSortHeader-within-%3Ct%3AdataTable-tf421743.html#a7621552
Sent from the MyFaces - Users mailing list archive at Nabble.com.