[AIDE] Problème avec les CheckBox
Bonsoir,
dans ma jsp j'ai un tableau et pour chaque ligne on a une CheckBox. Ce tableau sert a pointer la présence ou non d'une personne.
A l'init je récupère les valeur pour pouvoir cocher les CheckBox deja coché (:mouarf:)
Mon code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<logic:notEmpty name="GestionBean" property="employes">
<table class="model1">
<thead>
<tr>
....
<th>Present</th> <%-- Ma CheckBox--%>
</tr>
</thead>
<nested:iterate property="employes" id="prestation" indexId="ctrEmployes">
<td>
...
</td>
...
<td>
Present
<html:checkbox name="employes" property="employes.present" value="true"/>
</td>
</nested:iterate> |
Dans mon action:
Code:
1 2 3 4 5 6 7 8 9 10
|
if(request.getParameter(??)!=null)
{
// checked
}
else
{
// pas checked
checked = false;
} |