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

introduce add(index,Component) in MarkupContainer

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Hi,
      currently the only way to add new items at any index(apart from end) is removing all children and then adding/recreating new children ,this might be ok for listview/dataview since the ideal way of using them is to reconstruct at render ,this though ok for them but will not be good for a repeater whose size is big/growing . fortunately markupcontainer provides everything to introduce a method like add(index,component) which will have functionality like List#add(index,element).
      the advantages of introducing this method will be in places like an infinite scroll repeater which can prevent the growing size by removing elements at start/end depending on scroll position and later can add the items back at start or end .

      Attachments

        1. fix-WICKET-MC.patch
          7 kB
          vineet semwal
        2. mc-quickie.jar
          42 kB
          vineet semwal

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              vineetsemwal vineet semwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: