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

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


  public static class StatelessListenerPage extends MyPage
  {
      public StatelessListenerPage()
      {
    super();
    add(new StatelessForm("statelessForm")
    {
      @Override
      protected void onSubmit() {
        setResponsePage(EmptyPage.class);
      }
View Full Code Here


  public static class FirstPage extends WebPage implements IMarkupResourceStreamProvider {

    public FirstPage() {

      StatelessForm form = new StatelessForm("form")
      {
        @Override
        protected void onSubmit()
        {
          PageParameters parameters = new PageParameters();
View Full Code Here

    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(new MaximumValidator<Integer>(20));
    field.setRequired(true);

    StatelessForm<?> statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(new MaximumValidator<Integer>(20));
    field.setRequired(true);

    StatelessForm<?> statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(new MaximumValidator<Integer>(20));
    field.setRequired(true);

    StatelessForm<?> statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    add(new BookmarkablePageLink("indexLink", Index.class));
    final TextField field = new TextField("textfield", new PropertyModel(this, "number"));
    field.add(NumberValidator.maximum(20));
    field.setRequired(true);

    StatelessForm statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        info("Submitted text: " + field.getModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(new MaximumValidator<Integer>(20));
    field.setRequired(true);

    StatelessForm<?> statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    setStatelessHint(true);
    add(new BookmarkablePageLink("indexLink", Index.class));
    final TextField field = new TextField("textfield", new Model());
    field.setRequired(true);

    StatelessForm statelessForm = new StatelessForm("statelessform")
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    add(actionLink);
    actionLink.add(new Label("linkClickCount", new PropertyModel(this, "linkClickCount")));

    final TextField field = new TextField("textfield", new Model());

    StatelessForm statelessForm = new StatelessForm("statelessform")
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject() + ", link click count: " +
          linkClickCount);
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(NumberValidator.maximum(20));
    field.setRequired(true);

    StatelessForm<?> statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

TOP

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

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.