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

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


    protected void build(final IModel info, Form form) {
        form.add( new TextField( "maxFeatures" ) );
        form.add( new CheckBox("featureBounding") );
       
        //service level
        RadioGroup sl = new RadioGroup( "serviceLevel" );
        form.add( sl );
        sl.add( new Radio( "basic", new Model( WFSInfo.ServiceLevel.BASIC ) ) );
        sl.add( new Radio( "transactional", new Model( WFSInfo.ServiceLevel.TRANSACTIONAL  ) ) );
        sl.add( new Radio( "complete", new Model( WFSInfo.ServiceLevel.COMPLETE ) ) );
       
        IModel gml2Model = new LoadableDetachableModel(){
            public Object load(){
                return ((WFSInfo)info.getObject()).getGML().get(WFSInfo.Version.V_10);
            }
View Full Code Here


      RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
      rc.setLabel(new Model("number"));
      rc.setRequired(true);
      add(rc);

      RadioGroup group = new RadioGroup("numbersGroup");
      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);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
View Full Code Here

      RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
      rc.setLabel(new Model("number"));
      rc.setRequired(true);
      add(rc);

      RadioGroup group = new RadioGroup("numbersGroup");
      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);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
View Full Code Here

   * Constructor
   */
  public RadioGroupPage()
  {

    final RadioGroup group = new RadioGroup("group", new Model());
    Form form = new Form("form")
    {
      protected void onSubmit()
      {
        info("selected person: " + group.getModelObjectAsString());
      }
    };

    add(form);
    form.add(group);

    ListView persons = new ListView("persons", ComponentReferenceApplication.getPersons())
    {

      protected void populateItem(ListItem item)
      {
        item.add(new Radio("radio", item.getModel()));
        item.add(new Label("name", new PropertyModel(item.getModel(), "name")));
        item.add(new Label("lastName", new PropertyModel(item.getModel(), "lastName")));
      }

    };

    group.add(persons);

    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

      RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
      rc.setLabel(new Model("number"));
      rc.setRequired(true);
      add(rc);

      RadioGroup group = new RadioGroup("numbersGroup");
      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);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
View Full Code Here

    return checkGroupComponent;
  }

  private RadioGroup newRadioGroup(List candidateChoices)
  {
    RadioGroup radioGroupComponent = new RadioGroup("radioGroup");
    ListView listView = new ListView("loop", candidateChoices)
    {
      private static final long serialVersionUID = 1L;

      protected void populateItem(ListItem item)
      {
        item.add(new Radio("radio", new Model((Book)item.getModelObject())));
      }

    };
    radioGroupComponent.add(listView);
    return radioGroupComponent;
  }
View Full Code Here

      add(new CheckBox("booleanProperty"));
      RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
      rc.setLabel(new Model("number"));
      add(rc);

      RadioGroup group = new RadioGroup("numbersGroup");
      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);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
View Full Code Here

public class EnclosurePage_7 extends WebPage
{
  public EnclosurePage_7()
  {
    this.add(new RadioGroup("group").add(new Radio<Void>("radio")));
  }
View Full Code Here

      RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
      rc.setLabel(new Model("number"));
      rc.setRequired(true);
      add(rc);

      RadioGroup group = new RadioGroup("numbersGroup");
      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);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
View Full Code Here

  {
    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()));
      }

    });
View Full Code Here

TOP

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

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.