struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Akins" <aki...@gmail.com>
Subject Passing a List through a hidden field
Date Wed, 23 Apr 2008 05:36:10 GMT
I have a List called "ids" which contains 4 Strings "22030", "6496",
"6457", "6448"

When the following tag is used:
<s:hidden name="resend.ids" />

It produces the following HTML:

<input type="hidden" name="resend.ids" value="[22030, 6496, 6457,
6448]" id="/test/resend_resend_ids"/>


When the form is submitted the "ids" List is populated with one String
"[22030, 6496, 6457, 6448]" instead of 4 Strings "22030", "6496",
"6457", "6448".


This looks like a problem with how the XWorkBasicConverter is working
or I have just not figured out how to do this yet.

I would have thought that there's support for passing a List through a
form without the need for creating a custom converter for this.

Does anyone have any ideas on how to overcome this problem?


Regards,
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message