Examples of AjaxSubmitLink


Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

    };
  }

  private AjaxSubmitLink createAjaxSubmitLink(String id)
  {
    return new AjaxSubmitLink(id)
    {
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form)
      {
        super.onSubmit(target, form);
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

    form.add(checkGroup);

    checkGroup.add(new Check("check1", new Model(new Integer(1))));
    checkGroup.add(new Check("check2", new Model(new Integer(2))));

    add(new AjaxSubmitLink("submitLink", form)
    {
      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target, Form form)
      {
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

  {
    MockPojo mockPojo = new MockPageWithFormAndLink.MockPojo();
    mockPojo.setName("Mock name");

    final MockPageWithFormAndContainedLink page = new MockPageWithFormAndContainedLink(mockPojo);
    page.addLink(new AjaxSubmitLink("link")
    {
      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target, Form form)
      {
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

  {
    MockPojo mockPojo = new MockPageWithFormAndLink.MockPojo();
    mockPojo.setName("Mock name");

    final MockPageWithFormAndLink page = new MockPageWithFormAndLink(mockPojo);
    AjaxSubmitLink link = new AjaxSubmitLink("link", page.getForm())
    {
      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target, Form form)
      {
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

    });

    // AjaxSubmitLink
    final Form form = new Form("form");
    add(form);
    final AjaxSubmitLink submit = new AjaxSubmitLink("submit")
    {
      private static final long serialVersionUID = 1L;

      protected void onSubmit(final AjaxRequestTarget target, final Form form)
      {
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

      {
        fail("Link " + path + "is an AjaxSubmitLink and " +
          "will not be invoked when AJAX (javascript) is disabled.");
      }

      AjaxSubmitLink link = (AjaxSubmitLink)linkComponent;

      // We cycle through the attached behaviors and select the
      // LAST matching behavior as the one we handle.
      List behaviors = link.getBehaviors();
      AjaxFormSubmitBehavior ajaxFormSubmitBehavior = null;
      for (Iterator iter = behaviors.iterator(); iter.hasNext();)
      {
        Object behavior = iter.next();
        if (behavior instanceof AjaxFormSubmitBehavior)
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

      {
        fail("Link " + path + " is an AjaxSubmitLink and " +
          "will not be invoked when AJAX (javascript) is disabled.");
      }

      AjaxSubmitLink link = (AjaxSubmitLink)linkComponent;

      String pageRelativePath = link.getInputName();
      request.getPostParameters().setParameterValue(pageRelativePath, "x");

      submitAjaxFormSubmitBehavior(link,
        (AjaxFormSubmitBehavior)WicketTesterHelper.findAjaxEventBehavior(link, "onclick"));
    }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

    final Form<Void> form = new Form<Void>("form");
    form.setOutputMarkupId(true);
    addToBorder(form);
    form.add(getBodyContainer());

    form.add(new AjaxSubmitLink("submit")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form)
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

    }

    AjaxSubmitLink computeNativeBoundsLink(final Form refForm,
            final EnvelopePanel nativeBBox) {
        return new AjaxSubmitLink("computeNative", refForm) {

            @Override
            public void onSubmit(final AjaxRequestTarget target, Form form) {
                // perform manual processing otherwise the component contents won't be updated
                form.process();
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink

                .getFormComponent(), namePanel.getFormComponent(), store.getId());
        paramsForm.add(storeNameValidator);
    }

    private AjaxSubmitLink saveLink() {
        return new AjaxSubmitLink("save", paramsForm) {

            @Override
            protected void onError(AjaxRequestTarget target, Form form) {
                super.onError(target, form);
                target.addComponent(paramsForm);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.