this.saison = saison;
}
@Override
protected void populateItem(final ListItem item) {
final InfoSaison infoSaison = (InfoSaison) item.getModelObject();
//Lien vers la page permettant de lister les plaques de la personne.
final Map map = new HashMap();
map.put(DisplayPlaquePersonne.TypeParameters.INFOSAISON, infoSaison);
map.put(DisplayPlaquePersonne.TypeParameters.ISNEW, false);
map.put(DisplayPlaquePersonne.TypeParameters.PERSONNE, infoSaison.getPersonne());
map.put(DisplayPlaquePersonne.TypeParameters.SAISON, this.saison);
try
{
map.put(DisplayPlaquePersonne.TypeParameters.INFOSSAISONS, infoSaison.getPersonne().getInfosSaison());
}
catch (final Exception e)
{
throw new SystemeException(e.getMessage());
}
item.add(HomePage.link("selection", DisplayPlaquePersonne.class, map));
//Série de labels divers...
item.add(new Label("plaqueUnique", new PropertyModel(infoSaison, "plaqueUnique")));
item.add(new Label("prenom", new PropertyModel(infoSaison.getPersonne(), "prenom")));
item.add(new Label("nom", new PropertyModel(infoSaison.getPersonne(), "nom")));
item.add(new Label("pays", new PropertyModel(infoSaison.getPersonne(), "pays")));
}