* @see wicket.markup.html.form.Form#onSubmit()
*/
@Override
protected void onSubmit()
{
AffiliationsClubs affClubs = ListClubsPanel.this.affClubs;
for (ClubLine line : ListClubsPanel.this.listeClubsLine)
{
//Si on veut ajouter le club a a saison
if (line.getEtat())
{
try
{
affClubs.createAffiliationClub(ListClubsPanel.this.saison, line.getClub());
super.error(String.valueOf(affClubs.size())+"Ajouté..."+line.getNomComplet());
}
catch (ActionException e)
{
throw new SystemeException(e);
}
}
//Si on veut supprimer le club de la saison.
else
{
try
{
affClubs.RemoveAffiliationClub(ListClubsPanel.this.saison, line.getClub());
}
catch (ActionException e)
{
throw new SystemeException(e);
}