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.
PickList irritation
-
- Posts: 47
- Joined: 19 Apr 2010, 19:09
- Location: Gloucester, UK
PrimeFaces 3.0.1, Mojarra 2.1.3, GlassFish 3.1.1, Netbeans 7.0, Firefox 7
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please create an issue ticket about your feature request, picklist will be enhanced very soon so any feedback is welcome.
- bumble.bee
- Posts: 723
- Joined: 29 Sep 2010, 21:39
- Location: United States
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
http://code.google.com/p/primefaces/iss ... il?id=1600
- bumble.bee
- Posts: 723
- Joined: 29 Sep 2010, 21:39
- Location: United States
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.
The part about preventing the client from changing the order is still outstanding though.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
We can add an attribute to prevent reordering, I'll update the issue.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests