フォームに optiontransferselect がありますが、右リストで選択したアイテムをアクションに戻す方法がわかりません。
訪問したすべての国の ID を含むリストを取得する必要があります。私は自分のアクションリスト(整数)countriesVisitedId;で試しました。しかし、nullPointerException を返します。次に、整数 ID を試しましたが、null が返されます。
これは私が持っているものです:
s:optiontransferselect
label="Select visited countries"
name="countriesNotVisitedId"
leftTitle="Not visited countries"
rightTitle="Visited Countries"
list="%{countriesNotVisited}"
listKey="id"
listValue="name"
headerKey="countryNotVisitedId"
headerValue="--- Please Select ---"
doubleName="countriesVisitedId"
doubleList="%{countriesVisited}"
doubleHeaderKey="countryVisitedId"
doubleHeaderValue="--- Please Select ---"
doubleListKey="id"
doubleListValue="name" />
アクションで訪れた国の整数 ID を含むリストを取得するにはどうすればよいですか?