Page 1 of 1

PickList irritation

Posted: 08 Jul 2010, 16:18
by wobblycogs
Would it be possible to make the pick list maintain the source and target columns in alphabetical order or better to use arbitary (server side) sorting?

Looking at the simple pick list example, when the page first loads the source order is: Istanbul, Ankara, Izmir, Antalya, Bursa. Move Istanbul to the target list and back to the source list and the order becomes: Ankara, Izmir, Antalya, Bursa, Istanbul. That's fine for a pick list of a few items but by the time you start getting 20 or more having them ordered, and remain ordered, is important.

What I have noticed it DualListModel.getSource is only called once when the pick list is first created, that's a shame because it looks like it would be a great place to put server side sorting.

Re: PickList irritation

Posted: 08 Jul 2010, 16:25
by cagatay.civici
Please create an issue ticket about your feature request, picklist will be enhanced very soon so any feedback is welcome.

Re: PickList irritation

Posted: 06 Jan 2011, 22:11
by bumble.bee
I've created an issue for this since I couldn't find one already and it's something I want:

http://code.google.com/p/primefaces/iss ... il?id=1600

Re: PickList irritation

Posted: 06 Jan 2011, 22:20
by bumble.bee
Nevermind - I found the orignal issue: http://code.google.com/p/primefaces/iss ... ail?id=563

The part about preventing the client from changing the order is still outstanding though.

Re: PickList irritation

Posted: 06 Jan 2011, 23:52
by cagatay.civici
We can add an attribute to prevent reordering, I'll update the issue.