PickList irritation

UI Components for JSF
Post Reply
wobblycogs
Posts: 47
Joined: 19 Apr 2010, 19:09
Location: Gloucester, UK

08 Jul 2010, 16:18

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Jul 2010, 16:25

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

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

06 Jan 2011, 22:11

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

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

06 Jan 2011, 22:20

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Jan 2011, 23:52

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests