You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-dev@incubator.apache.org by Rogers Reilly <ro...@s-rod.com> on 2006/05/10 00:37:42 UTC
defaultSortOrder on ?
I've got several situations where I need a table needs to be sortable by
a given column in descending order first--that is, the "natural" outcome
of a user clicking on a column heading would be to sort descending.
(Image a table of customers with columns for Revenue, Growth Rate, # of
Orders, etc.) Currently, unless I'm missing something, <af:table> will
always sort ascending on a user's first click. Would it make sense to
add an attribute to the column tag allowing a developer to override this
default?
Thanks,
Rogers
Re: defaultSortOrder on ?
Posted by Adam Winer <aw...@gmail.com>.
Rogers,
Could you file a JIRA issue to add defaultSortOrder to af:table?
Thanks,
Adam
On 5/11/06, Rogers Reilly <ro...@s-rod.com> wrote:
> Thanks for the link, Matthias. Yeah, the only thing stopping me from
> using the Tomahawk datatable is the lack of PPR- as soon as I can stick
> a partialTriggers="xxx" attribute on it, I'm there. :-) If (the
> lack of) defaultSortOrder seems like a big enough problem for the ADF
> datatable, though, I may look into nesting the Tomahawk datatable inside
> an <af:panelGroup> to get my PPR ...
>
> Rogers
>
> Matthias Wessendorf wrote:
>
> > Rogers,
> >
> > you may take a look at [1]
> >
> > -Matthias
> >
> > [1] http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables
> >
> > On 5/10/06, Arjuna Wijeyekoon <ar...@gmail.com> wrote:
> >
> >> interesting. this does make sense.
> >>
> >> On 5/9/06, Rogers Reilly <ro...@s-rod.com> wrote:
> >> >
> >> > I've got several situations where I need a table needs to be
> >> sortable by
> >> > a given column in descending order first--that is, the "natural"
> >> outcome
> >> > of a user clicking on a column heading would be to sort descending.
> >> > (Image a table of customers with columns for Revenue, Growth Rate,
> >> # of
> >> > Orders, etc.) Currently, unless I'm missing something, <af:table>
> >> will
> >> > always sort ascending on a user's first click. Would it make sense to
> >> > add an attribute to the column tag allowing a developer to override
> >> this
> >> > default?
> >> >
> >> > Thanks,
> >> > Rogers
> >> >
> >>
> >>
> >
> >
>
>
Re: defaultSortOrder on ?
Posted by Rogers Reilly <ro...@s-rod.com>.
Thanks for the link, Matthias. Yeah, the only thing stopping me from
using the Tomahawk datatable is the lack of PPR- as soon as I can stick
a partialTriggers="xxx" attribute on it, I'm there. :-) If (the
lack of) defaultSortOrder seems like a big enough problem for the ADF
datatable, though, I may look into nesting the Tomahawk datatable inside
an <af:panelGroup> to get my PPR ...
Rogers
Matthias Wessendorf wrote:
> Rogers,
>
> you may take a look at [1]
>
> -Matthias
>
> [1] http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables
>
> On 5/10/06, Arjuna Wijeyekoon <ar...@gmail.com> wrote:
>
>> interesting. this does make sense.
>>
>> On 5/9/06, Rogers Reilly <ro...@s-rod.com> wrote:
>> >
>> > I've got several situations where I need a table needs to be
>> sortable by
>> > a given column in descending order first--that is, the "natural"
>> outcome
>> > of a user clicking on a column heading would be to sort descending.
>> > (Image a table of customers with columns for Revenue, Growth Rate,
>> # of
>> > Orders, etc.) Currently, unless I'm missing something, <af:table>
>> will
>> > always sort ascending on a user's first click. Would it make sense to
>> > add an attribute to the column tag allowing a developer to override
>> this
>> > default?
>> >
>> > Thanks,
>> > Rogers
>> >
>>
>>
>
>
Re: defaultSortOrder on ?
Posted by Matthias Wessendorf <ma...@apache.org>.
Rogers,
you may take a look at [1]
-Matthias
[1] http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables
On 5/10/06, Arjuna Wijeyekoon <ar...@gmail.com> wrote:
> interesting. this does make sense.
>
> On 5/9/06, Rogers Reilly <ro...@s-rod.com> wrote:
> >
> > I've got several situations where I need a table needs to be sortable by
> > a given column in descending order first--that is, the "natural" outcome
> > of a user clicking on a column heading would be to sort descending.
> > (Image a table of customers with columns for Revenue, Growth Rate, # of
> > Orders, etc.) Currently, unless I'm missing something, <af:table> will
> > always sort ascending on a user's first click. Would it make sense to
> > add an attribute to the column tag allowing a developer to override this
> > default?
> >
> > Thanks,
> > Rogers
> >
>
>
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com
Re: defaultSortOrder on ?
Posted by Arjuna Wijeyekoon <ar...@gmail.com>.
interesting. this does make sense.
On 5/9/06, Rogers Reilly <ro...@s-rod.com> wrote:
>
> I've got several situations where I need a table needs to be sortable by
> a given column in descending order first--that is, the "natural" outcome
> of a user clicking on a column heading would be to sort descending.
> (Image a table of customers with columns for Revenue, Growth Rate, # of
> Orders, etc.) Currently, unless I'm missing something, <af:table> will
> always sort ascending on a user's first click. Would it make sense to
> add an attribute to the column tag allowing a developer to override this
> default?
>
> Thanks,
> Rogers
>