1. Click
  2. CLK-154

Enhance PropertySelect control to allow ordering of option list.


    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: extras
    • Labels:


      The PropertySelect control currently doesn't let you specify the order the options list so it's in the order the cayenne query returned which is ordered by primary key.

      Most use cases i have of the PropertySelect control (and assume other people as well) would like it to be ordered alphabetically ASC by whatever you pass in as the label (setOptionLabel method). So maybe modify the default behaviour? Or add a flag to set it to do this.

      Also there maybe some use cases where you want to order by something different so maybe add an optional setOrdering method that passes in an org.objectstyle.cayenne.query.Ordering object to add to the PropertySelect query.


        David Frizelle created issue -
        Malcolm Edgar made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Malcolm Edgar added a comment -

        Checked into SVN will be available in release 1.2

        Malcolm Edgar added a comment - Checked into SVN will be available in release 1.2
        Malcolm Edgar made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Malcolm Edgar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1d 1h 2m 1 Malcolm Edgar 12/Dec/06 20:08
        In Progress In Progress Resolved Resolved
        24m 36s 1 Malcolm Edgar 12/Dec/06 20:33
        Resolved Resolved Closed Closed
        104d 1h 15m 1 Malcolm Edgar 26/Mar/07 21:48


          • Assignee:
            Malcolm Edgar
            David Frizelle
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: