|
From: =?iso-8859-1?Q?<jp....@ti...> - 2003-09-03 13:15:23
|
Dmitriy,=0D=0A=0D=0AI will split the answer in two parts:=0D=0A1) Html si=
ngle values (most form elements)=0D=0A2) Html multiple values (checkboxes=
, selects with "multiple")=0D=0A=0D=0A1) There is no support for multiple=
commands as I know. In an earlier discussion on this topic, Juergen was =
against this possibility. What I use is a command embedding others as now=
the problems with inner fields are fixed. So you can set 'subCmd1.person=
.name' for example.=0D=0A=0D=0A2) When using multiple Html values, These =
values are wrapped into a Strings array by default. If you prefer have a =
kind of collection instead, you will have to write a propertiesEditor for=
your data type. In this case, you will receive as text value a comma del=
imited String including the values from the array.=0D=0A=0D=0AI use it fo=
r creating an Objects list receiving the ids by this way. If you are inte=
rested, I can provide you some examples. =0D=0A=0D=0ARegards,=0D=0AJean-=
Pierre=0D=0A=0D=0A=0D=0A---------- Initial Header -----------=0D=0A=0D=0A=
From : spr...@li...=0D=0ATo=
: "'spr...@li...'" <springfr=
ame...@li...>=0D=0ACc : =0D=0ADate =
: Wed, 3 Sep 2003 08:37:25 -0400=0D=0ASubject : [Springframework-devel=
oper] Binding to a Collection=0D=0A=0D=0AHi everybody. I have one questio=
n, if any one has a quick answer :-) What=0D=0Awould be the best way to "=
bind" html data into a collection of objects? =0D=0A=0D=0ALet's say I hav=
e an html table in the form, each row representing a=0D=0Amodel/command o=
bject. When submitting this form to a Controller, I would=0D=0Alike to bi=
nd the values from the html table into a Collection of=0D=0Amodel/command=
objects. What would be the best way to do that?=0D=0A=0D=0AThanks,=0D=0A=
Dmitriy.=0D=0A=0D=0AP.S.=0D=0A=0D=0AI believe there was a message about t=
his issue on the list, but I'm to lazy=0D=0Ato search for it ;-)=0D=0A=0D=
=0A=0D=0A=0A=0A********** L'ADSL A 20 EUR/MOIS********** =0AAvec Tiscali,=
l'ADSL est =E0 20 EUR/mois. Vous pourrez chercher longtemps avant de tro=
uver moins cher ! =0APour profiter de cette offre exceptionnelle, cliquez=
ici : http://register.tiscali.fr/adsl/=0AOffre soumise =E0 conditions.=0A=
|