struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Bliznak <pbliz...@gmail.com>
Subject Re: checkbox problem
Date Tue, 26 Oct 2010 01:33:23 GMT
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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message