struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: checkbox problem
Date Tue, 26 Oct 2010 01:39:45 GMT
Same way they're generated now, with the checkbox tag, or by hand. Or use a map.

And there's no "of course": people use both versions.

Dave

On Monday, October 25, 2010, Peter Bliznak <pbliznak@gmail.com> wrote:
> Hi Dave,
> using S2 of course.
> not sure I am getting what you suggested. I have dynamic list and have no
> idea what size is going to be (inside my jsp which was created prior to that
> call)-- how would you then create hidden parameters dynamically?
>
> On Mon, Oct 25, 2010 at 9:19 PM, Dave Newton <davelnewton@gmail.com> wrote:
>
>> Which version of Struts?
>>
>> Struts 2 uses a hidden field to deal with default (unchecked) values.
>> Struts 1 ActionForms used the reset() method to pre-load default
>> values.
>>
>> Dave
>>
>> On Mon, Oct 25, 2010 at 9:16 PM, Peter Bliznak <pbliznak@gmail.com> wrote:
>> > Hi,
>> > I have a list over which I am iterating - it has checkbox and other
>> fields.
>> > I know I can define array associated with checkbox's values but that only
>> > returns values which were checked. In my other column I have date and I
>> have
>> > to make that date associated with checkbox's state. How am I supposed to
>> do
>> > that?........Say I get five values in table and decide to check 2 of them
>> > but array is only going to return true for 2 elements ...Is there any way
>> I
>> > would define collection/array for checkboxes and it would return ALL
>> value
>> > including those which were unchecked?...
>> > Regards
>> > Peter.
>> >
>>
>> ---------------------------------------------------------------------
>> 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


Mime
View raw message