I should have been more clear that I need to create a control to allow the
user to change the order in a list.  I am able to sort the list before it is
rendered just fine.  What I need to do is to loop through the table once it
has been re-ordered by the user and then set a sort order in the DB based on
the order of the rows in the table.

I believe the solution Ryan mentioned earlier in this thread is capable of
doing what I need, but I have not been able to get it to work yet in the
context that I need it.  I was able to get his solution working with an
unordered list in a WebPage, but the panel I need the list/table on is
swapped in via AJAX which seems to be creating a javascript error.


Johan Compagner wrote:
> 
> the wicket way would be to sort it in java. use Arrays.sort and a
> comparator
> 
> johan
> 
> 
> 
> On Thu, Mar 6, 2008 at 12:00 AM, jeredm <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> I am looking for an easy way to sort single items within a
>> list...basically I
>> need to re-order a list.  For example, I have 30 table rows and I want to
>> move row 13 to be before row 10.  An example I found that is similar to
>> what
>> I am looking for is located at http://demos.mootools.net/Sortables.  Does
>> anybody know an easy way to implement this type of solution (an easy to
>> re-order list) in Wicket?  My list size is probably more than 10 and less
>> than 100.  Thanks for any help!
>> --
>> View this message in context:
>> http://www.nabble.com/Sorting-a-list-tp15862619p15862619.html
>> Sent from the Wicket - User mailing list archive at
>> Nabble.com<http://nabble.com/>
>> .
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Sorting-a-list-tp15862619p15879305.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to