probleme lors du submit, parametres null
Bonjour,
en fait, j'ai une liste d'enregistrement que je recupere de la base
et j'affiche en nested:text
et pour chaque entree, il y a un form avec le submit
je voudrais afficher dans le champs text la valeur par defaut
et une fois je modifie un ou plusiers champs et clique sur valiider
je lance l'update pour chaque entree soumise
le probleme est que , lors du submit, les proprietes passent tous null !
ci dessous le code.
Cdlt
Xavier
Citation:
<logic:notEmpty name="familleComptableEditForm"
property="familleComptables">
<nested:iterate id="famComptIt" name="familleComptableEditForm"
property="familleComptables" indexId="testId"
type="com.test.FamilleComptable">
<tr>
<nested:form action="EditFamCompt.do?do=updateFamilleComptable>
<td
style="width: 4140px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 25px; text-align: left;">
<span style="font-size: 10pt"> <nested:text
style="width: 132px" property="famCode" name="famComptIt" indexed="true"/></span></td>
<td
style="width: 12707px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 25px; text-align: left;">
<span style="font-size: 10pt"> <nested:text
style="width: 132px" property="famDesc" name="famComptIt" indexed="true"/></span></td>
<td
style="width: 10881px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 25px; text-align: left;">
<span style="font-size: 10pt"> <nested:text
style="width: 132px" property="famFicheAff" name="famComptIt" indexed="true"/></span></td>
<td
style="width: 5309px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 25px; text-align: left;">
<span style="font-size: 10pt"> <nested:text
style="width: 132px" property="famReport2" name="famComptIt" indexed="true"/></span></td>
<td
style="width: 6104px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 25px; text-align: left;">
<span style="font-size: 10pt"> <nested:text indexed="true"
style="width: 132px" property="famReport3" name="famComptIt" /></span></td>
<td
style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 25px;">
<nested:submit indexed="true" >valider</nested:submit>
</td>
</nested:form>
</tr>
</nested:iterate>
</logic:notEmpty>