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

Make it possible to use JsonFunction as a AjaxCallListener's handler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0-beta2
    • 6.0.0-beta3
    • wicket
    • None

    Description

      Currently the IAjaxCallListener's handlers could be an instance of CharSequence. Wicket wraps them in JsonFunction and sets the respective parameters for the handler.

      By making JsonFunction itself a CharSequence allows the developer to use it as a handler and to provide the whole JS function code, not just the body which makes the code looks a little bit strange because some variables are assumed to be passed (the parameters) from somewhere else.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: