aspose file tools*
The moose likes Spring and the fly likes Binding to multi-D array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Binding to multi-D array" Watch "Binding to multi-D array" New topic
Author

Binding to multi-D array

Matthew Tripp
Greenhorn

Joined: Jul 15, 2009
Posts: 5
Greetings

I've searched through various threads and did not find anything that answers my problem. PLease forgive if I missed something that actually tells me the answer.

So I'm trying to bind to a formbacking object that contains a multidimensional array. Well not a multi dimensional array, but I've got an object with a list of another kind of objects, and each of these objects also has a list. (is there a term for this sort of construct)

so something like this.




So in my controller I have something like




Now... I have a form into which I want to bind some form:inputs to the properties in the gicklewick lists.

something like this


I have tried the above and it devolves into a number format exception caused by the machinations in the form:input line within the inner foreach. I have also tried



no joy there, with the same exception on the same line as the first example.

note that this


does not cause any errors, and shows the correct value of, in this case, gork.

So I can display, but I cannot figure out how to bind. Anyone worked through something like this?


Thanks in advance.

TRippy


I hate signatures.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Binding to multi-D array