the site you mentioned has incorrect null list list examples the correct examples are located at http://struts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/components/OptionTransferSelect.html better to populate list atrribute with valid values such as list="{'Wes Wannemacher', 'Paul Benedict', 'Rainer Hermanns','Musachy Barosso','Dave Newton'}"
Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 27 Apr 2010 05:26:16 -0700 > From: roger.var...@googlemail.com > To: user@struts.apache.org > Subject: OptionTransferSelect in 2.1.8 > > > Is there a known issue with this tag or am I missing something obvious? I've > been struggling to get this to work so after googling I copied the example > from > http://www.roseindia.net/struts/struts2/struts2uitags/optiontransferselect-tag.shtml > which worked. However as soon as I try to change the tags so that the > content of the LHS side is loaded by my action rather than from the jsp, I > start to run into trouble. > > So first up I changed to > > <s:form> > <s:optiontransferselect > label="Employee Records" > name="leftSide" > leftTitle="RoseIndia" > rightTitle="JavaJazzUp" > list="defaultRole" > headerKey="headerKey" > headerValue="--- Please Select ---" > doubleName="rightSideEmployeeRecords" > doubleList="{'Amar Deep Patel', 'Amit Kumar','Chandan Kumar', > 'Noor Kumar','Tammana Kumari'}" > doubleHeaderKey="doubleHeaderKey" > doubleHeaderValue="--- Please Select ---" /> > > > <s:submit type="button" label="Add" action="add-user-create" > cssClass="formButton"/> > </s:form> > > > I have methods in my action for getDefaultRole() and setDefaultRole() which > return and save a List<String> and I have methods for getLeftSide() and > setLeftSide() which again return and save List<String>. However when I try > to run my action I get; > > org.apache.jasper.JasperException: tag 'optiontransferselect', field 'list', > name 'leftSide': The requested list key 'defaultRole' could not be resolved > as a collection/array/map/enumeration/iterator type. Example: people or > people.{name} - [unknown location] > > The getters & setters are definately present and are declared as public. > However these getters & setters are not being called. > > What on earth am I doing wrong? > > Regards > > -- > View this message in context: > http://old.nabble.com/OptionTransferSelect-in-2.1.8-tp28376292p28376292.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4