Just noticed a typo.  "using up/down error buttons" should be "using up/down
arrow buttons".

Shelli

-----Original Message-----
From: Shelli D. Orton [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2008 2:59 PM
To: [email protected]
Subject: RE: Sort/Rank List Component Suggestion

Hi,

Thanks for the suggestions.  I've looked at both and I don't think either
are what I'm looking for; I may not have explained it well in my first
email.  What I have is a list of objects which have a rank attribute.  What
I would like to do is display the list in the order of the rank and then
when I sort the items in the list have the rank attribute updated
accordingly.  The Wicket application creates data that is used by another
application for display and the items are displayed in it based on the rank.

For example, I have a simple MyObject bean class with a name and rank
attribute:

    class MyObject
    {
        private String name;
        private int rank;

        // getters and setters
    }

and a List of MyObjects with the following values:

    First, 1
    Second, 2
    Third, 3

Ideally, I would like a component that displays the list as:

    First
    Second
    Third

and allows me to move them up and down (either dragging, using up/down error
buttons, etc.) so that I end up with a display of:

    Second
    Third
    First

When the changes are saved, the ranks are updated so that my object values
are now:

    First, 3
    Second, 1
    Third, 2

Hopefully the above is understandable.  It may be that this component
doesn't exist, but sure would be nice if it did!

Thanks again,
Shelli


-----Original Message-----
From: Ryan Sonnek [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2008 6:49 AM
To: [email protected]
Subject: Re: Sort/Rank List Component Suggestion

There's also a drag/drop reordering of lists available using the
scriptaculous library:
http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+Sortable
ListView

On Fri, Mar 28, 2008 at 4:43 AM, Uwe Schäfer <[EMAIL PROTECTED]>
wrote:
> Shelli D. Orton schrieb:
>
>  hi shelli
>  > I'm wondering if there's a Wicket component that allows items in a
single list to be re-ordered.
>  >
>  maybe this is part of what you´re looking for:
>  http://londonwicket.org/content/LondonWicket-ListEditor.pdf
>
>  cu uwe
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to