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

Change AjaxPagingNavigator#onAjaxEvent() to only consider parent components that have setOutputMarkupId(true)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.13, 6.20.0, 7.0.0
    • 1.5.14, 6.21.0, 7.1.0
    • wicket
    • None
    • Patch

    Description

      I just found out that for AjaxPagingNavigator to work properly the first non-repeater parent component of the IPageable needs to have setOutputMarkupId(true) , otherwise clicking a button will throw an IAE in ART#add().

      The attached patch (made against the wicket-1.5.13 tag) changes AjaxPagingNavigator#onAjaxEvent() to also check getOutputMarkupId().

      Attachments

        1. WICKET-5974.patch
          2 kB
          Tobias Gierke

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              tgierke Tobias Gierke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: