Board index JavaServer Faces General PickList irritation

PickList irritation

Components, Ajax Framework, Utilities and More.

Post 08 Jul 2010, 16:18

Posts: 47
Location: Gloucester, UK
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.
PrimeFaces 3.0.1, Mojarra 2.1.3, GlassFish 3.1.1, Netbeans 7.0, Firefox 7

Post 08 Jul 2010, 16:25

Posts: 17241
Location: Cybertron

Please create an issue ticket about your feature request, picklist will be enhanced very soon so any feedback is welcome.

Post 06 Jan 2011, 22:11

Posts: 723
Location: United States
I've created an issue for this since I couldn't find one already and it's something I want:

Post 06 Jan 2011, 22:20

Posts: 723
Location: United States
Nevermind - I found the orignal issue:

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

Post 06 Jan 2011, 23:52

Posts: 17241
Location: Cybertron

We can add an attribute to prevent reordering, I'll update the issue.

Return to General