Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:55:42+00:00 2026-06-05T16:55:42+00:00

how to automatically select all in right side box of struts2 optiontransfer. since I

  • 0

how to automatically select all in right side box of struts2 optiontransfer. since I get NULL if I get the value inside jquery and print it. If I manually select that list using select all button or if manually drag select it all and if I tried, then I get the value. I need it to happen automatically after I transfer it to right side box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:55:44+00:00Added an answer on June 5, 2026 at 4:55 pm

    You have to write a javascript/jquery method for selecting the values on the second list while submitting the form

    for you optiontransferselect tag, specify any for the doubleId attribute and use that id for selecting the values while submitting to the action..

    I will paste what i have done…

    javascript code is…

    function selectJobLocation(){

    var list = document.getElementById("jobLocRight");
    for (var i = 0; i < list.options.length; i++) 
      {
       //alert(list.options[i].value)
       list.options[i].selected = true;
      }
      return true;
    

    }

    Now the Tag i have used is….

                                                <td style="width: 100%; padding:10px;border:none">
                                                <table>
                                                <tr style="border:none">
                                                    <s:optiontransferselect theme="simple" 
                                                    size="10" doubleSize="10"
                                                    cssClass="jobLocationAssigned" doubleCssClass="jobLocationAssigned required"
                                                    allowSelectAll="false" allowUpDownOnLeft="false"
                                                    allowUpDownOnRight="false" requiredposition="center"
                                                    doubleList="{}" 
                                                    list="#application['countriesList']" 
                                                    name="jobLocation"
                                                    **doubleName="selectedJobLocation"**
                                                    **doubleId="jobLocRight"**
                                                    listKey="id"
                                                    listValue="name"
                                                    buttonCssClass="optionTransferButtonCSS" 
                                                    doubleMultiple="true"
                                                    required="true"
                                                    emptyOption="false"
                                                    doubleHeaderKey=""
                                                    ></s:optiontransferselect>
                                                </tr>   
                                                </table>
                                                </td>
    

    generate getters and setters for the doubleName in your action and you can get the values..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to have jquery-ui autocomplete automatically select the answer if there is only
I have a select box with values automatically assigned and need to convert the
Overall Plan Get my class information to automatically optimize and select my uni class
hey guys, I'm trying to build a simple custom select box with jquery. html:
I'm trying to automatically select a menu item in iTunes using applescript. However, every
I'm trying to create a script that will automatically select In Person Interview in
Hi I'm using the wijmo popup calendar. I've managed to automatically select the date
I know that switch / select statements break automatically after every case. I am
In VS2012 when you select a file in solution explorer it automatically opens file
When I select the Português (Portugal) from the languages, the iPhone automatically uses the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.