Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3042

AjaxLink does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5-M2.1
    • 1.5-M2.1
    • wicket
    • None
    • Windows / maven 2.2.0

    Description

      Below code never fires the onSubmit

      HTML :

      <a wicket:id="helloSubmit">Hello</a>

      Java :
      add(new AjaxSubmitLink("helloSubmit", form){
      private static final long serialVersionUID = 1L;
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form)

      { HomePage.this.text = helloService.sayHello(name); target.addComponent(label); }

      @Override
      protected void onError(AjaxRequestTarget arg0, Form<?> arg1)

      { // TODO Auto-generated method stub }

      });

      Please start the attached quickstart and press the Hello button, nothing happens with 1.5-m2 but works with 1.5-m1.

      Attachments

        1. problemwithajaxlink.zip
          12 kB
          Nino Martinez

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              nino Nino Martinez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: