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
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">
>>>
>
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
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
-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
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
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
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
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
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
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
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
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
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.
***
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
15 matches
Mail list logo