{
super(id);
Form evenementForm = new Form("evenementForm");
final RadioGroup singleChoice = new RadioGroup("radioGroup", new Model(
""));
singleChoice.setRequired(true);
this.add(singleChoice);
singleChoice.add(new EvenementListView("evenementListView", items));
evenementForm.add(singleChoice);
evenementForm.add(new Button("precedent",
new ResourceModel("precedent"))
{
private static final long serialVersionUID = 3534043602619164257L;
@Override
public void onSubmit()
{
this.setResponsePage(gestionProcessusInscription.onClickEtape(
ProcessusInscription.Etapes.Evenement,
ProcessusInscription.Action.Precedent, null));
}
}.setDefaultFormProcessing(false));
evenementForm.add(new Button("suivant", new ResourceModel("suivant"))
{
private static final long serialVersionUID = 3534043602619164257L;
@Override
public void onSubmit()
{
this.setResponsePage(gestionProcessusInscription.onClickEtape(
ProcessusInscription.Etapes.Evenement,
ProcessusInscription.Action.Suivant, singleChoice
.getModelObject()));
}
});