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

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


    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

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

      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here


                    tag.put("href", "javascript:void(0)"); // don't do href="#"
                }
            };
        }
        else {
            button = new SubmitLink("button", form) {
                private static final long serialVersionUID = 1L;

                @Override
                public void onSubmit()
                {
View Full Code Here

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

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

      serializeFormToRequest(submitLink.getForm());
      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

      {
        submitted = true;
      }
    };
    form.add(new TextField<String>("text", new PropertyModel<String>(HomePage.this, "text")));
    form.add(new SubmitLink("link")
    {

      /**
       *
       */
 
View Full Code Here

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

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

      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

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

      serializeFormToRequest(submitLink.getForm());
      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

      {
        MockFormSubmitsPage.this.onAjaxButtonSubmit(target, form);
      }
    });

    form.add(new SubmitLink("link"));

    form.add(new AjaxSubmitLink("ajaxlink")
    {
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form)
View Full Code Here

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

      String pageRelativePath = submitLink.getInputName();
      getParametersForNextRequest().put(pageRelativePath, new String[] { "x" });

      Form<?> form = submitLink.getForm();
      form.visitFormComponents(new FormComponent.IVisitor()
      {
        public Object formComponent(IFormVisitorParticipant formComponent)
        {
          FormComponent<?> component = (FormComponent<?>)formComponent;
          if (getParametersForNextRequest().containsKey(component.getInputName()) == false)
          {
            getParametersForNextRequest().put(component.getInputName(),
              new String[] { component.getDefaultModelObjectAsString() });
          }

          return IVisitor.CONTINUE_TRAVERSAL;
        }
      });

      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

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

      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

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

      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

TOP

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

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.