You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan Hoskens <jh...@schaubroeck.be> on 2004/02/03 09:45:31 UTC

[woody] repeater row sorting

Hi,

Is it possible to do a sort on a particular widget(one or more) of a row of
a repeater?

Greetings,

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [woody] repeater row sorting

Posted by Antonio Gallardo <ag...@agssa.net>.
Christopher Oliver dijo:
> Seems easy to add:
>
>
> import java.util.*;
>
> public class Repeater {
>         ...
>         public void sortRows(Comparator comp) {
>               Collections.sort(this.rows, comp);
>         }
>         ...
> }
>
>
> Anyone have a reason not to add this?

No problem, here, I prefer to let the database to do this work for us. Of
course some people is not using DB at all. For them can be this useful.

Best Regards,

Antonio Gallardo
>
> Jan Hoskens wrote:
>
>>Hi,
>>
>>Is it possible to do a sort on a particular widget(one or more) of a row
>> of
>>a repeater?
>>
>>Greetings,
>>
>>Jan
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
>>
>


Re: [woody] repeater row sorting

Posted by Christopher Oliver <re...@verizon.net>.
Seems easy to add:


import java.util.*;

public class Repeater {
        ...      
        public void sortRows(Comparator comp) {
              Collections.sort(this.rows, comp);
        }
        ...
}


Anyone have a reason not to add this?

Jan Hoskens wrote:

>Hi,
>
>Is it possible to do a sort on a particular widget(one or more) of a row of
>a repeater?
>
>Greetings,
>
>Jan
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>