Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.Radio


      add(group);
      ListView persons = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Radio("radio", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      };
      group.add(persons);
View Full Code Here


      add(group);
      ListView persons = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Radio("radio", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      }.setReuseItems(true);
      group.add(persons);
View Full Code Here

    final ExternalLink extLink = new ExternalLink("lnkInfoCourse",
        new PropertyModel(evenement, "urlInfoCourse"));
    extLink.setPopupSettings(popup);
    item.add(extLink);

    item.add(new Radio("radio", item.getModel()));

    item.add(new TableOddEvenStyleAttributeModifier(item));
  }
View Full Code Here

    item.add(new Label("categorie", new PropertyModel(tarification
        .getCategorie(), "nom")));
    item.add(new Label("prix", new PropertyModel(tarification,
        "prixEnVigueur")));
    item.add(new Radio("radio", item.getModel()));
  }
View Full Code Here

    final Saison saison = (Saison) item.getModelObject();

    item.add(new Label("nom", new PropertyModel(saison, "nom")));
    item.add(new Label("annee", new PropertyModel(saison, "annee")));

    item.add(new Radio("radio", item.getModel()));

    if (saison.getImage() != null)
    {
      InputStream in = resourceService.download(saison.getImage());
View Full Code Here

    dropDownChoice.setRequired(false);

    final TextField email = new TextField("email");

    //Gestion des inscriptions pour les membres d'un club dont la personne actuelle est le coach.
    Radio radioCoach = new Radio("coachClubsMembers", new Model(
        DelegateRegistrationMode.COACH));

    List<Personne> clubMembers;
    Compte coach = this.getXRaceSession().getCompte();
    final DropDownChoice dropDownChoiceMembresClub;
    final Label labelNomClub;

    if (coach.getCoachOf() != null)
    {
      labelNomClub = new Label("clubName", coach.getCoachOf()
          .getNomComplet());
      radioCoach.setVisible(true);
      clubMembers = clubService.find(coach.getCoachOf().getId())
          .getMembres();
      dropDownChoiceMembresClub = new DropDownChoice("ddcClubMembers",
          new PropertyModel(this, "personneAInscrire"), clubMembers,
          new PersonneChoiceRenderer());
    }
    else
    {
      labelNomClub = new Label("clubName", "");
      radioCoach.setVisible(false);
      clubMembers = null;
      dropDownChoiceMembresClub = new DropDownChoice("ddcClubMembers",
          new Model());
      dropDownChoiceMembresClub.setVisible(false);
    }

    dropDownChoiceMembresClub.setRequired(false);

    final RadioGroup radioGroup = new RadioGroup("mode")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected boolean wantOnSelectionChangedNotifications()
      {
        return true;
      }

      @Override
      protected void onSelectionChanged(Object arg0)
      {
        updateFields(email, dropDownChoice, dropDownChoiceMembresClub);
      }
    };

    Radio rdPersonneAssociee = new Radio("rdbPersonneAssociee", new Model(
        DelegateRegistrationMode.PERSONNEASSOCIEE));

    if (personnesAssociees.size() < 1)
    {
      rdPersonneAssociee.setEnabled(false);
    }

    radioGroup.add(labelNomClub);
    radioGroup.add(rdPersonneAssociee);
    radioGroup.add(email);
    radioGroup.add(dropDownChoice);

    radioGroup.add(new Radio("manual", new Model(
        DelegateRegistrationMode.MANUAL)));
    radioGroup.add(new Radio("lookup", new Model(
        DelegateRegistrationMode.LOOKUP)));

    radioGroup.add(radioCoach);

    radioGroup.add(dropDownChoiceMembresClub);
View Full Code Here

    model.setMode(ManualRegistrationMode.MANUAL);

    final Form form = new Form("form", new CompoundPropertyModel(model));
    final RadioGroup radioGroup = new RadioGroup("mode");

    radioGroup.add(new Radio("manual", new Model(
        ManualRegistrationMode.MANUAL)));
    radioGroup.add(new Radio("lookup", new Model(
        ManualRegistrationMode.LOOKUP)));
    form.add(radioGroup);
    form.add(next);

    this.add(form);
View Full Code Here

        return true;
      }
    };
    createNewEquipe.setVisible(model.getInscription().getCourse()
        .isCourseParEquipe());
    createNewEquipe.add(new Radio("newEquipeOui", new Model(true))
        .setVisible(model.getInscription().getCourse()
            .isCourseParEquipe()));
    createNewEquipe.add(new Radio("newEquipeNon", new Model(false))
        .setVisible(model.getInscription().getCourse()
            .isCourseParEquipe()));
    autresInfosForm.add(createNewEquipe);

    equipeExistante = new DropDownChoice("equipeExistante",
View Full Code Here

        return true;
      }
    };

    createNewEquipe.setVisible(composantAutresInfos.isNeedEquipe());
    createNewEquipe.add(new Radio("newEquipeOui", new Model(true))
        .setVisible(composantAutresInfos.isNeedEquipe()));
    createNewEquipe.add(new Radio("newEquipeNon", new Model(false))
        .setVisible(composantAutresInfos.isNeedEquipe()));
    autresInfosForm.add(createNewEquipe);

    equipeExistante = new DropDownChoice("equipeExistante",
        new PropertyModel(composantAutresInfos, "equipeExistante"),
View Full Code Here

                //"Not supported yet."
            }
        };
        userTF.setMarkupId("userbox");

        rg.add(new Radio("0", new Model(0)).setMarkupId("sbnone"));
        rg.add(new Radio("1", new Model(1)).setMarkupId("sbfriends"));
        rg.add(new Radio("2", new Model(2)).setMarkupId("sbuser"));
        rg.add(userTF);
        if (showSpacer)
            form.add(new AttributeAppender("class", new Model("not-logged-in-spacer"), " "));

        form.add(rg);
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.Radio

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.