Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
: 16 May 2007 18:37 To: Struts Users Mailing List Subject: RE: [Fwd: Best method for dynamic fields round trip] Just off of the top of my head I would probably use a collection or map of name/values... so the tag might look something like:

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
non-zero > based, but that's a non S2 > > story. > > > > Many Many Many thanks. > > > > Al. > > > > > > -Original Message- > > From: Dave Newton [mailto:[EMAIL PROTECTED] > > Sent: 16 May 2007 18:37 > > To: Struts

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Laurie Harper
e non-sequential and almost definatley non-zero based, but that's a non S2 story. Many Many Many thanks. Al. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 18:37 To: Struts Users Mailing List Subject: RE: [Fwd: Best method for dynamic fields round trip]

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
ory. Many Many Many thanks. Al. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 18:37 To: Struts Users Mailing List Subject: RE: [Fwd: Best method for dynamic fields round trip] Just off of the top of my head I would probably use a collection or map of n

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
appreciate a pointer > because at the moment it > looks like we're going to have to use the same > method of going through the > parameter map which feels like it's a bit of a hack > and makes unit testing a > bit more tricky. > > Al. > > > -Origin

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
hack and makes unit testing a bit more tricky. Al. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 18:19 To: Struts Users Mailing List Subject: RE: [Fwd: Best method for dynamic fields round trip] --- Al Sutton <[EMAIL PROTECTED]> wrote: > Tha

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > That's just what I was looking for, thanks Dave. I > was looking for a way to do it with tags, so > I'm now more confident it's best done without > them as opposed to thinking I might have missed > something. Well, I'm just one opinion :) It could still

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
EMAIL PROTECTED] Sent: 16 May 2007 17:02 To: Struts Users Mailing List Subject: Re: [Fwd: Best method for dynamic fields round trip] S2? Build an array or map of the form fields and provide an appropriate setter in the action. Probably easiest to build the form tags by hand (i.e., non tags). So you

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
S2? Build an array or map of the form fields and provide an appropriate setter in the action. Probably easiest to build the form tags by hand (i.e., non tags). So you'd iterate over the dynamic fields, create the tags. On submit you'd end up with a list (or map, or whatever) of the values. Did t

[Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
Any takers?, even saying "Nope, not possible in a nice way" would be useful. --- Begin Message --- I've got an application which has a dynamic number of customisable fields attached to each record. The customisable fields have a display name, an internal name, and a value. Some records have no fie