But it translates the List into a meaningful string because the
contents are Strings or Integers, but what about other objects that
doesn't override the toString() method?
Anyway, I suppose you could write a custom type converter for your
List, but I think the current multiple hidden fields soluti
Thanks Gabriel and Jeromy,
I had thought of iterating through the List but was trying to avoid
generating a mass of HTML hidden fields.
I like it how the hidden tag translates the List into a meaningful
String, it's just a shame that Struts/XWork doesn't handle it when the
form is submitted.
I h
Gabriel Belingueres wrote:
You need to iterate the list with an status variable and produce
hidden fields of the following form:
Yeah, that works. It's a pity that OGNL's conversion from list/array to
string doesn't output a string that can be converted back into an
array/list.
--
Steve Akins wrote:
I have a List called "ids" which contains 4 Strings "22030", "6496",
"6457", "6448"
When the following tag is used:
It produces the following HTML:
When the form is submitted the "ids" List is populated with one String
"[22030, 6496, 6457, 6448]" instead of 4 Strings "22
You need to iterate the list with an status variable and produce
hidden fields of the following form:
2008/4/23, Steve Akins <[EMAIL PROTECTED]>:
> I have a List called "ids" which contains 4 Strings "22030", "6496",
> "6457", "6448"
>
> When the following tag is used:
>
>
> It produces the fol
I have a List called "ids" which contains 4 Strings "22030", "6496",
"6457", "6448"
When the following tag is used:
It produces the following HTML:
When the form is submitted the "ids" List is populated with one String
"[22030, 6496, 6457, 6448]" instead of 4 Strings "22030", "6496",
"6457",
6 matches
Mail list logo