Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-27 Thread Paul Bors
Get rid of your large scroll area and use data tables with 50-100 rows per page along with a filter panel. That'll be more like the "wicket developer" way. As for the fancy infinite scrolling, I would strongly suggest you take the advise and consider what Martin said about using lazy loading repea

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-27 Thread vineet semwal
i was expecting this case too :-) but it's a very unusual usecase for a *user* but not for wicket developer ,i have an easy(may be stupid) idea for this,no need of quickview :-) ,show only one repeater's page items to user like as usual.., on scroll event just repaint the repeater's parent ,foreg

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-27 Thread Martin Grigorov
Hi, I mean something like https://github.com/mleibman/SlickGrid/wiki#virtual-rendering - DOM objects are added and removed while scrolling, thus keeping the DOM tree size small On Wed, Mar 27, 2013 at 12:52 PM, vineet semwal wrote: > hi , > do you mean removing items when you said unloading? >

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-27 Thread vineet semwal
hi , do you mean removing items when you said unloading? the scroll behavior and navigator that are in the package just do quickview#addItemsForNextPage() on event like in this example https://github.com/vineetsemwal/quickview/blob/master/wicket-quickview-examples/src/main/java/com/aplombee/exampl

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-27 Thread Martin Grigorov
Check https://github.com/vineetsemwal/quickview - a lazy loading repeater. I'm not sure whether it also unloads items which are no more visible. On Wed, Mar 27, 2013 at 12:16 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > Angular is just a "detail" on the approach I was sug

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Ernesto Reinaldo Barreiro
Hi, Angular is just a "detail" on the approach I was suggesting... You can achieve "the same" using "plain" jquery to ask for JSON and do "creation" of rows at client side iterating over results. If you do thing nicely you can still have some kind of componentization and the performance will be a

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Eric Jablow
On Tue, Mar 26, 2013 at 5:33 PM, Eric Jablow wrote: > rates during the Crimean War, and Miraud's chart of the Napoleon's March to Minard, darn it. > Respectfully, > Eric Jablow - To unsubscribe, e-mail: users-unsubscr...@wicket

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Eric Jablow
On Tue, Mar 26, 2013 at 5:11 PM, Igor Vaynberg wrote: > On Tue, Mar 26, 2013 at 2:00 PM, Marco Springer wrote: >> >> On Tuesday 26 March 2013 13:48:05 Igor Vaynberg wrote: >>> On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer wrote: >>> > Rendering the 287 years >>> >>> pretty sure gantt charts di

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Igor Vaynberg
On Tue, Mar 26, 2013 at 2:00 PM, Marco Springer wrote: > > On Tuesday 26 March 2013 13:48:05 Igor Vaynberg wrote: >> On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer wrote: >> > Actually, the performance problem was in the first row, well actually the >> > header that was rendering all days in a w

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
On Tuesday 26 March 2013 13:48:05 Igor Vaynberg wrote: > On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer wrote: > > Actually, the performance problem was in the first row, well actually the > > header that was rendering all days in a week/month/year. > > > > Each data row itself has a lot less i

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Igor Vaynberg
On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer wrote: > Actually, the performance problem was in the first row, well actually the > header that > was rendering all days in a week/month/year. > > Each data row itself has a lot less items. > Each row has items that are absolutely positioned within

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
Actually, the performance problem was in the first row, well actually the header that was rendering all days in a week/month/year. Each data row itself has a lot less items. Each row has items that are absolutely positioned within the relatively positioned row. Each item can span over multiple

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
I've looked at Angular a while back and it certainly looks interesting. However I don't think it's wise to introduce another technology within the current company where I'm migrating a rather large CGI-BIN application to a Wicket variant and into several modules. I'm the main JAVA/Wicket guy now

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
Hi Dan, Tnx for the suggestion. In the previous mail I mentioned to present a zoomed out version of the Gantt which is a logical view considering the display of several years, the detail of showing each day in those years is, well, useless. It was easy to change this, therefor not needing the s

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Ernesto Reinaldo Barreiro
I mean: This same component could be used as "context" for AJAX interactions. On Tue, Mar 26, 2013 at 7:42 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Why don't you try rolling your own component that at sever side just > serves JSON and you build up "rich functionality" at clien

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Ernesto Reinaldo Barreiro
Why don't you try rolling your own component that at sever side just serves JSON and you build up "rich functionality" at client side. This same context could be used as "context" for AJAX interactions. Something like http://www.antiliasoft.com/wicket-angular-demo/ On Tue, Mar 26, 2013 at 5:23

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Dan Retzlaff
The javadoc for Component#put() refers to a now non-existent "childForId map" which got removed 8 years ago [1]! You might consider making your ListView into a ListView> and splitting the original dataset into say 10k List#subLists. It ain't pretty, but for a "(nearly finished)" app, it beats a se

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Bernard
Hi, AFAIK the solutions for large numbers of cells in GUI frameworks are: 1) Do not render cells that are not in the scrollable view 2) Create components only per once row or column and provide cell renderers. See javax.swing.table.TableCellRenderer With these approaches there is basically no li

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
I'm building a Gantt like interface with Wicket (nearly finished). It was a requirement to see multiple years of planned items, in the extreme range even. I've down-tuned it to be around max ~3k (8 years) of components in that listview, through the power of persuasion and as a test. At 3k compon

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Martin Grigorov
Even if you overcome this slowness in Wicket code - how do you imagine the browser will render such amount of markup ? Even 500 HTML elements (e.g. table rows) will make it hard for the browser to render them. On Tue, Mar 26, 2013 at 5:07 PM, Marco Springer wrote: > Hi, > > Lets say I have abou

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Igor Vaynberg
putting a 10 components into a page is ill advised even if they are under different parents. what is the usecase you are trying to implement? -igor On Tue, Mar 26, 2013 at 8:07 AM, Marco Springer wrote: > Hi, > > Lets say I have about ~100.000 of MarkupContainer objects that I want to put >