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.
how to automatically select all in right side box of struts2 optiontransfer. since I
Share
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(){
}
Now the Tag i have used is….
generate getters and setters for the doubleName in your action and you can get the values..