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

Ajax Fallback LInk should pass a NullAjaxRequestTarget when javascript not supported

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      When javascript is not supported, AjaxFallbackLink calls onClick(target) with target = null. I propose that instead it should pass a NullAjaxRequestTarget whose addComponent() method is a noop (since the whole page is going to be re-rendered anyway).

      This will make it possible to call write the onClick() method without a null check, as in:

      @Override
      public void onClick(AjaxRequestTarget target)

      { target.addComponent(...); }

      rather than always worrying about whether javascript is enabled by the browser, and wrapping a null check around the target,

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              goofyloo Don Ferguson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: