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: [email protected]
For additional commands, e-mail: [email protected]