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

Make AjaxLink's URL more configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC2
    • 1.5-RC3
    • wicket
    • None

    Description

      Currently AjaxLink uses AjaxEventBehavior which exposes just its getAjaxCallDecorator() to the user.
      It would be nice if there is a way to have access to the behavior callback url, e.g. to add some additional parameters, to set channel (wicket-ajax.js), etc.

      As solution I suggest to add method "AjaxLink#newAjaxBehavior()" which by default will return current AjaxEventBehavior but if the user wants she may override it with custom one. This way wicket stateless ajax behavior (see jolira's google code project) can be used as well without the need to re-write (copy/paste) the whole class.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: