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

WicketRuntimeException from AjaxPagingNavigator#onAjaxEvent

    XMLWordPrintableJSON

Details

    Description

      In WICKET-5974 a change was added where the AjaxPagingNavigator checks if its pageable has a parent that is a) not a repeater and b) has outputMarkupId set to true. If not, a WicketRuntimeException is thrown ("Unable to find a parent component that is no repeater and has setOutputMarkupId(true)")

      This is a significant break from the logic before, where the AjaxPagingNavigator checked if its pageable has a parent that is not a repeater and if so, added it to the AjaxRequestTarget, which then would check if the component has

      setOutputMarkupId(true)

      or if it is a page. (see AjaxRequestHandler#add(Component...) )

      This last part is significant because it means that any repeater added directly to a page before would work with the AjaxPagingNavigator but now it will only work if that page has

      setOutputMarkupId(true)

      .

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              buurmansven Sven Haster
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: