Using optiontransferselect tag

Posted on 2011-10-03
Last Modified: 2012-05-12
I am using optiontransferselect tag to show a list of clients in a select box - when a client or 2 is moved to the right hand side and then subsequently moved back to the left box the alphabetical order is no longer maintained  - anyone know a way around this ?

Question by:abuyusuf35
    LVL 47

    Accepted Solution

    You can reorderr the items in the list every time - why not?
    LVL 47

    Expert Comment

    You can havea vector underlying the list and sort the vector every time its contents changes and then repopulate the list
    LVL 47

    Expert Comment

    Sorry, didn't see you are writing about struts

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Understanding @ResponseBody annotation 5 36
    scoresSpecial  challenge 13 35
    countX 22 50
    firstChar challenge 13 57
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now