Steve Akins wrote:
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
Hi Steve,
I've seen this before but didn't have time to investigate. I just split
the string into an array in my action.
I agree it should work as you've described without a custom converter.
But doesn't. Or doesn't always. Or doesn't give enough feedback about
why it didn't. If you have time, it would be helpful if you can see if
an issue exists in JIRA and if not create one.
regards,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]