Re: Struts2 Checkboxlist

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

Re: Struts2 Checkboxlist

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

RE: Struts2 Checkboxlist

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

Re: Struts2 Checkboxlist

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

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
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 originate

RE: Struts2 Checkboxlist

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

Re: Struts2 Checkboxlist

2019-02-04 Thread Prasanth Pasala
Is that how Struts2 is expected to work? Meaning setFoo would not be called if non of the Foo checkboxes are selected? I know that is how Struts1 worked. Thanks, Prasanth On 2/2/19 7:08 PM, Prasanth Pasala wrote: > Hi Yasser, > > When none of the checkboxes is selected the setFoo is not getting

RE: Struts2 Checkboxlist

2019-02-02 Thread Prasanth Pasala
Hi Yasser, When none of the checkboxes is selected the setFoo is not getting called. Thanks Prasanth On February 2, 2019 8:02:07 AM CST, Yasser Zamani wrote: >Hi Prasanth, > >AFAIK this tag is like this: > > > >It calls getBar method of your action or finds bar in value stack to >find out

RE: Struts2 Checkboxlist

2019-02-02 Thread Yasser Zamani
Hi Prasanth, AFAIK this tag is like this: It calls getBar method of your action or finds bar in value stack to find out what to display. Same for baz to find out which to be selected. Then it calls yourAction.setFoo to post selected items. i.e. it is up to you what you do with it in setFoo

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

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

Re: [Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Dave Newton
Isn't XWorkList a sub-class of ArrayList? --- Jon D Cruz [EMAIL PROTECTED] wrote: I've been wracking my brains on this issue for the last day and wonder if someone out there can help. *** I'm using an ArrayListParent to populate a CheckBoxList on my JSP. *** The Parent object has an id

Re: [Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Martin Gainty
yes it is.. M- Isn't XWorkList a sub-class of ArrayList? --- Jon D Cruz [EMAIL PROTECTED] wrote: I've been wracking my brains on this issue for the last day and wonder if someone out there can help. *** I'm using an ArrayListParent to populate a CheckBoxList on my JSP. ***

Re: [Struts2] CheckBoxList returns XWorkList instead of ArrayList

2007-10-17 Thread Jon D Cruz
Yeah, you can chalk this one up as a duh moment for me. I'm using the Db4o object database to save my objects, and it was erroring out when I was trying to save an ArrayListString retrieved from the form, (but Struts2 was returning an XWorkList instead). Struts is just doing what it should