Examples of SubmitLink


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

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

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

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

    add(numberField);
    if (addLabel) {
      FormComponentLabel numberFieldLabel =  new FormComponentLabel("numberFieldLabel", numberField);
      add(numberFieldLabel);
    }
    add(new SubmitLink("goLink"));
 
View Full Code Here

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

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");

      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

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

import org.apache.isis.viewer.wicket.model.mementos.PageParameterNames;

public final class Links {

    public static <T extends Page> AbstractLink newSubmitLink(final String linkId, final PageParameters pageParameters, final Class<T> pageClass) {
        return new SubmitLink(linkId) {
            private static final long serialVersionUID = 1L;
            @Override
            // TODO mgrigorov: consider overriding onAfterSubmit instead
            public void onSubmit() {
                getForm().setResponsePage(pageClass, pageParameters);
View Full Code Here

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

            cssMenuItem.setParent(parent);
            return this;
        }

        public <T extends Page> Builder link(final Class<T> pageClass) {
            final AbstractLink link = new SubmitLink(ID_MENU_LINK);
            return link(link);
        }
View Full Code Here

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

    };
  }

  private SubmitLink createSubmitLink(String id)
  {
    return new SubmitLink(id)
    {
      @Override
      public void onSubmit()
      {
        super.onSubmit();
View Full Code Here

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();
      getParametersForNextRequest().put(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
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.