Re: Sorting
Re: Sorting
- Subject: Re: Sorting
- From: Ben Ketteridge <email@hidden>
- Date: Sun, 31 Oct 2004 23:53:05 +0000
On Mon, 1 Nov 2004 09:46:57 +1000, Greg Hulands
<email@hidden> wrote:
> I understand that, but there must be a more efficient way than having
> an action sortName, sortSuburb, etc. Just one sort method that can get
> the column to sort is what I'm trying to find.
I have to admit that the stateless SortOrdering component we have that
does this for us is:
a) based on having a WODisplayGroup for batching & configuration of
sorting - NOT fetching
b) written by one of my collegues, so I don't recall the internal
workings of - though IIRC, it does store the sortings in the bound
display group by means of a bound string key.
This means that it can cause the WODisplayGroup to be sorted by the
selected column's key, and provide the current sort orderings to the
parent page (for fetching) via the WODisplayGroups.sortOrderings()
method.
The component consists of little more than a text string and two
arrows (up & down), that can be dropped into a cell in a results
table. - We use it a great deal, hence it has to be stateless - and it
stores it's state, such as there is, in the WODisplayGroup, where it
belongs.
Ben
--
| Ben Ketteridge email@hidden, aka Gremlin |
| It is by caffeine alone that I set my mind in motion. |
| It is by the coffee that the thoughts acquire speed, |
| the lips acquire stains, the stains become a warning. |
| It is by caffeine alone that I set my mind in motion. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Sorting (From: Greg Hulands <email@hidden>) |
| >Re: Sorting (From: Ben Ketteridge <email@hidden>) |
| >Re: Sorting (From: Greg Hulands <email@hidden>) |