}
private void createComponents(final Course course, final boolean isMale)
{
final RadioGroup singleChoice = new RadioGroup("radioGroup", new Model(
""));
singleChoice.setRequired(true);
this.add(singleChoice);
if (isMale)
{
singleChoice.add(new CategoriesSelectionListView(
"categoriesSelectionListView", course.getTarifications()
.getTarificationsOfMale()));
}
else
{
singleChoice.add(new CategoriesSelectionListView(
"categoriesSelectionListView", course.getTarifications()
.getTarificationsOfFemale()));
}
this.add(new Button("ajouter")
{
private static final long serialVersionUID = 3534043602619164257L;
@Override
public void onSubmit()
{
final SignInSession session = (SignInSession) this.getSession();
final Tarification tarification = (Tarification) singleChoice
.getModelObject();
if (!tarification.equals(null))
{
InscriptionsApp app = (InscriptionsApp) this