Something broke between 2.0.6 and 2.0.8 when posting collections. You
will need to create a conversions properties file for your action. I've
logged a bug but I haven't had any feed back on it yet.
Felipe Rodrigues wrote:
HI,
I'm having a similar problem.
My action only get's the really selected(Highlighted) values of
doubleSelect. If I don't click in at least one, I get an null object in the
list inside my action.
did anything changed?
Tahnks,
Felipe
Julien Leonard wrote:
Hi all,
In 2.0.6, I used optiontransfertselect with Long params like this :
<s:optiontransferselect
leftTitle="%{getText('saving.input.countries.available')}"
rightTitle="%{getText('saving.input.countries.selected')}"
doubleList="saving.countries"
doubleListKey="id"
doubleListValue="%{getText(i18nKey)}"
doubleName="selectedCountries"
doubleId="saveSaving_selectedCountries"
id="saveSaving_availableCountries"
list="availableCountries"
listKey="id"
listValue="%{getText(i18nKey)}"
allowUpDownOnLeft="false"
allowUpDownOnRight="false">
allowUpDownOnRight="false"></s:optiontransferselect>
in my action I have this :
private List<Long> selectedCountries = new LinkedList<Long>();
public List<Long> getSelectedCountries()
{
return selectedCountries;
}
public void setSelectedCountries( List<Long> selectedCountries )
{
this.selectedCountries = selectedCountries;
}
In 2.0.6, it was good. But in 2.0.8 have a
java.lang.ClassCastException: java.lang.String when I want to acces to
the selectedCountries List.
In fact struts inject a xworkList typed as String.
Is it a bug of 2.0.8 ?
Can I resolve it?
Julien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]