Re: Struts2 Checkboxlist

2019-02-06 Thread Prasanth Pasala
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. >> >>>

Re: Struts2 Checkboxlist

2019-02-06 Thread Prasanth Pasala
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

RE: Struts2 Checkboxlist

2019-02-06 Thread Yasser Zamani
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, > >

Re: Struts2 Checkboxlist

2019-02-05 Thread Prasanth Pasala
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

RE: Struts2 Checkboxlist

2019-02-05 Thread Yasser Zamani
-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

Re: Struts2 Checkboxlist

2019-02-04 Thread Prasanth Pasala
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

RE: Struts2 Checkboxlist

2019-02-04 Thread Paul Zepernick
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

Re: Struts2 Checkboxlist

2019-02-04 Thread Prasanth Pasala
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 &

RE: Struts2 Checkboxlist

2019-02-02 Thread Prasanth Pasala
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

RE: Struts2 Checkboxlist

2019-02-02 Thread Yasser Zamani
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

Re: Struts2 Checkboxlist

2019-02-01 Thread Prasanth
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

Re: Struts2 Checkboxlist

2019-02-01 Thread Arjuna Bandara
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

Struts2 Checkboxlist

2019-02-01 Thread Prasanth
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

Re: [Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Jon D Cruz
> testList.add(parent3ForList); >> >> testArrayList.add(parent1ForArrayList); >> testArrayList.add(parent2ForArrayList); >> testArrayList.add(parent3ForArrayList); >> >> } >> >> >> The code

Re: [Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Martin Gainty
rayList.add(parent2ForArrayList); > > testArrayList.add(parent3ForArrayList); > > > > } > > > > > > The code that's in the JSP: > > > > CheckBoxList created from a "List": > > > > > listKey="id" > > listVal

Re: [Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Dave Newton
listKey="id" > listValue="name"/> > > > > CheckBoxList created from a "ArrayList": > >list="testArrayList" listKey="id" > listValue="name"/> > > > What I'

[Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Jon D Cruz
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