[ https://issues.apache.org/jira/browse/WICKET-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
vineet semwal updated WICKET-5170: ---------------------------------- Description: Hi, currently the only way to add new items at any index(apart from last) 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 . was: Hi, currently the only way to add new items at any index 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 . > introduce add(index,Component) in MarkupContainer > -------------------------------------------------- > > Key: WICKET-5170 > URL: https://issues.apache.org/jira/browse/WICKET-5170 > Project: Wicket > Issue Type: New Feature > Reporter: vineet semwal > Labels: wicket > Attachments: fix-WICKET-MC.patch > > > Hi, > currently the only way to add new items at any index(apart from last) 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 . -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira