I post an empty form, MultiselectInterceptor adds an empty string for
>> selectedLongs http param, then Struts internal conversion converts it to an
>> empty instance of List, then setSelectedLongs will be called here with
>> it.
>>
>> Regards.
>>
>>>
gt;> Hi Prasanth,
>>>
>>> Yes, I think. Now I can recall a long discussion about this at [1]. i.e.
>>> you also can
>> keep array list of long but override the interceptor like below [2]:
>>> >> class="com.afs.ListConverterTestAction">
&g
to an
empty instance of List, then setSelectedLongs will be called here with it.
Regards.
>-Original Message-
>From: Prasanth Pasala
>Sent: Wednesday, February 6, 2019 12:30 AM
>To: user@struts.apache.org
>Subject: Re: Struts2 Checkboxlist
>
>Hi Yasser,
>
>
t; From: Prasanth Pasala
>> Sent: Tuesday, February 5, 2019 3:26 AM
>> To: user@struts.apache.org
>> Subject: Re: Struts2 Checkboxlist
>>
>> I am using the defaultStack but the ArrayList used for the checkboxes is of
>> type
>> Long. If we change it to A
-352999309
>-Original Message-
>From: Prasanth Pasala
>Sent: Tuesday, February 5, 2019 3:26 AM
>To: user@struts.apache.org
>Subject: Re: Struts2 Checkboxlist
>
>I am using the defaultStack but the ArrayList used for the checkboxes is of
>type
>Long. If we change
ox is not
> checked. This is part of the default interceptor stack.
>
> Paul
>
> -Original Message-
> From: Prasanth Pasala
> Sent: Monday, February 4, 2019 5:21 PM
> To: user@struts.apache.org
> Subject: Re: Struts2 Checkboxlist
>
> NOTICE: This email orig
fault interceptor stack.
Paul
-Original Message-
From: Prasanth Pasala
Sent: Monday, February 4, 2019 5:21 PM
To: user@struts.apache.org
Subject: Re: Struts2 Checkboxlist
NOTICE: This email originated from outside of the organization. Do not click
links or open attachments unless you recogniz
lected items.
>>
>> Thanks for using Struts!
>>
>> Kind Regards.
>>
>>> -Original Message-----
>>> From: Prasanth
>>> Sent: Saturday, February 2, 2019 1:08 AM
>>> To: user@struts.apache.org
>>> Subject: Struts2 Checkboxlist
&
t;
>Thanks for using Struts!
>
>Kind Regards.
>
>>-Original Message-
>>From: Prasanth
>>Sent: Saturday, February 2, 2019 1:08 AM
>>To: user@struts.apache.org
>>Subject: Struts2 Checkboxlist
>>
>>Hi,
>>
>>I am using a checkbo
method. Normally you should clear baz and fill it with them again
to update selected items.
Thanks for using Struts!
Kind Regards.
>-Original Message-
>From: Prasanth
>Sent: Saturday, February 2, 2019 1:08 AM
>To: user@struts.apache.org
>Subject: Struts2 Checkboxlist
The data class holding the array is in session, done using the scope
interceptor.
Thanks
Prasanth
On February 1, 2019 9:30:30 PM CST, Arjuna Bandara wrote:
>Hi,
>
>As I understand, you need to modify previous Array before saving.
>
>Have you tried Session variable ?
>
>Regards
>
>Arjuna
>
>On S
Hi,
As I understand, you need to modify previous Array before saving.
Have you tried Session variable ?
Regards
Arjuna
On Sat, 2 Feb 2019 3:18 am Prasanth, wrote:
> Hi,
>
> I am using a checkboxlist on a jsp page which corresponds to a ArrayList
> in the form class, which is used to store fo
Hi,
I am using a checkboxlist on a jsp page which corresponds to a ArrayList in the
form class, which is used to store form data from a multi page wizard. I am
using scope interceptor to store the form
class in session so that the data persists as the user navigates the wizard.
When the user se
> testList.add(parent3ForList);
>>
>> testArrayList.add(parent1ForArrayList);
>> testArrayList.add(parent2ForArrayList);
>> testArrayList.add(parent3ForArrayList);
>>
>> }
>>
>>
>> The code
rayList.add(parent2ForArrayList);
> > testArrayList.add(parent3ForArrayList);
> >
> > }
> >
> >
> > The code that's in the JSP:
> >
> > CheckBoxList created from a "List":
> >
> > > listKey="id"
> > listVal
listKey="id"
> listValue="name"/>
>
>
>
> CheckBoxList created from a "ArrayList":
>
>list="testArrayList" listKey="id"
> listValue="name"/>
>
>
> What I'
testArrayList.add(parent3ForArrayList);
}
The code that's in the JSP:
CheckBoxList created from a "List":
CheckBoxList created from a "ArrayList":
What I'm getting back from "valueslist
17 matches
Mail list logo