Hi all,
Is there a way I can implement this one?
I know that array of fields is allowed:
<input type="text" name="num" value="1">
<input type="text" name="num" value="2">
And in the action I have:
int[] num; //and its setter
This one is also allowed:
<input type="text" name="myobj.name" value="obj1">
And in the action I have:
MyObj myobj; //and its setter
How about if I want multiple objects in my form?
Something like :
<input type="text" name="myobj.name" value="obj1">
<input type="text" name="myobj.name" value="obj2">
And in the action I have:
MyObj[] myobj;
But this is not allowed!
FYI: Any work around? I have a lot of fields in myobj.
Please help!
Thanks in advanced! ^__^