You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Julien Leonard <jl...@gmail.com> on 2007/06/25 14:51:09 UTC
[S2] OptionTransferSelect in 2.0.8
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] OptionTransferSelect in 2.0.8
Posted by Adam Ruggles <a....@gmail.com>.
https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41243
WW-1993
Musachy Barroso wrote:
> What if the ticket number? That would be a major issue
>
> regards
> musachy
>
> On 6/25/07, Adam Ruggles <a....@gmail.com> wrote:
>>
>> 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: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] OptionTransferSelect in 2.0.8
Posted by Musachy Barroso <mu...@gmail.com>.
What if the ticket number? That would be a major issue
regards
musachy
On 6/25/07, Adam Ruggles <a....@gmail.com> wrote:
>
> 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: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >>
> >>
> >
> >
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
Re: [S2] OptionTransferSelect in 2.0.8
Posted by Adam Ruggles <a....@gmail.com>.
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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
>
>
Re: [S2] OptionTransferSelect in 2.0.8
Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-S2--OptionTransferSelect-in-2.0.8-tf3975978.html#a11296304
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org