Repainting repeaters - why the need for the enclosing element

2013-04-09 Thread Nick Pratt
I've never really understood this concept, and Im hoping that someone can explain: When I have a repeater, say a ListView, and I have the tags set up: div wicket:id=myRepeater ... whatever ... /div Why cant I repaint that component via Ajax? There's an ID etc. - what in Wicket forces us to

Re: Repainting repeaters - why the need for the enclosing element

2013-04-09 Thread Igor Vaynberg
this has to do with how wicket repaints things with ajax. what it does is render the component and then replace the component's root dom node in the existing markup with the one rendered via ajax. lets take a simple example of attaching a listview to a [tr] add(new ListView(rows, ...) { });